decocms 4.581.1 → 4.582.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D1QqLKFH.js → AlertCircle-DT2ZDuIl.js} +1 -1
- package/dist/client/assets/{AreaChart-C-sK2ItE.js → AreaChart-DcNurrpT.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B_zuPCk3.js → ArrowLeft-DR_MRxUB.js} +1 -1
- package/dist/client/assets/{ArrowUp-BVEp2Brj.js → ArrowUp-BdtMKnAz.js} +1 -1
- package/dist/client/assets/{BookOpen01-DU_gf3Q9.js → BookOpen01-DejCO54_.js} +1 -1
- package/dist/client/assets/{CartesianChart-BR9Be1vV.js → CartesianChart-43C3tGyF.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DhUmp4Jo.js → CategoricalChart-GawOpO41.js} +1 -1
- package/dist/client/assets/{CheckCircle-r_uvA104.js → CheckCircle-CM--cqi0.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Cnj6Mtq0.js → ChevronSelectorVertical-BJDM_s_Z.js} +1 -1
- package/dist/client/assets/{ChevronUp-fKdis79A.js → ChevronUp-DM7pn8nV.js} +1 -1
- package/dist/client/assets/{CreditCard01-2UGmTwp0.js → CreditCard01-BKZ9QJb-.js} +1 -1
- package/dist/client/assets/{Globe04-BIxVPRI2.js → Globe04-BZJYx7x5.js} +1 -1
- package/dist/client/assets/{Key01-B-uaWiXd.js → Key01-CC_tghZO.js} +1 -1
- package/dist/client/assets/{LinkBroken01-ChDYryt0.js → LinkBroken01-4l2zZef9.js} +1 -1
- package/dist/client/assets/{Minus-eMZySqLh.js → Minus-Bj5yI5D8.js} +1 -1
- package/dist/client/assets/{Monitor01-CzcVShIo.js → Monitor01-DeK03po-.js} +1 -1
- package/dist/client/assets/{Play-DK3U1VA7.js → Play-kYcUI1An.js} +1 -1
- package/dist/client/assets/{Plus-BNdH4tYy.js → Plus-DEeR8qC2.js} +1 -1
- package/dist/client/assets/ReferenceLine-DbQts9AQ.js +1 -0
- package/dist/client/assets/{SearchMd-DWnwnZQO.js → SearchMd-DVpGBR2l.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BrAbYbaG.js → ShoppingBag01-BV5nZGeU.js} +1 -1
- package/dist/client/assets/{Sun-wrM9Jol_.js → Sun-Ba2OXmDv.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D7pFOqnZ.js → SwitchHorizontal01-Cp1oX99F.js} +1 -1
- package/dist/client/assets/{Tool01-AMJ0J7Ld.js → Tool01-BlUlKjGy.js} +1 -1
- package/dist/client/assets/{Tooltip-CZ7doa0d.js → Tooltip-DNR0eew9.js} +1 -1
- package/dist/client/assets/{Trash01-Chu35sQ_.js → Trash01-CgZrkZ3U.js} +1 -1
- package/dist/client/assets/{Upload01-CGdoFUP8.js → Upload01-DDoiK0tv.js} +1 -1
- package/dist/client/assets/{UserSquare-DUXP0rwX.js → UserSquare-DEjJtCDR.js} +1 -1
- package/dist/client/assets/{Users01-BnTqMUrr.js → Users01-DVMhWmct.js} +1 -1
- package/dist/client/assets/{XClose-BAfH6Ebz.js → XClose-xYIhBL8b.js} +1 -1
- package/dist/client/assets/{Zap-YDxTdktJ.js → Zap-BsuEhLd3.js} +1 -1
- package/dist/client/assets/{access-gate-DDMODilC.js → access-gate-BYQd4796.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-B8fK5SPo.js → add-connection-dialog-C86xZwTt.js} +1 -1
- package/dist/client/assets/agent-app-qCE6mpox.js +1 -0
- package/dist/client/assets/agent-assets-BERkZgBg.js +1 -0
- package/dist/client/assets/{agent-automation-DNgt345_.js → agent-automation-B3znFoJv.js} +3 -3
- package/dist/client/assets/{agent-automations-mWv09YVd.js → agent-automations-BI5n1DEk.js} +1 -1
- package/dist/client/assets/agent-blog-DFA4iTY2.js +2 -0
- package/dist/client/assets/{agent-blog-post-D5O_ItNv.js → agent-blog-post-CJzR6SRp.js} +2 -2
- package/dist/client/assets/{agent-calendar-DFwq2V3Y.js → agent-calendar-DCBRCsam.js} +1 -1
- package/dist/client/assets/{agent-capabilities-DSfvUGIA.js → agent-capabilities-B40k722B.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BaY-1hUg.js → agent-connect-sources-BvH_YwiD.js} +1 -1
- package/dist/client/assets/agent-deck-C_9xRnWL.js +1 -0
- package/dist/client/assets/{agent-e2e-BzjDB0Mp.js → agent-e2e-B2FpHDAG.js} +1 -1
- package/dist/client/assets/agent-experiments-BDFLMLOM.js +1 -0
- package/dist/client/assets/{agent-file-G_Q7_eCe.js → agent-file-CAkn0Q5x.js} +1 -1
- package/dist/client/assets/{agent-hosting-DPI1YzdW.js → agent-hosting-D0d8gHPR.js} +1 -1
- package/dist/client/assets/{agent-icon-DFd8L1O_.js → agent-icon-CpMz1pSC.js} +1 -1
- package/dist/client/assets/agent-library-Cs6jlCDK.js +1 -0
- package/dist/client/assets/agent-library-file-DV2qsJC9.js +1 -0
- package/dist/client/assets/agent-overview-IBMGymrh.js +1 -0
- package/dist/client/assets/{agent-releases-DJ49AvX3.js → agent-releases-k0DaB9LQ.js} +2 -2
- package/dist/client/assets/agent-settings-DF71XJZP.js +1 -0
- package/dist/client/assets/{agent-site-editor-CqHVUUAC.js → agent-site-editor-CS9MMMbk.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-gfgfb7xF.js +2 -0
- package/dist/client/assets/agent-site-editor-content-C07hh63_.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CFg2FnqN.js +1 -0
- package/dist/client/assets/agent-view-CzQtfKwQ.js +1 -0
- package/dist/client/assets/{agent-view-guard-D4yaqKiq.js → agent-view-guard-XdI97YrW.js} +1 -1
- package/dist/client/assets/{ai-providers-CovrDI_x.js → ai-providers-DoacYpUR.js} +1 -1
- package/dist/client/assets/{alert-BA8nDu40.js → alert-DFQMLwuf.js} +1 -1
- package/dist/client/assets/{analytics-sections-C7dFg_aE.js → analytics-sections-DNjeT1Pf.js} +1 -1
- package/dist/client/assets/{api-keys-BrhrD9eO.js → api-keys-Bbyyi1IV.js} +1 -1
- package/dist/client/assets/api-keys-CLzhmgUv.js +1 -0
- package/dist/client/assets/{app-editor-tnp3-UhR.js → app-editor-Cd7oWsvo.js} +1 -1
- package/dist/client/assets/{asset-utils-BSepCiAa.js → asset-utils-DxQXeDgB.js} +1 -1
- package/dist/client/assets/{auth-DiKlrdGP.js → auth-Br21RAsk.js} +1 -1
- package/dist/client/assets/{auth-catchall-tnYz6mdY.js → auth-catchall-ChHXwieU.js} +1 -1
- package/dist/client/assets/{auth-entry-SgfwAEXQ.js → auth-entry-BUy5eNSm.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D_rznvbe.js → auth-split-layout-DXcvh-93.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-osQ4PKuX.js → authenticate-and-persist-oauth-CTJV9ez5.js} +1 -1
- package/dist/client/assets/{automation-list-row-FS-zfRjW.js → automation-list-row-COaiktOt.js} +1 -1
- package/dist/client/assets/{automation-runs-DLYz6YWQ.js → automation-runs-BluUkmKT.js} +1 -1
- package/dist/client/assets/{automations-rbGBA3mS.js → automations-BvZ8wxJr.js} +1 -1
- package/dist/client/assets/{badge-BpUJoM3p.js → badge-C2zO_tAX.js} +1 -1
- package/dist/client/assets/{block-document-yqfgnbbt.js → block-document-DTM21O-Q.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-CzI6HAkj.js → blocks-preview-workspace-context-0qX3i0Hw.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Uq85dLE5.js → blocks-tab-states-BZoxOO-H.js} +1 -1
- package/dist/client/assets/{blog-preview-url-BUDrdqoz.js → blog-preview-url-Bcn3MddY.js} +1 -1
- package/dist/client/assets/{blog-schema-Cqi3HnFC.js → blog-schema-PWQlG4FM.js} +1 -1
- package/dist/client/assets/{blog-source-gate-BWofeMwB.js → blog-source-gate-DcD3mNPu.js} +1 -1
- package/dist/client/assets/{blog-view-gate-BjGoFrlO.js → blog-view-gate-BpiHsFQi.js} +1 -1
- package/dist/client/assets/{buckets-QdgXdcXC.js → buckets-r-Vn310N.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Yt1kTpo8.js → build-improve-prompt-doc-BYTmOiJ8.js} +1 -1
- package/dist/client/assets/{calendar-RX4MUBCU.js → calendar-DkvAGmxG.js} +1 -1
- package/dist/client/assets/{capability-load-error-Dco-wYs-.js → capability-load-error-CHW06qRY.js} +1 -1
- package/dist/client/assets/{category-editor-DMitV3My.js → category-editor-D53-0-dG.js} +1 -1
- package/dist/client/assets/{category-tree-CYPMeaO5.js → category-tree-EQNjX_vh.js} +1 -1
- package/dist/client/assets/{chart-Q-cSHjjY.js → chart-DP-afdSL.js} +1 -1
- package/dist/client/assets/{chat-context-BVOzxL7y.js → chat-context-Na_9rQo_.js} +1 -1
- package/dist/client/assets/{chat-draft-DCJJT_1i.js → chat-draft-BnT_bTVf.js} +1 -1
- package/dist/client/assets/{checkbox-x2IxTucq.js → checkbox-Dn6r2X61.js} +1 -1
- package/dist/client/assets/{choose-editor-CMLPeKz2.js → choose-editor-DFYfaLQ4.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DupR1ypd.js → cli-auth-success-BWjEoABt.js} +1 -1
- package/dist/client/assets/{client-icons-BXUuRiJU.js → client-icons-B7ckFhTB.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BPeg7XT1.js → cms-settings-editor-BLtwrg_Q.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DDyrwrmA.js → cms-store-drafts-DC7_MPeX.js} +1 -1
- package/dist/client/assets/{collapsible-CmQt_iZ0.js → collapsible-waKUBV3F.js} +1 -1
- package/dist/client/assets/collection-detail-BdQUzwBw.js +1 -0
- package/dist/client/assets/{collection-display-button-Q31iiQyG.js → collection-display-button-CpOX39FE.js} +1 -1
- package/dist/client/assets/{collection-search-kFWWyWV8.js → collection-search-CKJ8zcS9.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-lwnrgmvl.js → collection-table-wrapper-DX64SyX5.js} +1 -1
- package/dist/client/assets/{collection-tabs-ZWO3GiY3.js → collection-tabs-DL3FYMaD.js} +1 -1
- package/dist/client/assets/{combobox-B7xBLEqp.js → combobox-CZTRaybI.js} +1 -1
- package/dist/client/assets/{command-C00hDMwB.js → command-B0-oLV0k.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DqGiryze.js → companion-mcps-section-CAkQdc3e.js} +1 -1
- package/dist/client/assets/{config-1WcD3pf5.js → config-DhSdzr_l.js} +1 -1
- package/dist/client/assets/{connect-CPk_XjVi.js → connect-DwtFEmWa.js} +2 -2
- package/dist/client/assets/{connect-layout-Cki4va2J.js → connect-layout-By1LwNsY.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-OGa93hL5.js → connect-source-dialog-Clx35W2U.js} +1 -1
- package/dist/client/assets/{connection-CLrwGffq.js → connection-CwOP2DkA.js} +1 -1
- package/dist/client/assets/{connection-card-CG85F9R4.js → connection-card-DxEnheWw.js} +1 -1
- package/dist/client/assets/{connection-detail-B8RNsYKm.js → connection-detail-Bm5pNgz3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Du6e-sDu.js → connection-form-helpers-DsiTws_r.js} +1 -1
- package/dist/client/assets/{connection-slug-BC6vEqea.js → connection-slug-CqKJM07D.js} +1 -1
- package/dist/client/assets/{connections-DTZU4hmT.js → connections-8N6-U8BU.js} +1 -1
- package/dist/client/assets/{content-tab-xOpBPR9g.js → content-tab-D3gTzU_j.js} +3 -3
- package/dist/client/assets/{context-DZfW90rI.js → context-CdMMXT5s.js} +1 -1
- package/dist/client/assets/{context-menu-dgkpoBmD.js → context-menu-BAywIeQG.js} +1 -1
- package/dist/client/assets/{context-shell-Dlkux8ZE.js → context-shell-C8ZPCYjw.js} +3 -3
- package/dist/client/assets/{core.esm-DUcC46mO.js → core.esm-YEEWezEY.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CG0hKl_H.js → create-organization-dialog-BpL43B76.js} +1 -1
- package/dist/client/assets/{delete-copy-BLgf78Hs.js → delete-copy-UjfjjP4_.js} +1 -1
- package/dist/client/assets/{device-hint-CmMhxStN.js → device-hint-AWxEadtg.js} +1 -1
- package/dist/client/assets/discover-DhvRjqxh.js +1 -0
- package/dist/client/assets/{domain-settings-ClKI_rRO.js → domain-settings-BCvvef40.js} +1 -1
- package/dist/client/assets/{drawer-OboTDl5r.js → drawer-CfOCKnhq.js} +1 -1
- package/dist/client/assets/{editor-ChiPsACh.js → editor-COFIs9XE.js} +2 -2
- package/dist/client/assets/{editor-classes-De5o_8lB.js → editor-classes-aqVUSPbm.js} +1 -1
- package/dist/client/assets/{empty-message-D92Pb6fP.js → empty-message-CirmMDhM.js} +1 -1
- package/dist/client/assets/{empty-state-BcZKaOw-.js → empty-state-C7Sg1bax.js} +1 -1
- package/dist/client/assets/{empty-state-CxI5dssp.js → empty-state-CFvQY7HR.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DdEGbuLK.js → experiments-tab-choice-Ch-KXcUZ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DwWq6VY0.js → extract-connection-data-CFxfI9gN.js} +1 -1
- package/dist/client/assets/{feature-gate-qgzTBO3A.js → feature-gate-BsIQ70jm.js} +1 -1
- package/dist/client/assets/{feature-paywall-ljVyCUfx.js → feature-paywall-AtUr_EOu.js} +1 -1
- package/dist/client/assets/{file-explorer-fgWC9Rob.js → file-explorer-DpEdUCiL.js} +1 -1
- package/dist/client/assets/{file-preview-C1UH8fjg.js → file-preview-PSKf9fIz.js} +1 -1
- package/dist/client/assets/{file-share-button-Bm5Af9aY.js → file-share-button-D9sAYI1R.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dnh_2HcY.js → file-type-icon-3Zm8W435.js} +1 -1
- package/dist/client/assets/{folder-icon-BZSobjd4.js → folder-icon-D4-RUOt8.js} +1 -1
- package/dist/client/assets/{form-CuAETLLt.js → form-BZ7xdssd.js} +1 -1
- package/dist/client/assets/{frame-navigation-D2IzuXnb.js → frame-navigation-8oPGH7NY.js} +1 -1
- package/dist/client/assets/{general-CThohMer.js → general-Bt-teqGz.js} +1 -1
- package/dist/client/assets/{github-icon-D0vbU4b9.js → github-icon-DH5Sm3NR.js} +1 -1
- package/dist/client/assets/held-block-view-BR-UYX4S.js +3 -0
- package/dist/client/assets/{home-DrAlxwLg.js → home-CIpHO2ej.js} +1 -1
- package/dist/client/assets/{home-overview-DPAQZtaE.js → home-overview-9H7C1hoB.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-C2j-K6SC.js → hosted-reconcile-C5UVxzTP.js} +1 -1
- package/dist/client/assets/{icon-button-D8OdW1Ng.js → icon-button-BfibpDoO.js} +1 -1
- package/dist/client/assets/{index-DDDWDv4s.js → index-BP527m3V.js} +6 -6
- package/dist/client/assets/{index-CNMZKaZ4.js → index-BXpXjiyK.js} +1 -1
- package/dist/client/assets/{index-CldZuS5S.js → index-BpLEscAk.js} +1 -1
- package/dist/client/assets/index-BqWale_V.css +1 -0
- package/dist/client/assets/{index-BTxnnO3z.js → index-CQ7e2YEj.js} +1 -1
- package/dist/client/assets/{index-Ch7SvmMC.js → index-CmzG_GaM.js} +1 -1
- package/dist/client/assets/{index-C_OpZGYh.js → index-DCl7HPjQ.js} +1 -1
- package/dist/client/assets/{index-D1w7KFj7.js → index-DF1Gszum.js} +1 -1
- package/dist/client/assets/{index-BATsrbDm.js → index-DN9fxTzN.js} +1 -1
- package/dist/client/assets/{index-54RE0ioE.js → index-DZi8I8ot.js} +1 -1
- package/dist/client/assets/{index-wTvZKrHA.js → index-Db96seLi.js} +1 -1
- package/dist/client/assets/{index-DAjFmo5j.js → index-DoH06YKc.js} +1 -1
- package/dist/client/assets/{index-DxWwCAMV.js → index-Ds3fsbcX.js} +1 -1
- package/dist/client/assets/{index-CY0csw6V.js → index-DuYneP0E.js} +1 -1
- package/dist/client/assets/{index-D3ue61h8.js → index-dsAQGF7D.js} +1 -1
- package/dist/client/assets/{index-CBYIpf8n.js → index-jQ2gY_fm.js} +1 -1
- package/dist/client/assets/{index-ByeVWJ7k.js → index-n1AjR0vt.js} +1 -1
- package/dist/client/assets/{index-redirect-CYDCVRJ_.js → index-redirect-QRKsjVCi.js} +1 -1
- package/dist/client/assets/index-tLhNg31B.js +4 -0
- package/dist/client/assets/{infiniteQueryObserver-ktArfc_t.js → infiniteQueryObserver-BFZQsptZ.js} +1 -1
- package/dist/client/assets/{infra-billing-C-QVvoRz.js → infra-billing-C3ShZZOT.js} +1 -1
- package/dist/client/assets/{input-CBsHXM-K.js → input-C1HwcZTs.js} +1 -1
- package/dist/client/assets/{input-CFiVVIga.js → input-GqBshPf5.js} +4 -4
- package/dist/client/assets/{integration-icon-D5RK2sEk.js → integration-icon-XUOEUOb8.js} +1 -1
- package/dist/client/assets/item-actions-BfBBT1Qz.js +1 -0
- package/dist/client/assets/{jira-icon-CmDZL_wM.js → jira-icon-B48lqxRs.js} +1 -1
- package/dist/client/assets/{label-EESrxoYH.js → label-DSlWCd9e.js} +1 -1
- package/dist/client/assets/{layout-Byi_jW8h.js → layout-QjOyVmz4.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DAEkCShw.js → legacy-admin-welcome-dialog-DWeHIzCA.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CQX5HShD.js → legacy-agents-deep-COHFWDWb.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-PkEZIvXO.js → legacy-main-redirect-h5ds91_H.js} +1 -1
- package/dist/client/assets/library-BMXElwFo.js +1 -0
- package/dist/client/assets/{library-tab-BLBQDXJU.js → library-tab-DI2mHZkf.js} +1 -1
- package/dist/client/assets/{login-BQoCsEsr.js → login-DgKeSKz2.js} +1 -1
- package/dist/client/assets/{markdown-D5a0osui.js → markdown-BTKw4nl8.js} +1 -1
- package/dist/client/assets/match-site-slug-config-B47_xZCi.js +1 -0
- package/dist/client/assets/{mcp-app-renderer-BgUWGow9.js → mcp-app-renderer-BT9_tzyT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CU691SiC.js → mcp-oauth-1Tp9szFm.js} +1 -1
- package/dist/client/assets/{mcp-oauth-COyT3l0E.js → mcp-oauth-BQRDLkqA.js} +1 -1
- package/dist/client/assets/{members-n8Lstn8K.js → members-DQZtkBei.js} +1 -1
- package/dist/client/assets/{memory-BgMa5u8j.js → memory-B82F2Q7k.js} +2 -2
- package/dist/client/assets/{mock-board-CSrbkqG4.js → mock-board-B7BOXAS7.js} +4 -4
- package/dist/client/assets/{monaco-editor-CwGsSUX8.js → monaco-editor-DTLNzmeB.js} +1 -1
- package/dist/client/assets/{monitoring-s0QSQdK5.js → monitoring-CRmBvi8F.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BsFnLxNy.js → monitoring-stats-row-G2RBze7B.js} +1 -1
- package/dist/client/assets/{multi-select-C5VqbVMP.js → multi-select-ykLyfeEh.js} +1 -1
- package/dist/client/assets/{mustache-BVD8gEp8.js → mustache-p2j_fCOZ.js} +1 -1
- package/dist/client/assets/{named-rule-step-BTqgnNQ5.js → named-rule-step-BJ5LyK07.js} +1 -1
- package/dist/client/assets/{named-rule-view-Bd8STvPD.js → named-rule-view-BBEm0z_K.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BiqAeUrE.js → new-project-dialog-C3JFSI1q.js} +1 -1
- package/dist/client/assets/{oauth-callback-B5GC_Yyx.js → oauth-callback-Cg1KjIf_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Cn-Tp4BP.js → oauth-callback-ai-provider-hOquTBPU.js} +1 -1
- package/dist/client/assets/{oauth-consent-BVAt6oz1.js → oauth-consent-CzhJum4d.js} +1 -1
- package/dist/client/assets/{onboarding-fUXPiATA.js → onboarding-FLu6ztJj.js} +1 -1
- package/dist/client/assets/{openai-conversation-9mnOj04I.js → openai-conversation-DhsFXaEr.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-CyYUwQmb.js → optimistic-project-sidebar-views-D6axz004.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DONFE4J2.js → order-monitor-day-CQJg9ymu.js} +1 -1
- package/dist/client/assets/{organization-choice-BHlAXEW9.js → organization-choice-dV-mJr-d.js} +1 -1
- package/dist/client/assets/{orgs-BAGB65GL.js → orgs-DafOcWKJ.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BCe3XCOA.js → own-accounts-section-BitxRWkd.js} +1 -1
- package/dist/client/assets/{pair-Fhnk8ar3.js → pair-Dsc6GXhQ.js} +1 -1
- package/dist/client/assets/{parse-sections-yZQqTgrz.js → parse-sections-Cy8SKsEh.js} +3 -3
- package/dist/client/assets/{plan-D1utRlpJ.js → plan-5t2sCqh-.js} +1 -1
- package/dist/client/assets/{plan-ladder-CM-HcM-s.js → plan-ladder-xVKcSuhD.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CMfNWBwg.js → plan-usage-card-Cxjcl-tF.js} +2 -2
- package/dist/client/assets/{popover-B_j0y2h7.js → popover-CelLmvH8.js} +1 -1
- package/dist/client/assets/post-calendar-DkUmj6jK.js +1 -0
- package/dist/client/assets/post-editor-DkdXE0U4.js +2 -0
- package/dist/client/assets/{preview-content-DvqZaSqe.js → preview-content-Di9jV9fD.js} +1 -1
- package/dist/client/assets/{preview-dialog-CEbSM9Y6.js → preview-dialog-BTVSDgVC.js} +1 -1
- package/dist/client/assets/{preview-panel-jbh-mjn6.js → preview-panel-COaKD6oK.js} +1 -1
- package/dist/client/assets/preview-tab-BFi8NHe-.js +557 -0
- package/dist/client/assets/{product-picker-dialog-V4AhQCT6.js → product-picker-dialog-tqTphLK7.js} +1 -1
- package/dist/client/assets/{profile-BUCYaJ8H.js → profile-ItK6hTrx.js} +1 -1
- package/dist/client/assets/project-app-view-CMAf9Mlz.js +1 -0
- package/dist/client/assets/{project-apps-CY9tfRYe.js → project-apps-ByyLejju.js} +1 -1
- package/dist/client/assets/{project-icon-DNEfBFoN.js → project-icon-TEwy-duh.js} +1 -1
- package/dist/client/assets/{project-index--AWJOyZB.js → project-index-DqRiC0zN.js} +1 -1
- package/dist/client/assets/project-reports-CPvLPQcs.js +1 -0
- package/dist/client/assets/project-tasks-B88cPPXW.js +1 -0
- package/dist/client/assets/{projects-CJc-98C_.js → projects-FY3sblQl.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CbOIGuob.js → projects-empty-state-OMTDG8SV.js} +1 -1
- package/dist/client/assets/{prompts-CEf1e1i5.js → prompts-TP7YCuz6.js} +1 -1
- package/dist/client/assets/{record-editor-hYaeLcuc.js → record-editor-IJLTcCdR.js} +1 -1
- package/dist/client/assets/{redirect-editor-3TvH_UFo.js → redirect-editor-B2-M7doi.js} +1 -1
- package/dist/client/assets/{reports-D10gkSrT.js → reports-CvxegUiQ.js} +1 -1
- package/dist/client/assets/reports-ODcJFAP-.js +1 -0
- package/dist/client/assets/{reports-onboarding-RhfCcqej.js → reports-onboarding-BicRsxJF.js} +1 -1
- package/dist/client/assets/{reports-tab-CtVgyXhu.js → reports-tab-CCY5hBR2.js} +2 -2
- package/dist/client/assets/repositories-C0edGPcS.js +1 -0
- package/dist/client/assets/{repositories-CJnEkuZk.js → repositories-V6vmPwSM.js} +1 -1
- package/dist/client/assets/{repository-binding-DAYbvLYj.js → repository-binding-DGc5VhVW.js} +1 -1
- package/dist/client/assets/{repository-picker-BO6sLOq7.js → repository-picker-DO5Hy-o-.js} +1 -1
- package/dist/client/assets/{require-capability-DQWSlcjo.js → require-capability-CCGZ96D-.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dg5kgnfG.js → required-auth-layout-DoMwdVaZ.js} +1 -1
- package/dist/client/assets/{reset-password-B8UgVD_T.js → reset-password-B672rI1V.js} +1 -1
- package/dist/client/assets/{resizable-CaTV7JDr.js → resizable-DrLaW_Jl.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DEOb6228.js → resolve-tab-icon-CfRdrLF-.js} +1 -1
- package/dist/client/assets/{review-settings-i1b4oJDO.js → review-settings-B8FCs2a_.js} +1 -1
- package/dist/client/assets/{role-color-BE5BDDIE.js → role-color-CPDxseg4.js} +1 -1
- package/dist/client/assets/{roles-BgQMqKxE.js → roles-BYqU9-We.js} +1 -1
- package/dist/client/assets/{route-BmXq3cGb.js → route-BXYvPulM.js} +1 -1
- package/dist/client/assets/route-Bh9fCZXT.js +1 -0
- package/dist/client/assets/{route-B8-5mDhW.js → route-a1KQq-lz.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-DJ1Zj_fI.js → sandbox-git-api-3zULVhcU.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DAW3x9U4.js → sandbox-lifecycle-context-BEzUu66E.js} +1 -1
- package/dist/client/assets/save-status-Cx3aKwGu.js +1 -0
- package/dist/client/assets/{schema-B5L6XabR.js → schema-BtzAS_P2.js} +1 -1
- package/dist/client/assets/{schema-CPDsJI-V.js → schema-DIJe3qA1.js} +1 -1
- package/dist/client/assets/{scroll-area-BIbpYC_e.js → scroll-area-mVo2jhxQ.js} +1 -1
- package/dist/client/assets/{search-input-CTHDb7Fb.js → search-input-ChnwrZA6.js} +1 -1
- package/dist/client/assets/{search-toggle--RSSxY_n.js → search-toggle-CC4Rs40x.js} +1 -1
- package/dist/client/assets/{secret-picker-B1Qdwzz-.js → secret-picker-CWGbJrCR.js} +1 -1
- package/dist/client/assets/{secrets-CpTgKWI_.js → secrets-DE59ARp-.js} +1 -1
- package/dist/client/assets/{section-array-field-B-W5rSAO.js → section-array-field-4mOiVd7b.js} +1 -1
- package/dist/client/assets/{sections-HCoksWSk.js → sections-B1sv3rvB.js} +1 -1
- package/dist/client/assets/sections-editor-sTEVWcAy.js +1 -0
- package/dist/client/assets/{select-CCUqWhU2.js → select-BNoZ1cwH.js} +1 -1
- package/dist/client/assets/{select-model-fLHQEf93.js → select-model-BqTl5eD-.js} +1 -1
- package/dist/client/assets/{seo-editor-BSBriMlp.js → seo-editor-iaqzR9NS.js} +1 -1
- package/dist/client/assets/{separator-W-jiHDRf.js → separator-CwN-gidC.js} +1 -1
- package/dist/client/assets/settings-tab-H1Nf96Yz.js +1 -0
- package/dist/client/assets/{sheet-CJ8R5cz8.js → sheet-1BLiVjE3.js} +1 -1
- package/dist/client/assets/{shell-layout-DHcyl3tS.js → shell-layout-BHtZVBED.js} +1 -1
- package/dist/client/assets/{site-draft-actions-DvTjz5UN.js → site-draft-actions-GLib44bU.js} +5 -5
- package/dist/client/assets/{site-draft-view-DKi9gDFG.js → site-draft-view-CKK7PKoH.js} +1 -1
- package/dist/client/assets/site-editor-Bl3uFRW-.js +1 -0
- package/dist/client/assets/{site-editor-toast-DCLSfuYN.js → site-editor-toast-BXRGIPuY.js} +1 -1
- package/dist/client/assets/{skills-61y8fOuN.js → skills-Q6l6j9x7.js} +1 -1
- package/dist/client/assets/{slider-DGrjjZbc.js → slider-BKrw7nqs.js} +1 -1
- package/dist/client/assets/{sortable.esm-CFU3AjR2.js → sortable.esm-CA_k0RaZ.js} +1 -1
- package/dist/client/assets/{sso-Bc4JROTr.js → sso-C4bCFgaT.js} +1 -1
- package/dist/client/assets/{suggestion-C25G9PiT.js → suggestion-BdOz28RC.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BOjAbgwW.js → super-agent-icon-DExAOD4i.js} +1 -1
- package/dist/client/assets/{switch-C6GSkMRa.js → switch-B60LgmjA.js} +1 -1
- package/dist/client/assets/{synced-repos-MVTThVIT.js → synced-repos-DfFbkdSN.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-X8r_SUyr.js → tab-icon-glyph-MzzsG5oc.js} +1 -1
- package/dist/client/assets/{table-CGK_amHI.js → table-KEskYvtS.js} +1 -1
- package/dist/client/assets/{tabs-DSwAq5ok.js → tabs-DXm_rA9S.js} +1 -1
- package/dist/client/assets/{task-board-DGEnY-WP.js → task-board-CdhOR9bl.js} +1 -1
- package/dist/client/assets/{task-route-kuDxMB7g.js → task-route-DeSbQRkP.js} +1 -1
- package/dist/client/assets/{task-status-DwyseT36.js → task-status-Bn4DeOrT.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Bc5gvPec.js → taskboard-analytics-CRI_d1NW.js} +1 -1
- package/dist/client/assets/tasks-DGRURa32.js +1 -0
- package/dist/client/assets/{tasks-CwTnwmgS.js → tasks-fWq-fqoJ.js} +3 -3
- package/dist/client/assets/{textarea-bQEpPrrj.js → textarea-CRgCAK3p.js} +1 -1
- package/dist/client/assets/{thread-analytics-DrA1-9Im.js → thread-analytics-aoAc3KR6.js} +1 -1
- package/dist/client/assets/{thread-intent-SBN04Rtw.js → thread-intent-DrRX6nG0.js} +1 -1
- package/dist/client/assets/{thread-route-D0a5VvFp.js → thread-route-D404Xl1w.js} +1 -1
- package/dist/client/assets/{thread-route-hd8uqVKt.js → thread-route-L_F2dRjs.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DldXKcG5.js → thread-sheet-body-D3DOFB6A.js} +1 -1
- package/dist/client/assets/{time-range-picker-DkQtJ9_-.js → time-range-picker-DouTd8PJ.js} +1 -1
- package/dist/client/assets/{toggle-group-D7egmHqH.js → toggle-group-JYZ1PCaE.js} +1 -1
- package/dist/client/assets/{tool-namespace-DqMAELKh.js → tool-namespace-BBpCD9sF.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CRdnTdII.js → tool-set-selector-DTAr1xzz.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cf4mp3st.js → toolbar-icon-button-B0M5XFng.js} +1 -1
- package/dist/client/assets/{tooltip-7WjUlVHN.js → tooltip-D9qNlq6S.js} +1 -1
- package/dist/client/assets/{tooltipContext-BM-E9VBq.js → tooltipContext-B94TDN-Q.js} +1 -1
- package/dist/client/assets/{track-Dc3qAx4h.js → track-DJVHN5Lv.js} +1 -1
- package/dist/client/assets/{types-DcXrDLzi.js → types-BfPC7vnd.js} +5 -5
- package/dist/client/assets/{url-slug-DGizFeaX.js → url-slug-Bts08KOo.js} +1 -1
- package/dist/client/assets/{usage-stats-DyA2nNO3.js → usage-stats-CK4hgSt6.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C9vcyTaN.js → use-ai-providers-CxZCPqVC.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-2JoZ8nxT.js → use-apply-named-rule-h1W6SPpC.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-D4gRql_N.js +1 -0
- package/dist/client/assets/{use-automations-BHeTrxpI.js → use-automations-B7d02VWl.js} +1 -1
- package/dist/client/assets/{use-autosave-BZAqhdxE.js → use-autosave-DOc72aWE.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BLLvbZl2.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-mgFqTgen.js → use-chat-layout-state-DQhX2zdi.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-JTIsBKu7.js → use-cms-publish-actions-DimSJzWP.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DOyeAK5f.js → use-connect-companion-CqTyzSlz.js} +1 -1
- package/dist/client/assets/{use-connection-C4wZIedX.js → use-connection-CFmR-X06.js} +1 -1
- package/dist/client/assets/{use-content-sync-DX9AICcw.js → use-content-sync-BEqIA-0g.js} +1 -1
- package/dist/client/assets/{use-copy-C87hppcx.js → use-copy-PziytufC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CdwoumPu.js → use-date-fns-locale-BVsHKqDt.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BGT68o5u.js → use-debounced-autosave-CU3dUlJX.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPkVN80B.js → use-debounced-value-DJ5YZsat.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B_yRwpIs.js → use-deco-credits-_9aC49vI.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DYaMckqi.js → use-decopilot-events-B84nN_Z6.js} +1 -1
- package/dist/client/assets/{use-delete-block-Bl87-vdk.js → use-delete-block-BbJuByhU.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DfHAqmGL.js → use-delete-connection-Bp9D22pQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C8Pxnc-A.js → use-deployment-admin-D8TSoW7b.js} +1 -1
- package/dist/client/assets/{use-entitlements-B129mOCR.js → use-entitlements-Chh3D10H.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C1985-Ir.js → use-fast-preview-draft-url-DRtzWCS3.js} +1 -1
- package/dist/client/assets/{use-file-configs-Dee9WDV4.js → use-file-configs-8VTVKs7P.js} +1 -1
- package/dist/client/assets/{use-id-selection-HxPtQK4g.js → use-id-selection-LGL3_97F.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CE46iYvK.js → use-inbox-feed-DjVLN02v.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CRqa_9m8.js → use-infinite-scroll-BBVWbqWO.js} +1 -1
- package/dist/client/assets/{use-join-requests-CIJW_zlt.js → use-join-requests-4dddz-2V.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-qfCNgDSO.js → use-main-panel-tabs-Bq834oWY.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CoQg2kYd.js → use-mcp-auth-status-ewp8JzH8.js} +1 -1
- package/dist/client/assets/{use-mcp-client-b044lJnb.js → use-mcp-client-CaYmuD4l.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-Dlq8VH38.js → use-mcp-prompts-lHtFGIni.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DS8wEzPs.js → use-mcp-tools-COoBOTb8.js} +1 -1
- package/dist/client/assets/{use-mobile-CEHdcOx8.js → use-mobile-B0YlxBUo.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BroyCilU.js → use-move-blocks-CRsMTnFT.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Kz2oOKmA.js → use-navigate-to-agent-D9u86crS.js} +1 -1
- package/dist/client/assets/use-never-published-BRSQAhRd.js +1 -0
- package/dist/client/assets/{use-org-fs-CLPhRw3y.js → use-org-fs-Cv09aZqm.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BoVbI9tW.js → use-org-repo-syncs-CKUvsIrW.js} +1 -1
- package/dist/client/assets/{use-org-sso-DRrVlfwY.js → use-org-sso-CBrdU305.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CdJMCbcP.js → use-organization-settings-BWLJTTpw.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-D5R7YysD.js +1 -0
- package/dist/client/assets/{use-project-scope-dsKJBAry.js → use-project-scope-Dzg0nsjs.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CmtYzKJF.js → use-recent-apps-BKAftwoT.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DFRAKqsS.js → use-reports-diagnostic-CgjecoRR.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-9oqLSRsO.js → use-sandbox-events-BtXLDGZr.js} +2 -2
- package/dist/client/assets/{use-secrets-NEOz5brl.js → use-secrets-D46GKExN.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-dFGv18ks.js → use-section-preview-base-BO578O9L.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BpkHLNx1.js → use-sidebar-collapsed-x7SsKYNl.js} +1 -1
- package/dist/client/assets/{use-tags-CWDFKR0B.js → use-tags-LwHF4ikl.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-YY743rvT.js → use-task-board-analytics-TZTLLgky.js} +1 -1
- package/dist/client/assets/{use-task-board-events-De0Ql0Pn.js → use-task-board-events-U_kvLTo1.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CjIgw8Jt.js → use-task-board-item-prs-BW_n16vt.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DNUZNAh_.js → use-task-board-items-B66t-aAy.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-B1rpgS5r.js → use-task-board-prompts-CHIblyN4.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BOYPl3PT.js → use-task-metadata-DdKhuIQ3.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-WMuzypnI.js → use-thread-outputs-DsjZa1n5.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BG2f-NWf.js → use-view-draft-kind-BtHf66Jj.js} +1 -1
- package/dist/client/assets/{use-voice-input-Br5vij9C.js → use-voice-input-Li611DFd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CN2uIy97.js +1 -0
- package/dist/client/assets/{useQueries-BN4ZsbwM.js → useQueries-B8jtB-RW.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ECHIzp7d.js +1 -0
- package/dist/client/assets/{users-BGI0PgLT.js → users-zlgoDQuW.js} +1 -1
- package/dist/client/assets/{utils-B_l1jy6k.js → utils-DONok1LX.js} +1 -1
- package/dist/client/assets/{variant-calendar-bWZKkiCF.js → variant-calendar-CjAgTw5u.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CEpfOStd.js → variant-matcher-override-BKIrGg8S.js} +1 -1
- package/dist/client/assets/{view-header-CX8g-yAR.js → view-header-OfKMmhb0.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BFUo5OwK.js → virtual-mcp-BKUZFB3-.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CkVyQC5r.js → watch-sse-pool-B39Ow5tK.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/ReferenceLine-DAphe5so.js +0 -1
- package/dist/client/assets/agent-app-CTOrbTVN.js +0 -1
- package/dist/client/assets/agent-assets-BnRemq1c.js +0 -1
- package/dist/client/assets/agent-blog-qw7eDyTJ.js +0 -2
- package/dist/client/assets/agent-deck-DAVpyFYS.js +0 -1
- package/dist/client/assets/agent-experiments-BbI7pAh_.js +0 -1
- package/dist/client/assets/agent-library-CF4cgtSY.js +0 -1
- package/dist/client/assets/agent-library-file-D0_5aahe.js +0 -1
- package/dist/client/assets/agent-overview-DGOr-pbZ.js +0 -1
- package/dist/client/assets/agent-settings-Dm19cEBP.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Cdro8saM.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BkBXLnyf.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-OMqwm4vD.js +0 -1
- package/dist/client/assets/agent-view-D6Nsllob.js +0 -1
- package/dist/client/assets/api-keys-s9GXv_s3.js +0 -1
- package/dist/client/assets/collection-detail-D7GPiaeW.js +0 -1
- package/dist/client/assets/discover-CI_r8-3h.js +0 -1
- package/dist/client/assets/held-block-view-Clis5U4a.js +0 -3
- package/dist/client/assets/index-CxjuNZbg.js +0 -4
- package/dist/client/assets/index-DYPWHH-M.css +0 -1
- package/dist/client/assets/item-actions-DjxeOUUN.js +0 -1
- package/dist/client/assets/library-DuCkVtdF.js +0 -1
- package/dist/client/assets/match-site-slug-config-D3fUJ6vX.js +0 -1
- package/dist/client/assets/post-calendar-JMOv3xNE.js +0 -1
- package/dist/client/assets/post-editor-DQrYTE_3.js +0 -2
- package/dist/client/assets/preview-tab-Cm6SZitV.js +0 -557
- package/dist/client/assets/project-app-view-C1zig9vg.js +0 -1
- package/dist/client/assets/project-reports-DTqtwUEL.js +0 -1
- package/dist/client/assets/project-tasks-C14eJRtf.js +0 -1
- package/dist/client/assets/reports-Dqx3LdYF.js +0 -1
- package/dist/client/assets/repositories-CDGzat4Q.js +0 -1
- package/dist/client/assets/route-CDNrV6ea.js +0 -1
- package/dist/client/assets/save-status-BvsiA7U3.js +0 -1
- package/dist/client/assets/sections-editor-3egytFfS.js +0 -1
- package/dist/client/assets/settings-tab-DtZ2USkZ.js +0 -1
- package/dist/client/assets/site-editor-C1i1Yk8D.js +0 -1
- package/dist/client/assets/tasks-DmaKkQjL.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BtGzAvHO.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Byep-1Pa.js +0 -1
- package/dist/client/assets/use-never-published-CT51G1NV.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-CL3n89is.js +0 -1
- package/dist/client/assets/useInfiniteQuery-o37Jr6S0.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BhOGXRBX.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BQoCsEsr.js","assets/auth-entry-SgfwAEXQ.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-D_rznvbe.js","assets/legacy-admin-welcome-dialog-DAEkCShw.js","assets/drawer-OboTDl5r.js","assets/use-mobile-CEHdcOx8.js","assets/cli-auth-success-DupR1ypd.js","assets/oauth-callback-B5GC_Yyx.js","assets/mcp-oauth-CU691SiC.js","assets/auth-DiKlrdGP.js","assets/oauth-consent-BVAt6oz1.js","assets/layout-Byi_jW8h.js","assets/required-auth-layout-Dg5kgnfG.js","assets/use-deployment-admin-C8Pxnc-A.js","assets/users-BGI0PgLT.js","assets/collection-table-wrapper-lwnrgmvl.js","assets/table-CGK_amHI.js","assets/ArrowUp-BVEp2Brj.js","assets/empty-state-CxI5dssp.js","assets/search-input-CTHDb7Fb.js","assets/SearchMd-DWnwnZQO.js","assets/badge-BpUJoM3p.js","assets/use-debounced-value-CPkVN80B.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-BAGB65GL.js","assets/label-EESrxoYH.js","assets/select-CCUqWhU2.js","assets/index-BdQq_4o_.js","assets/index-DxWwCAMV.js","assets/ChevronUp-fKdis79A.js","assets/switch-C6GSkMRa.js","assets/textarea-bQEpPrrj.js","assets/roles-DW32thi2.js","assets/schema-B5L6XabR.js","assets/prompts-CEf1e1i5.js","assets/shell-layout-DHcyl3tS.js","assets/Globe04-BIxVPRI2.js","assets/UserSquare-DUXP0rwX.js","assets/agent-icon-DFd8L1O_.js","assets/AlertCircle-D1QqLKFH.js","assets/Tool01-AMJ0J7Ld.js","assets/ArrowLeft-B_zuPCk3.js","assets/LinkBroken01-ChDYryt0.js","assets/BookOpen01-DU_gf3Q9.js","assets/CheckCircle-r_uvA104.js","assets/ChevronSelectorVertical-Cnj6Mtq0.js","assets/CreditCard01-2UGmTwp0.js","assets/SwitchHorizontal01-D7pFOqnZ.js","assets/Key01-B-uaWiXd.js","assets/Minus-eMZySqLh.js","assets/Monitor01-CzcVShIo.js","assets/Sun-wrM9Jol_.js","assets/Play-DK3U1VA7.js","assets/Plus-BNdH4tYy.js","assets/ShoppingBag01-BrAbYbaG.js","assets/Trash01-Chu35sQ_.js","assets/Upload01-CGdoFUP8.js","assets/Users01-BnTqMUrr.js","assets/XClose-BAfH6Ebz.js","assets/Zap-YDxTdktJ.js","assets/use-project-scope-dsKJBAry.js","assets/repository-binding-DAYbvLYj.js","assets/use-mcp-client-b044lJnb.js","assets/use-view-draft-kind-BG2f-NWf.js","assets/thread-route-D0a5VvFp.js","assets/use-organization-settings-CdJMCbcP.js","assets/task-board-DGEnY-WP.js","assets/thread-intent-SBN04Rtw.js","assets/watch-sse-pool-CkVyQC5r.js","assets/command-C00hDMwB.js","assets/index-Ch7SvmMC.js","assets/integration-icon-D5RK2sEk.js","assets/project-icon-DNEfBFoN.js","assets/use-navigate-to-agent-Kz2oOKmA.js","assets/new-project-dialog-BiqAeUrE.js","assets/repository-picker-BO6sLOq7.js","assets/tooltip-7WjUlVHN.js","assets/github-icon-D0vbU4b9.js","assets/useInfiniteQuery-o37Jr6S0.js","assets/infiniteQueryObserver-ktArfc_t.js","assets/collection-search-kFWWyWV8.js","assets/use-org-sso-DRrVlfwY.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-fUXPiATA.js","assets/organization-choice-BHlAXEW9.js","assets/reports-onboarding-RhfCcqej.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CG0hKl_H.js","assets/form-CuAETLLt.js","assets/companion-mcps-section-DqGiryze.js","assets/use-connect-companion-DOyeAK5f.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-D8OdW1Ng.js","assets/useQueries-BN4ZsbwM.js","assets/authenticate-and-persist-oauth-osQ4PKuX.js","assets/mcp-oauth-COyT3l0E.js","assets/track-Dc3qAx4h.js","assets/extract-connection-data-DwWq6VY0.js","assets/connection-CLrwGffq.js","assets/url-slug-DGizFeaX.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-CMLPeKz2.js","assets/site-editor-C1i1Yk8D.js","assets/chat-context-BVOzxL7y.js","assets/use-entitlements-B129mOCR.js","assets/use-ai-providers-C9vcyTaN.js","assets/use-decopilot-events-DYaMckqi.js","assets/index-CY0csw6V.js","assets/use-sidebar-collapsed-BpkHLNx1.js","assets/use-chat-layout-state-mgFqTgen.js","assets/toolbar-icon-button-Cf4mp3st.js","assets/sheet-CJ8R5cz8.js","assets/resizable-CaTV7JDr.js","assets/index-C_OpZGYh.js","assets/core.esm-DUcC46mO.js","assets/sortable.esm-CFU3AjR2.js","assets/context-menu-dgkpoBmD.js","assets/project-apps-CY9tfRYe.js","assets/use-recent-apps-CmtYzKJF.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-CzI6HAkj.js","assets/site-editor-toast-DCLSfuYN.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-9oqLSRsO.js","assets/use-blocks-v8-project-Byep-1Pa.js","assets/use-voice-input-Br5vij9C.js","assets/popover-B_j0y2h7.js","assets/index-D1w7KFj7.js","assets/checkbox-x2IxTucq.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-B_l1jy6k.js","assets/sandbox-git-api-DJ1Zj_fI.js","assets/preview-tab-Cm6SZitV.js","assets/save-status-BvsiA7U3.js","assets/use-never-published-CT51G1NV.js","assets/hosted-reconcile-C2j-K6SC.js","assets/blocks-tab-states-Uq85dLE5.js","assets/tabs-DSwAq5ok.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-Dee9WDV4.js","assets/asset-utils-BSepCiAa.js","assets/usage-stats-DyA2nNO3.js","assets/tool-namespace-DqMAELKh.js","assets/utils-CVEq3hMx.js","assets/markdown-D5a0osui.js","assets/use-copy-C87hppcx.js","assets/toggle-group-D7egmHqH.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-DAW3x9U4.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/frame-navigation-D2IzuXnb.js","assets/variant-matcher-override-CEpfOStd.js","assets/section-array-field-B-W5rSAO.js","assets/use-fast-preview-draft-url-C1985-Ir.js","assets/parse-sections-yZQqTgrz.js","assets/held-block-view-Clis5U4a.js","assets/calendar-RX4MUBCU.js","assets/editor-classes-De5o_8lB.js","assets/empty-message-D92Pb6fP.js","assets/pair-Fhnk8ar3.js","assets/collapsible-CmQt_iZ0.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BgUWGow9.js","assets/types-DcXrDLzi.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-C4wZIedX.js","assets/use-mcp-prompts-Dlq8VH38.js","assets/use-thread-outputs-WMuzypnI.js","assets/file-type-icon-Dnh_2HcY.js","assets/named-rule-step-BTqgnNQ5.js","assets/slider-DGrjjZbc.js","assets/index-CBYIpf8n.js","assets/tooltipContext-BM-E9VBq.js","assets/CategoricalChart-DhUmp4Jo.js","assets/index-54RE0ioE.js","assets/combobox-B7xBLEqp.js","assets/scroll-area-BIbpYC_e.js","assets/monaco-editor-CwGsSUX8.js","assets/editor-ChiPsACh.js","assets/device-hint-CmMhxStN.js","assets/alert-BA8nDu40.js","assets/virtual-mcp-BFUo5OwK.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-DSfvUGIA.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-BOYPl3PT.js","assets/content-tab-xOpBPR9g.js","assets/delete-copy-BLgf78Hs.js","assets/category-tree-CYPMeaO5.js","assets/use-move-blocks-BroyCilU.js","assets/index-CldZuS5S.js","assets/view-header-CX8g-yAR.js","assets/use-cms-publish-actions-JTIsBKu7.js","assets/use-content-sync-DX9AICcw.js","assets/use-delete-block-Bl87-vdk.js","assets/item-actions-DjxeOUUN.js","assets/date-utils-CrvIKg-s.js","assets/empty-state-BcZKaOw-.js","assets/mustache-BVD8gEp8.js","assets/tab-icon-glyph-X8r_SUyr.js","assets/resolve-tab-icon-DEOb6228.js","assets/agent-site-editor-CqHVUUAC.js","assets/site-draft-actions-DvTjz5UN.js","assets/separator-W-jiHDRf.js","assets/cms-store-drafts-DDyrwrmA.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-BATsrbDm.js","assets/input-CFiVVIga.js","assets/chat-draft-DCJJT_1i.js","assets/use-deco-credits-B_yRwpIs.js","assets/input-CBsHXM-K.js","assets/suggestion-C25G9PiT.js","assets/use-org-fs-CLPhRw3y.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-ljVyCUfx.js","assets/plan-ladder-CM-HcM-s.js","assets/add-connection-dialog-B8fK5SPo.js","assets/connection-card-CG85F9R4.js","assets/connection-slug-BC6vEqea.js","assets/schema-CPDsJI-V.js","assets/connection-form-helpers-Du6e-sDu.js","assets/collection-tabs-ZWO3GiY3.js","assets/use-infinite-scroll-CRqa_9m8.js","assets/useSuspenseInfiniteQuery-BhOGXRBX.js","assets/use-task-board-events-De0Ql0Pn.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-DKi9gDFG.js","assets/blog-view-gate-BjGoFrlO.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-D10gkSrT.js","assets/reports-Dl0n8WK0.css","assets/route-BmXq3cGb.js","assets/use-inbox-feed-CE46iYvK.js","assets/task-key-BCHdFiOO.js","assets/super-agent-icon-BOjAbgwW.js","assets/optimistic-project-sidebar-views-CyYUwQmb.js","assets/use-project-native-view-presence-CL3n89is.js","assets/own-accounts-section-BCe3XCOA.js","assets/use-date-fns-locale-CdwoumPu.js","assets/use-task-board-items-DNUZNAh_.js","assets/config-1WcD3pf5.js","assets/project-index--AWJOyZB.js","assets/use-join-requests-CIJW_zlt.js","assets/thread-route-hd8uqVKt.js","assets/use-reports-diagnostic-DFRAKqsS.js","assets/connect-layout-Cki4va2J.js","assets/route-B8-5mDhW.js","assets/task-status-DwyseT36.js","assets/use-main-panel-tabs-qfCNgDSO.js","assets/use-mcp-tools-DS8wEzPs.js","assets/legacy-main-redirect-PkEZIvXO.js","assets/preview-dialog-CEbSM9Y6.js","assets/preview-content-DvqZaSqe.js","assets/file-share-button-Bm5Af9aY.js","assets/file-preview-C1UH8fjg.js","assets/home-DrAlxwLg.js","assets/home-overview-DPAQZtaE.js","assets/client-icons-BXUuRiJU.js","assets/chart-Q-cSHjjY.js","assets/CartesianChart-BR9Be1vV.js","assets/task-route-kuDxMB7g.js","assets/ReferenceLine-DAphe5so.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-CbOIGuob.js","assets/agent-overview-DGOr-pbZ.js","assets/project-tasks-C14eJRtf.js","assets/mock-board-CSrbkqG4.js","assets/use-task-board-analytics-YY743rvT.js","assets/use-task-board-prompts-B1rpgS5r.js","assets/use-automations-BHeTrxpI.js","assets/search-toggle--RSSxY_n.js","assets/use-tags-CWDFKR0B.js","assets/index-BTxnnO3z.js","assets/index-DAjFmo5j.js","assets/use-task-board-item-prs-CjIgw8Jt.js","assets/thread-sheet-body-DldXKcG5.js","assets/feature-gate-qgzTBO3A.js","assets/project-reports-DTqtwUEL.js","assets/reports-tab-CtVgyXhu.js","assets/project-profile-dMAv1_XF.js","assets/agent-blog-qw7eDyTJ.js","assets/blog-source-gate-BWofeMwB.js","assets/blog-preview-url-BUDrdqoz.js","assets/agent-view-guard-D4yaqKiq.js","assets/agent-blog-post-D5O_ItNv.js","assets/agent-site-editor-preview-OMqwm4vD.js","assets/agent-site-editor-content-BkBXLnyf.js","assets/agent-site-editor-code-Cdro8saM.js","assets/agent-automations-mWv09YVd.js","assets/automation-list-row-FS-zfRjW.js","assets/agent-automation-DNgt345_.js","assets/select-model-fLHQEf93.js","assets/build-improve-prompt-doc-Yt1kTpo8.js","assets/use-debounced-autosave-BGT68o5u.js","assets/jira-icon-CmDZL_wM.js","assets/multi-select-C5VqbVMP.js","assets/automation-runs-DLYz6YWQ.js","assets/use-id-selection-HxPtQK4g.js","assets/agent-settings-Dm19cEBP.js","assets/context-shell-Dlkux8ZE.js","assets/require-capability-DQWSlcjo.js","assets/access-gate-DDMODilC.js","assets/capability-load-error-Dco-wYs-.js","assets/sections-HCoksWSk.js","assets/use-ask-in-chat-BtGzAvHO.js","assets/index-CxjuNZbg.js","assets/use-mcp-auth-status-CoQg2kYd.js","assets/secret-picker-B1Qdwzz-.js","assets/use-secrets-NEOz5brl.js","assets/agent-library-CF4cgtSY.js","assets/library-tab-BLBQDXJU.js","assets/use-org-repo-syncs-BoVbI9tW.js","assets/folder-icon-BZSobjd4.js","assets/agent-assets-BnRemq1c.js","assets/agent-releases-DJ49AvX3.js","assets/agent-hosting-DPI1YzdW.js","assets/settings-tab-DtZ2USkZ.js","assets/agent-e2e-BzjDB0Mp.js","assets/taskboard-analytics-Bc5gvPec.js","assets/time-range-picker-DkQtJ9_-.js","assets/analytics-sections-C7dFg_aE.js","assets/AreaChart-C-sK2ItE.js","assets/agent-experiments-BbI7pAh_.js","assets/experiments-tab-choice-DdEGbuLK.js","assets/named-rule-view-Bd8STvPD.js","assets/use-apply-named-rule-2JoZ8nxT.js","assets/agent-calendar-DFwq2V3Y.js","assets/agent-app-CTOrbTVN.js","assets/project-app-view-C1zig9vg.js","assets/connect-source-dialog-OGa93hL5.js","assets/agent-view-D6Nsllob.js","assets/agent-file-G_Q7_eCe.js","assets/agent-deck-DAVpyFYS.js","assets/agent-library-file-D0_5aahe.js","assets/preview-panel-jbh-mjn6.js","assets/agent-connect-sources-BaY-1hUg.js","assets/legacy-agents-deep-CQX5HShD.js","assets/tasks-DmaKkQjL.js","assets/thread-analytics-DrA1-9Im.js","assets/reports-Dqx3LdYF.js","assets/library-DuCkVtdF.js","assets/plan-D1utRlpJ.js","assets/monitoring-s0QSQdK5.js","assets/order-monitor-day-DONFE4J2.js","assets/Tooltip-CZ7doa0d.js","assets/monitoring-D_tSeZWt.css","assets/discover-CI_r8-3h.js","assets/index-wTvZKrHA.js","assets/route-CDNrV6ea.js","assets/plan-usage-card-CMfNWBwg.js","assets/index-redirect-CYDCVRJ_.js","assets/connection-detail-B8RNsYKm.js","assets/index-D3ue61h8.js","assets/index-CNMZKaZ4.js","assets/use-delete-connection-DfHAqmGL.js","assets/monitoring-stats-row-BsFnLxNy.js","assets/collection-detail-D7GPiaeW.js","assets/index-ByeVWJ7k.js","assets/general-CThohMer.js","assets/review-settings-i1b4oJDO.js","assets/domain-settings-ClKI_rRO.js","assets/connect-CPk_XjVi.js","assets/api-keys-BrhrD9eO.js","assets/tool-set-selector-CRdnTdII.js","assets/ai-providers-CovrDI_x.js","assets/infra-billing-C-QVvoRz.js","assets/secrets-CpTgKWI_.js","assets/api-keys-s9GXv_s3.js","assets/buckets-QdgXdcXC.js","assets/repositories-CDGzat4Q.js","assets/repositories-CJnEkuZk.js","assets/synced-repos-MVTThVIT.js","assets/tasks-CwTnwmgS.js","assets/projects-CJc-98C_.js","assets/members-n8Lstn8K.js","assets/collection-display-button-Q31iiQyG.js","assets/role-color-BE5BDDIE.js","assets/roles-BgQMqKxE.js","assets/sso-Bc4JROTr.js","assets/profile-BUCYaJ8H.js","assets/automations-rbGBA3mS.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DgKeSKz2.js","assets/auth-entry-BUy5eNSm.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-DXcvh-93.js","assets/legacy-admin-welcome-dialog-DWeHIzCA.js","assets/drawer-CfOCKnhq.js","assets/use-mobile-B0YlxBUo.js","assets/cli-auth-success-BWjEoABt.js","assets/oauth-callback-Cg1KjIf_.js","assets/mcp-oauth-1Tp9szFm.js","assets/auth-Br21RAsk.js","assets/oauth-consent-CzhJum4d.js","assets/layout-QjOyVmz4.js","assets/required-auth-layout-DoMwdVaZ.js","assets/use-deployment-admin-D8TSoW7b.js","assets/users-zlgoDQuW.js","assets/collection-table-wrapper-DX64SyX5.js","assets/table-KEskYvtS.js","assets/ArrowUp-BdtMKnAz.js","assets/empty-state-CFvQY7HR.js","assets/search-input-ChnwrZA6.js","assets/SearchMd-DVpGBR2l.js","assets/badge-C2zO_tAX.js","assets/use-debounced-value-DJ5YZsat.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-DafOcWKJ.js","assets/label-DSlWCd9e.js","assets/select-BNoZ1cwH.js","assets/index-BdQq_4o_.js","assets/index-Ds3fsbcX.js","assets/ChevronUp-DM7pn8nV.js","assets/switch-B60LgmjA.js","assets/textarea-CRgCAK3p.js","assets/roles-DW32thi2.js","assets/schema-BtzAS_P2.js","assets/prompts-TP7YCuz6.js","assets/shell-layout-BHtZVBED.js","assets/Globe04-BZJYx7x5.js","assets/UserSquare-DEjJtCDR.js","assets/agent-icon-CpMz1pSC.js","assets/AlertCircle-DT2ZDuIl.js","assets/Tool01-BlUlKjGy.js","assets/ArrowLeft-DR_MRxUB.js","assets/LinkBroken01-4l2zZef9.js","assets/BookOpen01-DejCO54_.js","assets/CheckCircle-CM--cqi0.js","assets/ChevronSelectorVertical-BJDM_s_Z.js","assets/CreditCard01-BKZ9QJb-.js","assets/SwitchHorizontal01-Cp1oX99F.js","assets/Key01-CC_tghZO.js","assets/Minus-Bj5yI5D8.js","assets/Monitor01-DeK03po-.js","assets/Sun-Ba2OXmDv.js","assets/Play-kYcUI1An.js","assets/Plus-DEeR8qC2.js","assets/ShoppingBag01-BV5nZGeU.js","assets/Trash01-CgZrkZ3U.js","assets/Upload01-DDoiK0tv.js","assets/Users01-DVMhWmct.js","assets/XClose-xYIhBL8b.js","assets/Zap-BsuEhLd3.js","assets/use-project-scope-Dzg0nsjs.js","assets/repository-binding-DGc5VhVW.js","assets/use-mcp-client-CaYmuD4l.js","assets/use-view-draft-kind-BtHf66Jj.js","assets/thread-route-D404Xl1w.js","assets/use-organization-settings-BWLJTTpw.js","assets/task-board-CdhOR9bl.js","assets/thread-intent-DrRX6nG0.js","assets/watch-sse-pool-B39Ow5tK.js","assets/command-B0-oLV0k.js","assets/index-CmzG_GaM.js","assets/integration-icon-XUOEUOb8.js","assets/project-icon-TEwy-duh.js","assets/use-navigate-to-agent-D9u86crS.js","assets/new-project-dialog-C3JFSI1q.js","assets/repository-picker-DO5Hy-o-.js","assets/tooltip-D9qNlq6S.js","assets/github-icon-DH5Sm3NR.js","assets/useInfiniteQuery-CN2uIy97.js","assets/infiniteQueryObserver-BFZQsptZ.js","assets/collection-search-CKJ8zcS9.js","assets/use-org-sso-CBrdU305.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-FLu6ztJj.js","assets/organization-choice-dV-mJr-d.js","assets/reports-onboarding-BicRsxJF.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-BpL43B76.js","assets/form-BZ7xdssd.js","assets/companion-mcps-section-CAkQdc3e.js","assets/use-connect-companion-CqTyzSlz.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-BfibpDoO.js","assets/useQueries-B8jtB-RW.js","assets/authenticate-and-persist-oauth-CTJV9ez5.js","assets/mcp-oauth-BQRDLkqA.js","assets/track-DJVHN5Lv.js","assets/extract-connection-data-CFxfI9gN.js","assets/connection-CwOP2DkA.js","assets/url-slug-Bts08KOo.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-DFYfaLQ4.js","assets/site-editor-Bl3uFRW-.js","assets/chat-context-Na_9rQo_.js","assets/use-entitlements-Chh3D10H.js","assets/use-ai-providers-CxZCPqVC.js","assets/use-decopilot-events-B84nN_Z6.js","assets/index-DuYneP0E.js","assets/use-sidebar-collapsed-x7SsKYNl.js","assets/use-chat-layout-state-DQhX2zdi.js","assets/toolbar-icon-button-B0M5XFng.js","assets/sheet-1BLiVjE3.js","assets/resizable-DrLaW_Jl.js","assets/index-DCl7HPjQ.js","assets/core.esm-YEEWezEY.js","assets/sortable.esm-CA_k0RaZ.js","assets/context-menu-BAywIeQG.js","assets/project-apps-ByyLejju.js","assets/use-recent-apps-BKAftwoT.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-0qX3i0Hw.js","assets/site-editor-toast-BXRGIPuY.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-BtXLDGZr.js","assets/use-blocks-v8-project-BLLvbZl2.js","assets/use-voice-input-Li611DFd.js","assets/popover-CelLmvH8.js","assets/index-DF1Gszum.js","assets/checkbox-Dn6r2X61.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-DONok1LX.js","assets/sandbox-git-api-3zULVhcU.js","assets/preview-tab-BFi8NHe-.js","assets/save-status-Cx3aKwGu.js","assets/use-never-published-BRSQAhRd.js","assets/hosted-reconcile-C5UVxzTP.js","assets/blocks-tab-states-BZoxOO-H.js","assets/tabs-DXm_rA9S.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-8VTVKs7P.js","assets/asset-utils-DxQXeDgB.js","assets/usage-stats-CK4hgSt6.js","assets/tool-namespace-BBpCD9sF.js","assets/utils-CVEq3hMx.js","assets/markdown-BTKw4nl8.js","assets/use-copy-PziytufC.js","assets/toggle-group-JYZ1PCaE.js","assets/match-site-slug-config-B47_xZCi.js","assets/sandbox-lifecycle-context-BEzUu66E.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/frame-navigation-8oPGH7NY.js","assets/variant-matcher-override-BKIrGg8S.js","assets/section-array-field-4mOiVd7b.js","assets/use-fast-preview-draft-url-DRtzWCS3.js","assets/parse-sections-Cy8SKsEh.js","assets/held-block-view-BR-UYX4S.js","assets/calendar-DkvAGmxG.js","assets/editor-classes-aqVUSPbm.js","assets/empty-message-CirmMDhM.js","assets/pair-Dsc6GXhQ.js","assets/collapsible-waKUBV3F.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BT9_tzyT.js","assets/types-BfPC7vnd.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-CFmR-X06.js","assets/use-mcp-prompts-lHtFGIni.js","assets/use-thread-outputs-DsjZa1n5.js","assets/file-type-icon-3Zm8W435.js","assets/named-rule-step-BJ5LyK07.js","assets/slider-BKrw7nqs.js","assets/index-jQ2gY_fm.js","assets/tooltipContext-B94TDN-Q.js","assets/CategoricalChart-GawOpO41.js","assets/index-DZi8I8ot.js","assets/combobox-CZTRaybI.js","assets/scroll-area-mVo2jhxQ.js","assets/monaco-editor-DTLNzmeB.js","assets/editor-COFIs9XE.js","assets/device-hint-AWxEadtg.js","assets/alert-DFQMLwuf.js","assets/virtual-mcp-BKUZFB3-.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-B40k722B.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-DdKhuIQ3.js","assets/content-tab-D3gTzU_j.js","assets/delete-copy-UjfjjP4_.js","assets/category-tree-EQNjX_vh.js","assets/use-move-blocks-CRsMTnFT.js","assets/index-BpLEscAk.js","assets/view-header-OfKMmhb0.js","assets/use-cms-publish-actions-DimSJzWP.js","assets/use-content-sync-BEqIA-0g.js","assets/use-delete-block-BbJuByhU.js","assets/item-actions-BfBBT1Qz.js","assets/date-utils-CrvIKg-s.js","assets/empty-state-C7Sg1bax.js","assets/mustache-p2j_fCOZ.js","assets/tab-icon-glyph-MzzsG5oc.js","assets/resolve-tab-icon-CfRdrLF-.js","assets/agent-site-editor-CS9MMMbk.js","assets/site-draft-actions-GLib44bU.js","assets/separator-CwN-gidC.js","assets/cms-store-drafts-DC7_MPeX.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-DN9fxTzN.js","assets/input-GqBshPf5.js","assets/chat-draft-BnT_bTVf.js","assets/use-deco-credits-_9aC49vI.js","assets/input-C1HwcZTs.js","assets/suggestion-BdOz28RC.js","assets/use-org-fs-Cv09aZqm.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-AtUr_EOu.js","assets/plan-ladder-xVKcSuhD.js","assets/add-connection-dialog-C86xZwTt.js","assets/connection-card-DxEnheWw.js","assets/connection-slug-CqKJM07D.js","assets/schema-DIJe3qA1.js","assets/connection-form-helpers-DsiTws_r.js","assets/collection-tabs-DL3FYMaD.js","assets/use-infinite-scroll-BBVWbqWO.js","assets/useSuspenseInfiniteQuery-ECHIzp7d.js","assets/use-task-board-events-U_kvLTo1.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-CKK7PKoH.js","assets/blog-view-gate-BpiHsFQi.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-CvxegUiQ.js","assets/reports-Dl0n8WK0.css","assets/route-BXYvPulM.js","assets/use-inbox-feed-DjVLN02v.js","assets/task-key-BCHdFiOO.js","assets/super-agent-icon-DExAOD4i.js","assets/optimistic-project-sidebar-views-D6axz004.js","assets/use-project-native-view-presence-D5R7YysD.js","assets/own-accounts-section-BitxRWkd.js","assets/use-date-fns-locale-BVsHKqDt.js","assets/use-task-board-items-B66t-aAy.js","assets/config-DhSdzr_l.js","assets/project-index-DqRiC0zN.js","assets/use-join-requests-4dddz-2V.js","assets/thread-route-L_F2dRjs.js","assets/use-reports-diagnostic-CgjecoRR.js","assets/connect-layout-By1LwNsY.js","assets/route-a1KQq-lz.js","assets/task-status-Bn4DeOrT.js","assets/use-main-panel-tabs-Bq834oWY.js","assets/use-mcp-tools-COoBOTb8.js","assets/legacy-main-redirect-h5ds91_H.js","assets/preview-dialog-BTVSDgVC.js","assets/preview-content-Di9jV9fD.js","assets/file-share-button-D9sAYI1R.js","assets/file-preview-PSKf9fIz.js","assets/home-CIpHO2ej.js","assets/home-overview-9H7C1hoB.js","assets/client-icons-B7ckFhTB.js","assets/chart-DP-afdSL.js","assets/CartesianChart-43C3tGyF.js","assets/task-route-DeSbQRkP.js","assets/ReferenceLine-DbQts9AQ.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-OMTDG8SV.js","assets/agent-overview-IBMGymrh.js","assets/project-tasks-B88cPPXW.js","assets/mock-board-B7BOXAS7.js","assets/use-task-board-analytics-TZTLLgky.js","assets/use-task-board-prompts-CHIblyN4.js","assets/use-automations-B7d02VWl.js","assets/search-toggle-CC4Rs40x.js","assets/use-tags-LwHF4ikl.js","assets/index-CQ7e2YEj.js","assets/index-DoH06YKc.js","assets/use-task-board-item-prs-BW_n16vt.js","assets/thread-sheet-body-D3DOFB6A.js","assets/feature-gate-BsIQ70jm.js","assets/project-reports-CPvLPQcs.js","assets/reports-tab-CCY5hBR2.js","assets/project-profile-dMAv1_XF.js","assets/agent-blog-DFA4iTY2.js","assets/blog-source-gate-DcD3mNPu.js","assets/blog-preview-url-Bcn3MddY.js","assets/agent-view-guard-XdI97YrW.js","assets/agent-blog-post-CJzR6SRp.js","assets/agent-site-editor-preview-CFg2FnqN.js","assets/agent-site-editor-content-C07hh63_.js","assets/agent-site-editor-code-gfgfb7xF.js","assets/agent-automations-BI5n1DEk.js","assets/automation-list-row-COaiktOt.js","assets/agent-automation-B3znFoJv.js","assets/select-model-BqTl5eD-.js","assets/build-improve-prompt-doc-BYTmOiJ8.js","assets/use-debounced-autosave-CU3dUlJX.js","assets/jira-icon-B48lqxRs.js","assets/multi-select-ykLyfeEh.js","assets/automation-runs-BluUkmKT.js","assets/use-id-selection-LGL3_97F.js","assets/agent-settings-DF71XJZP.js","assets/context-shell-C8ZPCYjw.js","assets/require-capability-CCGZ96D-.js","assets/access-gate-BYQd4796.js","assets/capability-load-error-CHW06qRY.js","assets/sections-B1sv3rvB.js","assets/use-ask-in-chat-D4gRql_N.js","assets/index-tLhNg31B.js","assets/use-mcp-auth-status-ewp8JzH8.js","assets/secret-picker-CWGbJrCR.js","assets/use-secrets-D46GKExN.js","assets/agent-library-Cs6jlCDK.js","assets/library-tab-DI2mHZkf.js","assets/use-org-repo-syncs-CKUvsIrW.js","assets/folder-icon-D4-RUOt8.js","assets/agent-assets-BERkZgBg.js","assets/agent-releases-k0DaB9LQ.js","assets/agent-hosting-D0d8gHPR.js","assets/settings-tab-H1Nf96Yz.js","assets/agent-e2e-B2FpHDAG.js","assets/taskboard-analytics-CRI_d1NW.js","assets/time-range-picker-DouTd8PJ.js","assets/analytics-sections-DNjeT1Pf.js","assets/AreaChart-DcNurrpT.js","assets/agent-experiments-BDFLMLOM.js","assets/experiments-tab-choice-Ch-KXcUZ.js","assets/named-rule-view-BBEm0z_K.js","assets/use-apply-named-rule-h1W6SPpC.js","assets/agent-calendar-DCBRCsam.js","assets/agent-app-qCE6mpox.js","assets/project-app-view-CMAf9Mlz.js","assets/connect-source-dialog-Clx35W2U.js","assets/agent-view-CzQtfKwQ.js","assets/agent-file-CAkn0Q5x.js","assets/agent-deck-C_9xRnWL.js","assets/agent-library-file-DV2qsJC9.js","assets/preview-panel-COaKD6oK.js","assets/agent-connect-sources-BvH_YwiD.js","assets/legacy-agents-deep-COHFWDWb.js","assets/tasks-DGRURa32.js","assets/thread-analytics-aoAc3KR6.js","assets/reports-ODcJFAP-.js","assets/library-BMXElwFo.js","assets/plan-5t2sCqh-.js","assets/monitoring-CRmBvi8F.js","assets/order-monitor-day-CQJg9ymu.js","assets/Tooltip-DNR0eew9.js","assets/monitoring-D_tSeZWt.css","assets/discover-DhvRjqxh.js","assets/index-Db96seLi.js","assets/route-Bh9fCZXT.js","assets/plan-usage-card-Cxjcl-tF.js","assets/index-redirect-QRKsjVCi.js","assets/connection-detail-Bm5pNgz3.js","assets/index-dsAQGF7D.js","assets/index-BXpXjiyK.js","assets/use-delete-connection-Bp9D22pQ.js","assets/monitoring-stats-row-G2RBze7B.js","assets/collection-detail-BdQUzwBw.js","assets/index-n1AjR0vt.js","assets/general-Bt-teqGz.js","assets/review-settings-B8FCs2a_.js","assets/domain-settings-BCvvef40.js","assets/connect-DwtFEmWa.js","assets/api-keys-Bbyyi1IV.js","assets/tool-set-selector-DTAr1xzz.js","assets/ai-providers-DoacYpUR.js","assets/infra-billing-C3ShZZOT.js","assets/secrets-DE59ARp-.js","assets/api-keys-CLzhmgUv.js","assets/buckets-r-Vn310N.js","assets/repositories-C0edGPcS.js","assets/repositories-V6vmPwSM.js","assets/synced-repos-DfFbkdSN.js","assets/tasks-fWq-fqoJ.js","assets/projects-FY3sblQl.js","assets/members-DQZtkBei.js","assets/collection-display-button-CpOX39FE.js","assets/role-color-CPDxseg4.js","assets/roles-BYqU9-We.js","assets/sso-C4bCFgaT.js","assets/profile-ItK6hTrx.js","assets/automations-BvZ8wxJr.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function dU(t,e){for(var o=0;o<e.length;o++){const a=e[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in t)){const r=Object.getOwnPropertyDescriptor(a,n);r&&Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();var uxe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var GS={exports:{}},qu={};var TA;function uU(){if(TA)return qu;TA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function o(a,n,r){var i=null;if(r!==void 0&&(i=""+r),n.key!==void 0&&(i=""+n.key),"key"in n){r={};for(var c in n)c!=="key"&&(r[c]=n[c])}else r=n;return n=r.ref,{$$typeof:t,type:a,key:i,ref:n!==void 0?n:null,props:r}}return qu.Fragment=e,qu.jsx=o,qu.jsxs=o,qu}var kA;function pU(){return kA||(kA=1,GS.exports=uU()),GS.exports}var y=pU(),WS={exports:{}},dt={};var EA;function mU(){if(EA)return dt;EA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=f&&M[f]||M["@@iterator"],typeof M=="function"?M:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function x(M,G,V){this.props=M,this.context=G,this.refs=T,this.updater=V||b}x.prototype.isReactComponent={},x.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},x.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=x.prototype;function C(M,G,V){this.props=M,this.context=G,this.refs=T,this.updater=V||b}var E=C.prototype=new k;E.constructor=C,S(E,x.prototype),E.isPureReactComponent=!0;var _=Array.isArray;function D(){}var R={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(M,G,V){var I=V.ref;return{$$typeof:t,type:M,key:G,ref:I!==void 0?I:null,props:V}}function U(M,G){return L(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function z(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function W(M,G){return typeof M=="object"&&M!==null&&M.key!=null?z(""+M.key):G.toString(36)}function oe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,V,I,j){var X=typeof M;(X==="undefined"||X==="boolean")&&(M=null);var de=!1;if(M===null)de=!0;else switch(X){case"bigint":case"string":case"number":de=!0;break;case"object":switch(M.$$typeof){case t:case e:de=!0;break;case m:return de=M._init,H(de(M._payload),G,V,I,j)}}if(de)return j=j(M),de=I===""?"."+W(M,0):I,_(j)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(j,G,V,"",function(qe){return qe})):j!=null&&(B(j)&&(j=U(j,V+(j.key==null||M&&M.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+de)),G.push(j)),1;de=0;var ue=I===""?".":I+":";if(_(M))for(var Ee=0;Ee<M.length;Ee++)I=M[Ee],X=ue+W(I,Ee),de+=H(I,G,V,X,j);else if(Ee=v(M),typeof Ee=="function")for(M=Ee.call(M),Ee=0;!(I=M.next()).done;)I=I.value,X=ue+W(I,Ee++),de+=H(I,G,V,X,j);else if(X==="object"){if(typeof M.then=="function")return H(oe(M),G,V,I,j);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function K(M,G,V){if(M==null)return M;var I=[],j=0;return H(M,I,"","",function(X){return G.call(V,X,j++)}),I}function J(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(V){(M._status===0||M._status===-1)&&(M._status=1,M._result=V)},function(V){(M._status===0||M._status===-1)&&(M._status=2,M._result=V)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var se=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:K,forEach:function(M,G,V){K(M,function(){G.apply(this,arguments)},V)},count:function(M){var G=0;return K(M,function(){G++}),G},toArray:function(M){return K(M,function(G){return G})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return dt.Activity=h,dt.Children=Q,dt.Component=x,dt.Fragment=o,dt.Profiler=n,dt.PureComponent=C,dt.StrictMode=a,dt.Suspense=d,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,dt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return R.H.useMemoCache(M)}},dt.cache=function(M){return function(){return M.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(M,G,V){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var I=S({},M.props),j=M.key;if(G!=null)for(X in G.key!==void 0&&(j=""+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 de=Array(X),ue=0;ue<X;ue++)de[ue]=arguments[ue+2];I.children=de}return L(M.type,j,I)},dt.createContext=function(M){return M={$$typeof:i,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:r,_context:M},M},dt.createElement=function(M,G,V){var I,j={},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"&&(j[I]=G[I]);var de=arguments.length-2;if(de===1)j.children=V;else if(1<de){for(var ue=Array(de),Ee=0;Ee<de;Ee++)ue[Ee]=arguments[Ee+2];j.children=ue}if(M&&M.defaultProps)for(I in de=M.defaultProps,de)j[I]===void 0&&(j[I]=de[I]);return L(M,X,j)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(M){return{$$typeof:c,render:M}},dt.isValidElement=B,dt.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:J}},dt.memo=function(M,G){return{$$typeof:u,type:M,compare:G===void 0?null:G}},dt.startTransition=function(M){var G=R.T,V={};R.T=V;try{var I=M(),j=R.S;j!==null&&j(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(D,se)}catch(X){se(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),R.T=G}},dt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},dt.use=function(M){return R.H.use(M)},dt.useActionState=function(M,G,V){return R.H.useActionState(M,G,V)},dt.useCallback=function(M,G){return R.H.useCallback(M,G)},dt.useContext=function(M){return R.H.useContext(M)},dt.useDebugValue=function(){},dt.useDeferredValue=function(M,G){return R.H.useDeferredValue(M,G)},dt.useEffect=function(M,G){return R.H.useEffect(M,G)},dt.useEffectEvent=function(M){return R.H.useEffectEvent(M)},dt.useId=function(){return R.H.useId()},dt.useImperativeHandle=function(M,G,V){return R.H.useImperativeHandle(M,G,V)},dt.useInsertionEffect=function(M,G){return R.H.useInsertionEffect(M,G)},dt.useLayoutEffect=function(M,G){return R.H.useLayoutEffect(M,G)},dt.useMemo=function(M,G){return R.H.useMemo(M,G)},dt.useOptimistic=function(M,G){return R.H.useOptimistic(M,G)},dt.useReducer=function(M,G,V){return R.H.useReducer(M,G,V)},dt.useRef=function(M){return R.H.useRef(M)},dt.useState=function(M){return R.H.useState(M)},dt.useSyncExternalStore=function(M,G,V){return R.H.useSyncExternalStore(M,G,V)},dt.useTransition=function(){return R.H.useTransition()},dt.version="19.2.6",dt}var CA;function Vi(){return CA||(CA=1,WS.exports=mU()),WS.exports}var A=Vi();const ee=Gl(A),sk=dU({__proto__:null,default:ee},[A]);var KS={exports:{}},Uu={},YS={exports:{}},ZS={};var PA;function hU(){return PA||(PA=1,(function(t){function e(H,K){var J=H.length;H.push(K);e:for(;0<J;){var se=J-1>>>1,Q=H[se];if(0<n(Q,K))H[se]=K,H[J]=Q,J=se;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 se=0,Q=H.length,M=Q>>>1;se<M;){var G=2*(se+1)-1,V=H[G],I=G+1,j=H[I];if(0>n(V,J))I<Q&&0>n(j,V)?(H[se]=j,H[I]=J,se=I):(H[se]=V,H[G]=J,se=G);else if(I<Q&&0>n(j,J))H[se]=j,H[I]=J,se=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(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var d=[],u=[],m=1,h=null,f=3,v=!1,b=!1,S=!1,T=!1,x=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function E(H){for(var K=o(u);K!==null;){if(K.callback===null)a(u);else if(K.startTime<=H)a(u),K.sortIndex=K.expirationTime,e(d,K);else break;K=o(u)}}function _(H){if(S=!1,E(H),!b)if(o(d)!==null)b=!0,D||(D=!0,z());else{var K=o(u);K!==null&&oe(_,K.startTime-H)}}var D=!1,R=-1,O=5,L=-1;function U(){return T?!0:!(t.unstable_now()-L<O)}function B(){if(T=!1,D){var H=t.unstable_now();L=H;var K=!0;try{e:{b=!1,S&&(S=!1,k(R),R=-1),v=!0;var J=f;try{t:{for(E(H),h=o(d);h!==null&&!(h.expirationTime>H&&U());){var se=h.callback;if(typeof se=="function"){h.callback=null,f=h.priorityLevel;var Q=se(h.expirationTime<=H);if(H=t.unstable_now(),typeof Q=="function"){h.callback=Q,E(H),K=!0;break t}h===o(d)&&a(d),E(H)}else a(d);h=o(d)}if(h!==null)K=!0;else{var M=o(u);M!==null&&oe(_,M.startTime-H),K=!1}}break e}finally{h=null,f=J,v=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof C=="function")z=function(){C(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,z=function(){W.postMessage(null)}}else z=function(){x(B,0)};function oe(H,K){R=x(function(){H(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.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},t.unstable_getCurrentPriorityLevel=function(){return f},t.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}},t.unstable_requestPaint=function(){T=!0},t.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}},t.unstable_scheduleCallback=function(H,K,J){var se=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?se+J:se):J=se,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>se?(H.sortIndex=J,e(u,H),o(d)===null&&H===o(u)&&(S?(k(R),R=-1):S=!0,oe(_,J-se))):(H.sortIndex=Q,e(d,H),b||v||(b=!0,D||(D=!0,z()))),H},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(ZS)),ZS}var _A;function gU(){return _A||(_A=1,YS.exports=hU()),YS.exports}var QS={exports:{}},Ma={};var AA;function fU(){if(AA)return Ma;AA=1;var t=Vi();function e(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+u+" 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(e(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 r(d,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:d,containerInfo:u,implementation:m}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ma.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ma.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return r(d,u,null,m)},Ma.flushSync=function(d){var u=i.T,m=a.p;try{if(i.T=null,a.p=2,d)return d()}finally{i.T=u,a.p=m,a.d.f()}},Ma.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(d,u))},Ma.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Ma.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?a.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:v}):m==="script"&&a.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ma.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var m=c(u.as,u.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(d)},Ma.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin);a.d.L(d,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ma.preloadModule=function(d,u){if(typeof d=="string")if(u){var m=c(u.as,u.crossOrigin);a.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(d)},Ma.requestFormReset=function(d){a.d.r(d)},Ma.unstable_batchedUpdates=function(d,u){return d(u)},Ma.useFormState=function(d,u,m){return i.H.useFormState(d,u,m)},Ma.useFormStatus=function(){return i.H.useHostTransitionStatus()},Ma.version="19.2.6",Ma}var RA;function TM(){if(RA)return QS.exports;RA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),QS.exports=fU(),QS.exports}var DA;function vU(){if(DA)return Uu;DA=1;var t=gU(),e=Vi(),o=TM();function a(s){var l="https://react.dev/errors/"+s;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function r(s){var l=s,p=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(p=l.return),s=l.return;while(s)}return l.tag===3?p:null}function i(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function c(s){if(s.tag===31){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function d(s){if(r(s)!==s)throw Error(a(188))}function u(s){var l=s.alternate;if(!l){if(l=r(s),l===null)throw Error(a(188));return l!==s?null:s}for(var p=s,g=l;;){var w=p.return;if(w===null)break;var P=w.alternate;if(P===null){if(g=w.return,g!==null){p=g;continue}break}if(w.child===P.child){for(P=w.child;P;){if(P===p)return d(w),s;if(P===g)return d(w),l;P=P.sibling}throw Error(a(188))}if(p.return!==g.return)p=w,g=P;else{for(var N=!1,q=w.child;q;){if(q===p){N=!0,p=w,g=P;break}if(q===g){N=!0,g=w,p=P;break}q=q.sibling}if(!N){for(q=P.child;q;){if(q===p){N=!0,p=P,g=w;break}if(q===g){N=!0,g=P,p=w;break}q=q.sibling}if(!N)throw Error(a(189))}}if(p.alternate!==g)throw Error(a(190))}if(p.tag!==3)throw Error(a(188));return p.stateNode.current===p?s:l}function m(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s;for(s=s.child;s!==null;){if(l=m(s),l!==null)return l;s=s.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"),T=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function z(s){return s===null||typeof s!="object"?null:(s=B&&s[B]||s["@@iterator"],typeof s=="function"?s:null)}var F=Symbol.for("react.client.reference");function W(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===F?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case S:return"Fragment";case x:return"Profiler";case T:return"StrictMode";case _:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case C:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case E:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case R:return l=s.displayName||null,l!==null?l:W(s.type)||"Memo";case O:l=s._payload,s=s._init;try{return W(s(l))}catch{}}return null}var oe=Array.isArray,H=e.__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},se=[],Q=-1;function M(s){return{current:s}}function G(s){0>Q||(s.current=se[Q],se[Q]=null,Q--)}function V(s,l){Q++,se[Q]=s.current,s.current=l}var I=M(null),j=M(null),X=M(null),de=M(null);function ue(s,l){switch(V(X,l),V(j,s),V(I,null),l.nodeType){case 9:case 11:s=(s=l.documentElement)&&(s=s.namespaceURI)?G1(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=G1(l),s=W1(l,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}G(I),V(I,s)}function Ee(){G(I),G(j),G(X)}function qe(s){s.memoizedState!==null&&V(de,s);var l=I.current,p=W1(l,s.type);l!==p&&(V(j,s),V(I,p))}function Z(s){j.current===s&&(G(I),G(j)),de.current===s&&(G(de),Bu._currentValue=J)}var ne,ve;function ie(s){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",ve=-1<p.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+s+ve}var Te=!1;function Pe(s,l){if(!s||Te)return"";Te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(fe){var he=fe}Reflect.construct(s,[],ke)}else{try{ke.call()}catch(fe){he=fe}s.call(ke.prototype)}}else{try{throw Error()}catch(fe){he=fe}(ke=s())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=g.DetermineComponentFrameRoot(),N=P[0],q=P[1];if(N&&q){var te=N.split(`
|
|
@@ -52,7 +52,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
52
52
|
|| ${O} === "boolean" || ${D} === null`).assign(L,(0,a._)`[${D}]`)}}}function f({gen:k,parentData:C,parentDataProperty:E},_){k.if((0,a._)`${C} !== undefined`,()=>k.assign((0,a._)`${C}[${E}]`,_))}function v(k,C,E,_=r.Correct){const D=_===r.Correct?a.operators.EQ:a.operators.NEQ;let R;switch(k){case"null":return(0,a._)`${C} ${D} null`;case"array":R=(0,a._)`Array.isArray(${C})`;break;case"object":R=(0,a._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":R=O((0,a._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":R=O();break;default:return(0,a._)`typeof ${C} ${D} ${k}`}return _===r.Correct?R:(0,a.not)(R);function O(L=a.nil){return(0,a.and)((0,a._)`typeof ${C} == "number"`,L,E?(0,a._)`isFinite(${C})`:a.nil)}}xa.checkDataType=v;function b(k,C,E,_){if(k.length===1)return v(k[0],C,E,_);let D;const R=(0,n.toHash)(k);if(R.array&&R.object){const O=(0,a._)`typeof ${C} != "object"`;D=R.null?O:(0,a._)`!${C} || ${O}`,delete R.null,delete R.array,delete R.object}else D=a.nil;R.number&&delete R.integer;for(const O in R)D=(0,a.and)(D,v(O,C,E,_));return D}xa.checkDataTypes=b;const S={message:({schema:k})=>`must be ${k}`,params:({schema:k,schemaValue:C})=>typeof k=="string"?(0,a._)`{type: ${k}}`:(0,a._)`{type: ${C}}`};function T(k){const C=x(k);(0,o.reportError)(C,S)}xa.reportTypeError=T;function x(k){const{gen:C,data:E,schema:_}=k,D=(0,n.schemaRefOrVal)(k,_,"type");return{gen:C,keyword:"type",data:E,schema:_.type,schemaCode:D,schemaValue:D,parentSchema:_,params:{},it:k}}return xa}var Wu={},QR;function FZ(){if(QR)return Wu;QR=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.assignDefaults=void 0;const t=yt(),e=Ft();function o(n,r){const{properties:i,items:c}=n.schema;if(r==="object"&&i)for(const d in i)a(n,d,i[d].default);else r==="array"&&Array.isArray(c)&&c.forEach((d,u)=>a(n,u,d.default))}Wu.assignDefaults=o;function a(n,r,i){const{gen:c,compositeRule:d,data:u,opts:m}=n;if(i===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(r)}`;if(d){(0,e.checkStrictMode)(n,`default is ignored for: ${h}`);return}let f=(0,t._)`${h} === undefined`;m.useDefaults==="empty"&&(f=(0,t._)`${f} || ${h} === null || ${h} === ""`),c.if(f,(0,t._)`${h} = ${(0,t.stringify)(i)}`)}return Wu}var gr={},Qt={},JR;function Dr(){if(JR)return Qt;JR=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const t=yt(),e=Ft(),o=Zi(),a=Ft();function n(k,C){const{gen:E,data:_,it:D}=k;E.if(m(E,_,C,D.opts.ownProperties),()=>{k.setParams({missingProperty:(0,t._)`${C}`},!0),k.error()})}Qt.checkReportMissingProp=n;function r({gen:k,data:C,it:{opts:E}},_,D){return(0,t.or)(..._.map(R=>(0,t.and)(m(k,C,R,E.ownProperties),(0,t._)`${D} = ${R}`)))}Qt.checkMissingProp=r;function i(k,C){k.setParams({missingProperty:C},!0),k.error()}Qt.reportMissingProp=i;function c(k){return k.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=c;function d(k,C,E){return(0,t._)`${c(k)}.call(${C}, ${E})`}Qt.isOwnProperty=d;function u(k,C,E,_){const D=(0,t._)`${C}${(0,t.getProperty)(E)} !== undefined`;return _?(0,t._)`${D} && ${d(k,C,E)}`:D}Qt.propertyInData=u;function m(k,C,E,_){const D=(0,t._)`${C}${(0,t.getProperty)(E)} === undefined`;return _?(0,t.or)(D,(0,t.not)(d(k,C,E))):D}Qt.noPropertyInData=m;function h(k){return k?Object.keys(k).filter(C=>C!=="__proto__"):[]}Qt.allSchemaProperties=h;function f(k,C){return h(C).filter(E=>!(0,e.alwaysValidSchema)(k,C[E]))}Qt.schemaProperties=f;function v({schemaCode:k,data:C,it:{gen:E,topSchemaRef:_,schemaPath:D,errorPath:R},it:O},L,U,B){const z=B?(0,t._)`${k}, ${C}, ${_}${D}`:C,F=[[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,R)],[o.default.parentData,O.parentData],[o.default.parentDataProperty,O.parentDataProperty],[o.default.rootData,o.default.rootData]];O.opts.dynamicRef&&F.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const W=(0,t._)`${z}, ${E.object(...F)}`;return U!==t.nil?(0,t._)`${L}.call(${U}, ${W})`:(0,t._)`${L}(${W})`}Qt.callValidateCode=v;const b=(0,t._)`new RegExp`;function S({gen:k,it:{opts:C}},E){const _=C.unicodeRegExp?"u":"",{regExp:D}=C.code,R=D(E,_);return k.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,t._)`${D.code==="new RegExp"?b:(0,a.useFunc)(k,D)}(${E}, ${_})`})}Qt.usePattern=S;function T(k){const{gen:C,data:E,keyword:_,it:D}=k,R=C.name("valid");if(D.allErrors){const L=C.let("valid",!0);return O(()=>C.assign(L,!1)),L}return C.var(R,!0),O(()=>C.break()),R;function O(L){const U=C.const("len",(0,t._)`${E}.length`);C.forRange("i",0,U,B=>{k.subschema({keyword:_,dataProp:B,dataPropType:e.Type.Num},R),C.if((0,t.not)(R),L)})}}Qt.validateArray=T;function x(k){const{gen:C,schema:E,keyword:_,it:D}=k;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(U=>(0,e.alwaysValidSchema)(D,U))&&!D.opts.unevaluated)return;const O=C.let("valid",!1),L=C.name("_valid");C.block(()=>E.forEach((U,B)=>{const z=k.subschema({keyword:_,schemaProp:B,compositeRule:!0},L);C.assign(O,(0,t._)`${O} || ${L}`),k.mergeValidEvaluated(z,L)||C.if((0,t.not)(O))})),k.result(O,()=>k.reset(),()=>k.error(!0))}return Qt.validateUnion=x,Qt}var XR;function jZ(){if(XR)return gr;XR=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateKeywordUsage=gr.validSchemaType=gr.funcKeywordCode=gr.macroKeywordCode=void 0;const t=yt(),e=Zi(),o=Dr(),a=tb();function n(f,v){const{gen:b,keyword:S,schema:T,parentSchema:x,it:k}=f,C=v.macro.call(k.self,T,x,k),E=u(b,S,C);k.opts.validateSchema!==!1&&k.self.validateSchema(C,!0);const _=b.name("valid");f.subschema({schema:C,schemaPath:t.nil,errSchemaPath:`${k.errSchemaPath}/${S}`,topSchemaRef:E,compositeRule:!0},_),f.pass(_,()=>f.error(!0))}gr.macroKeywordCode=n;function r(f,v){var b;const{gen:S,keyword:T,schema:x,parentSchema:k,$data:C,it:E}=f;d(E,v);const _=!C&&v.compile?v.compile.call(E.self,x,k,E):v.validate,D=u(S,T,_),R=S.let("valid");f.block$data(R,O),f.ok((b=v.valid)!==null&&b!==void 0?b:R);function O(){if(v.errors===!1)B(),v.modifying&&i(f),z(()=>f.error());else{const F=v.async?L():U();v.modifying&&i(f),z(()=>c(f,F))}}function L(){const F=S.let("ruleErrs",null);return S.try(()=>B((0,t._)`await `),W=>S.assign(R,!1).if((0,t._)`${W} instanceof ${E.ValidationError}`,()=>S.assign(F,(0,t._)`${W}.errors`),()=>S.throw(W))),F}function U(){const F=(0,t._)`${D}.errors`;return S.assign(F,null),B(t.nil),F}function B(F=v.async?(0,t._)`await `:t.nil){const W=E.opts.passContext?e.default.this:e.default.self,oe=!("compile"in v&&!C||v.schema===!1);S.assign(R,(0,t._)`${F}${(0,o.callValidateCode)(f,D,W,oe)}`,v.modifying)}function z(F){var W;S.if((0,t.not)((W=v.valid)!==null&&W!==void 0?W:R),F)}}gr.funcKeywordCode=r;function i(f){const{gen:v,data:b,it:S}=f;v.if(S.parentData,()=>v.assign(b,(0,t._)`${S.parentData}[${S.parentDataProperty}]`))}function c(f,v){const{gen:b}=f;b.if((0,t._)`Array.isArray(${v})`,()=>{b.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${v} : ${e.default.vErrors}.concat(${v})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,a.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},v){if(v.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,v,b){if(b===void 0)throw new Error(`keyword "${v}" failed to compile`);return f.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,t.stringify)(b)})}function m(f,v,b=!1){return!v.length||v.some(S=>S==="array"?Array.isArray(f):S==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==S||b&&typeof f>"u")}gr.validSchemaType=m;function h({schema:f,opts:v,self:b,errSchemaPath:S},T,x){if(Array.isArray(T.keyword)?!T.keyword.includes(x):T.keyword!==x)throw new Error("ajv implementation error");const k=T.dependencies;if(k?.some(C=>!Object.prototype.hasOwnProperty.call(f,C)))throw new Error(`parent schema must have dependencies of ${x}: ${k.join(",")}`);if(T.validateSchema&&!T.validateSchema(f[x])){const E=`keyword "${x}" value is invalid at path "${S}": `+b.errorsText(T.validateSchema.errors);if(v.validateSchema==="log")b.logger.error(E);else throw new Error(E)}}return gr.validateKeywordUsage=h,gr}var Es={},eD;function zZ(){if(eD)return Es;eD=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.extendSubschemaMode=Es.extendSubschemaData=Es.getSubschema=void 0;const t=yt(),e=Ft();function o(r,{keyword:i,schemaProp:c,schema:d,schemaPath:u,errSchemaPath:m,topSchemaRef:h}){if(i!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const f=r.schema[i];return c===void 0?{schema:f,schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(i)}`,errSchemaPath:`${r.errSchemaPath}/${i}`}:{schema:f[c],schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(i)}${(0,t.getProperty)(c)}`,errSchemaPath:`${r.errSchemaPath}/${i}/${(0,e.escapeFragment)(c)}`}}if(d!==void 0){if(u===void 0||m===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:u,topSchemaRef:h,errSchemaPath:m}}throw new Error('either "keyword" or "schema" must be passed')}Es.getSubschema=o;function a(r,i,{dataProp:c,dataPropType:d,data:u,dataTypes:m,propertyName:h}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=i;if(c!==void 0){const{errorPath:b,dataPathArr:S,opts:T}=i,x=f.let("data",(0,t._)`${i.data}${(0,t.getProperty)(c)}`,!0);v(x),r.errorPath=(0,t.str)`${b}${(0,e.getErrorPath)(c,d,T.jsPropertySyntax)}`,r.parentDataProperty=(0,t._)`${c}`,r.dataPathArr=[...S,r.parentDataProperty]}if(u!==void 0){const b=u instanceof t.Name?u:f.let("data",u,!0);v(b),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function v(b){r.data=b,r.dataLevel=i.dataLevel+1,r.dataTypes=[],i.definedProperties=new Set,r.parentData=i.data,r.dataNames=[...i.dataNames,b]}}Es.extendSubschemaData=a;function n(r,{jtdDiscriminator:i,jtdMetadata:c,compositeRule:d,createErrors:u,allErrors:m}){d!==void 0&&(r.compositeRule=d),u!==void 0&&(r.createErrors=u),m!==void 0&&(r.allErrors=m),r.jtdDiscriminator=i,r.jtdMetadata=c}return Es.extendSubschemaMode=n,Es}var Wa={},yw,tD;function aB(){return tD||(tD=1,yw=function t(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var a,n,r;if(Array.isArray(e)){if(a=e.length,a!=o.length)return!1;for(n=a;n--!==0;)if(!t(e[n],o[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if(r=Object.keys(e),a=r.length,a!==Object.keys(o).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,r[n]))return!1;for(n=a;n--!==0;){var i=r[n];if(!t(e[i],o[i]))return!1}return!0}return e!==e&&o!==o}),yw}var Sw={exports:{}},oD;function qZ(){if(oD)return Sw.exports;oD=1;var t=Sw.exports=function(a,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var i=typeof r=="function"?r:r.pre||function(){},c=r.post||function(){};e(n,i,c,a,"",a)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(a,n,r,i,c,d,u,m,h,f){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,c,d,u,m,h,f);for(var v in i){var b=i[v];if(Array.isArray(b)){if(v in t.arrayKeywords)for(var S=0;S<b.length;S++)e(a,n,r,b[S],c+"/"+v+"/"+S,d,c,v,i,S)}else if(v in t.propsKeywords){if(b&&typeof b=="object")for(var T in b)e(a,n,r,b[T],c+"/"+v+"/"+o(T),d,c,v,i,T)}else(v in t.keywords||a.allKeys&&!(v in t.skipKeywords))&&e(a,n,r,b,c+"/"+v,d,c,v,i)}r(i,c,d,u,m,h,f)}}function o(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return Sw.exports}var aD;function ob(){if(aD)return Wa;aD=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.getSchemaRefs=Wa.resolveUrl=Wa.normalizeId=Wa._getFullPath=Wa.getFullPath=Wa.inlineRef=void 0;const t=Ft(),e=aB(),o=qZ(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(S,T=!0){return typeof S=="boolean"?!0:T===!0?!i(S):T?c(S)<=T:!1}Wa.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(S){for(const T in S){if(r.has(T))return!0;const x=S[T];if(Array.isArray(x)&&x.some(i)||typeof x=="object"&&i(x))return!0}return!1}function c(S){let T=0;for(const x in S){if(x==="$ref")return 1/0;if(T++,!a.has(x)&&(typeof S[x]=="object"&&(0,t.eachItem)(S[x],k=>T+=c(k)),T===1/0))return 1/0}return T}function d(S,T="",x){x!==!1&&(T=h(T));const k=S.parse(T);return u(S,k)}Wa.getFullPath=d;function u(S,T){return S.serialize(T).split("#")[0]+"#"}Wa._getFullPath=u;const m=/#\/?$/;function h(S){return S?S.replace(m,""):""}Wa.normalizeId=h;function f(S,T,x){return x=h(x),S.resolve(T,x)}Wa.resolveUrl=f;const v=/^[a-z_][-a-z0-9._]*$/i;function b(S,T){if(typeof S=="boolean")return{};const{schemaId:x,uriResolver:k}=this.opts,C=h(S[x]||T),E={"":C},_=d(k,C,!1),D={},R=new Set;return o(S,{allKeys:!0},(U,B,z,F)=>{if(F===void 0)return;const W=_+B;let oe=E[F];typeof U[x]=="string"&&(oe=H.call(this,U[x])),K.call(this,U.$anchor),K.call(this,U.$dynamicAnchor),E[B]=oe;function H(J){const se=this.opts.uriResolver.resolve;if(J=h(oe?se(oe,J):J),R.has(J))throw L(J);R.add(J);let Q=this.refs[J];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?O(U,Q.schema,J):J!==h(W)&&(J[0]==="#"?(O(U,D[J],J),D[J]=U):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!v.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O(U,B,z){if(B!==void 0&&!e(U,B))throw L(z)}function L(U){return new Error(`reference "${U}" resolves to more than one schema`)}}return Wa.getSchemaRefs=b,Wa}var nD;function ab(){if(nD)return Ts;nD=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getData=Ts.KeywordCxt=Ts.validateFunctionCode=void 0;const t=BZ(),e=Yf(),o=oB(),a=Yf(),n=FZ(),r=jZ(),i=zZ(),c=yt(),d=Zi(),u=ob(),m=Ft(),h=tb();function f(Z){if(_(Z)&&(R(Z),E(Z))){T(Z);return}v(Z,()=>(0,t.topBoolOrEmptySchema)(Z))}Ts.validateFunctionCode=f;function v({gen:Z,validateName:ne,schema:ve,schemaEnv:ie,opts:Te},Pe){Te.code.es5?Z.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,ie.$async,()=>{Z.code((0,c._)`"use strict"; ${k(ve,Te)}`),S(Z,Te),Z.code(Pe)}):Z.func(ne,(0,c._)`${d.default.data}, ${b(Te)}`,ie.$async,()=>Z.code(k(ve,Te)).code(Pe))}function b(Z){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Z.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function S(Z,ne){Z.if(d.default.valCxt,()=>{Z.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Z.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Z.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Z.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Z.var(d.default.instancePath,(0,c._)`""`),Z.var(d.default.parentData,(0,c._)`undefined`),Z.var(d.default.parentDataProperty,(0,c._)`undefined`),Z.var(d.default.rootData,d.default.data),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function T(Z){const{schema:ne,opts:ve,gen:ie}=Z;v(Z,()=>{ve.$comment&&ne.$comment&&F(Z),U(Z),ie.let(d.default.vErrors,null),ie.let(d.default.errors,0),ve.unevaluated&&x(Z),O(Z),W(Z)})}function x(Z){const{gen:ne,validateName:ve}=Z;Z.evaluated=ne.const("evaluated",(0,c._)`${ve}.evaluated`),ne.if((0,c._)`${Z.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Z.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Z.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Z.evaluated}.items`,(0,c._)`undefined`))}function k(Z,ne){const ve=typeof Z=="object"&&Z[ne.schemaId];return ve&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function C(Z,ne){if(_(Z)&&(R(Z),E(Z))){D(Z,ne);return}(0,t.boolOrEmptySchema)(Z,ne)}function E({schema:Z,self:ne}){if(typeof Z=="boolean")return!Z;for(const ve in Z)if(ne.RULES.all[ve])return!0;return!1}function _(Z){return typeof Z.schema!="boolean"}function D(Z,ne){const{schema:ve,gen:ie,opts:Te}=Z;Te.$comment&&ve.$comment&&F(Z),B(Z),z(Z);const Pe=ie.const("_errs",d.default.errors);O(Z,Pe),ie.var(ne,(0,c._)`${Pe} === ${d.default.errors}`)}function R(Z){(0,m.checkUnknownRules)(Z),L(Z)}function O(Z,ne){if(Z.opts.jtd)return H(Z,[],!1,ne);const ve=(0,e.getSchemaTypes)(Z.schema),ie=(0,e.coerceAndCheckDataType)(Z,ve);H(Z,ve,!ie,ne)}function L(Z){const{schema:ne,errSchemaPath:ve,opts:ie,self:Te}=Z;ne.$ref&&ie.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,Te.RULES)&&Te.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function U(Z){const{schema:ne,opts:ve}=Z;ne.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,m.checkStrictMode)(Z,"default is ignored in the schema root")}function B(Z){const ne=Z.schema[Z.opts.schemaId];ne&&(Z.baseId=(0,u.resolveUrl)(Z.opts.uriResolver,Z.baseId,ne))}function z(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Z,schemaEnv:ne,schema:ve,errSchemaPath:ie,opts:Te}){const Pe=ve.$comment;if(Te.$comment===!0)Z.code((0,c._)`${d.default.self}.logger.log(${Pe})`);else if(typeof Te.$comment=="function"){const it=(0,c.str)`${ie}/$comment`,ct=Z.scopeValue("root",{ref:ne.root});Z.code((0,c._)`${d.default.self}.opts.$comment(${Pe}, ${it}, ${ct}.schema)`)}}function W(Z){const{gen:ne,schemaEnv:ve,validateName:ie,ValidationError:Te,opts:Pe}=Z;ve.$async?ne.if((0,c._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,c._)`new ${Te}(${d.default.vErrors})`)):(ne.assign((0,c._)`${ie}.errors`,d.default.vErrors),Pe.unevaluated&&oe(Z),ne.return((0,c._)`${d.default.errors} === 0`))}function oe({gen:Z,evaluated:ne,props:ve,items:ie}){ve instanceof c.Name&&Z.assign((0,c._)`${ne}.props`,ve),ie instanceof c.Name&&Z.assign((0,c._)`${ne}.items`,ie)}function H(Z,ne,ve,ie){const{gen:Te,schema:Pe,data:it,allErrors:ct,opts:Ge,self:at}=Z,{RULES:Ne}=at;if(Pe.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(Pe,Ne))){Te.block(()=>de(Z,"$ref",Ne.all.$ref.definition));return}Ge.jtd||J(Z,ne),Te.block(()=>{for(const He of Ne.rules)Oe(He);Oe(Ne.post)});function Oe(He){(0,o.shouldUseGroup)(Pe,He)&&(He.type?(Te.if((0,a.checkDataType)(He.type,it,Ge.strictNumbers)),K(Z,He),ne.length===1&&ne[0]===He.type&&ve&&(Te.else(),(0,a.reportTypeError)(Z)),Te.endIf()):K(Z,He),ct||Te.if((0,c._)`${d.default.errors} === ${ie||0}`))}}function K(Z,ne){const{gen:ve,schema:ie,opts:{useDefaults:Te}}=Z;Te&&(0,n.assignDefaults)(Z,ne.type),ve.block(()=>{for(const Pe of ne.rules)(0,o.shouldUseRule)(ie,Pe)&&de(Z,Pe.keyword,Pe.definition,ne.type)})}function J(Z,ne){Z.schemaEnv.meta||!Z.opts.strictTypes||(se(Z,ne),Z.opts.allowUnionTypes||Q(Z,ne),M(Z,Z.dataTypes))}function se(Z,ne){if(ne.length){if(!Z.dataTypes.length){Z.dataTypes=ne;return}ne.forEach(ve=>{V(Z.dataTypes,ve)||j(Z,`type "${ve}" not allowed by context "${Z.dataTypes.join(",")}"`)}),I(Z,ne)}}function Q(Z,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Z,"use allowUnionTypes to allow union type keyword")}function M(Z,ne){const ve=Z.self.RULES.all;for(const ie in ve){const Te=ve[ie];if(typeof Te=="object"&&(0,o.shouldUseRule)(Z.schema,Te)){const{type:Pe}=Te.definition;Pe.length&&!Pe.some(it=>G(ne,it))&&j(Z,`missing type "${Pe.join(",")}" for keyword "${ie}"`)}}}function G(Z,ne){return Z.includes(ne)||ne==="number"&&Z.includes("integer")}function V(Z,ne){return Z.includes(ne)||ne==="integer"&&Z.includes("number")}function I(Z,ne){const ve=[];for(const ie of Z.dataTypes)V(ne,ie)?ve.push(ie):ne.includes("integer")&&ie==="number"&&ve.push("integer");Z.dataTypes=ve}function j(Z,ne){const ve=Z.schemaEnv.baseId+Z.errSchemaPath;ne+=` at "${ve}" (strictTypes)`,(0,m.checkStrictMode)(Z,ne,Z.opts.strictTypes)}class X{constructor(ne,ve,ie){if((0,r.validateKeywordUsage)(ne,ve,ie),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=ie,this.data=ne.data,this.schema=ne.schema[ie],this.$data=ve.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,ie,this.$data),this.schemaType=ve.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=ve,this.$data)this.schemaCode=ne.gen.const("vSchema",qe(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${ie} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,ve,ie){this.failResult((0,c.not)(ne),ve,ie)}failResult(ne,ve,ie){this.gen.if(ne),ie?ie():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,ve){this.failResult((0,c.not)(ne),void 0,ve)}fail(ne){if(ne===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ne),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ne){if(!this.$data)return this.fail(ne);const{schemaCode:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,ve,ie){if(ve){this.setParams(ve),this._error(ne,ie),this.setParams({});return}this._error(ne,ie)}_error(ne,ve){(ne?h.reportExtraError:h.reportError)(this,this.def.error,ve)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(ne){this.allErrors||this.gen.if(ne)}setParams(ne,ve){ve?Object.assign(this.params,ne):this.params=ne}block$data(ne,ve,ie=c.nil){this.gen.block(()=>{this.check$data(ne,ie),ve()})}check$data(ne=c.nil,ve=c.nil){if(!this.$data)return;const{gen:ie,schemaCode:Te,schemaType:Pe,def:it}=this;ie.if((0,c.or)((0,c._)`${Te} === undefined`,ve)),ne!==c.nil&&ie.assign(ne,!0),(Pe.length||it.validateSchema)&&(ie.elseIf(this.invalid$data()),this.$dataError(),ne!==c.nil&&ie.assign(ne,!1)),ie.else()}invalid$data(){const{gen:ne,schemaCode:ve,schemaType:ie,def:Te,it:Pe}=this;return(0,c.or)(it(),ct());function it(){if(ie.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(ie)?ie:[ie];return(0,c._)`${(0,a.checkDataTypes)(Ge,ve,Pe.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}function ct(){if(Te.validateSchema){const Ge=ne.scopeValue("validate$data",{ref:Te.validateSchema});return(0,c._)`!${Ge}(${ve})`}return c.nil}}subschema(ne,ve){const ie=(0,i.getSubschema)(this.it,ne);(0,i.extendSubschemaData)(ie,this.it,ne),(0,i.extendSubschemaMode)(ie,ne);const Te={...this.it,...ie,items:void 0,props:void 0};return C(Te,ve),Te}mergeEvaluated(ne,ve){const{it:ie,gen:Te}=this;ie.opts.unevaluated&&(ie.props!==!0&&ne.props!==void 0&&(ie.props=m.mergeEvaluated.props(Te,ne.props,ie.props,ve)),ie.items!==!0&&ne.items!==void 0&&(ie.items=m.mergeEvaluated.items(Te,ne.items,ie.items,ve)))}mergeValidEvaluated(ne,ve){const{it:ie,gen:Te}=this;if(ie.opts.unevaluated&&(ie.props!==!0||ie.items!==!0))return Te.if(ve,()=>this.mergeEvaluated(ne,c.Name)),!0}}Ts.KeywordCxt=X;function de(Z,ne,ve,ie){const Te=new X(Z,ve,ne);"code"in ve?ve.code(Te,ie):Te.$data&&ve.validate?(0,r.funcKeywordCode)(Te,ve):"macro"in ve?(0,r.macroKeywordCode)(Te,ve):(ve.compile||ve.validate)&&(0,r.funcKeywordCode)(Te,ve)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qe(Z,{dataLevel:ne,dataNames:ve,dataPathArr:ie}){let Te,Pe;if(Z==="")return d.default.rootData;if(Z[0]==="/"){if(!ue.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);Te=Z,Pe=d.default.rootData}else{const at=Ee.exec(Z);if(!at)throw new Error(`Invalid JSON-pointer: ${Z}`);const Ne=+at[1];if(Te=at[2],Te==="#"){if(Ne>=ne)throw new Error(Ge("property/index",Ne));return ie[ne-Ne]}if(Ne>ne)throw new Error(Ge("data",Ne));if(Pe=ve[ne-Ne],!Te)return Pe}let it=Pe;const ct=Te.split("/");for(const at of ct)at&&(Pe=(0,c._)`${Pe}${(0,c.getProperty)((0,m.unescapeJsonPointer)(at))}`,it=(0,c._)`${it} && ${Pe}`);return it;function Ge(at,Ne){return`Cannot access ${at} ${Ne} levels up, current level is ${ne}`}}return Ts.getData=qe,Ts}var eg={},rD;function $k(){if(rD)return eg;rD=1,Object.defineProperty(eg,"__esModule",{value:!0});class t extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}return eg.default=t,eg}var tg={},sD;function nb(){if(sD)return tg;sD=1,Object.defineProperty(tg,"__esModule",{value:!0});const t=ob();class e extends Error{constructor(a,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(a,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(a,this.missingRef))}}return tg.default=e,tg}var Pn={},iD;function Vk(){if(iD)return Pn;iD=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.resolveSchema=Pn.getCompilingSchema=Pn.resolveRef=Pn.compileSchema=Pn.SchemaEnv=void 0;const t=yt(),e=$k(),o=Zi(),a=ob(),n=Ft(),r=ab();class i{constructor(x){var k;this.refs={},this.dynamicAnchors={};let C;typeof x.schema=="object"&&(C=x.schema),this.schema=x.schema,this.schemaId=x.schemaId,this.root=x.root||this,this.baseId=(k=x.baseId)!==null&&k!==void 0?k:(0,a.normalizeId)(C?.[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=C?.$async,this.refs={}}}Pn.SchemaEnv=i;function c(T){const x=m.call(this,T);if(x)return x;const k=(0,a.getFullPath)(this.opts.uriResolver,T.root.baseId),{es5:C,lines:E}=this.opts.code,{ownProperties:_}=this.opts,D=new t.CodeGen(this.scope,{es5:C,lines:E,ownProperties:_});let R;T.$async&&(R=D.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const O=D.scopeName("validate");T.validateName=O;const L={gen:D,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:T.schema,code:(0,t.stringify)(T.schema)}:{ref:T.schema}),validateName:O,ValidationError:R,schema:T.schema,schemaEnv:T,rootId:k,baseId:T.baseId||k,schemaPath:t.nil,errSchemaPath:T.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let U;try{this._compilations.add(T),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();U=`${D.scopeRefs(o.default.scope)}return ${B}`,this.opts.code.process&&(U=this.opts.code.process(U,T));const F=new Function(`${o.default.self}`,`${o.default.scope}`,U)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=T.schema,F.schemaEnv=T,T.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:B,scopeValues:D._values}),this.opts.unevaluated){const{props:W,items:oe}=L;F.evaluated={props:W instanceof t.Name?void 0:W,items:oe instanceof t.Name?void 0:oe,dynamicProps:W instanceof t.Name,dynamicItems:oe instanceof t.Name},F.source&&(F.source.evaluated=(0,t.stringify)(F.evaluated))}return T.validate=F,T}catch(B){throw delete T.validate,delete T.validateName,U&&this.logger.error("Error compiling schema, function code:",U),B}finally{this._compilations.delete(T)}}Pn.compileSchema=c;function d(T,x,k){var C;k=(0,a.resolveUrl)(this.opts.uriResolver,x,k);const E=T.refs[k];if(E)return E;let _=f.call(this,T,k);if(_===void 0){const D=(C=T.localRefs)===null||C===void 0?void 0:C[k],{schemaId:R}=this.opts;D&&(_=new i({schema:D,schemaId:R,root:T,baseId:x}))}if(_!==void 0)return T.refs[k]=u.call(this,_)}Pn.resolveRef=d;function u(T){return(0,a.inlineRef)(T.schema,this.opts.inlineRefs)?T.schema:T.validate?T:c.call(this,T)}function m(T){for(const x of this._compilations)if(h(x,T))return x}Pn.getCompilingSchema=m;function h(T,x){return T.schema===x.schema&&T.root===x.root&&T.baseId===x.baseId}function f(T,x){let k;for(;typeof(k=this.refs[x])=="string";)x=k;return k||this.schemas[x]||v.call(this,T,x)}function v(T,x){const k=this.opts.uriResolver.parse(x),C=(0,a._getFullPath)(this.opts.uriResolver,k);let E=(0,a.getFullPath)(this.opts.uriResolver,T.baseId,void 0);if(Object.keys(T.schema).length>0&&C===E)return S.call(this,k,T);const _=(0,a.normalizeId)(C),D=this.refs[_]||this.schemas[_];if(typeof D=="string"){const R=v.call(this,T,D);return typeof R?.schema!="object"?void 0:S.call(this,k,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),_===(0,a.normalizeId)(x)){const{schema:R}=D,{schemaId:O}=this.opts,L=R[O];return L&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,L)),new i({schema:R,schemaId:O,root:T,baseId:E})}return S.call(this,k,D)}}Pn.resolveSchema=v;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function S(T,{baseId:x,schema:k,root:C}){var E;if(((E=T.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const R of T.fragment.slice(1).split("/")){if(typeof k=="boolean")return;const O=k[(0,n.unescapeFragment)(R)];if(O===void 0)return;k=O;const L=typeof k=="object"&&k[this.opts.schemaId];!b.has(R)&&L&&(x=(0,a.resolveUrl)(this.opts.uriResolver,x,L))}let _;if(typeof k!="boolean"&&k.$ref&&!(0,n.schemaHasRulesButRef)(k,this.RULES)){const R=(0,a.resolveUrl)(this.opts.uriResolver,x,k.$ref);_=v.call(this,C,R)}const{schemaId:D}=this.opts;if(_=_||new i({schema:k,schemaId:D,root:C,baseId:x}),_.schema!==_.root.schema)return _}return Pn}const UZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",$Z="Meta-schema for $data reference (JSON AnySchema extension proposal)",VZ="object",HZ=["$data"],GZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},WZ=!1,KZ={$id:UZ,description:$Z,type:VZ,required:HZ,properties:GZ,additionalProperties:WZ};var og={},Ku={exports:{}},ww,lD;function nB(){if(lD)return ww;lD=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function o(f){let v="",b=0,S=0;for(S=0;S<f.length;S++)if(b=f[S].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[S];break}for(S+=1;S<f.length;S++){if(b=f[S].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[S]}return v}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,v,b){if(f.length){const S=o(f);if(S!=="")v.push(S);else return b.error=!0,!1;f.length=0}return!0}function i(f){let v=0;const b={error:!1,address:"",zone:""},S=[],T=[];let x=!1,k=!1,C=r;for(let E=0;E<f.length;E++){const _=f[E];if(!(_==="["||_==="]"))if(_===":"){if(x===!0&&(k=!0),!C(T,S,b))break;if(++v>7){b.error=!0;break}E>0&&f[E-1]===":"&&(x=!0),S.push(":");continue}else if(_==="%"){if(!C(T,S,b))break;C=n}else{T.push(_);continue}}return T.length&&(C===n?b.zone=T.join(""):k?S.push(T.join("")):S.push(o(T))),b.address=S.join(""),b}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const v=i(f);if(v.error)return{host:f,isIPV6:!1};{let b=v.address,S=v.address;return v.zone&&(b+="%"+v.zone,S+="%25"+v.zone),{host:b,isIPV6:!0,escapedHost:S}}}function d(f,v){let b=0;for(let S=0;S<f.length;S++)f[S]===v&&b++;return b}function u(f){let v=f;const b=[];let S=-1,T=0;for(;T=v.length;){if(T===1){if(v===".")break;if(v==="/"){b.push("/");break}else{b.push(v);break}}else if(T===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){b.push("/");break}}else if(T===3&&v==="/.."){b.length!==0&&b.pop(),b.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),b.length!==0&&b.pop();continue}}if((S=v.indexOf("/",1))===-1){b.push(v);break}else b.push(v.slice(0,S)),v=v.slice(S)}return b.join("")}function m(f,v){const b=v!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=b(f.scheme)),f.userinfo!==void 0&&(f.userinfo=b(f.userinfo)),f.host!==void 0&&(f.host=b(f.host)),f.path!==void 0&&(f.path=b(f.path)),f.query!==void 0&&(f.query=b(f.query)),f.fragment!==void 0&&(f.fragment=b(f.fragment)),f}function h(f){const v=[];if(f.userinfo!==void 0&&(v.push(f.userinfo),v.push("@")),f.host!==void 0){let b=unescape(f.host);if(!e(b)){const S=c(b);S.isIPV6===!0?b=`[${S.escapedHost}]`:b=f.host}v.push(b)}return(typeof f.port=="number"||typeof f.port=="string")&&(v.push(":"),v.push(String(f.port))),v.length?v.join(""):void 0}return ww={nonSimpleDomain:a,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:o},ww}var xw,cD;function YZ(){if(cD)return xw;cD=1;const{isUUID:t}=nB(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function a(_){return o.indexOf(_)!==-1}function n(_){return _.secure===!0?!0:_.secure===!1?!1:_.scheme?_.scheme.length===3&&(_.scheme[0]==="w"||_.scheme[0]==="W")&&(_.scheme[1]==="s"||_.scheme[1]==="S")&&(_.scheme[2]==="s"||_.scheme[2]==="S"):!1}function r(_){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_}function i(_){const D=String(_.scheme).toLowerCase()==="https";return(_.port===(D?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}function c(_){return _.secure=n(_),_.resourceName=(_.path||"/")+(_.query?"?"+_.query:""),_.path=void 0,_.query=void 0,_}function d(_){if((_.port===(n(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){const[D,R]=_.resourceName.split("?");_.path=D&&D!=="/"?D:void 0,_.query=R,_.resourceName=void 0}return _.fragment=void 0,_}function u(_,D){if(!_.path)return _.error="URN can not be parsed",_;const R=_.path.match(e);if(R){const O=D.scheme||_.scheme||"urn";_.nid=R[1].toLowerCase(),_.nss=R[2];const L=`${O}:${D.nid||_.nid}`,U=E(L);_.path=void 0,U&&(_=U.parse(_,D))}else _.error=_.error||"URN can not be parsed.";return _}function m(_,D){if(_.nid===void 0)throw new Error("URN without nid cannot be serialized");const R=D.scheme||_.scheme||"urn",O=_.nid.toLowerCase(),L=`${R}:${D.nid||O}`,U=E(L);U&&(_=U.serialize(_,D));const B=_,z=_.nss;return B.path=`${O||D.nid}:${z}`,D.skipEscape=!0,B}function h(_,D){const R=_;return R.uuid=R.nss,R.nss=void 0,!D.tolerant&&(!R.uuid||!t(R.uuid))&&(R.error=R.error||"UUID is not valid."),R}function f(_){const D=_;return D.nss=(_.uuid||"").toLowerCase(),D}const v={scheme:"http",domainHost:!0,parse:r,serialize:i},b={scheme:"https",domainHost:v.domainHost,parse:r,serialize:i},S={scheme:"ws",domainHost:!0,parse:c,serialize:d},T={scheme:"wss",domainHost:S.domainHost,parse:S.parse,serialize:S.serialize},C={http:v,https:b,ws:S,wss:T,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(C,null);function E(_){return _&&(C[_]||C[_.toLowerCase()])||void 0}return xw={wsIsSecure:n,SCHEMES:C,isValidSchemeName:a,getSchemeHandler:E},xw}var dD;function ZZ(){if(dD)return Ku.exports;dD=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:o,normalizeComponentEncoding:a,isIPv4:n,nonSimpleDomain:r}=nB(),{SCHEMES:i,getSchemeHandler:c}=YZ();function d(T,x){return typeof T=="string"?T=f(b(T,x),x):typeof T=="object"&&(T=b(f(T,x),x)),T}function u(T,x,k){const C=k?Object.assign({scheme:"null"},k):{scheme:"null"},E=m(b(T,C),b(x,C),C,!0);return C.skipEscape=!0,f(E,C)}function m(T,x,k,C){const E={};return C||(T=b(f(T,k),k),x=b(f(x,k),k)),k=k||{},!k.tolerant&&x.scheme?(E.scheme=x.scheme,E.userinfo=x.userinfo,E.host=x.host,E.port=x.port,E.path=e(x.path||""),E.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(E.userinfo=x.userinfo,E.host=x.host,E.port=x.port,E.path=e(x.path||""),E.query=x.query):(x.path?(x.path[0]==="/"?E.path=e(x.path):((T.userinfo!==void 0||T.host!==void 0||T.port!==void 0)&&!T.path?E.path="/"+x.path:T.path?E.path=T.path.slice(0,T.path.lastIndexOf("/")+1)+x.path:E.path=x.path,E.path=e(E.path)),E.query=x.query):(E.path=T.path,x.query!==void 0?E.query=x.query:E.query=T.query),E.userinfo=T.userinfo,E.host=T.host,E.port=T.port),E.scheme=T.scheme),E.fragment=x.fragment,E}function h(T,x,k){return typeof T=="string"?(T=unescape(T),T=f(a(b(T,k),!0),{...k,skipEscape:!0})):typeof T=="object"&&(T=f(a(T,!0),{...k,skipEscape:!0})),typeof x=="string"?(x=unescape(x),x=f(a(b(x,k),!0),{...k,skipEscape:!0})):typeof x=="object"&&(x=f(a(x,!0),{...k,skipEscape:!0})),T.toLowerCase()===x.toLowerCase()}function f(T,x){const k={host:T.host,scheme:T.scheme,userinfo:T.userinfo,port:T.port,path:T.path,query:T.query,nid:T.nid,nss:T.nss,uuid:T.uuid,fragment:T.fragment,reference:T.reference,resourceName:T.resourceName,secure:T.secure,error:""},C=Object.assign({},x),E=[],_=c(C.scheme||k.scheme);_&&_.serialize&&_.serialize(k,C),k.path!==void 0&&(C.skipEscape?k.path=unescape(k.path):(k.path=escape(k.path),k.scheme!==void 0&&(k.path=k.path.split("%3A").join(":")))),C.reference!=="suffix"&&k.scheme&&E.push(k.scheme,":");const D=o(k);if(D!==void 0&&(C.reference!=="suffix"&&E.push("//"),E.push(D),k.path&&k.path[0]!=="/"&&E.push("/")),k.path!==void 0){let R=k.path;!C.absolutePath&&(!_||!_.absolutePath)&&(R=e(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),E.push(R)}return k.query!==void 0&&E.push("?",k.query),k.fragment!==void 0&&E.push("#",k.fragment),E.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(T,x){const k=Object.assign({},x),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let E=!1;k.reference==="suffix"&&(k.scheme?T=k.scheme+":"+T:T="//"+T);const _=T.match(v);if(_){if(C.scheme=_[1],C.userinfo=_[3],C.host=_[4],C.port=parseInt(_[5],10),C.path=_[6]||"",C.query=_[7],C.fragment=_[8],isNaN(C.port)&&(C.port=_[5]),C.host)if(n(C.host)===!1){const O=t(C.host);C.host=O.host.toLowerCase(),E=O.isIPV6}else E=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==C.reference&&(C.error=C.error||"URI is not a "+k.reference+" reference.");const D=c(k.scheme||C.scheme);if(!k.unicodeSupport&&(!D||!D.unicodeSupport)&&C.host&&(k.domainHost||D&&D.domainHost)&&E===!1&&r(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(R){C.error=C.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(T.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=unescape(C.host))),C.path&&(C.path=escape(unescape(C.path))),C.fragment&&(C.fragment=encodeURI(decodeURIComponent(C.fragment)))),D&&D.parse&&D.parse(C,k)}else C.error=C.error||"URI can not be parsed.";return C}const S={SCHEMES:i,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:b};return Ku.exports=S,Ku.exports.default=S,Ku.exports.fastUri=S,Ku.exports}var uD;function QZ(){if(uD)return og;uD=1,Object.defineProperty(og,"__esModule",{value:!0});const t=ZZ();return t.code='require("ajv/dist/runtime/uri").default',og.default=t,og}var pD;function JZ(){return pD||(pD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=ab();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var o=yt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=$k(),n=nb(),r=tB(),i=Vk(),c=yt(),d=ob(),u=Yf(),m=Ft(),h=KZ,f=QZ(),v=(Q,M)=>new RegExp(Q,M);v.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],S=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),T={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},x={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function C(Q){var M,G,V,I,j,X,de,ue,Ee,qe,Z,ne,ve,ie,Te,Pe,it,ct,Ge,at,Ne,Oe,He,Y,ae;const le=Q.strict,Ce=(M=Q.code)===null||M===void 0?void 0:M.optimize,Ae=Ce===!0||Ce===void 0?1:Ce||0,Re=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Ie=(I=Q.uriResolver)!==null&&I!==void 0?I:f.default;return{strictSchema:(X=(j=Q.strictSchema)!==null&&j!==void 0?j:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Q.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(qe=(Ee=Q.strictTypes)!==null&&Ee!==void 0?Ee:le)!==null&&qe!==void 0?qe:"log",strictTuples:(ne=(Z=Q.strictTuples)!==null&&Z!==void 0?Z:le)!==null&&ne!==void 0?ne:"log",strictRequired:(ie=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:le)!==null&&ie!==void 0?ie:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:Re}:{optimize:Ae,regExp:Re},loopRequired:(Te=Q.loopRequired)!==null&&Te!==void 0?Te:k,loopEnum:(Pe=Q.loopEnum)!==null&&Pe!==void 0?Pe:k,meta:(it=Q.meta)!==null&&it!==void 0?it:!0,messages:(ct=Q.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(Ge=Q.inlineRefs)!==null&&Ge!==void 0?Ge:!0,schemaId:(at=Q.schemaId)!==null&&at!==void 0?at:"$id",addUsedSchema:(Ne=Q.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=Q.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(He=Q.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Y=Q.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(ae=Q.int32range)!==null&&ae!==void 0?ae:!0,uriResolver:Ie}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...C(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:S,es5:G,lines:V}),this.logger=z(M.logger);const I=M.validateFormats;M.validateFormats=!1,this.RULES=(0,r.getRules)(),_.call(this,T,M,"NOT SUPPORTED"),_.call(this,x,M,"DEPRECATED","warn"),this._metaOpts=U.call(this),M.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&L.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),R.call(this),M.validateFormats=I}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:G,schemaId:V}=this.opts;let I=h;V==="id"&&(I={...h},I.id=I.$id,delete I.$id),G&&M&&this.addMetaSchema(I,I[V],!1)}defaultMeta(){const{meta:M,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[G]||M:void 0}validate(M,G){let V;if(typeof M=="string"){if(V=this.getSchema(M),!V)throw new Error(`no schema with key or ref "${M}"`)}else V=this.compile(M);const I=V(G);return"$async"in V||(this.errors=V.errors),I}compile(M,G){const V=this._addSchema(M,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(M,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return I.call(this,M,G);async function I(qe,Z){await j.call(this,qe.$schema);const ne=this._addSchema(qe,Z);return ne.validate||X.call(this,ne)}async function j(qe){qe&&!this.getSchema(qe)&&await I.call(this,{$ref:qe},!0)}async function X(qe){try{return this._compileSchemaEnv(qe)}catch(Z){if(!(Z instanceof n.default))throw Z;return de.call(this,Z),await ue.call(this,Z.missingSchema),X.call(this,qe)}}function de({missingSchema:qe,missingRef:Z}){if(this.refs[qe])throw new Error(`AnySchema ${qe} is loaded but ${Z} cannot be resolved`)}async function ue(qe){const Z=await Ee.call(this,qe);this.refs[qe]||await j.call(this,Z.$schema),this.refs[qe]||this.addSchema(Z,qe,G)}async function Ee(qe){const Z=this._loading[qe];if(Z)return Z;try{return await(this._loading[qe]=V(qe))}finally{delete this._loading[qe]}}}addSchema(M,G,V,I=this.opts.validateSchema){if(Array.isArray(M)){for(const X of M)this.addSchema(X,void 0,V,I);return this}let j;if(typeof M=="object"){const{schemaId:X}=this.opts;if(j=M[X],j!==void 0&&typeof j!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||j),this._checkUnique(G),this.schemas[G]=this._addSchema(M,V,G,I,!0),this}addMetaSchema(M,G,V=this.opts.validateSchema){return this.addSchema(M,G,!0,V),this}validateSchema(M,G){if(typeof M=="boolean")return!0;let V;if(V=M.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const I=this.validate(V,M);if(!I&&G){const j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return I}getSchema(M){let G;for(;typeof(G=D.call(this,M))=="string";)M=G;if(G===void 0){const{schemaId:V}=this.opts,I=new i.SchemaEnv({schema:{},schemaId:V});if(G=i.resolveSchema.call(this,I,M),!G)return;this.refs[M]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=D.call(this,M);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const G=M;this._cache.delete(G);let V=M[this.opts.schemaId];return V&&(V=(0,d.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const G of M)this.addKeyword(G);return this}addKeyword(M,G){let V;if(typeof M=="string")V=M,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof M=="object"&&G===void 0){if(G=M,V=G.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,V,G),!G)return(0,m.eachItem)(V,j=>oe.call(this,j)),this;K.call(this,G);const I={...G,type:(0,u.getJSONTypes)(G.type),schemaType:(0,u.getJSONTypes)(G.schemaType)};return(0,m.eachItem)(V,I.type.length===0?j=>oe.call(this,j,I):j=>I.type.forEach(X=>oe.call(this,j,I,X))),this}getKeyword(M){const G=this.RULES.all[M];return typeof G=="object"?G.definition:!!G}removeKeyword(M){const{RULES:G}=this;delete G.keywords[M],delete G.all[M];for(const V of G.rules){const I=V.rules.findIndex(j=>j.keyword===M);I>=0&&V.rules.splice(I,1)}return this}addFormat(M,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[M]=G,this}errorsText(M=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!M||M.length===0?"No errors":M.map(I=>`${V}${I.instancePath} ${I.message}`).reduce((I,j)=>I+G+j)}$dataMetaSchema(M,G){const V=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const I of G){const j=I.split("/").slice(1);let X=M;for(const de of j)X=X[de];for(const de in V){const ue=V[de];if(typeof ue!="object")continue;const{$data:Ee}=ue.definition,qe=X[de];Ee&&qe&&(X[de]=se(qe))}}return M}_removeAllSchemas(M,G){for(const V in M){const I=M[V];(!G||G.test(V))&&(typeof I=="string"?delete M[V]:I&&!I.meta&&(this._cache.delete(I.schema),delete M[V]))}}_addSchema(M,G,V,I=this.opts.validateSchema,j=this.opts.addUsedSchema){let X;const{schemaId:de}=this.opts;if(typeof M=="object")X=M[de];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let ue=this._cache.get(M);if(ue!==void 0)return ue;V=(0,d.normalizeId)(X||V);const Ee=d.getSchemaRefs.call(this,M,V);return ue=new i.SchemaEnv({schema:M,schemaId:de,meta:G,baseId:V,localRefs:Ee}),this._cache.set(ue.schema,ue),j&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ue),I&&this.validateSchema(M,!0),ue}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):i.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const G=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,M)}finally{this.opts=G}}}E.ValidationError=a.default,E.MissingRefError=n.default,t.default=E;function _(Q,M,G,V="error"){for(const I in Q){const j=I;j in M&&this.logger[V](`${G}: option ${I}. ${Q[j]}`)}}function D(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function R(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const M in Q)this.addSchema(Q[M],M)}function O(){for(const Q in this.opts.formats){const M=this.opts.formats[Q];M&&this.addFormat(Q,M)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in Q){const G=Q[M];G.keyword||(G.keyword=M),this.addKeyword(G)}}function U(){const Q={...this.opts};for(const M of b)delete Q[M];return Q}const B={log(){},warn(){},error(){}};function z(Q){if(Q===!1)return B;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Q,M){const{RULES:G}=this;if((0,m.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!F.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function oe(Q,M,G){var V;const I=M?.post;if(G&&I)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let X=I?j.post:j.rules.find(({type:ue})=>ue===G);if(X||(X={type:G,rules:[]},j.rules.push(X)),j.keywords[Q]=!0,!M)return;const de={keyword:Q,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?H.call(this,X,de,M.before):X.rules.push(de),j.all[Q]=de,(V=M.implements)===null||V===void 0||V.forEach(ue=>this.addKeyword(ue))}function H(Q,M,G){const V=Q.rules.findIndex(I=>I.keyword===G);V>=0?Q.rules.splice(V,0,M):(Q.rules.push(M),this.logger.warn(`rule ${G} is not defined`))}function K(Q){let{metaSchema:M}=Q;M!==void 0&&(Q.$data&&this.opts.$data&&(M=se(M)),Q.validateSchema=this.compile(M,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(Q){return{anyOf:[Q,J]}}})(hw)),hw}var ag={},ng={},rg={},mD;function XZ(){if(mD)return rg;mD=1,Object.defineProperty(rg,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return rg.default=t,rg}var gi={},hD;function eQ(){if(hD)return gi;hD=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.callRef=gi.getValidate=void 0;const t=nb(),e=Dr(),o=yt(),a=Zi(),n=Vk(),r=Ft(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:v,schemaEnv:b,validateName:S,opts:T,self:x}=f,{root:k}=b;if((h==="#"||h==="#/")&&v===k.baseId)return E();const C=n.resolveRef.call(x,k,v,h);if(C===void 0)throw new t.default(f.opts.uriResolver,v,h);if(C instanceof n.SchemaEnv)return _(C);return D(C);function E(){if(b===k)return d(u,S,b,b.$async);const R=m.scopeValue("root",{ref:k});return d(u,(0,o._)`${R}.validate`,k,k.$async)}function _(R){const O=c(u,R);d(u,O,R,R.$async)}function D(R){const O=m.scopeValue("schema",T.code.source===!0?{ref:R,code:(0,o.stringify)(R)}:{ref:R}),L=m.name("valid"),U=u.subschema({schema:R,dataTypes:[],schemaPath:o.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated(U),u.ok(L)}}};function c(u,m){const{gen:h}=u;return m.validate?h.scopeValue("validate",{ref:m.validate}):(0,o._)`${h.scopeValue("wrapper",{ref:m})}.validate`}gi.getValidate=c;function d(u,m,h,f){const{gen:v,it:b}=u,{allErrors:S,schemaEnv:T,opts:x}=b,k=x.passContext?a.default.this:o.nil;f?C():E();function C(){if(!T.$async)throw new Error("async schema referenced by sync schema");const R=v.let("valid");v.try(()=>{v.code((0,o._)`await ${(0,e.callValidateCode)(u,m,k)}`),D(m),S||v.assign(R,!0)},O=>{v.if((0,o._)`!(${O} instanceof ${b.ValidationError})`,()=>v.throw(O)),_(O),S||v.assign(R,!1)}),u.ok(R)}function E(){u.result((0,e.callValidateCode)(u,m,k),()=>D(m),()=>_(m))}function _(R){const O=(0,o._)`${R}.errors`;v.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${O} : ${a.default.vErrors}.concat(${O})`),v.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function D(R){var O;if(!b.opts.unevaluated)return;const L=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(b.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(b.props=r.mergeEvaluated.props(v,L.props,b.props));else{const U=v.var("props",(0,o._)`${R}.evaluated.props`);b.props=r.mergeEvaluated.props(v,U,b.props,o.Name)}if(b.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(b.items=r.mergeEvaluated.items(v,L.items,b.items));else{const U=v.var("items",(0,o._)`${R}.evaluated.items`);b.items=r.mergeEvaluated.items(v,U,b.items,o.Name)}}}return gi.callRef=d,gi.default=i,gi}var gD;function tQ(){if(gD)return ng;gD=1,Object.defineProperty(ng,"__esModule",{value:!0});const t=XZ(),e=eQ(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return ng.default=o,ng}var sg={},ig={},fD;function oQ(){if(fD)return ig;fD=1,Object.defineProperty(ig,"__esModule",{value:!0});const t=yt(),e=t.operators,o={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},a={message:({keyword:r,schemaCode:i})=>(0,t.str)`must be ${o[r].okStr} ${i}`,params:({keyword:r,schemaCode:i})=>(0,t._)`{comparison: ${o[r].okStr}, limit: ${i}}`},n={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(r){const{keyword:i,data:c,schemaCode:d}=r;r.fail$data((0,t._)`${c} ${o[i].fail} ${d} || isNaN(${c})`)}};return ig.default=n,ig}var lg={},vD;function aQ(){if(vD)return lg;vD=1,Object.defineProperty(lg,"__esModule",{value:!0});const t=yt(),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,t._)`{multipleOf: ${a}}`},code(a){const{gen:n,data:r,schemaCode:i,it:c}=a,d=c.opts.multipleOfPrecision,u=n.let("res"),m=d?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${d}`:(0,t._)`${u} !== parseInt(${u})`;a.fail$data((0,t._)`(${i} === 0 || (${u} = ${r}/${i}, ${m}))`)}};return lg.default=o,lg}var cg={},dg={},bD;function nQ(){if(bD)return dg;bD=1,Object.defineProperty(dg,"__esModule",{value:!0});function t(e){const o=e.length;let a=0,n=0,r;for(;n<o;)a++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<o&&(r=e.charCodeAt(n),(r&64512)===56320&&n++);return a}return dg.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',dg}var yD;function rQ(){if(yD)return cg;yD=1,Object.defineProperty(cg,"__esModule",{value:!0});const t=yt(),e=Ft(),o=nQ(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const c=r==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${c} than ${i} characters`},params:({schemaCode:r})=>(0,t._)`{limit: ${r}}`},code(r){const{keyword:i,data:c,schemaCode:d,it:u}=r,m=i==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${c}.length`:(0,t._)`${(0,e.useFunc)(r.gen,o.default)}(${c})`;r.fail$data((0,t._)`${h} ${m} ${d}`)}};return cg.default=n,cg}var ug={},SD;function sQ(){if(SD)return ug;SD=1,Object.defineProperty(ug,"__esModule",{value:!0});const t=Dr(),e=Ft(),o=yt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,o.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,o._)`{pattern: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r,f=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=h.opts.code,b=v.code==="new RegExp"?(0,o._)`new RegExp`:(0,e.useFunc)(i,v),S=i.let("valid");i.try(()=>i.assign(S,(0,o._)`${b}(${m}, ${f}).test(${c})`),()=>i.assign(S,!1)),r.fail$data((0,o._)`!${S}`)}else{const v=(0,t.usePattern)(r,u);r.fail$data((0,o._)`!${v}.test(${c})`)}}};return ug.default=n,ug}var pg={},wD;function iQ(){if(wD)return pg;wD=1,Object.defineProperty(pg,"__esModule",{value:!0});const t=yt(),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:i}=a,c=n==="maxProperties"?t.operators.GT:t.operators.LT;a.fail$data((0,t._)`Object.keys(${r}).length ${c} ${i}`)}};return pg.default=o,pg}var mg={},xD;function lQ(){if(xD)return mg;xD=1,Object.defineProperty(mg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Ft(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,e.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,e._)`{missingProperty: ${r}}`},code(r){const{gen:i,schema:c,schemaCode:d,data:u,$data:m,it:h}=r,{opts:f}=h;if(!m&&c.length===0)return;const v=c.length>=f.loopRequired;if(h.allErrors?b():S(),f.strictRequired){const k=r.parentSchema.properties,{definedProperties:C}=r.it;for(const E of c)if(k?.[E]===void 0&&!C.has(E)){const _=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${E}" is not defined at "${_}" (strictRequired)`;(0,o.checkStrictMode)(h,D,h.opts.strictRequired)}}function b(){if(v||m)r.block$data(e.nil,T);else for(const k of c)(0,t.checkReportMissingProp)(r,k)}function S(){const k=i.let("missing");if(v||m){const C=i.let("valid",!0);r.block$data(C,()=>x(k,C)),r.ok(C)}else i.if((0,t.checkMissingProp)(r,c,k)),(0,t.reportMissingProp)(r,k),i.else()}function T(){i.forOf("prop",d,k=>{r.setParams({missingProperty:k}),i.if((0,t.noPropertyInData)(i,u,k,f.ownProperties),()=>r.error())})}function x(k,C){r.setParams({missingProperty:k}),i.forOf(k,d,()=>{i.assign(C,(0,t.propertyInData)(i,u,k,f.ownProperties)),i.if((0,e.not)(C),()=>{r.error(),i.break()})},e.nil)}}};return mg.default=n,mg}var hg={},TD;function cQ(){if(TD)return hg;TD=1,Object.defineProperty(hg,"__esModule",{value:!0});const t=yt(),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:i}=a,c=n==="maxItems"?t.operators.GT:t.operators.LT;a.fail$data((0,t._)`${r}.length ${c} ${i}`)}};return hg.default=o,hg}var gg={},fg={},kD;function Hk(){if(kD)return fg;kD=1,Object.defineProperty(fg,"__esModule",{value:!0});const t=aB();return t.code='require("ajv/dist/runtime/equal").default',fg.default=t,fg}var ED;function dQ(){if(ED)return gg;ED=1,Object.defineProperty(gg,"__esModule",{value:!0});const t=Yf(),e=yt(),o=Ft(),a=Hk(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:c}})=>(0,e.str)`must NOT have duplicate items (items ## ${c} and ${i} are identical)`,params:({params:{i,j:c}})=>(0,e._)`{i: ${i}, j: ${c}}`},code(i){const{gen:c,data:d,$data:u,schema:m,parentSchema:h,schemaCode:f,it:v}=i;if(!u&&!m)return;const b=c.let("valid"),S=h.items?(0,t.getSchemaTypes)(h.items):[];i.block$data(b,T,(0,e._)`${f} === false`),i.ok(b);function T(){const E=c.let("i",(0,e._)`${d}.length`),_=c.let("j");i.setParams({i:E,j:_}),c.assign(b,!0),c.if((0,e._)`${E} > 1`,()=>(x()?k:C)(E,_))}function x(){return S.length>0&&!S.some(E=>E==="object"||E==="array")}function k(E,_){const D=c.name("item"),R=(0,t.checkDataTypes)(S,D,v.opts.strictNumbers,t.DataType.Wrong),O=c.const("indices",(0,e._)`{}`);c.for((0,e._)`;${E}--;`,()=>{c.let(D,(0,e._)`${d}[${E}]`),c.if(R,(0,e._)`continue`),S.length>1&&c.if((0,e._)`typeof ${D} == "string"`,(0,e._)`${D} += "_"`),c.if((0,e._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(_,(0,e._)`${O}[${D}]`),i.error(),c.assign(b,!1).break()}).code((0,e._)`${O}[${D}] = ${E}`)})}function C(E,_){const D=(0,o.useFunc)(c,a.default),R=c.name("outer");c.label(R).for((0,e._)`;${E}--;`,()=>c.for((0,e._)`${_} = ${E}; ${_}--;`,()=>c.if((0,e._)`${D}(${d}[${E}], ${d}[${_}])`,()=>{i.error(),c.assign(b,!1).break(R)})))}}};return gg.default=r,gg}var vg={},CD;function uQ(){if(CD)return vg;CD=1,Object.defineProperty(vg,"__esModule",{value:!0});const t=yt(),e=Ft(),o=Hk(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,t._)`{allowedValue: ${r}}`},code(r){const{gen:i,data:c,$data:d,schemaCode:u,schema:m}=r;d||m&&typeof m=="object"?r.fail$data((0,t._)`!${(0,e.useFunc)(i,o.default)}(${c}, ${u})`):r.fail((0,t._)`${m} !== ${c}`)}};return vg.default=n,vg}var bg={},PD;function pQ(){if(PD)return bg;PD=1,Object.defineProperty(bg,"__esModule",{value:!0});const t=yt(),e=Ft(),o=Hk(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,t._)`{allowedValues: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r;if(!d&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let v;const b=()=>v??(v=(0,e.useFunc)(i,o.default));let S;if(f||d)S=i.let("valid"),r.block$data(S,T);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const k=i.const("vSchema",m);S=(0,t.or)(...u.map((C,E)=>x(k,E)))}r.pass(S);function T(){i.assign(S,!1),i.forOf("v",m,k=>i.if((0,t._)`${b()}(${c}, ${k})`,()=>i.assign(S,!0).break()))}function x(k,C){const E=u[C];return typeof E=="object"&&E!==null?(0,t._)`${b()}(${c}, ${k}[${C}])`:(0,t._)`${c} === ${E}`}}};return bg.default=n,bg}var _D;function mQ(){if(_D)return sg;_D=1,Object.defineProperty(sg,"__esModule",{value:!0});const t=oQ(),e=aQ(),o=rQ(),a=sQ(),n=iQ(),r=lQ(),i=cQ(),c=dQ(),d=uQ(),u=pQ(),m=[t.default,e.default,o.default,a.default,n.default,r.default,i.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,u.default];return sg.default=m,sg}var yg={},Uc={},AD;function rB(){if(AD)return Uc;AD=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.validateAdditionalItems=void 0;const t=yt(),e=Ft(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,t.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,t._)`{limit: ${r}}`},code(r){const{parentSchema:i,it:c}=r,{items:d}=i;if(!Array.isArray(d)){(0,e.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(r,d)}};function n(r,i){const{gen:c,schema:d,data:u,keyword:m,it:h}=r;h.items=!0;const f=c.const("len",(0,t._)`${u}.length`);if(d===!1)r.setParams({len:i.length}),r.pass((0,t._)`${f} <= ${i.length}`);else if(typeof d=="object"&&!(0,e.alwaysValidSchema)(h,d)){const b=c.var("valid",(0,t._)`${f} <= ${i.length}`);c.if((0,t.not)(b),()=>v(b)),r.ok(b)}function v(b){c.forRange("i",i.length,f,S=>{r.subschema({keyword:m,dataProp:S,dataPropType:e.Type.Num},b),h.allErrors||c.if((0,t.not)(b),()=>c.break())})}}return Uc.validateAdditionalItems=n,Uc.default=a,Uc}var Sg={},$c={},RD;function sB(){if(RD)return $c;RD=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.validateTuple=void 0;const t=yt(),e=Ft(),o=Dr(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:i,it:c}=r;if(Array.isArray(i))return n(r,"additionalItems",i);c.items=!0,!(0,e.alwaysValidSchema)(c,i)&&r.ok((0,o.validateArray)(r))}};function n(r,i,c=r.schema){const{gen:d,parentSchema:u,data:m,keyword:h,it:f}=r;S(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(d,c.length,f.items));const v=d.name("valid"),b=d.const("len",(0,t._)`${m}.length`);c.forEach((T,x)=>{(0,e.alwaysValidSchema)(f,T)||(d.if((0,t._)`${b} > ${x}`,()=>r.subschema({keyword:h,schemaProp:x,dataProp:x},v)),r.ok(v))});function S(T){const{opts:x,errSchemaPath:k}=f,C=c.length,E=C===T.minItems&&(C===T.maxItems||T[i]===!1);if(x.strictTuples&&!E){const _=`"${h}" is ${C}-tuple, but minItems or maxItems/${i} are not specified or different at path "${k}"`;(0,e.checkStrictMode)(f,_,x.strictTuples)}}}return $c.validateTuple=n,$c.default=a,$c}var DD;function hQ(){if(DD)return Sg;DD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const t=sB(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,t.validateTuple)(o,"items")};return Sg.default=e,Sg}var wg={},OD;function gQ(){if(OD)return wg;OD=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=yt(),e=Ft(),o=Dr(),a=rB(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{schema:c,parentSchema:d,it:u}=i,{prefixItems:m}=d;u.items=!0,!(0,e.alwaysValidSchema)(u,c)&&(m?(0,a.validateAdditionalItems)(i,m):i.ok((0,o.validateArray)(i)))}};return wg.default=r,wg}var xg={},ND;function fQ(){if(ND)return xg;ND=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:r}})=>r===void 0?(0,t.str)`must contain at least ${n} valid item(s)`:(0,t.str)`must contain at least ${n} and no more than ${r} valid item(s)`,params:({params:{min:n,max:r}})=>r===void 0?(0,t._)`{minContains: ${n}}`:(0,t._)`{minContains: ${n}, maxContains: ${r}}`},code(n){const{gen:r,schema:i,parentSchema:c,data:d,it:u}=n;let m,h;const{minContains:f,maxContains:v}=c;u.opts.next?(m=f===void 0?1:f,h=v):m=1;const b=r.const("len",(0,t._)`${d}.length`);if(n.setParams({min:m,max:h}),h===void 0&&m===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&m>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,e.alwaysValidSchema)(u,i)){let C=(0,t._)`${b} >= ${m}`;h!==void 0&&(C=(0,t._)`${C} && ${b} <= ${h}`),n.pass(C);return}u.items=!0;const S=r.name("valid");h===void 0&&m===1?x(S,()=>r.if(S,()=>r.break())):m===0?(r.let(S,!0),h!==void 0&&r.if((0,t._)`${d}.length > 0`,T)):(r.let(S,!1),T()),n.result(S,()=>n.reset());function T(){const C=r.name("_valid"),E=r.let("count",0);x(C,()=>r.if(C,()=>k(E)))}function x(C,E){r.forRange("i",0,b,_=>{n.subschema({keyword:"contains",dataProp:_,dataPropType:e.Type.Num,compositeRule:!0},C),E()})}function k(C){r.code((0,t._)`${C}++`),h===void 0?r.if((0,t._)`${C} >= ${m}`,()=>r.assign(S,!0).break()):(r.if((0,t._)`${C} > ${h}`,()=>r.assign(S,!1).break()),m===1?r.assign(S,!0):r.if((0,t._)`${C} >= ${m}`,()=>r.assign(S,!0)))}}};return xg.default=a,xg}var Tw={},MD;function vQ(){return MD||(MD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=yt(),o=Ft(),a=Dr();t.error={message:({params:{property:d,depsCount:u,deps:m}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:u,deps:m,missingProperty:h}})=>(0,e._)`{property: ${d},
|
|
53
53
|
missingProperty: ${h},
|
|
54
54
|
depsCount: ${u},
|
|
55
|
-
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const b in u){const S=u[b];if(S.length===0)continue;const T=(0,a.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,depsCount:S.length,deps:S.join(", ")}),f.allErrors?m.if(T,()=>{for(const x of S)(0,a.checkReportMissingProp)(d,x)}):(m.if((0,e._)`${T} && (${(0,a.checkMissingProp)(d,S,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}t.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,b=m.name("valid");for(const S in u)(0,o.alwaysValidSchema)(v,u[S])||(m.if((0,a.propertyInData)(m,h,S,v.opts.ownProperties),()=>{const T=d.subschema({keyword:f,schemaProp:S},b);d.mergeValidEvaluated(T,b)},()=>m.var(b,!0)),d.ok(b))}t.validateSchemaDeps=c,t.default=n})(Tw)),Tw}var Tg={},ID;function bQ(){if(ID)return Tg;ID=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Tg.default=a,Tg}var kg={},LD;function iB(){if(LD)return kg;LD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Zi(),a=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,e._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const S=(0,t.allSchemaProperties)(u.properties),T=(0,t.allSchemaProperties)(u.patternProperties);x(),i.ok((0,e._)`${h} === ${o.default.errors}`);function x(){c.forIn("key",m,D=>{!S.length&&!T.length?E(D):c.if(k(D),()=>E(D))})}function k(D){let R;if(S.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else S.length?R=(0,e.or)(...S.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return T.length&&(R=(0,e.or)(R,...T.map(O=>(0,e._)`${(0,t.usePattern)(i,O)}.test(${D})`))),(0,e.not)(R)}function C(D){c.code((0,e._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");b.removeAdditional==="failing"?(_(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),C(D)})):(_(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return kg.default=r,kg}var Eg={},BD;function yQ(){if(BD)return Eg;BD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=ab(),e=Dr(),o=Ft(),a=iB(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new t.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const T of h)m.definedProperties.add(T);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(i,(0,o.toHash)(h),m.props));const f=h.filter(T=>!(0,o.alwaysValidSchema)(m,c[T]));if(f.length===0)return;const v=i.name("valid");for(const T of f)b(T)?S(T):(i.if((0,e.propertyInData)(i,u,T,m.opts.ownProperties)),S(T),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(T),r.ok(v);function b(T){return m.opts.useDefaults&&!m.compositeRule&&c[T].default!==void 0}function S(T){r.subschema({keyword:"properties",schemaProp:T,dataProp:T},v)}}};return Eg.default=n,Eg}var Cg={},FD;function SQ(){if(FD)return Cg;FD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Ft(),a=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),v=f.filter(E=>(0,o.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=h.strictSchema&&!h.allowMatchingProperties&&u.properties,S=i.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,a.evaluatedPropsToName)(i,m.props));const{props:T}=m;x();function x(){for(const E of f)b&&k(E),m.allErrors?C(E):(i.var(S,!0),C(E),i.if(S))}function k(E){for(const _ in b)new RegExp(E).test(_)&&(0,o.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,_=>{i.if((0,e._)`${(0,t.usePattern)(r,E)}.test(${_})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:a.Type.Str},S),m.opts.unevaluated&&T!==!0?i.assign((0,e._)`${T}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,e.not)(S),()=>i.break())})})}}};return Cg.default=n,Cg}var Pg={},jD;function wQ(){if(jD)return Pg;jD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,t.alwaysValidSchema)(r,n)){o.fail();return}const i=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return Pg.default=e,Pg}var _g={},zD;function xQ(){if(zD)return _g;zD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return _g.default=e,_g}var Ag={},qD;function TQ(){if(qD)return Ag;qD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((b,S)=>{let T;(0,e.alwaysValidSchema)(d,b)?r.var(f,!0):T=n.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},f),S>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${S}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,S),T&&n.mergeEvaluated(T,t.Name)})})}}};return Ag.default=a,Ag}var Rg={},UD;function kQ(){if(UD)return Rg;UD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Ft(),e={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=a.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},i);o.ok(i),o.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},$D;function EQ(){if($D)return Dg;$D=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(v(),r.reset(),u&&m){const S=i.let("ifClause");r.setParams({ifClause:S}),i.if(f,b("then",S),b("else",S))}else u?i.if(f,b("then")):i.if((0,t.not)(f),b("else"));r.pass(h,()=>r.error(!0));function v(){const S=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(S)}function b(S,T){return()=>{const x=r.subschema({keyword:S},f);i.assign(h,f),r.mergeValidEvaluated(x,h),T?i.assign(T,(0,t._)`${S}`):r.setParams({ifClause:S})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=a,Dg}var Og={},VD;function CQ(){if(VD)return Og;VD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Ft(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,t.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Og.default=e,Og}var HD;function PQ(){if(HD)return yg;HD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=rB(),e=hQ(),o=sB(),a=gQ(),n=fQ(),r=vQ(),i=bQ(),c=iB(),d=yQ(),u=SQ(),m=wQ(),h=xQ(),f=TQ(),v=kQ(),b=EQ(),S=CQ();function T(x=!1){const k=[m.default,h.default,f.default,v.default,b.default,S.default,i.default,c.default,r.default,d.default,u.default];return x?k.push(e.default,a.default):k.push(t.default,o.default),k.push(n.default),k}return yg.default=T,yg}var Ng={},Mg={},GD;function _Q(){if(GD)return Mg;GD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const t=yt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,t._)`{format: ${a}}`},code(a,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:b}=m;if(!h.validateFormats)return;c?S():T();function S(){const x=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${x}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,t._)`${k}.type || "string"`).assign(E,(0,t._)`${k}.validate`),()=>r.assign(C,(0,t._)`"string"`).assign(E,k)),a.fail$data((0,t.or)(_(),D()));function _(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,t._)`${E}(${i})`,O=(0,t._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,t._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function T(){const x=b.formats[d];if(!x){_();return}if(x===!0)return;const[k,C,E]=D(x);k===n&&a.pass(R());function _(){if(h.strictSchema===!1){b.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${U}.validate`]:["string",O,U]}function R(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${E}(${i})`}return typeof C=="function"?(0,t._)`${E}(${i})`:(0,t._)`${E}.test(${i})`}}}};return Mg.default=o,Mg}var WD;function AQ(){if(WD)return Ng;WD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=[_Q().default];return Ng.default=e,Ng}var Sl={},KD;function RQ(){return KD||(KD=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.contentVocabulary=Sl.metadataVocabulary=void 0,Sl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Sl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Sl}var YD;function DQ(){if(YD)return ag;YD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=tQ(),e=mQ(),o=PQ(),a=AQ(),n=RQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return ag.default=r,ag}var Ig={},Yu={},ZD;function OQ(){if(ZD)return Yu;ZD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var QD;function NQ(){if(QD)return Ig;QD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=yt(),e=OQ(),o=Vk(),a=nb(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),T=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(b)}`);d.if((0,t._)`typeof ${T} == "string"`,()=>x(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:T,tagName:b})),c.ok(S);function x(){const E=C();d.if(!1);for(const _ in E)d.elseIf((0,t._)`${T} === ${_}`),d.assign(S,k(E[_]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:T,tagName:b}),d.endIf()}function k(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,t.Name),_}function C(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(E=z?.properties)===null||E===void 0?void 0:E[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${b}" values must be unique strings`);_[B]=z}}}};return Ig.default=i,Ig}const MQ="http://json-schema.org/draft-07/schema#",IQ="http://json-schema.org/draft-07/schema#",LQ="Core schema meta-schema",BQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},FQ=["object","boolean"],jQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},zQ={$schema:MQ,$id:IQ,title:LQ,definitions:BQ,type:FQ,properties:jQ,default:!0};var JD;function qQ(){return JD||(JD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const o=JZ(),a=DQ(),n=NQ(),r=zQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=ab();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=$k();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=nb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},kw={},XD;function UQ(){return XD||(XD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,i),time:e(d(!0),u),"date-time":e(f(!0),v),"iso-time":e(d(),m),"iso-date-time":e(f(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:x,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:U,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:C,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,b),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=oe-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function b(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=i(F,oe);if(K!==void 0)return K||u(W,H)}const S=/\/|:/,T=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function x(B){return S.test(B)&&T.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function C(B){return k.lastIndex=0,k.test(B)}const E=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(kw)),kw}var Ew={},eO;function $Q(){return eO||(eO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=qQ(),o=yt(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:b}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,b.RULES.all.format.definition,"format");S.$data?T():x();function T(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${C}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,k(E)))}function x(){const C=S.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const _=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(C)}`:void 0});c.fail$data(k(_))}function k(C){return(0,o._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(Ew)),Ew}var tO;function VQ(){return tO||(tO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=UQ(),a=$Q(),n=yt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,i]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const S of m)u.addFormat(S,h[S])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var HQ=VQ();const oTe=Gl(HQ);function GQ({studioUrl:t,meshUrl:e},o){return t??e??o}let Gk;Gk=globalThis.crypto;async function WQ(t){return(await Gk).getRandomValues(new Uint8Array(t))}async function KQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await WQ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function YQ(t){return await KQ(t)}async function ZQ(t){const e=await(await Gk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function aTe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await YQ(t),o=await ZQ(e);return{code_verifier:e,code_challenge:o}}const Ca=hL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:ZW.custom,message:"URL must be parseable",fatal:!0}),o7}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),nTe=Pa({resource:$().url(),authorization_servers:je(Ca).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),QQ=Pa({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,registration_endpoint:Ca.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Ca.optional(),revocation_endpoint:Ca.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),JQ=Pa({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,userinfo_endpoint:Ca.optional(),jwks_uri:Ca,registration_endpoint:Ca.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Ca.optional(),op_tos_uri:Ca.optional(),client_id_metadata_document_supported:Vt().optional()}),rTe=we({...JQ.shape,...QQ.pick({code_challenge_methods_supported:!0}).shape}),sTe=we({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:xL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),iTe=we({error:$(),error_description:$().optional(),error_uri:$().optional()}),oO=Ca.optional().or(Qe("").transform(()=>{})),XQ=we({redirect_uris:je(Ca),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Ca.optional(),logo_uri:oO,scope:$().optional(),contacts:je($()).optional(),tos_uri:oO,policy_uri:$().optional(),jwks_uri:Ca.optional(),jwks:xW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),eJ=we({client_id:$(),client_secret:$().optional(),client_id_issued_at:Mt().optional(),client_secret_expires_at:Mt().optional()}).strip(),lTe=XQ.merge(eJ);we({error:$(),error_description:$().optional()}).strip();we({token:$(),token_type_hint:$().optional()}).strip();class Oa extends Error{constructor(e,o){super(e),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class mT extends Oa{}mT.errorCode="invalid_request";class hT extends Oa{}hT.errorCode="invalid_client";class gT extends Oa{}gT.errorCode="invalid_grant";class fT extends Oa{}fT.errorCode="unauthorized_client";class vT extends Oa{}vT.errorCode="unsupported_grant_type";class bT extends Oa{}bT.errorCode="invalid_scope";class yT extends Oa{}yT.errorCode="access_denied";class ST extends Oa{}ST.errorCode="server_error";class wT extends Oa{}wT.errorCode="temporarily_unavailable";class xT extends Oa{}xT.errorCode="unsupported_response_type";class TT extends Oa{}TT.errorCode="unsupported_token_type";class kT extends Oa{}kT.errorCode="invalid_token";class ET extends Oa{}ET.errorCode="method_not_allowed";class CT extends Oa{}CT.errorCode="too_many_requests";class PT extends Oa{}PT.errorCode="invalid_client_metadata";class _T extends Oa{}_T.errorCode="insufficient_scope";class AT extends Oa{}AT.errorCode="invalid_target";const cTe={[mT.errorCode]:mT,[hT.errorCode]:hT,[gT.errorCode]:gT,[fT.errorCode]:fT,[vT.errorCode]:vT,[bT.errorCode]:bT,[yT.errorCode]:yT,[ST.errorCode]:ST,[wT.errorCode]:wT,[xT.errorCode]:xT,[TT.errorCode]:TT,[kT.errorCode]:kT,[ET.errorCode]:ET,[CT.errorCode]:CT,[PT.errorCode]:PT,[_T.errorCode]:_T,[AT.errorCode]:AT};async function lB(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof eb&&o.code===qp.MethodNotFound)return{resources:[]};throw o}}async function tJ(t,e){return await t.readResource({uri:e})}function dTe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Wi(c)}function uTe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Gi(c)}function pTe(t){const e=ye.c(15);let o,a,n;e[0]!==t?({client:o,uri:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=ca.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==o||e[8]!==n?(i=()=>tJ(o,n),e[7]=o,e[8]=n,e[9]=i):i=e[9];const c=a.staleTime??3e4;let d;return e[10]!==a||e[11]!==r||e[12]!==i||e[13]!==c?(d={...a,queryKey:r,queryFn:i,staleTime:c,retry:!1},e[10]=a,e[11]=r,e[12]=i,e[13]=c,e[14]=d):d=e[14],Wi(d)}const cB="ui-resource-html";function mTe(t){const e=ye.c(22);let o,a,n,r,i,c;e[0]!==t?({orgSlug:n,connectionId:o,uri:c,studioUrl:i,meshUrl:a,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i,e[6]=c):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5],c=e[6]);let d;e[7]!==o||e[8]!==n||e[9]!==c?(d=ca.mcpUiResourceHtml(n,o,c),e[7]=o,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==n||e[14]!==i||e[15]!==c?(u=async()=>{const v=`${GQ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.text()},e[11]=o,e[12]=a,e[13]=n,e[14]=i,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Wi(h)}const dB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Zf extends Error{constructor(e,o,a,n){super(e),this.status=o,this.code=a,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function uB(t){return t instanceof Zf&&Object.values(dB).includes(t.code??"")?t.code:null}const oJ=6e4;function aJ(t){return!(t instanceof Zf)||t.status!==429?null:t.retryAfterMs??oJ}function nJ(t,e){if(typeof e=="object"&&e!==null&&"retryAfterMs"in e&&typeof e.retryAfterMs=="number"&&Number.isFinite(e.retryAfterMs))return Math.max(0,e.retryAfterMs);const o=t.headers.get("retry-after"),a=o?Number(o):Number.NaN;return Number.isFinite(a)?Math.max(0,a*1e3):void 0}async function rJ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r,i=null;try{i=await a.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Zf(n,a.status,r,a.status===429?nJ(a,i):void 0)}try{return await a.json()}catch{throw new Zf(`${e} returned a non-JSON response`,a.status)}}function Wk(){const t=ye.c(5),{org:e}=Yi(),o=e.slug;let a;t[0]!==o?(a=(r,i)=>rJ(o,r,i),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==o||t[3]!==a?(n={orgSlug:o,call:a},t[2]=o,t[3]=a,t[4]=n):n=t[4],n}function sJ(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const iJ="studio-ui-resources",Qf="html",lJ=10080*60*1e3,cJ=50,dJ=16*1024*1024;function uJ(t){return t[0]==="mcp"&&t[1]===cB}function rb(){return new Promise((t,e)=>{const o=indexedDB.open(iJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Qf)||o.result.createObjectStore(Qf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Ld(t,e){return t.transaction(Qf,e).objectStore(Qf)}function RT(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function pJ(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=Ld(e,"readonly"),a=await RT(o.getAllKeys()),n=await RT(o.getAll()),r=Date.now(),i=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>lJ||d>=cJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function mJ(t){if(typeof indexedDB>"u")return()=>{};const e=rb().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!uJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>dJ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function hJ(){typeof indexedDB>"u"||rb().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function hTe(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=await RT(Ld(e,"readonly").getAllKeys()),a=Ld(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===cB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const Jf="studio:rq-cache",Kk=1440*60*1e3,gJ=1e3,fJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),vJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let pB=!1,mB=!1;function bJ(t){const e=t[0];return typeof e=="string"&&fJ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&vJ.has(t[4])}function yJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Jf);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Kk;if(o.buster!=="4.581.1"||a||!o.state){window.localStorage.removeItem(Jf);return}NV(t,o.state),t.invalidateQueries({queryKey:ca.publicConfig(),refetchType:"none"}),pB=!0}catch{EJ()}}function SJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=OV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&bJ(i.queryKey)});window.localStorage.setItem(Jf,JSON.stringify({buster:"4.581.1",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,gJ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const hB="studio:org-cache:",wJ=20;function xJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Kk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>wJ;)o.shift();return Object.fromEntries(o)}function gB(t){return`${hB}${t}`}function TJ(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(gB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Kk?null:(mB=!0,a)}catch{return null}}function kJ(t,e,o){if(!(typeof window>"u"))try{const a=gB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(xJ(r)))}catch{}}function EJ(){if(hJ(),!(typeof window>"u"))try{window.localStorage.removeItem(Jf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(hB)&&window.localStorage.removeItem(e)}}catch{}}function CJ(){return pB}function PJ(){return mB}function aO(t){const e=uB(t);if(!e)return;const o=e===dB.aiBudgetExhausted?Xf.budget||"This organization's AI allowance is used up.":Xf.feature||"This organization's plan does not include that.";Id.error(o,{id:`plan-refusal:${e}`})}const Xf={feature:"",budget:""},Yl=new VV({queryCache:new iI({onError:aO}),mutationCache:new sI({onError:aO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>uB(e)===null&&aJ(e)===null&&t<1,gcTime:300*1e3}}});sJ(Yl);yJ(Yl);SJ(Yl);pJ(Yl);mJ(Yl);const Yk=5*6e4;async function fB(){return(await(await fetch("/api/config")).json()).config}function vB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0];const{data:o}=Wi(e);return o}function gTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0],Gi(e).data}const bB=A.createContext(void 0);function _J(t){const e=ye.c(3),{children:o}=t,a=vB();let n;return e[0]!==o||e[1]!==a.auth?(n=y.jsx(bB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function fTe(){const t=A.useContext(bB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var AJ={},nO={};const bf=Object.create(null),Zu=t=>AJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,o){const a=Zu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Zu(!0);return delete o[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Zo(t,e){return typeof process<"u"&&nO?nO[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,ma=4,Hr=8,Nn=24,rO={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Nn,putty:ma,st:ma,"rxvt-unicode-24bit":Nn,terminator:Nn,"xterm-kitty":Nn},RJ=new Map(Object.entries({APPVEYOR:Hr,BUILDKITE:Hr,CIRCLECI:Nn,DRONE:Hr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Hr,TRAVIS:Hr})),DJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function OJ(){if(Zo("FORCE_COLOR")!==void 0)switch(Zo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Hr;case"3":return Nn;default:return Qu}if(Zo("NODE_DISABLE_COLORS")!==void 0&&Zo("NODE_DISABLE_COLORS")!==""||Zo("NO_COLOR")!==void 0&&Zo("NO_COLOR")!==""||Zo("TERM")==="dumb")return Qu;if(Zo("TMUX"))return Nn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return ma;if("CI"in Xn){for(const{0:t,1:e}of RJ)if(t in Xn)return e;return Zo("CI_NAME")==="codeship"?Hr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Zo("TEAMCITY_VERSION"))!==null?ma:Qu;switch(Zo("TERM_PROGRAM")){case"iTerm.app":return!Zo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Zo("TERM_PROGRAM_VERSION"))!==null?Hr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Hr}if(Zo("COLORTERM")==="truecolor"||Zo("COLORTERM")==="24bit")return Nn;if(Zo("TERM")){if(/truecolor/.exec(Zo("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Zo("TERM"))!==null)return Hr;const t=Zo("TERM").toLowerCase();if(rO[t])return rO[t];if(DJ.some(e=>e.exec(t)!==null))return ma}return Zo("COLORTERM")?ma:Qu}const Gr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},DT=["debug","info","success","warn","error"];function NJ(t,e){return DT.indexOf(e)>=DT.indexOf(t)}const MJ={info:Gr.fg.blue,success:Gr.fg.green,warn:Gr.fg.yellow,error:Gr.fg.red,debug:Gr.fg.magenta},IJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Gr.dim}${a}${Gr.reset} ${MJ[t]}${t.toUpperCase()}${Gr.reset} ${Gr.bright}[Better Auth]:${Gr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},LJ=t=>{const e="warn",o=OJ()!==1,a=(n,r,i=[])=>{if(!NJ(e,n))return;const c=IJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(DT.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return e}}};LJ();function BJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function FJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function jJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new kp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof kp?e:new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function Cw(t,e="/api/auth"){if(jJ(t),FJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function zJ(t,e,o,a,n){if(t)return Cw(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return Cw(r,e)}if(typeof window<"u"&&window.location)return Cw(window.location.origin,e)}const qJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},UJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},$J=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,sO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},VJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function HJ(t){return t instanceof Date&&!isNaN(t.getTime())}function GJ(t){const e=VJ.exec(t);if(!e)return null;const[,o,a,n,r,i,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return HJ(f)?f:null}function WJ(t,e={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const i=t.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in sO)return sO[c];if(!$J.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(UJ).some(([d,u])=>{const m=u.test(i);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=GJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function KJ(t,e={strict:!0}){return WJ(t,e)}let fr=[],fi=0;const Bg=4,YJ=globalThis.nanostoresGlobal||={epoch:0},md=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=fi+Bg;r<fr.length;)fr[r]===a?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){YJ.epoch++;let r=!fr.length;for(let i of e)fr.push(i,o.value,a,n);if(r){for(fi=0;fi<fr.length;fi+=Bg)fr[fi](fr[fi+1],fr[fi+2],fr[fi+3]);fr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:t};return o},ZJ=5,Fg=6,jg=10;let QJ=(t,e,o,a)=>(t.events=t.events||{},t.events[o+jg]||(t.events[o+jg]=a(n=>{t.events[o].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),t.events[o]=t.events[o]||[],t.events[o].push(e),()=>{let n=t.events[o],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[o],t.events[o+jg](),delete t.events[o+jg])});const JJ=1e3;let yB=(t,e)=>QJ(t,a=>{let n=e(a);n&&t.events[Fg].push(n)},ZJ,a=>{let n=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,a()),n(...i));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[Fg])i();t.events[Fg]=[]}},JJ)},()=>{t.listen=n,t.off=r}});function XJ(t,e,o){let a=new Set(e).add(void 0);return t.listen((n,r,i)=>{a.has(i)&&o(n,r,i)})}const eX=()=>typeof window>"u",mp=(t,e,o,a)=>{const n=md({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{eX()||(i?await r():yB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},Pw=Symbol.for("better-auth:broadcast-channel"),tX=()=>Math.floor(Date.now()/1e3);var oX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:tX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const o=JSON.parse(e.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function _w(t="better-auth.message"){return globalThis[Pw]||(globalThis[Pw]=new oX(t)),globalThis[Pw]}const Aw=Symbol.for("better-auth:focus-manager");var aX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function iO(){return globalThis[Aw]||(globalThis[Aw]=new aX),globalThis[Aw]}const Rw=Symbol.for("better-auth:online-manager");var nX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function Dw(){return globalThis[Rw]||(globalThis[Rw]=new nX),globalThis[Rw]}const Vc=()=>Math.floor(Date.now()/1e3),rX=5;function sX(t){const{sessionAtom:e,sessionSignal:o,$fetch:a,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||Dw().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Vc(),o.set(!o.get());return}const C=e.get();if(k?.event==="poll"){d.lastSessionRequest=Vc(),a("/get-session").then(E=>{E.error?e.set({...C,data:null,error:E.error}):e.set({...C,data:E.data,error:null}),d.lastSync=Vc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Vc()-d.lastSessionRequest<rX)return;d.lastSessionRequest=Vc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Vc(),o.set(!o.get()))},h=k=>{_w().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=_w().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=iO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=Dw().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),S(),_w().setup(),iO().setup(),Dw().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function iX(t,e){const o=md(!1),a=mp(o,"/get-session",t,{method:"GET"});return yB(a,()=>{const n=sX({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function Ow(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function OT(t,e,o=".",a){if(!Ow(e))return OT(t,{},o,a);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const i=t[r];i!=null&&(a&&a(n,r,i,o)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:Ow(i)&&Ow(n[r])?n[r]=OT(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function lX(t){return(...e)=>e.reduce((o,a)=>OT(o,a,"",t),{})}const cX=lX();var dX=Object.defineProperty,uX=Object.defineProperties,pX=Object.getOwnPropertyDescriptors,lO=Object.getOwnPropertySymbols,mX=Object.prototype.hasOwnProperty,hX=Object.prototype.propertyIsEnumerable,cO=(t,e,o)=>e in t?dX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))mX.call(e,o)&&cO(t,o,e[o]);if(lO)for(var o of lO(e))hX.call(e,o)&&cO(t,o,e[o]);return t},Ur=(t,e)=>uX(t,pX(e)),gX=class extends Error{constructor(t,e,o){super(e||t.toString(),{cause:o}),this.status=t,this.statusText=e,this.error=o,Error.captureStackTrace(this,this.constructor)}},fX=async(t,e)=>{var o,a,n,r,i,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},dO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},vX=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function bX(t){if(typeof t=="number")return new dO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new dO(t);case"exponential":return new vX(t);default:throw new Error("Invalid retry strategy")}}var yX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},SX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function wX(t){const e=t.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const a=e.split(";").shift()||"";return SX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function xX(t){try{return JSON.parse(t),!0}catch{return!1}}function NT(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function uO(t){try{return JSON.parse(t)}catch{return t}}function pO(t){return typeof t=="function"}function TX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&pO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&pO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function kX(t){const e=new Headers(t?.headers),o=await yX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=EX(t?.body);a&&e.set("content-type",a)}return e}function EX(t){return NT(t)?"application/json":null}function CX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(NT(t.body)&&!e.has("content-type")){for(const[o,a]of Object.entries(t?.body))a instanceof Date&&(t.body[o]=a.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&NT(t.body)?new URLSearchParams(t.body).toString():t.body}function PX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return wB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function _X(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var AX=class SB extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,SB.prototype)}};async function yf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new AX(o.issues);return o.value}var wB=["get","post","put","patch","delete"],RX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,o){var a,n,r,i;const c=((n=(a=t.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=Ur(Sr({},m),{body:u.input?await yf(u.input,o?.body):o?.body,params:u.params?await yf(u.params,o?.params):o?.params,query:u.query?await yf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),DX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],RX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await MT(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await MT(o,n)}return e};function OX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];wB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const b of f)d.append(h,b);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const b=a[f];i=i.replace(v,b)}}else for(const[h,f]of Object.entries(a))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var MT=async(t,e)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await fX(t,e),v=TX(f),b=new AbortController,S=(o=f.signal)!=null?o:b.signal,T=OX(h,f),x=CX(f),k=await kX(f),C=PX(h,f);let E=Ur(Sr({},f),{url:T,headers:k,body:x,method:C,signal:S});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=_X(f,b);let D=await v(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F(Ur(Sr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=wX(D),oe={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:uO;oe.data=await K(H)}else oe.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(oe.data=await yf(E.output,oe.data));for(const H of m.onSuccess)H&&await H(Ur(Sr({},oe),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return e?.throw?oe.data:{data:oe.data,error:null}}const O=(c=e?.jsonParser)!=null?c:uO,L=await D.text(),U=xX(L),B=U?await O(L):null,z={response:D,responseText:L,request:E,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=bX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await MT(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new gX(D.status,D.statusText,U?B:L);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const NX=(t,e)=>{const o="credentials"in Request.prototype,a=zJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=DX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?KJ(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[qJ],...n]}),{$sessionSignal:f,session:v}=iX(h,t),b=t?.plugins||[];let S={};const T={$sessionSignal:f,session:v},x={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of b)E.getAtoms&&Object.assign(T,E.getAtoms?.(h)),E.pathMethods&&Object.assign(x,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{T[E].set(!T[E].get())},listen:(E,_)=>{T[E].subscribe(_)},atoms:T};for(const E of b)E.getActions&&(S=cX(E.getActions?.(h,C,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:T,pluginPathMethods:x,atomListeners:k,$fetch:h,$store:C}};function MX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function IX(t,e,o){const a=e[t],{fetchOptions:n,query:r,...i}=o||{};return a||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function LX(t,e,o,a,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||MX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...S}=h,T={...f,...b},x=IX(m,o,h);return await e(m,{...T,body:x==="GET"?void 0:{...S,...T?.body||{}},query:v||T?.query,method:x,async onSuccess(k){if(await T?.onSuccess?.(k),!n||T.disableSignal)return;const C=n.filter(_=>_.matcher(m));if(!C.length)return;const E=new Set;for(const _ of C){const D=a[_.signal];if(!D)return;if(E.has(_.signal))continue;E.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function BX(t,e={}){const o=A.useRef(t.get()),{keys:a,deps:n=[t,a]}=e,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(t.value),a?.length?XJ(t,a,d):t.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function FX(t){return`use${BJ(t)}`}function jX(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=NX(t),c={};for(const[d,u]of Object.entries(a))c[FX(d)]=()=>BX(u);return LX({...o,...c,$fetch:n,$store:r},n,e,a,i)}function zX(t){return{authorize(e,o="AND"){let a=!1;for(const[n,r]of Object.entries(e)){const i=t[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>i.includes(d)):a=c.actions.every(d=>i.includes(d))}else throw new kp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:t}}function xB(t){return{newRole(e){return zX(e)},statements:t}}const qX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},TB=xB(qX),kB=TB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),EB=TB.newRole({user:[],session:[]}),UX={admin:kB,user:EB},$X=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),o=t.options?.roles||UX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},VX=t=>{const e={admin:kB,user:EB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>$X({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},HX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),GX=()=>({id:"magic-link",$InferServerPlugin:{}}),WX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Zk=xB(WX),CB=Zk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),PB=Zk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),_B=Zk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),KX={admin:CB,owner:PB,member:_B},YX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const o=t.role.split(","),a=t.options.creatorRole||"owner",n=o.includes(a),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of o)if(e[i]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},ZX=t=>YX(t,t.options.roles||KX),QX=t=>{const e=md(!1),o=md(!1),a=md(!1),n=md(!1),r={admin:CB,member:_B,owner:PB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>ZX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=mp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:mp([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},JX="1.6.11",XX=t=>({id:"sso-client",version:JX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function eee(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function Qk(t){return eee(t?.metadata).archived===!0}function AB(t){const e=new Set;return t.filter(o=>Qk(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const tee="Organization is archived",ga=jX({plugins:[QX({}),VX(),XX(),GX(),HX()]}),oee=8e3;let mO;function RB(){return mO??=new Promise(t=>{const e=setTimeout(t,oee);ga.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),mO}const aee=we({data:we({user:we({id:$()})}).nullish()});function nee(){const t=aee.safeParse(ga.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const ree=3e4;let hp=null,zg=null;function DB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ga.organization.list().then(e=>{const o=e.data?{...e,data:AB(e.data)}:e;return o.data&&(hp={result:o,expiresAt:Date.now()+ree}),o}).finally(()=>{zg=null});return zg=t,t}function vTe(){const t=ga.useListOrganizations(),e=t.data?AB(t.data):void 0;return{...t,data:e}}function bTe(){hp=null}const see="modulepreload",iee=function(t){return"/"+t},hO={},Fe=function(e,o,a){let n=Promise.resolve();if(o&&o.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(o.map(u=>{if(u=iee(u),u in hO)return;hO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":see,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function lee(t){try{return JSON.parse(t)}catch{return}}function gO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?lee(o):void 0,n=typeof e=="function"?e(a):a??e;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function cee(t,e){const o=ye.c(17),a=Wd();let n;o[0]!==t?(n=["localStorage",t],o[0]=t,o[1]=n):n=o[1];const r=n;let i,c;o[2]!==e||o[3]!==t?(i=()=>gO(t,e),c=()=>gO(t,e),o[2]=e,o[3]=t,o[4]=i,o[5]=c):(i=o[4],c=o[5]);let d;o[6]!==r||o[7]!==i||o[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=i,o[8]=c,o[9]=d):d=o[9];const{data:u}=Gi(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=b=>{const S=a.getQueryData(r),T=typeof b=="function"?b(S):b;if(typeof localStorage<"u")try{localStorage.setItem(t,JSON.stringify(T))}catch{}a.setQueryData(r,T)},o[10]=t,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Or={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,legacyAdminArrival:()=>"studio:legacy-admin-arrival",localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},OB=["en","pt-BR"],yTe={en:"en-US","pt-BR":"pt-BR"};function Jk(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const dee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:Jk(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},NB=["auto","readonly"],STe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],uee=["light","dark","system"];function wTe(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(NB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function sb(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(OB.includes(t.language))return t.language}catch{}return Jk()}function pee(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const a of t.shownTaskBoardLanes)typeof a=="string"&&(e[a]=!0);const o=t.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(e[a]=n);return e}function Xk(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Or.preferences(),t[0]=e):e=t[0],cee(e,mee)}function mee(t){const e={...dee,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,"projectFirstNav"in e&&delete e.projectFirstNav,NB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),uee.includes(e.theme)||(e.theme="system"),OB.includes(e.language)||(e.language=Jk()),e.taskBoardLaneVisibility=pee(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),e}const hee={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},gee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.blog":"Blog","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.automations":"Automations","projects.apps.calendar":"Calendar","projects.apps.experiments":"Experiments"},fee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.repository.title":"Repository","virtualMcp.settings.repository.description":"The code this project is, and how its sandbox runs it.","virtualMcp.settings.repository.repoTitle":"Repository","virtualMcp.settings.repository.runtimeTitle":"How it runs","virtualMcp.settings.repository.runtimeDescription":"What the sandbox installs and starts to preview this project.","virtualMcp.settings.pageTitle":"Project settings","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"What opens first, and which views the sidebar shows.","virtualMcp.settings.cmsEmptyTitle":"No site content yet","virtualMcp.settings.repository.open":"Go to Repository","virtualMcp.settings.repository.none":"No repository connected","virtualMcp.settings.repository.noneDescription":"Connect a GitHub repository to edit and preview this project's site.","virtualMcp.settings.repository.connect":"Connect repository","virtualMcp.settings.repository.change":"Change","virtualMcp.settings.repository.connected":"Connected {name}","virtualMcp.settings.cmsEmpty":"Connect the site's repository to turn the CMS on.","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.blocksV8Site.label":"Blocks v8 site","virtualMcp.settings.blocksV8Site.description":"Edit this site with the Blocks v8 editor and hosted CMS. Off: v7, git-backed.","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.groups.details":"Details","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.createdBy":"Created by","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsedLabel":"Last used","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
55
|
+
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const b in u){const S=u[b];if(S.length===0)continue;const T=(0,a.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,depsCount:S.length,deps:S.join(", ")}),f.allErrors?m.if(T,()=>{for(const x of S)(0,a.checkReportMissingProp)(d,x)}):(m.if((0,e._)`${T} && (${(0,a.checkMissingProp)(d,S,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}t.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,b=m.name("valid");for(const S in u)(0,o.alwaysValidSchema)(v,u[S])||(m.if((0,a.propertyInData)(m,h,S,v.opts.ownProperties),()=>{const T=d.subschema({keyword:f,schemaProp:S},b);d.mergeValidEvaluated(T,b)},()=>m.var(b,!0)),d.ok(b))}t.validateSchemaDeps=c,t.default=n})(Tw)),Tw}var Tg={},ID;function bQ(){if(ID)return Tg;ID=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Tg.default=a,Tg}var kg={},LD;function iB(){if(LD)return kg;LD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Zi(),a=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,e._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const S=(0,t.allSchemaProperties)(u.properties),T=(0,t.allSchemaProperties)(u.patternProperties);x(),i.ok((0,e._)`${h} === ${o.default.errors}`);function x(){c.forIn("key",m,D=>{!S.length&&!T.length?E(D):c.if(k(D),()=>E(D))})}function k(D){let R;if(S.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else S.length?R=(0,e.or)(...S.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return T.length&&(R=(0,e.or)(R,...T.map(O=>(0,e._)`${(0,t.usePattern)(i,O)}.test(${D})`))),(0,e.not)(R)}function C(D){c.code((0,e._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");b.removeAdditional==="failing"?(_(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),C(D)})):(_(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return kg.default=r,kg}var Eg={},BD;function yQ(){if(BD)return Eg;BD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=ab(),e=Dr(),o=Ft(),a=iB(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new t.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const T of h)m.definedProperties.add(T);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(i,(0,o.toHash)(h),m.props));const f=h.filter(T=>!(0,o.alwaysValidSchema)(m,c[T]));if(f.length===0)return;const v=i.name("valid");for(const T of f)b(T)?S(T):(i.if((0,e.propertyInData)(i,u,T,m.opts.ownProperties)),S(T),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(T),r.ok(v);function b(T){return m.opts.useDefaults&&!m.compositeRule&&c[T].default!==void 0}function S(T){r.subschema({keyword:"properties",schemaProp:T,dataProp:T},v)}}};return Eg.default=n,Eg}var Cg={},FD;function SQ(){if(FD)return Cg;FD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Ft(),a=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),v=f.filter(E=>(0,o.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=h.strictSchema&&!h.allowMatchingProperties&&u.properties,S=i.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,a.evaluatedPropsToName)(i,m.props));const{props:T}=m;x();function x(){for(const E of f)b&&k(E),m.allErrors?C(E):(i.var(S,!0),C(E),i.if(S))}function k(E){for(const _ in b)new RegExp(E).test(_)&&(0,o.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,_=>{i.if((0,e._)`${(0,t.usePattern)(r,E)}.test(${_})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:a.Type.Str},S),m.opts.unevaluated&&T!==!0?i.assign((0,e._)`${T}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,e.not)(S),()=>i.break())})})}}};return Cg.default=n,Cg}var Pg={},jD;function wQ(){if(jD)return Pg;jD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,t.alwaysValidSchema)(r,n)){o.fail();return}const i=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return Pg.default=e,Pg}var _g={},zD;function xQ(){if(zD)return _g;zD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return _g.default=e,_g}var Ag={},qD;function TQ(){if(qD)return Ag;qD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((b,S)=>{let T;(0,e.alwaysValidSchema)(d,b)?r.var(f,!0):T=n.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},f),S>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${S}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,S),T&&n.mergeEvaluated(T,t.Name)})})}}};return Ag.default=a,Ag}var Rg={},UD;function kQ(){if(UD)return Rg;UD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Ft(),e={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=a.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},i);o.ok(i),o.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},$D;function EQ(){if($D)return Dg;$D=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=yt(),e=Ft(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(v(),r.reset(),u&&m){const S=i.let("ifClause");r.setParams({ifClause:S}),i.if(f,b("then",S),b("else",S))}else u?i.if(f,b("then")):i.if((0,t.not)(f),b("else"));r.pass(h,()=>r.error(!0));function v(){const S=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(S)}function b(S,T){return()=>{const x=r.subschema({keyword:S},f);i.assign(h,f),r.mergeValidEvaluated(x,h),T?i.assign(T,(0,t._)`${S}`):r.setParams({ifClause:S})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=a,Dg}var Og={},VD;function CQ(){if(VD)return Og;VD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Ft(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,t.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Og.default=e,Og}var HD;function PQ(){if(HD)return yg;HD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=rB(),e=hQ(),o=sB(),a=gQ(),n=fQ(),r=vQ(),i=bQ(),c=iB(),d=yQ(),u=SQ(),m=wQ(),h=xQ(),f=TQ(),v=kQ(),b=EQ(),S=CQ();function T(x=!1){const k=[m.default,h.default,f.default,v.default,b.default,S.default,i.default,c.default,r.default,d.default,u.default];return x?k.push(e.default,a.default):k.push(t.default,o.default),k.push(n.default),k}return yg.default=T,yg}var Ng={},Mg={},GD;function _Q(){if(GD)return Mg;GD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const t=yt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,t._)`{format: ${a}}`},code(a,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:b}=m;if(!h.validateFormats)return;c?S():T();function S(){const x=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${x}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,t._)`${k}.type || "string"`).assign(E,(0,t._)`${k}.validate`),()=>r.assign(C,(0,t._)`"string"`).assign(E,k)),a.fail$data((0,t.or)(_(),D()));function _(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,t._)`${E}(${i})`,O=(0,t._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,t._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function T(){const x=b.formats[d];if(!x){_();return}if(x===!0)return;const[k,C,E]=D(x);k===n&&a.pass(R());function _(){if(h.strictSchema===!1){b.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${U}.validate`]:["string",O,U]}function R(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${E}(${i})`}return typeof C=="function"?(0,t._)`${E}(${i})`:(0,t._)`${E}.test(${i})`}}}};return Mg.default=o,Mg}var WD;function AQ(){if(WD)return Ng;WD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=[_Q().default];return Ng.default=e,Ng}var Sl={},KD;function RQ(){return KD||(KD=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.contentVocabulary=Sl.metadataVocabulary=void 0,Sl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Sl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Sl}var YD;function DQ(){if(YD)return ag;YD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=tQ(),e=mQ(),o=PQ(),a=AQ(),n=RQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return ag.default=r,ag}var Ig={},Yu={},ZD;function OQ(){if(ZD)return Yu;ZD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var QD;function NQ(){if(QD)return Ig;QD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=yt(),e=OQ(),o=Vk(),a=nb(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),T=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(b)}`);d.if((0,t._)`typeof ${T} == "string"`,()=>x(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:T,tagName:b})),c.ok(S);function x(){const E=C();d.if(!1);for(const _ in E)d.elseIf((0,t._)`${T} === ${_}`),d.assign(S,k(E[_]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:T,tagName:b}),d.endIf()}function k(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,t.Name),_}function C(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(E=z?.properties)===null||E===void 0?void 0:E[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${b}" values must be unique strings`);_[B]=z}}}};return Ig.default=i,Ig}const MQ="http://json-schema.org/draft-07/schema#",IQ="http://json-schema.org/draft-07/schema#",LQ="Core schema meta-schema",BQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},FQ=["object","boolean"],jQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},zQ={$schema:MQ,$id:IQ,title:LQ,definitions:BQ,type:FQ,properties:jQ,default:!0};var JD;function qQ(){return JD||(JD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const o=JZ(),a=DQ(),n=NQ(),r=zQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=ab();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=$k();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=nb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},kw={},XD;function UQ(){return XD||(XD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,i),time:e(d(!0),u),"date-time":e(f(!0),v),"iso-time":e(d(),m),"iso-date-time":e(f(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:x,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:U,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:C,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,b),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=oe-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function b(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=i(F,oe);if(K!==void 0)return K||u(W,H)}const S=/\/|:/,T=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function x(B){return S.test(B)&&T.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function C(B){return k.lastIndex=0,k.test(B)}const E=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(kw)),kw}var Ew={},eO;function $Q(){return eO||(eO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=qQ(),o=yt(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:b}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,b.RULES.all.format.definition,"format");S.$data?T():x();function T(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${C}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,k(E)))}function x(){const C=S.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const _=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(C)}`:void 0});c.fail$data(k(_))}function k(C){return(0,o._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(Ew)),Ew}var tO;function VQ(){return tO||(tO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=UQ(),a=$Q(),n=yt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,i]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const S of m)u.addFormat(S,h[S])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var HQ=VQ();const oTe=Gl(HQ);function GQ({studioUrl:t,meshUrl:e},o){return t??e??o}let Gk;Gk=globalThis.crypto;async function WQ(t){return(await Gk).getRandomValues(new Uint8Array(t))}async function KQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await WQ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function YQ(t){return await KQ(t)}async function ZQ(t){const e=await(await Gk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function aTe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await YQ(t),o=await ZQ(e);return{code_verifier:e,code_challenge:o}}const Ca=hL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:ZW.custom,message:"URL must be parseable",fatal:!0}),o7}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),nTe=Pa({resource:$().url(),authorization_servers:je(Ca).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),QQ=Pa({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,registration_endpoint:Ca.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Ca.optional(),revocation_endpoint:Ca.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),JQ=Pa({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,userinfo_endpoint:Ca.optional(),jwks_uri:Ca,registration_endpoint:Ca.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Ca.optional(),op_tos_uri:Ca.optional(),client_id_metadata_document_supported:Vt().optional()}),rTe=we({...JQ.shape,...QQ.pick({code_challenge_methods_supported:!0}).shape}),sTe=we({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:xL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),iTe=we({error:$(),error_description:$().optional(),error_uri:$().optional()}),oO=Ca.optional().or(Qe("").transform(()=>{})),XQ=we({redirect_uris:je(Ca),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Ca.optional(),logo_uri:oO,scope:$().optional(),contacts:je($()).optional(),tos_uri:oO,policy_uri:$().optional(),jwks_uri:Ca.optional(),jwks:xW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),eJ=we({client_id:$(),client_secret:$().optional(),client_id_issued_at:Mt().optional(),client_secret_expires_at:Mt().optional()}).strip(),lTe=XQ.merge(eJ);we({error:$(),error_description:$().optional()}).strip();we({token:$(),token_type_hint:$().optional()}).strip();class Oa extends Error{constructor(e,o){super(e),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class mT extends Oa{}mT.errorCode="invalid_request";class hT extends Oa{}hT.errorCode="invalid_client";class gT extends Oa{}gT.errorCode="invalid_grant";class fT extends Oa{}fT.errorCode="unauthorized_client";class vT extends Oa{}vT.errorCode="unsupported_grant_type";class bT extends Oa{}bT.errorCode="invalid_scope";class yT extends Oa{}yT.errorCode="access_denied";class ST extends Oa{}ST.errorCode="server_error";class wT extends Oa{}wT.errorCode="temporarily_unavailable";class xT extends Oa{}xT.errorCode="unsupported_response_type";class TT extends Oa{}TT.errorCode="unsupported_token_type";class kT extends Oa{}kT.errorCode="invalid_token";class ET extends Oa{}ET.errorCode="method_not_allowed";class CT extends Oa{}CT.errorCode="too_many_requests";class PT extends Oa{}PT.errorCode="invalid_client_metadata";class _T extends Oa{}_T.errorCode="insufficient_scope";class AT extends Oa{}AT.errorCode="invalid_target";const cTe={[mT.errorCode]:mT,[hT.errorCode]:hT,[gT.errorCode]:gT,[fT.errorCode]:fT,[vT.errorCode]:vT,[bT.errorCode]:bT,[yT.errorCode]:yT,[ST.errorCode]:ST,[wT.errorCode]:wT,[xT.errorCode]:xT,[TT.errorCode]:TT,[kT.errorCode]:kT,[ET.errorCode]:ET,[CT.errorCode]:CT,[PT.errorCode]:PT,[_T.errorCode]:_T,[AT.errorCode]:AT};async function lB(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof eb&&o.code===qp.MethodNotFound)return{resources:[]};throw o}}async function tJ(t,e){return await t.readResource({uri:e})}function dTe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Wi(c)}function uTe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Gi(c)}function pTe(t){const e=ye.c(15);let o,a,n;e[0]!==t?({client:o,uri:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=ca.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==o||e[8]!==n?(i=()=>tJ(o,n),e[7]=o,e[8]=n,e[9]=i):i=e[9];const c=a.staleTime??3e4;let d;return e[10]!==a||e[11]!==r||e[12]!==i||e[13]!==c?(d={...a,queryKey:r,queryFn:i,staleTime:c,retry:!1},e[10]=a,e[11]=r,e[12]=i,e[13]=c,e[14]=d):d=e[14],Wi(d)}const cB="ui-resource-html";function mTe(t){const e=ye.c(22);let o,a,n,r,i,c;e[0]!==t?({orgSlug:n,connectionId:o,uri:c,studioUrl:i,meshUrl:a,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i,e[6]=c):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5],c=e[6]);let d;e[7]!==o||e[8]!==n||e[9]!==c?(d=ca.mcpUiResourceHtml(n,o,c),e[7]=o,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==n||e[14]!==i||e[15]!==c?(u=async()=>{const v=`${GQ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.text()},e[11]=o,e[12]=a,e[13]=n,e[14]=i,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Wi(h)}const dB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Zf extends Error{constructor(e,o,a,n){super(e),this.status=o,this.code=a,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function uB(t){return t instanceof Zf&&Object.values(dB).includes(t.code??"")?t.code:null}const oJ=6e4;function aJ(t){return!(t instanceof Zf)||t.status!==429?null:t.retryAfterMs??oJ}function nJ(t,e){if(typeof e=="object"&&e!==null&&"retryAfterMs"in e&&typeof e.retryAfterMs=="number"&&Number.isFinite(e.retryAfterMs))return Math.max(0,e.retryAfterMs);const o=t.headers.get("retry-after"),a=o?Number(o):Number.NaN;return Number.isFinite(a)?Math.max(0,a*1e3):void 0}async function rJ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r,i=null;try{i=await a.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Zf(n,a.status,r,a.status===429?nJ(a,i):void 0)}try{return await a.json()}catch{throw new Zf(`${e} returned a non-JSON response`,a.status)}}function Wk(){const t=ye.c(5),{org:e}=Yi(),o=e.slug;let a;t[0]!==o?(a=(r,i)=>rJ(o,r,i),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==o||t[3]!==a?(n={orgSlug:o,call:a},t[2]=o,t[3]=a,t[4]=n):n=t[4],n}function sJ(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const iJ="studio-ui-resources",Qf="html",lJ=10080*60*1e3,cJ=50,dJ=16*1024*1024;function uJ(t){return t[0]==="mcp"&&t[1]===cB}function rb(){return new Promise((t,e)=>{const o=indexedDB.open(iJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Qf)||o.result.createObjectStore(Qf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Ld(t,e){return t.transaction(Qf,e).objectStore(Qf)}function RT(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function pJ(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=Ld(e,"readonly"),a=await RT(o.getAllKeys()),n=await RT(o.getAll()),r=Date.now(),i=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>lJ||d>=cJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function mJ(t){if(typeof indexedDB>"u")return()=>{};const e=rb().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!uJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>dJ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function hJ(){typeof indexedDB>"u"||rb().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function hTe(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=await RT(Ld(e,"readonly").getAllKeys()),a=Ld(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===cB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const Jf="studio:rq-cache",Kk=1440*60*1e3,gJ=1e3,fJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),vJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let pB=!1,mB=!1;function bJ(t){const e=t[0];return typeof e=="string"&&fJ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&vJ.has(t[4])}function yJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Jf);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Kk;if(o.buster!=="4.582.1"||a||!o.state){window.localStorage.removeItem(Jf);return}NV(t,o.state),t.invalidateQueries({queryKey:ca.publicConfig(),refetchType:"none"}),pB=!0}catch{EJ()}}function SJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=OV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&bJ(i.queryKey)});window.localStorage.setItem(Jf,JSON.stringify({buster:"4.582.1",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,gJ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const hB="studio:org-cache:",wJ=20;function xJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Kk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>wJ;)o.shift();return Object.fromEntries(o)}function gB(t){return`${hB}${t}`}function TJ(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(gB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Kk?null:(mB=!0,a)}catch{return null}}function kJ(t,e,o){if(!(typeof window>"u"))try{const a=gB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(xJ(r)))}catch{}}function EJ(){if(hJ(),!(typeof window>"u"))try{window.localStorage.removeItem(Jf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(hB)&&window.localStorage.removeItem(e)}}catch{}}function CJ(){return pB}function PJ(){return mB}function aO(t){const e=uB(t);if(!e)return;const o=e===dB.aiBudgetExhausted?Xf.budget||"This organization's AI allowance is used up.":Xf.feature||"This organization's plan does not include that.";Id.error(o,{id:`plan-refusal:${e}`})}const Xf={feature:"",budget:""},Yl=new VV({queryCache:new iI({onError:aO}),mutationCache:new sI({onError:aO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>uB(e)===null&&aJ(e)===null&&t<1,gcTime:300*1e3}}});sJ(Yl);yJ(Yl);SJ(Yl);pJ(Yl);mJ(Yl);const Yk=5*6e4;async function fB(){return(await(await fetch("/api/config")).json()).config}function vB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0];const{data:o}=Wi(e);return o}function gTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0],Gi(e).data}const bB=A.createContext(void 0);function _J(t){const e=ye.c(3),{children:o}=t,a=vB();let n;return e[0]!==o||e[1]!==a.auth?(n=y.jsx(bB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function fTe(){const t=A.useContext(bB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var AJ={},nO={};const bf=Object.create(null),Zu=t=>AJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,o){const a=Zu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Zu(!0);return delete o[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Zo(t,e){return typeof process<"u"&&nO?nO[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,ma=4,Hr=8,Nn=24,rO={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Nn,putty:ma,st:ma,"rxvt-unicode-24bit":Nn,terminator:Nn,"xterm-kitty":Nn},RJ=new Map(Object.entries({APPVEYOR:Hr,BUILDKITE:Hr,CIRCLECI:Nn,DRONE:Hr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Hr,TRAVIS:Hr})),DJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function OJ(){if(Zo("FORCE_COLOR")!==void 0)switch(Zo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Hr;case"3":return Nn;default:return Qu}if(Zo("NODE_DISABLE_COLORS")!==void 0&&Zo("NODE_DISABLE_COLORS")!==""||Zo("NO_COLOR")!==void 0&&Zo("NO_COLOR")!==""||Zo("TERM")==="dumb")return Qu;if(Zo("TMUX"))return Nn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return ma;if("CI"in Xn){for(const{0:t,1:e}of RJ)if(t in Xn)return e;return Zo("CI_NAME")==="codeship"?Hr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Zo("TEAMCITY_VERSION"))!==null?ma:Qu;switch(Zo("TERM_PROGRAM")){case"iTerm.app":return!Zo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Zo("TERM_PROGRAM_VERSION"))!==null?Hr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Hr}if(Zo("COLORTERM")==="truecolor"||Zo("COLORTERM")==="24bit")return Nn;if(Zo("TERM")){if(/truecolor/.exec(Zo("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Zo("TERM"))!==null)return Hr;const t=Zo("TERM").toLowerCase();if(rO[t])return rO[t];if(DJ.some(e=>e.exec(t)!==null))return ma}return Zo("COLORTERM")?ma:Qu}const Gr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},DT=["debug","info","success","warn","error"];function NJ(t,e){return DT.indexOf(e)>=DT.indexOf(t)}const MJ={info:Gr.fg.blue,success:Gr.fg.green,warn:Gr.fg.yellow,error:Gr.fg.red,debug:Gr.fg.magenta},IJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Gr.dim}${a}${Gr.reset} ${MJ[t]}${t.toUpperCase()}${Gr.reset} ${Gr.bright}[Better Auth]:${Gr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},LJ=t=>{const e="warn",o=OJ()!==1,a=(n,r,i=[])=>{if(!NJ(e,n))return;const c=IJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(DT.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return e}}};LJ();function BJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function FJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function jJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new kp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof kp?e:new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function Cw(t,e="/api/auth"){if(jJ(t),FJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function zJ(t,e,o,a,n){if(t)return Cw(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return Cw(r,e)}if(typeof window<"u"&&window.location)return Cw(window.location.origin,e)}const qJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},UJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},$J=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,sO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},VJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function HJ(t){return t instanceof Date&&!isNaN(t.getTime())}function GJ(t){const e=VJ.exec(t);if(!e)return null;const[,o,a,n,r,i,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return HJ(f)?f:null}function WJ(t,e={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const i=t.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in sO)return sO[c];if(!$J.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(UJ).some(([d,u])=>{const m=u.test(i);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=GJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function KJ(t,e={strict:!0}){return WJ(t,e)}let fr=[],fi=0;const Bg=4,YJ=globalThis.nanostoresGlobal||={epoch:0},md=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=fi+Bg;r<fr.length;)fr[r]===a?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){YJ.epoch++;let r=!fr.length;for(let i of e)fr.push(i,o.value,a,n);if(r){for(fi=0;fi<fr.length;fi+=Bg)fr[fi](fr[fi+1],fr[fi+2],fr[fi+3]);fr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:t};return o},ZJ=5,Fg=6,jg=10;let QJ=(t,e,o,a)=>(t.events=t.events||{},t.events[o+jg]||(t.events[o+jg]=a(n=>{t.events[o].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),t.events[o]=t.events[o]||[],t.events[o].push(e),()=>{let n=t.events[o],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[o],t.events[o+jg](),delete t.events[o+jg])});const JJ=1e3;let yB=(t,e)=>QJ(t,a=>{let n=e(a);n&&t.events[Fg].push(n)},ZJ,a=>{let n=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,a()),n(...i));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[Fg])i();t.events[Fg]=[]}},JJ)},()=>{t.listen=n,t.off=r}});function XJ(t,e,o){let a=new Set(e).add(void 0);return t.listen((n,r,i)=>{a.has(i)&&o(n,r,i)})}const eX=()=>typeof window>"u",mp=(t,e,o,a)=>{const n=md({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{eX()||(i?await r():yB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},Pw=Symbol.for("better-auth:broadcast-channel"),tX=()=>Math.floor(Date.now()/1e3);var oX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:tX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const o=JSON.parse(e.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function _w(t="better-auth.message"){return globalThis[Pw]||(globalThis[Pw]=new oX(t)),globalThis[Pw]}const Aw=Symbol.for("better-auth:focus-manager");var aX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function iO(){return globalThis[Aw]||(globalThis[Aw]=new aX),globalThis[Aw]}const Rw=Symbol.for("better-auth:online-manager");var nX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function Dw(){return globalThis[Rw]||(globalThis[Rw]=new nX),globalThis[Rw]}const Vc=()=>Math.floor(Date.now()/1e3),rX=5;function sX(t){const{sessionAtom:e,sessionSignal:o,$fetch:a,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||Dw().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Vc(),o.set(!o.get());return}const C=e.get();if(k?.event==="poll"){d.lastSessionRequest=Vc(),a("/get-session").then(E=>{E.error?e.set({...C,data:null,error:E.error}):e.set({...C,data:E.data,error:null}),d.lastSync=Vc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Vc()-d.lastSessionRequest<rX)return;d.lastSessionRequest=Vc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Vc(),o.set(!o.get()))},h=k=>{_w().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=_w().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=iO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=Dw().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),S(),_w().setup(),iO().setup(),Dw().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function iX(t,e){const o=md(!1),a=mp(o,"/get-session",t,{method:"GET"});return yB(a,()=>{const n=sX({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function Ow(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function OT(t,e,o=".",a){if(!Ow(e))return OT(t,{},o,a);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const i=t[r];i!=null&&(a&&a(n,r,i,o)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:Ow(i)&&Ow(n[r])?n[r]=OT(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function lX(t){return(...e)=>e.reduce((o,a)=>OT(o,a,"",t),{})}const cX=lX();var dX=Object.defineProperty,uX=Object.defineProperties,pX=Object.getOwnPropertyDescriptors,lO=Object.getOwnPropertySymbols,mX=Object.prototype.hasOwnProperty,hX=Object.prototype.propertyIsEnumerable,cO=(t,e,o)=>e in t?dX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))mX.call(e,o)&&cO(t,o,e[o]);if(lO)for(var o of lO(e))hX.call(e,o)&&cO(t,o,e[o]);return t},Ur=(t,e)=>uX(t,pX(e)),gX=class extends Error{constructor(t,e,o){super(e||t.toString(),{cause:o}),this.status=t,this.statusText=e,this.error=o,Error.captureStackTrace(this,this.constructor)}},fX=async(t,e)=>{var o,a,n,r,i,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},dO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},vX=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function bX(t){if(typeof t=="number")return new dO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new dO(t);case"exponential":return new vX(t);default:throw new Error("Invalid retry strategy")}}var yX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},SX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function wX(t){const e=t.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const a=e.split(";").shift()||"";return SX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function xX(t){try{return JSON.parse(t),!0}catch{return!1}}function NT(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function uO(t){try{return JSON.parse(t)}catch{return t}}function pO(t){return typeof t=="function"}function TX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&pO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&pO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function kX(t){const e=new Headers(t?.headers),o=await yX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=EX(t?.body);a&&e.set("content-type",a)}return e}function EX(t){return NT(t)?"application/json":null}function CX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(NT(t.body)&&!e.has("content-type")){for(const[o,a]of Object.entries(t?.body))a instanceof Date&&(t.body[o]=a.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&NT(t.body)?new URLSearchParams(t.body).toString():t.body}function PX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return wB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function _X(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var AX=class SB extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,SB.prototype)}};async function yf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new AX(o.issues);return o.value}var wB=["get","post","put","patch","delete"],RX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,o){var a,n,r,i;const c=((n=(a=t.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=Ur(Sr({},m),{body:u.input?await yf(u.input,o?.body):o?.body,params:u.params?await yf(u.params,o?.params):o?.params,query:u.query?await yf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),DX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],RX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await MT(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await MT(o,n)}return e};function OX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];wB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const b of f)d.append(h,b);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const b=a[f];i=i.replace(v,b)}}else for(const[h,f]of Object.entries(a))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var MT=async(t,e)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await fX(t,e),v=TX(f),b=new AbortController,S=(o=f.signal)!=null?o:b.signal,T=OX(h,f),x=CX(f),k=await kX(f),C=PX(h,f);let E=Ur(Sr({},f),{url:T,headers:k,body:x,method:C,signal:S});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=_X(f,b);let D=await v(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F(Ur(Sr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=wX(D),oe={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:uO;oe.data=await K(H)}else oe.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(oe.data=await yf(E.output,oe.data));for(const H of m.onSuccess)H&&await H(Ur(Sr({},oe),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return e?.throw?oe.data:{data:oe.data,error:null}}const O=(c=e?.jsonParser)!=null?c:uO,L=await D.text(),U=xX(L),B=U?await O(L):null,z={response:D,responseText:L,request:E,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=bX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await MT(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new gX(D.status,D.statusText,U?B:L);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const NX=(t,e)=>{const o="credentials"in Request.prototype,a=zJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=DX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?KJ(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[qJ],...n]}),{$sessionSignal:f,session:v}=iX(h,t),b=t?.plugins||[];let S={};const T={$sessionSignal:f,session:v},x={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of b)E.getAtoms&&Object.assign(T,E.getAtoms?.(h)),E.pathMethods&&Object.assign(x,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{T[E].set(!T[E].get())},listen:(E,_)=>{T[E].subscribe(_)},atoms:T};for(const E of b)E.getActions&&(S=cX(E.getActions?.(h,C,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:T,pluginPathMethods:x,atomListeners:k,$fetch:h,$store:C}};function MX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function IX(t,e,o){const a=e[t],{fetchOptions:n,query:r,...i}=o||{};return a||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function LX(t,e,o,a,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||MX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...S}=h,T={...f,...b},x=IX(m,o,h);return await e(m,{...T,body:x==="GET"?void 0:{...S,...T?.body||{}},query:v||T?.query,method:x,async onSuccess(k){if(await T?.onSuccess?.(k),!n||T.disableSignal)return;const C=n.filter(_=>_.matcher(m));if(!C.length)return;const E=new Set;for(const _ of C){const D=a[_.signal];if(!D)return;if(E.has(_.signal))continue;E.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function BX(t,e={}){const o=A.useRef(t.get()),{keys:a,deps:n=[t,a]}=e,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(t.value),a?.length?XJ(t,a,d):t.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function FX(t){return`use${BJ(t)}`}function jX(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=NX(t),c={};for(const[d,u]of Object.entries(a))c[FX(d)]=()=>BX(u);return LX({...o,...c,$fetch:n,$store:r},n,e,a,i)}function zX(t){return{authorize(e,o="AND"){let a=!1;for(const[n,r]of Object.entries(e)){const i=t[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>i.includes(d)):a=c.actions.every(d=>i.includes(d))}else throw new kp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:t}}function xB(t){return{newRole(e){return zX(e)},statements:t}}const qX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},TB=xB(qX),kB=TB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),EB=TB.newRole({user:[],session:[]}),UX={admin:kB,user:EB},$X=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),o=t.options?.roles||UX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},VX=t=>{const e={admin:kB,user:EB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>$X({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},HX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),GX=()=>({id:"magic-link",$InferServerPlugin:{}}),WX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Zk=xB(WX),CB=Zk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),PB=Zk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),_B=Zk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),KX={admin:CB,owner:PB,member:_B},YX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const o=t.role.split(","),a=t.options.creatorRole||"owner",n=o.includes(a),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of o)if(e[i]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},ZX=t=>YX(t,t.options.roles||KX),QX=t=>{const e=md(!1),o=md(!1),a=md(!1),n=md(!1),r={admin:CB,member:_B,owner:PB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>ZX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=mp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:mp([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},JX="1.6.11",XX=t=>({id:"sso-client",version:JX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function eee(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function Qk(t){return eee(t?.metadata).archived===!0}function AB(t){const e=new Set;return t.filter(o=>Qk(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const tee="Organization is archived",ga=jX({plugins:[QX({}),VX(),XX(),GX(),HX()]}),oee=8e3;let mO;function RB(){return mO??=new Promise(t=>{const e=setTimeout(t,oee);ga.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),mO}const aee=we({data:we({user:we({id:$()})}).nullish()});function nee(){const t=aee.safeParse(ga.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const ree=3e4;let hp=null,zg=null;function DB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ga.organization.list().then(e=>{const o=e.data?{...e,data:AB(e.data)}:e;return o.data&&(hp={result:o,expiresAt:Date.now()+ree}),o}).finally(()=>{zg=null});return zg=t,t}function vTe(){const t=ga.useListOrganizations(),e=t.data?AB(t.data):void 0;return{...t,data:e}}function bTe(){hp=null}const see="modulepreload",iee=function(t){return"/"+t},hO={},Fe=function(e,o,a){let n=Promise.resolve();if(o&&o.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(o.map(u=>{if(u=iee(u),u in hO)return;hO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":see,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function lee(t){try{return JSON.parse(t)}catch{return}}function gO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?lee(o):void 0,n=typeof e=="function"?e(a):a??e;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function cee(t,e){const o=ye.c(17),a=Wd();let n;o[0]!==t?(n=["localStorage",t],o[0]=t,o[1]=n):n=o[1];const r=n;let i,c;o[2]!==e||o[3]!==t?(i=()=>gO(t,e),c=()=>gO(t,e),o[2]=e,o[3]=t,o[4]=i,o[5]=c):(i=o[4],c=o[5]);let d;o[6]!==r||o[7]!==i||o[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=i,o[8]=c,o[9]=d):d=o[9];const{data:u}=Gi(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=b=>{const S=a.getQueryData(r),T=typeof b=="function"?b(S):b;if(typeof localStorage<"u")try{localStorage.setItem(t,JSON.stringify(T))}catch{}a.setQueryData(r,T)},o[10]=t,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Or={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,legacyAdminArrival:()=>"studio:legacy-admin-arrival",localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},OB=["en","pt-BR"],yTe={en:"en-US","pt-BR":"pt-BR"};function Jk(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const dee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:Jk(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},NB=["auto","readonly"],STe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],uee=["light","dark","system"];function wTe(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(NB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function sb(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(OB.includes(t.language))return t.language}catch{}return Jk()}function pee(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const a of t.shownTaskBoardLanes)typeof a=="string"&&(e[a]=!0);const o=t.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(e[a]=n);return e}function Xk(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Or.preferences(),t[0]=e):e=t[0],cee(e,mee)}function mee(t){const e={...dee,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,"projectFirstNav"in e&&delete e.projectFirstNav,NB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),uee.includes(e.theme)||(e.theme="system"),OB.includes(e.language)||(e.language=Jk()),e.taskBoardLaneVisibility=pee(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),e}const hee={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},gee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.blog":"Blog","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.automations":"Automations","projects.apps.calendar":"Calendar","projects.apps.experiments":"Experiments"},fee={"virtualMcp.settings.assetStorage.label":"CMS Asset Storage","virtualMcp.settings.assetStorage.description":"Choose where this project browses and uploads images and files. Existing content URLs stay unchanged.","virtualMcp.settings.assetStorage.automatic":"Automatic (match the site)","virtualMcp.settings.assetStorage.missing":"The selected asset storage is unavailable. Choose another storage in project settings.","virtualMcp.settings.assetStorage.loading":"Loading storage configurations…","virtualMcp.settings.assetStorage.loadError":"Could not load storage configurations.","virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.repository.title":"Repository","virtualMcp.settings.repository.description":"The code this project is, and how its sandbox runs it.","virtualMcp.settings.repository.repoTitle":"Repository","virtualMcp.settings.repository.runtimeTitle":"How it runs","virtualMcp.settings.repository.runtimeDescription":"What the sandbox installs and starts to preview this project.","virtualMcp.settings.pageTitle":"Project settings","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"What opens first, and which views the sidebar shows.","virtualMcp.settings.cmsEmptyTitle":"No site content yet","virtualMcp.settings.repository.open":"Go to Repository","virtualMcp.settings.repository.none":"No repository connected","virtualMcp.settings.repository.noneDescription":"Connect a GitHub repository to edit and preview this project's site.","virtualMcp.settings.repository.connect":"Connect repository","virtualMcp.settings.repository.change":"Change","virtualMcp.settings.repository.connected":"Connected {name}","virtualMcp.settings.cmsEmpty":"Connect the site's repository to turn the CMS on.","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.blocksV8Site.label":"Blocks v8 site","virtualMcp.settings.blocksV8Site.description":"Edit this site with the Blocks v8 editor and hosted CMS. Off: v7, git-backed.","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.groups.details":"Details","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.createdBy":"Created by","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsedLabel":"Last used","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
56
56
|
Define who this agent is and what it specializes in.
|
|
57
57
|
Example: You are a support triage agent for B2B merchants.
|
|
58
58
|
</role>
|
|
@@ -88,7 +88,7 @@ or one per line`,"common.inviteMemberDialog.errorAlreadyInvited":"{email} alread
|
|
|
88
88
|
|
|
89
89
|
Sections that carry it: {sections}. How many of each, and in what order, depends on the theme.`,"sandbox.formats.starterBodyNoSections":`Use this for a straightforward post: open with the subject and why it matters to the reader, develop it in a few short passages, and close with what to do next.
|
|
90
90
|
|
|
91
|
-
This site reports no post sections yet — once it does, cite them here with @.`,"sandbox.formats.starterName":"Standard post","sandbox.formats.suggestButton":"Suggest formats","sandbox.formats.suggestFailed":"Couldn't suggest formats","sandbox.formats.suggestHint":"Name the formats this blog already writes in, from how its posts are built","sandbox.formats.suggested":"{count} format(s) added","sandbox.formats.unknownCitations":"This format cites sections the site doesn't have: {names}","sandbox.generatePost.stepCampaign":"Campaign","sandbox.generatePost.campaignHint":"A post is written for a campaign: it carries the moment, the products it may name and the links to them.","sandbox.generatePost.noCampaigns":"No campaign to write for yet. Create one under Context → Campaigns.","sandbox.generatePost.campaignProducts":"{count} product(s)","sandbox.generatePost.campaignNoProducts":"No products","sandbox.generatePost.formatBlocksHint":"The blocks this format cites are the only ones a post may be built from, and each is filled to its own schema.","sandbox.generatePost.countLabel":"How many drafts","sandbox.generatePost.countHint":"Each takes a different angle on the same campaign. They land as separate cards.","sandbox.generatePost.coverHint":"Every draft gets a cover image, generated and uploaded to your bucket.","sandbox.generatePost.gapNoStoreData":"No connected system answered, so nothing in these posts was checked against the store.","sandbox.generatePost.gapSectionsDropped":"{count} section(s) were dropped: their props did not match the block that renders them.","sandbox.generatePost.gapNoBucket":"No bucket to upload images to, so the posts have no cover. Configure one under Settings → Buckets.","sandbox.generatePost.gapNoImageModel":"This organization has no image model configured, so the posts have no cover.","sandbox.generatePost.gapImagesFailed":"The cover images could not be generated. The posts are otherwise complete.","sandbox.generatePost.gapDraftsFailed":"{count} draft(s) could not be written and their cards were left empty.","sandbox.generatePost.back":"Back","sandbox.generatePost.blockedBrand":"Fill in {fields} on the Brand tab first — a post written without them reads like any other brand's.","sandbox.generatePost.done":"Wrote {count} draft(s) — ready for review","sandbox.generatePost.extraLabel":"Anything else?","sandbox.generatePost.extraPlaceholder":"What you want on top of everything else, in your words.","sandbox.generatePost.failed":"Could not write these posts","sandbox.generatePost.formatHint":"Pick a format this brand already uses, or describe a new one.","sandbox.generatePost.formatNameLabel":"Format name","sandbox.generatePost.formatNamePlaceholder":"The format, named by the job it does","sandbox.generatePost.formatValueLabel":"How a post like this is built","sandbox.generatePost.formatValuePlaceholder":"How it opens, develops and closes.","sandbox.generatePost.generate":"Generate {count} draft(s)","sandbox.generatePost.next":"Next","sandbox.generatePost.stepExtra":"Instructions","sandbox.generatePost.stepFormat":"Format","sandbox.generatePost.subtitle":"Pick the campaign and the format. The posts land on the board as drafts.","sandbox.generatePost.title":"Generate posts","sandbox.itemActions.addVariant":"Add variant","sandbox.itemActions.delete":"Delete","sandbox.itemActions.discardChanges":"Discard changes","sandbox.itemActions.duplicate":"Duplicate","sandbox.itemActions.editSeo":"Edit SEO","sandbox.itemActions.moreActions":"More actions","sandbox.itemActions.rename":"Rename","sandbox.itemActions.viewJson":"View JSON","sandbox.itemRow.duplicateName":"Another record uses this name","sandbox.itemRow.missingFields":"Missing: {fields}","sandbox.itemRow.selectItem":"Select {title}","sandbox.itemRow.variantCount":"{count} variants","sandbox.listBlocks.addCard":"Add card","sandbox.listBlocks.addItem":"Add item","sandbox.listBlocks.addStat":"Add stat","sandbox.listBlocks.addStep":"Add step","sandbox.listBlocks.cardBody":"Card body","sandbox.listBlocks.cardTitle":"Card title","sandbox.listBlocks.checklistItem":"Checklist item","sandbox.listBlocks.checklistTitle":"Checklist title (optional)","sandbox.listBlocks.columnTitle":"Column title","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Label","sandbox.listBlocks.optionA":"Option A","sandbox.listBlocks.optionB":"Option B","sandbox.listBlocks.removeCard":"Remove card","sandbox.listBlocks.removeItem":"Remove item","sandbox.listBlocks.removeStat":"Remove stat","sandbox.listBlocks.removeStep":"Remove step","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Step description","sandbox.listBlocks.stepTitle":"Step title","sandbox.listBlocks.stepsTitle":"Steps title (optional)","sandbox.mediaBlocks.addCaption":"Add a caption…","sandbox.mediaBlocks.altText":"Alt text (accessibility)","sandbox.mediaBlocks.altLabel":"Alt","sandbox.mediaBlocks.buttonLabel":"Button label","sandbox.mediaBlocks.calloutText":"Callout text…","sandbox.mediaBlocks.calloutTitle":"Callout title","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://destination-url.com","sandbox.linkSuggest.button":"Suggest links","sandbox.linkSuggest.hint":"Find phrases to link to your other posts (uses AI credits)","sandbox.linkSuggest.noCandidates":"No other posts to link to yet","sandbox.linkSuggest.title":"Suggested internal links","sandbox.linkSuggest.description":"Pick which phrases to link to your other posts. Nothing changes until you apply.","sandbox.linkSuggest.none":"No internal links to suggest.","sandbox.linkSuggest.apply":"Apply {count}","sandbox.linkSuggest.applied":"Applied {count} link(s)","sandbox.linkSuggest.failed":"Could not suggest links","sandbox.linkPicker.tabPost":"Post","sandbox.linkPicker.tabProduct":"Product","sandbox.linkPicker.searchPosts":"Search your posts…","sandbox.linkPicker.noPosts":"No matching posts","sandbox.linkPicker.searchProducts":"Search your catalog…","sandbox.linkPicker.searching":"Searching…","sandbox.linkPicker.noProducts":"No matching products","sandbox.mediaBlocks.divider":"Divider","sandbox.mediaBlocks.fullWidth":"Full width","sandbox.mediaBlocks.highPriority":"Priority","sandbox.mediaBlocks.highPriorityHint":"Loads eagerly with high fetch priority. Use for images above the fold.","sandbox.mediaBlocks.label":"Label","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Optional description","sandbox.mediaBlocks.pasteVideoUrl":"Paste a YouTube or Vimeo URL to preview","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Video","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancel","sandbox.pageFormDialog.labelName":"Name","sandbox.pageFormDialog.labelPath":"Path","sandbox.pageFormDialog.labelTemplate":"Template","sandbox.pageFormDialog.pendingCreate":"Creating…","sandbox.pageFormDialog.pendingDuplicate":"Duplicating…","sandbox.pageFormDialog.pendingSave":"Saving…","sandbox.pageFormDialog.placeholderName":"My page","sandbox.pageFormDialog.placeholderPath":"/example","sandbox.pageFormDialog.submitCreate":"Create","sandbox.pageFormDialog.submitDuplicate":"Duplicate","sandbox.pageFormDialog.submitSave":"Save","sandbox.pageFormDialog.titleCreate":"Create new page","sandbox.pageFormDialog.titleDuplicate":"Duplicate page","sandbox.pageFormDialog.titleRename":"Rename page","sandbox.pathParamPickerChip.buttonTitle":"Value for {paramLabel} — click to pick","sandbox.pathParamPickerChip.couldNotLoad":"Couldn't load — is the dev server running?","sandbox.pathParamPickerChip.kindCategoryHeading":"Categories","sandbox.pathParamPickerChip.kindCategoryNoun":"category","sandbox.pathParamPickerChip.kindProductHeading":"Products","sandbox.pathParamPickerChip.kindProductNoun":"product","sandbox.pathParamPickerChip.loading":"Loading {noun}…","sandbox.pathParamPickerChip.noResults":"No results.","sandbox.pathParamPickerChip.pickValueHeading":"Pick a value for","sandbox.pathParamPickerChip.pickValueTitle":"Pick a value for {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Search {options} or enter a value…","sandbox.pathParamPickerChip.useRawValue":'Use "{rawTerm}" as {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Bulleted","sandbox.plainBlocks.codePlaceholder":"Code","sandbox.plainBlocks.headingLevel1":"Heading 1","sandbox.plainBlocks.headingLevel2":"Heading 2","sandbox.plainBlocks.headingLevel3":"Heading 3","sandbox.plainBlocks.headingLevel4":"Heading 4","sandbox.plainBlocks.headingPlaceholder":"Heading","sandbox.plainBlocks.languagePlaceholder":"language","sandbox.plainBlocks.listItemPlaceholder":"List item","sandbox.plainBlocks.numberedLabel":"Numbered","sandbox.plainBlocks.quotePlaceholder":"Quote","sandbox.postBoard.close":"Close","sandbox.postBoard.archived":"Moved to Archived","sandbox.postBoard.collapse":"Collapse to panel","sandbox.postBoard.collapseLane":"Collapse {lane}","sandbox.postBoard.delete":"Delete","sandbox.postBoard.emptyDescription":"Generate a few ideas and shape them into published posts.","sandbox.postBoard.emptyTitle":"No posts yet","sandbox.postBoard.duplicateTitle":"Duplicate title","sandbox.postBoard.expand":"Expand to full page","sandbox.postBoard.expandLane":"Expand {lane}","sandbox.postBoard.laneEmpty":"Nothing here yet","sandbox.postBoard.laneArchived":"Archived","sandbox.postBoard.laneGenerating":"Generating","sandbox.postBoard.laneDraft":"Draft","sandbox.postBoard.laneAwaitingReview":"Awaiting review","sandbox.postBoard.lanePublished":"Published","sandbox.postBoard.laneScheduled":"Scheduled","sandbox.postBoard.moveBlocked":"This post is missing required fields — open it to finish before scheduling.","sandbox.postBoard.moveFailed":"Could not move this post","sandbox.postBoard.moveInFlight":"Still moving this post…","sandbox.postBoard.moveNotATarget":"Generating is set by the generation run, not by hand.","sandbox.postBoard.nIssues":"{count} to fix before scheduling","sandbox.postBoard.newPost":"New post","sandbox.postBoard.newPostGenerate":"Generate","sandbox.postBoard.newPostGenerateHint":"Write it with AI, from your context","sandbox.postBoard.newPostWrite":"Write","sandbox.postBoard.newPostWriteHint":"Start an empty draft yourself","sandbox.postBoard.importContent":"Import content","sandbox.postBoard.importContentHint":"Bring in HTML or Markdown you already wrote","sandbox.postBoard.importTitle":"Import content","sandbox.postBoard.importDescription":"Paste HTML or Markdown you already wrote. It becomes an editable draft in your design system — no AI, no credits.","sandbox.postBoard.importUpload":"Upload a file","sandbox.postBoard.importRun":"Import","sandbox.postBoard.importEmpty":"Nothing to import — the content was empty.","sandbox.postBoard.imported":"Imported — review and publish.","sandbox.postBoard.readyToSchedule":"Ready to schedule","sandbox.postBoard.selectPrompt":"Select a post to view it here.","sandbox.postBoard.untitled":"Untitled post","sandbox.postBoard.generatingLabel":"Generating…","sandbox.postBoard.usesCredits":"Uses AI credits","sandbox.postBoard.viewBoard":"Board","sandbox.postBoard.viewList":"List","sandbox.postCalendar.couldNotCreate":"Could not create","sandbox.postCalendar.couldNotReschedule":"Could not reschedule","sandbox.postCalendar.createdScheduledPost":"Created scheduled post","sandbox.postCalendar.legendScheduled":"Scheduled","sandbox.postCalendar.legendUnscheduled":"Not scheduled","sandbox.postCalendar.next":"Next month","sandbox.postCalendar.onlyScheduledCanMove":"Only scheduled posts can be moved.","sandbox.postCalendar.previous":"Previous month","sandbox.postCalendar.schedulePostOn":"Schedule a post on {date}","sandbox.postCalendar.today":"Today","sandbox.postCalendar.unscheduledHint":"Dashed posts aren't scheduled — they sit on their display date, and nothing will publish them.","sandbox.postCalendar.undatedEmpty":"Every post has a date.","sandbox.postCalendar.undatedLabel":"No date · {count}","sandbox.postEditor.addPropLabel":"Add prop","sandbox.postEditor.authorsLabel":"Authors","sandbox.postEditor.categoriesLabel":"Categories","sandbox.postEditor.contentTab":"Content","sandbox.postEditor.coverAltDescription":"Describes the image for screen readers and when it fails to load. Empty: the post title is used.","sandbox.postEditor.coverAltLabel":"Cover image alt text","sandbox.postEditor.coverImageLabel":"Cover image","sandbox.postEditor.dateLabel":"Date","sandbox.postEditor.deletePost":"Delete post","sandbox.postEditor.deletePostCancel":"Cancel","sandbox.postEditor.deletePostConfirmBody":`"{title}" will be removed permanently. This can't be undone.`,"sandbox.postEditor.deletePostConfirmBodyDraft":'"{title}" will be removed from your draft. Nothing goes live until you publish, and until then you can bring it back by discarding this change in Publish.',"sandbox.postEditor.deletePostConfirmBodyNeverPublished":`"{title}" will be removed from your draft. It was never published, so nothing changes on the live site, and once removed it can't be brought back.`,"sandbox.postEditor.deletePostConfirmTitle":"Delete this post?","sandbox.postEditor.deletePostFailed":"Delete failed","sandbox.postEditor.deletePostSuccess":'Deleted "{title}"',"sandbox.postEditor.deletingPost":"Deleting…","sandbox.postEditor.duplicateTitleWarning":"Another post already uses this title. Duplicate titles compete with each other in search.","sandbox.postEditor.excerptLabel":"Excerpt","sandbox.postEditor.extraPropsLabel":"Extra props","sandbox.postEditor.issuePlural":"issues","sandbox.postEditor.issueSingular":"issue","sandbox.postEditor.keyPlaceholder":"key","sandbox.postEditor.legacyCodeBlock":"Code block","sandbox.postEditor.legacyContentPlaceholder":"Write the post…","sandbox.postEditor.legacyImageDataUrl":"Pasted image data isn't kept in the post. Upload the image or use its address.","sandbox.postEditor.legacyInsertImage":"Insert image from the library","sandbox.postEditor.legacyInsertImageUrl":"Insert image from a URL","sandbox.postEditor.legacySectionsNotice":"This post also has {count} blocks from the block editor. They are kept as they are; this editor only changes the HTML body.","sandbox.postEditor.missingFieldPlural":"Missing required fields: {fields}","sandbox.postEditor.missingFieldSingular":"Missing required field: {fields}","sandbox.postEditor.noAuthorsYet":"No authors yet — create some in the authors collection.","sandbox.postEditor.noCategoriesYet":"No categories yet — create some in the categories collection.","sandbox.postEditor.noContentYet":"This post has no content yet. Use ⊕ to add your first block.","sandbox.postEditScreen.notFound":"This post no longer exists","sandbox.postEditScreen.notFoundHint":"It may have been deleted, or the link points at an id this site does not have.","sandbox.postEditScreen.edit":"Edit","sandbox.postEditScreen.preview":"Preview","sandbox.postEditScreen.resizeSplit":"Resize the editor and the preview","sandbox.postEditScreen.resizeSplitHint":"Drag to resize. Double-click to reset.","sandbox.postPreview.desktop":"Desktop","sandbox.postPreview.frameTitle":"Post preview","sandbox.postPreview.missingParams":"Not enough to build the URL","sandbox.postPreview.missingParamsHint":"Set the post's slug, and its category when the blog route uses one.","sandbox.postPreview.mobile":"Mobile","sandbox.postPreview.noOrigin":"Waiting for the site","sandbox.postPreview.noOriginHint":"The preview appears once this project's site is serving.","sandbox.postPreview.noRoute":"This site has no blog post page","sandbox.postPreview.noRouteHint":"Add a page with the blog post section, or set the blog app's pageSlug, and the preview can render.","sandbox.postPreview.openInNewTab":"Open in new tab","sandbox.postPreview.refresh":"Refresh","sandbox.postEditor.postTitlePlaceholder":"Post title","sandbox.postEditor.readTimeLabel":"Read time (minutes)","sandbox.postEditor.previewRequiresSlugAndCategory":"Set the post slug (and its category) plus the blog app's pageSlug to preview","sandbox.postEditor.previewTooltip":"Open the post preview in a new tab","sandbox.postEditor.scheduledDatetimeDescription":"When this post goes live. The site publishes it on its own once this moment passes.","sandbox.postEditor.scheduledDatetimeLabel":"Goes live at","sandbox.postEditor.removePropLabel":"Remove prop","sandbox.postEditor.seePreview":"See preview","sandbox.postEditor.selectAuthorsPlaceholder":"Select authors","sandbox.postEditor.selectCategoriesPlaceholder":"Select categories","sandbox.postEditor.seoCanonicalLabel":"Canonical URL","sandbox.postEditor.seoCanonicalPlaceholder":"https://example.com/blog/my-post","sandbox.postEditor.seoDescriptionLabel":"SEO description","sandbox.postEditor.seoImageLabel":"SEO image","sandbox.postEditor.seoNoIndexingLabel":"Hide from search engines (noindex)","sandbox.postEditor.seoSectionHint":"Overrides how this post appears in search engines. Empty fields fall back to the post's title, excerpt and cover image.","sandbox.postEditor.seoSectionLabel":"SEO","sandbox.postEditor.seoTitleLabel":"SEO title","sandbox.postEditor.settingsTab":"Settings","sandbox.postEditor.statusLabel":"Status","sandbox.postEditor.slugDeduped":"That slug was already taken — saved as “{slug}”.","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"my-post","sandbox.postEditor.valuePlaceholder":"value","sandbox.postList.noMatches":"No posts match your search or filters.","sandbox.postToolbar.allPosts":"All posts","sandbox.postToolbar.archiveSelected":"Archive selected","sandbox.postToolbar.archiveSelectedPosts":"Archive selected posts","sandbox.postToolbar.authorLabel":"Author","sandbox.postToolbar.categoryLabel":"Category","sandbox.postToolbar.clearFilter":"Clear filter","sandbox.postToolbar.deselectAll":"Deselect all","sandbox.postToolbar.deselectAllPosts":"Deselect all posts","sandbox.postToolbar.exitSelection":"Exit selection","sandbox.postToolbar.filterBy":"Filter by","sandbox.postToolbar.filterLabel":"Filter","sandbox.postToolbar.itemsSelected":"{count} selected","sandbox.postToolbar.clearSearch":"Clear search","sandbox.postToolbar.searchAriaLabel":"Search posts","sandbox.postToolbar.searchPlaceholder":"Search posts","sandbox.postToolbar.selectAll":"Select all","sandbox.postToolbar.selectAllPosts":"Select all posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Sort by","sandbox.postToolbar.sortNewest":"Newest","sandbox.postToolbar.sortNewestFirst":"Newest first","sandbox.postToolbar.sortOldest":"Oldest","sandbox.postToolbar.sortOldestFirst":"Oldest first","sandbox.postToolbar.sortTitleAZ":"Title A–Z","sandbox.postToolbar.sortTitleZA":"Title Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.postToolbar.statusLabel":"Status","sandbox.preview.catchAllParamLabel":"path","sandbox.preview.choosePage":"Choose page","sandbox.preview.clickElementToAsk":"Click any element to ask the AI","sandbox.preview.collapseTerminal":"Collapse terminal","sandbox.preview.expandTerminal":"Expand terminal","sandbox.preview.resizeTerminal":"Resize terminal","sandbox.preview.createNewPage":"Create new page","sandbox.preview.devServerPreviewTitle":"Dev Server Preview","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Mobile (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.enterToGo":"Enter to go","sandbox.preview.failedToCreatePage":"Failed to create page","sandbox.preview.globalBadge":"Global","sandbox.preview.globalComponents":"Global components","sandbox.preview.globalLoaders":"Global loaders","sandbox.preview.loaderBadge":"Loader","sandbox.preview.loaderNoLongerExists":"This loader no longer exists.","sandbox.preview.noPagesFound":"No pages found in this site.","sandbox.preview.noSearchResults":"No results match your search.","sandbox.preview.siteRoutes":"Site routes","sandbox.preview.noServerRunning":"No server running","sandbox.preview.openInNewTab":"Open in new tab","sandbox.preview.pageAlreadyExists":'A page with path "{path}" already exists.',"sandbox.preview.pageCreated":'Page "{name}" created',"sandbox.preview.blockOnNoPage":"This block isn't used on any page, so there's nothing to preview.","sandbox.preview.previewMetadataNotReady":"Preview metadata not ready yet","sandbox.preview.pageSchemaNotReady":"The site is still loading. Try again in a moment.","sandbox.preview.searchPagesAndComponents":"Search pages and components...","sandbox.preview.startingPreview":"Starting your preview","sandbox.preview.startingPreviewHint":"Showing your published site. You can make changes now — they'll appear once the preview is ready.","sandbox.preview.templateNoLongerExists":"Selected template no longer exists.","sandbox.preview.valueForParam":"Value for {label}","sandbox.preview.blocksEditor":"Blocks editor","sandbox.preview.visualEditor":"Visual editor","sandbox.productBlocks.addProductIdButton":"Add product ID","sandbox.productBlocks.addProductsButton":"Add products","sandbox.productBlocks.addProductsDescription":"Search VTEX products, or pick a category or cluster","sandbox.productBlocks.browseProductsButton":"Browse products","sandbox.productBlocks.changeButton":"Change","sandbox.productBlocks.chooseProductButton":"Choose a product","sandbox.productBlocks.ctaLabelField":"CTA label","sandbox.productBlocks.ctaLabelPlaceholder":"View product","sandbox.productBlocks.dragToReorderLabel":"Drag to reorder","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Loading…","sandbox.productBlocks.productCardLabel":"Product card","sandbox.productBlocks.productField":"Product","sandbox.productBlocks.productPlural":"products","sandbox.productBlocks.productSingular":"product","sandbox.productBlocks.productSlugField":"Product slug","sandbox.productBlocks.productSlugPlaceholder":"product-slug","sandbox.productBlocks.productWithId":"Product {id}","sandbox.productBlocks.removeProductButton":"Remove product","sandbox.productBlocks.removeProductIdButton":"Remove product ID","sandbox.productBlocks.removeProductLabel":"Remove product","sandbox.productBlocks.shelfTitlePlaceholder":"Shelf title","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Start the dev server to browse products, or add SKU ids below.","sandbox.productBlocks.vtexProductIdPlaceholder":"VTEX product ID (e.g. 151331)","sandbox.productBlocks.vtexProductIds":"VTEX product IDs","sandbox.productPickerDialog.addProducts":"Add products","sandbox.productPickerDialog.categoryLabel":"Category: ","sandbox.productPickerDialog.change":" — change","sandbox.productPickerDialog.chooseProduct":"Choose a product","sandbox.productPickerDialog.clusterIdPlaceholder":"Collection / cluster ID (e.g. 2140)","sandbox.productPickerDialog.couldNotLoad":"Couldn't load — is the dev server running?","sandbox.productPickerDialog.done":"Done","sandbox.productPickerDialog.enterClusterPrompt":"Enter a collection or cluster ID.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filter categories…","sandbox.productPickerDialog.loadingCategories":"Loading categories…","sandbox.productPickerDialog.loadingProducts":"Loading products…","sandbox.productPickerDialog.modeCategory":"Category","sandbox.productPickerDialog.modeClusterId":"Cluster ID","sandbox.productPickerDialog.modeSearch":"Search","sandbox.productPickerDialog.noCategories":"No categories.","sandbox.productPickerDialog.noProductsFound":"No products found.","sandbox.productPickerDialog.noneSelected":"None selected","sandbox.productPickerDialog.pickCategoryPrompt":"Pick a category to see its products.","sandbox.productPickerDialog.searchProductsPlaceholder":"Search products by name or ID…","sandbox.productPickerDialog.selectedCount":"{count} selected","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Company","sandbox.recordEditor.fieldEmail":"Email","sandbox.recordEditor.fieldJobTitle":"Job title","sandbox.recordEditor.fieldName":"Name","sandbox.recordEditor.fieldType":"Type","sandbox.recordEditor.fieldUrl":"Website","sandbox.recordEditor.optionOrganization":"Organization","sandbox.recordEditor.optionPerson":"Person","sandbox.recordEditor.placeholderEmail":"author@example.com","sandbox.recordEditor.placeholderUrl":"https://example.com","sandbox.recordEditor.titleAuthor":"Author","sandbox.redirectFormDialog.title":"Create redirect","sandbox.redirectFormDialog.submit":"Create","sandbox.redirectFormDialog.pending":"Creating…","sandbox.redirectFormDialog.cancel":"Cancel","sandbox.redirectFormDialog.errorRequired":"From and To are required.","sandbox.redirectEditor.discardQueryParameters":"Discard query parameters","sandbox.redirectEditor.fromDescription":"The source path to match. Supports URLPattern syntax (e.g. /product/:slug).","sandbox.redirectEditor.fromLabel":"From","sandbox.redirectEditor.fromPlaceholder":"/old-path","sandbox.redirectEditor.statusDescription":"An explicit status code wins over the type.","sandbox.redirectEditor.statusFromType":"Follow the type ({status})","sandbox.redirectEditor.statusLabel":"Status code","sandbox.redirectEditor.title":"Redirect","sandbox.redirectEditor.toDescription":"The destination — a relative path or an absolute URL.","sandbox.redirectEditor.toLabel":"To","sandbox.redirectEditor.toPlaceholder":"/new-path","sandbox.redirectEditor.typeLabel":"Type","sandbox.redirectEditor.typePermanent":"Permanent ({status})","sandbox.redirectEditor.typePlaceholder":"Type","sandbox.redirectEditor.typeTemporary":"Temporary ({status})","sandbox.cmsSettings.title":"CMS","sandbox.cmsSettings.preview.title":"Preview","sandbox.cmsSettings.preview.description":"See your changes before they go live.","sandbox.cmsSettings.fastPreview.label":"Fast Preview","sandbox.cmsSettings.fastPreview.description":"New chats start as CMS sessions, previewed on your preview server instead of a sandbox. Existing chats keep the mode they were created with.","sandbox.cmsSettings.fastPreview.needsPreviewServerUrl":"Set a preview server above to enable Fast Preview.","sandbox.cmsSettings.blocksV8.needsPreviewServerUrl":"Add your site's address above to preview drafts. Until then, new chats start a coding session.","sandbox.cmsSettings.fastPreviewInPlace.label":"Instant preview (experimental)","sandbox.cmsSettings.fastPreviewInPlace.description":"Refresh edits in place, without waiting for a save — much faster, but only works on websites that have /live/previews route.","sandbox.cmsSettings.contentEditing.on":"Enabled","sandbox.cmsSettings.contentEditing.onDescription":"The Site Editor offers Content and opens Blocks beside Preview on desktop.","sandbox.cmsUnavailable.noPreviewServer":"It's a CMS session, but this project has no preview server configured.","sandbox.cmsUnavailable.noRepo":"It's a CMS session, but this project has no GitHub repository to save to.","sandbox.cmsUnavailable.startCodingSession":"Continue this branch in a coding session","sandbox.previewServerUrlField.description":"Your live server's address, used to preview content. Required for Fast Preview.","sandbox.previewServerUrlField.descriptionBlocksV8":"Your live site's address. Studio shows your drafts on it before you publish. A new address shows drafts after your next publish.","sandbox.previewServerUrlField.label":"Preview server","sandbox.previewServerUrlField.placeholder":"https://example.com","sandbox.fieldDescriptionTooltipsField.label":"Compact descriptions","sandbox.fieldDescriptionTooltipsField.description":"In the blocks form, show a field's description as a hover tooltip on its title instead of text below the title.","sandbox.legacyBlogPostFormatField.label":"Legacy blog post editor","sandbox.legacyBlogPostFormatField.description":"Edit a blog post's body via HTML, in one rich-text editor saved to its content field, the format older blog templates read, instead of as blocks.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edits stay local until you save this as a global {singular}. Run to invoke it against the live preview.","sandbox.runnableBlockEditor.closeJsonEditor":"Close JSON editor","sandbox.runnableBlockEditor.closeResult":"Close result","sandbox.runnableBlockEditor.collapse":"Collapse","sandbox.runnableBlockEditor.collapseResult":"Collapse result","sandbox.runnableBlockEditor.editAsJson":"Edit as JSON","sandbox.runnableBlockEditor.expand":"Expand","sandbox.runnableBlockEditor.expandResult":"Expand result","sandbox.runnableBlockEditor.failedToRun":"Failed to run {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"This {singular} doesn't publish a props schema. Edit its props as JSON, then run it.","sandbox.runnableBlockEditor.inferredSchemaNotice":"This {singular} doesn't publish a props schema — fields below are inferred from its saved values. Use the JSON editor to add props not shown here.","sandbox.runnableBlockEditor.invalidJsonError":"Invalid JSON — changes aren't saved until it parses.","sandbox.runnableBlockEditor.noInputEmptyState":"This {singular} takes no configurable input. Run it to see its output.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Open in new tab (re-runs the {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Open result in new tab","sandbox.runnableBlockEditor.pressRunToInvoke":"Press Run to invoke this {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Result","sandbox.runnableBlockEditor.run":"Run","sandbox.runnableBlockEditor.runAriaLabel":"Run {singular}","sandbox.runnableBlockEditor.running":"Running {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Save as global {singular}","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Save as global {singular}","sandbox.runnableBlockEditor.savedModeDescription":"Global {singular} — changes save automatically. Run to invoke it against the live preview.","sandbox.runnableBlocksBrowser.emptyFolder":"This folder is empty.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Start the preview dev server so its manifest loads.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"No {kind} here","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Folder breadcrumb","sandbox.runnableBlocksBrowser.hideSaved":"Hide saved","sandbox.runnableBlocksBrowser.noSearchResults":'No {kind} match "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"Search covers every folder — try a different term.","sandbox.runnableBlocksBrowser.savedBlockToast":'Saved {singular} "{blockId}"',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} saved","sandbox.runnableBlocksBrowser.searchAriaLabel":"Search all {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Search all {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"See saved","sandbox.runtimeFields.auto":"Auto","sandbox.runtimeFields.autoDetect":"Auto-detect","sandbox.runtimeFields.devServerPort":"Dev server port","sandbox.runtimeFields.devServerPortDescription":"Leave blank to let the runner pick.","sandbox.runtimeFields.packageManager":"Package manager","sandbox.runtimeFields.packagePath":"Package path","sandbox.runtimeFields.packagePathDescription":"Path (relative to repo root) to the directory containing package.json. Leave blank for the repo root.","sandbox.runtimeApps.title":"Other apps","sandbox.runtimeApps.description":"Other apps of this repository to preview beside the main one, up to {max}. Each runs its own dev server.","sandbox.runtimeApps.add":"Add app","sandbox.runtimeApps.remove":"Remove {path}","sandbox.runtimeApps.duplicate":"This app is already in the list.","sandbox.appTabs.label":"Apps","sandbox.appTabs.root":"root","sandbox.appTabs.main":"Main","sandbox.appTabs.remove":"Remove {app}","sandbox.appTabs.add":"Add another app from this repository","sandbox.appTabs.pathLabel":"Path of the app in the repository, like apps/checkout","sandbox.appTabs.mainHint":"The chat and the editor work on this app.","sandbox.appTabs.extraHint":"Preview only. The chat keeps working on {app}.","sandbox.appPane.previewOnly":"Preview only. The chat and the editor keep working on {app}.","sandbox.appTabs.saveError":"Couldn't save the project's apps.","sandbox.appTabs.split":"View side by side","sandbox.appTabs.single":"View one app","sandbox.appPane.path":"Path in {app}","sandbox.appPane.reload":"Reload {app}","sandbox.appPane.openInNewTab":"Open {app} in a new tab","sandbox.appPane.close":"Close {app}","sandbox.appPane.failed":"The sandbox couldn't start. Retry from {app}.","sandbox.appPane.waiting":"Starting the sandbox…","sandbox.appPane.noUrl":"This app has no preview address.","sandbox.appPane.notStarted":"{app} isn't running yet: the sandbox started before it was added.","sandbox.appPane.start":"Start {app}","sandbox.savedSectionEditor.closeJsonEditor":"Close JSON editor","sandbox.saveStatus.failed":"Couldn't save","sandbox.saveStatus.saved":"Saved","sandbox.saveStatus.saving":"Saving…","sandbox.savedSectionEditor.editAsJson":"Edit as JSON","sandbox.savedSectionEditor.globalSectionDescription":"Global section — changes save automatically and apply everywhere it's used.","sandbox.savedSectionEditor.invalidJsonError":"Invalid JSON — changes aren't saved until it parses.","sandbox.savedSectionEditor.noEditableFields":"No editable fields for this section.","sandbox.schemaless.agentPrompt":"This site's content is edited in deco Studio, but Studio hasn't received the site's schema yet, so its content forms show raw fields. Please set that up in this repository:\n\n1. Make sure @decocms/blocks is 8.11.0 or newer (upgrade it if not), then run `npx deco skills install` to add the deco framework skills to this repository.\n2. Load the deco-site-workflow skill and follow its references/schema.md: generate the schema with `npx deco schema` and commit .deco/schema.gen.json; make DECO_SITE resolve to the Studio site {site}; send the schema to Studio with `npx deco schema push`; and wire `npx deco schema push` into the production deploy (after the deploy succeeds, with a Studio API key in the DECO_TOKEN secret) so every deploy sends it.\n3. Run `npx deco check` and report back: what you changed, and what each command printed.","sandbox.schemaless.agentPromptSiteUnknown":"this project uses (ask me for its name if you can't find it)","sandbox.schemaless.back":"All blocks","sandbox.schemaless.bannerBody":"This site hasn't sent Studio its schema yet (the description of each form's fields), so every block opens with plain fields built from its saved values. Saving still keeps everything else as it is. Ask the coding agent working on your site to set it up: copy the prompt and paste it into the agent. It takes one deploy, and the forms here update on their own.","sandbox.schemaless.bannerTitle":"Content forms are showing raw fields","sandbox.schemaless.copyPrompt":"Copy prompt for your agent","sandbox.schemaless.copyPromptFailed":"Couldn't copy the prompt. Check that this page may use the clipboard, then try again.","sandbox.schemaless.empty":"Empty","sandbox.schemaless.installSkill":"Install skill","sandbox.schemaless.item":"Item {n}","sandbox.schemaless.itemCount":"{count} items","sandbox.schemaless.listLabel":"Saved blocks","sandbox.schemaless.noBlocks":"No saved blocks yet.","sandbox.schemaless.noMatches":"No blocks match your search.","sandbox.schemaless.noType":"Without a type","sandbox.schemaless.notANumber":"Enter a number. The saved value stays until you do.","sandbox.schemaless.notSet":"Not set","sandbox.schemaless.pickBlock":"Pick a block to see its content.","sandbox.schemaless.promptCopied":"Copied","sandbox.schemaless.promptCopiedAnnouncement":"Prompt copied to the clipboard","sandbox.schemaless.searchPlaceholder":"Search blocks","sandbox.schemaless.usesSkill":"Uses the deco-site-workflow skill","sandbox.sectionRenameDialog.cancel":"Cancel","sandbox.sectionRenameDialog.description":"Updates the display name. The internal key stays the same so pages referencing this section keep working.","sandbox.sectionRenameDialog.keyLabel":"Key","sandbox.sectionRenameDialog.nameLabel":"Name","sandbox.sectionRenameDialog.save":"Save","sandbox.sectionRenameDialog.saving":"Saving…","sandbox.sectionRenameDialog.title":"Rename section","sandbox.sectionsRightPane.selectSectionDescription":"Pick a saved section to edit it, or an available one to customize and save as global.","sandbox.sectionsRightPane.selectSectionTitle":"Select a section to edit","sandbox.stateCard.erroredHeadline":"Couldn't start the sandbox","sandbox.stateCard.githubConnectionMissingMessage":"The GitHub connection this chat used was removed. Link the repository again to start the sandbox.","sandbox.stateCard.linkRepoAgain":"Link repository","sandbox.stateCard.githubNotAuthenticatedMessage":"This project's GitHub repo isn't authenticated. Reconnect it in Connections, then retry.","sandbox.stateCard.reconnectGithub":"Reconnect GitHub","sandbox.stateCard.resume":"Resume","sandbox.stateCard.suspendedHeadline":"Sandbox is paused","sandbox.stateCard.resumeToContinue":"Resume to continue.","sandbox.stateCard.retry":"Retry","sandbox.tableBlock.addColumn":"Add column","sandbox.tableBlock.addRow":"Add row","sandbox.tableBlock.headerPlaceholder":"Header {n}","sandbox.tableBlock.noRowsYet":"No rows yet — add one below.","sandbox.tableBlock.removeColumn":"Remove column {n}","sandbox.tableBlock.removeRow":"Remove row {n}","sandbox.toolbar.closeTab":"Close {tab}","sandbox.toolbar.moreActions":"More actions","sandbox.toolbar.noScriptsFound":"No scripts found","sandbox.toolbar.restart":"Restart","sandbox.toolbar.resume":"Resume","sandbox.toolbar.retry":"Retry","sandbox.toolbar.run":"Run","sandbox.toolbar.runAScript":"run a script","sandbox.toolbar.runScript":"Run script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Start","sandbox.toolbar.startProcess":"Start process","sandbox.toolbar.stop":"Stop","sandbox.toolbar.stopProcess":"Stop process","sandbox.toolbar.stopSandboxTooltip":"Stop sandbox","sandbox.toolbar.stopping":"Stopping…","sandbox.variantCalendar.always":"Always","sandbox.variantCalendar.calendarMode":"Calendar","sandbox.variantCalendar.dateMatcherInfo":"Variants gated by a date matcher appear here.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} ongoing variant(s) hidden — enable "Show ongoing" to view.',"sandbox.variantCalendar.next":"Next","sandbox.variantCalendar.noDatedVariants":"No dated variants in view.","sandbox.variantCalendar.noScheduledVariants":"No scheduled variants.","sandbox.variantCalendar.ongoing":"Ongoing","sandbox.variantCalendar.previous":"Previous","sandbox.variantCalendar.showOngoing":"Show ongoing ({count})","sandbox.variantCalendar.timelineMode":"Timeline","sandbox.variantCalendar.today":"Today","sandbox.variantCalendar.todayLabel":"Today","sandbox.variantCalendar.variantBlock":"Variant / Block","sandbox.visualEditorPrompt.inputPlaceholder":"Ask the AI...","sandbox.visualEditorPrompt.sendButton":"Send","sandbox.calendarView.noDraft.title":"Pick a draft to plan your campaigns","sandbox.calendarView.noDraft.desc":"Your campaigns are saved in a draft, like any other edit. Pick a draft in the bar above, or open the site editor to start one.","sandbox.calendarView.loadFailed":"Couldn't load your campaigns.","sandbox.calendarView.loadFailedHint":"Nothing was changed. Try again in a moment.","sandbox.dateCampaigns.intro":"Every date on your site is a campaign: a variant with the rule “Campaign” shows while its campaign runs. Changes are saved in your draft and go live when you publish.","sandbox.dateCampaigns.new":"New campaign","sandbox.dateCampaigns.empty.title":"No campaigns yet","sandbox.dateCampaigns.empty.desc":"Create one here, or from a variant in the site editor: choose the rule “Campaign” and type a name.","sandbox.dateCampaigns.listMode":"List","sandbox.dateCampaigns.timelineMode":"Timeline","sandbox.dateCampaigns.status.running":"Running","sandbox.dateCampaigns.status.upcoming":"Upcoming","sandbox.dateCampaigns.status.ended":"Ended","sandbox.dateCampaigns.status.always":"Always on","sandbox.dateCampaigns.status.unreadable":"Dates can't be read","sandbox.dateCampaigns.state.new":"Not published yet","sandbox.dateCampaigns.state.changed":"Changed in your draft","sandbox.dateCampaigns.removedTitle":"Removed in your draft","sandbox.dateCampaigns.removedHint":"These campaigns stop when you publish. To keep one, create it again with the same name.","sandbox.dateCampaigns.unreadableHint":"One of its dates can't be read, so its variants don't show. Pick new dates and save.","sandbox.dateCampaigns.publishedWindow":"Published: {window}","sandbox.dateCampaigns.saveDates":"Save dates","sandbox.dateCampaigns.delete":"Delete campaign","sandbox.dateCampaigns.deleted":"Campaign “{name}” deleted from your draft","sandbox.dateCampaigns.deletedHint":"It leaves the site when you publish. Undo brings it back.","sandbox.dateCampaigns.allCampaigns":"All campaigns","sandbox.dateCampaigns.today":"Today","sandbox.dateCampaigns.previous":"Earlier","sandbox.dateCampaigns.next":"Later","sandbox.dateCampaigns.nothingInRange":"No campaign runs in these months.","sandbox.dateCampaigns.missing.title":"Your site needs an update for campaigns","sandbox.dateCampaigns.missing.desc":"Ask your developer to update the site to the latest version of Blocks and publish it. Your campaigns will show up here.","sandbox.dateCampaigns.replaced.title":"Your site handles campaigns in its own code","sandbox.dateCampaigns.replaced.desc":"Its developers defined their own campaigns, so they can't be changed here. Ask them how to change one.","sandbox.dateCampaigns.conflict.title":"Your site already has a block named “campaigns”","sandbox.dateCampaigns.conflict.desc":"It isn't a list of campaigns, so campaigns can't be added yet. Rename that block, then come back here.","sandbox.previewAs.label":"Preview as","sandbox.previewAs.intro":"Only this preview changes. Your visitors keep seeing the site as it is.","sandbox.previewAs.unavailable":"Make a change or publish your site first; then the preview can show another moment or force a test.","sandbox.previewAs.momentLabel":"Preview as of","sandbox.previewAs.momentHint":"Campaigns show as they will at this moment. Times are in your computer's time zone.","sandbox.previewAs.now":"Now","sandbox.previewAs.testsLabel":"A/B tests","sandbox.previewAs.testsHint":"Not set: you see the side your own visit got.","sandbox.previewAs.noTests":"No A/B tests yet.","sandbox.previewAs.testsLoadFailed":"Couldn't load your tests.","sandbox.previewAs.tryAgain":"Try again","sandbox.previewAs.off":"Off","sandbox.previewAs.on":"On","sandbox.previewAs.reset":"Show as it is now"},cte={"settings.subscriptionUsage.refresh":"Refresh","settings.subscriptionUsage.codeReview":"Code review","settings.subscriptionUsage.primary":"Primary limit","settings.subscriptionUsage.secondary":"Secondary limit","settings.subscriptionUsage.resets":"Resets {date}","settings.subscriptionUsage.limitReached":"Limit reached","settings.subscriptionUsage.viewUsage":"View usage","settings.subscriptionUsage.openProvider":"View on provider","settings.voice.title":"Voice mode","settings.voice.description":"Let members talk to agents by voice. Needs ElevenLabs set up on this deployment.","settings.title":"Profile & Preferences","settings.nav.organization":"Organization","settings.nav.build":"Build","settings.nav.manage":"Manage","settings.nav.general":"General","settings.nav.connect":"Connect","settings.nav.aiProviders":"AI Providers","settings.nav.secrets":"Secrets","settings.nav.billing":"Billing & AI","settings.nav.buckets":"Buckets","settings.nav.syncedRepos":"Synced repos","settings.nav.repositories":"Repositories","settings.nav.storage":"Storage","settings.nav.advanced":"Advanced","settings.subnav.ariaLabel":"Settings sections","settings.subnav.infrastructure":"Infrastructure","settings.nav.tasks":"Board","settings.jira.sectionTitle":"Jira","settings.jira.connectTitle":"Connect Jira","settings.jira.connectDescription":"Use a Jira Cloud site and an API token, ideally from a service account with access to the project.","settings.jira.siteLabel":"Jira site","settings.jira.sitePlaceholder":"yourcompany.atlassian.net","settings.jira.emailLabel":"Atlassian account email","settings.jira.emailPlaceholder":"you@company.com","settings.jira.tokenLabel":"API token","settings.jira.tokenPlaceholder":"Paste your token","settings.jira.connect":"Connect","settings.jira.connecting":"Connecting…","settings.jira.connected":"Jira connected","settings.jira.connectFailed":"Could not connect to Jira","settings.jira.disconnect":"Disconnect","settings.jira.disconnected":"Jira disconnected","settings.jira.disconnectTitle":"Disconnect Jira?","settings.jira.disconnectDescription":"The sync stops and the credentials are deleted. Cards already on the board stay, but stop updating.","settings.jira.cancel":"Cancel","settings.jira.boardLabel":"Jira board","settings.jira.boardDescription":"Studio acts when a card enters one of this board's columns.","settings.jira.boardPlaceholder":"Select a board","settings.jira.boardSearchPlaceholder":"Search boards…","settings.jira.noBoardsMatch":"No board matches that search","settings.jira.loadingBoards":"Loading boards…","settings.jira.enabledLabel":"Integration enabled","settings.jira.enabledDescription":"While off, cards moving on the board are ignored.","settings.jira.enableRequirements":"Pick a board before enabling the integration","settings.jira.saveFailed":"Could not save the Jira settings","settings.jira.createTokenLink":"Create an API token","settings.jira.webhookTitle":"Instant updates (webhook)","settings.jira.webhookDescription":"Optional. Without it, an issue entering an automated status is picked up on the next 5-minute check; with it, the run starts once the card has stayed put for 20 seconds.","settings.jira.webhookCopy":"Copy","settings.jira.webhookCopied":"Webhook URL copied","settings.jira.webhookStep1":"In Jira, open Settings (gear icon) → System → Webhooks. This requires a Jira admin.","settings.jira.webhookStep2":"Click “Create a webhook” and paste the URL above.","settings.jira.webhookStep3":"Under Events, check Issue: created and Issue: updated.","settings.jira.webhookStep4":"Optionally scope it with a JQL filter, e.g. project = <your project key>.","settings.jira.webhookStep5":"Save. An issue entering an automated status now starts its run once it has stayed there for 20 seconds.","settings.jira.automationsLabel":"Run the agent when an issue enters…","settings.jira.automationsDescription":"The automations that run when an issue enters one of these statuses and stays there for 20 seconds. Open one to change its prompt, or give any automation a “When a Jira issue enters a status” starter. A card dragged through a status, or into the wrong one and straight back, starts nothing. An issue that links an open pull request has it continued. The agent reads the issue and updates it in Jira; nothing is copied to the board.","settings.jira.toggleAutomation":"Turn {name} on or off","settings.jira.addAutomation":"Add automation","settings.jira.fromAny":"From any column","settings.jira.fromEarlier":"From an earlier column","settings.jira.fromLater":"From a later column (sent back)","settings.jira.fromStatuses":"From {statuses}","settings.jira.originLabel":"When the card comes from","settings.jira.originStatusesPlaceholder":"Pick statuses","settings.jira.originHelp":"A move starts one rule: the one naming where the card came from, else the one for its direction on the board, else the one for any column. Where it came from is the status it last stayed in, not one it was dragged through.","settings.jira.createRule":"Create automation","settings.jira.cancelRule":"Cancel","settings.jira.noColumnsYet":"No columns on this board yet","settings.jira.columnsFailed":"Could not load this board's columns","settings.jira.testRunLabel":"Run it by hand","settings.jira.testRunDescription":"Run an automation on one issue or a batch now, without enabling the integration, to see what its prompt does.","settings.jira.issueKeysPlaceholder":"ABC-123 or a link, one per line or comma-separated","settings.jira.issueKeysCount":"{count} issue(s)","settings.jira.issueKeysUnreadable":"could not read: {items}","settings.jira.testRunIssueAriaLabel":"Jira issue key or link","settings.jira.testRun":"Run agent {count}","settings.jira.testRunRunning":"Starting…","settings.jira.testRunStarted":"Started on","settings.jira.testRunFailed":"Could not start the run","settings.jira.testRunHelp":"This is a real run: the agent reads the actual issue, comments on it, and may move it. Running it again stops whatever run is still working that issue, and an issue that links an open pull request has it continued.","settings.jira.testRunAutomation":"Automation to run","settings.jira.testRunNoAutomations":"Add an automation above first: running by hand fires one of them.","settings.jira.together":"One run for all of them, so the agent works the issues as a batch","settings.jira.togetherStarted":"Started one run on","settings.jira.testRunWatch":"Watch runs in Monitor","settings.syncedRepos.addRepo":"Add repo","settings.syncedRepos.cancel":"Cancel","settings.syncedRepos.create":"Create","settings.syncedRepos.creating":"Creating…","settings.syncedRepos.created":'Sync created — syncing into "{volume}" in the background',"settings.syncedRepos.emptyTitle":"No synced repos yet","settings.syncedRepos.emptyDescription":"Pick a repository and it will appear in the library as a read-only folder, kept in sync automatically.","settings.syncedRepos.failed":"Something went wrong","settings.syncedRepos.nameDialogDescription":"{repo} will be kept in sync into this read-only library folder.","settings.syncedRepos.nameDialogTitle":"Name the synced folder","settings.syncedRepos.namePlaceholder":"folder-name","settings.syncedRepos.pickerTitle":"Sync a repo into the library","settings.syncedRepos.remove":"Stop syncing","settings.syncedRepos.removeDescription":"The already-synced files stay in the library; only the sync stops. You can delete the folder afterwards if you don't need it.","settings.syncedRepos.removeTitle":'Stop syncing "{volume}"?',"settings.syncedRepos.removed":"Sync removed","settings.syncedRepos.rowSubtitle":"Library folder: {volume}","settings.repositories.accountsTitle":"Connected accounts","settings.repositories.accountsEmptyTitle":"No accounts connected","settings.repositories.accountsEmptyDescription":"Connect a GitHub, GitLab or Bitbucket account to browse your repositories and link private ones.","settings.repositories.noProvidersTitle":"No git provider configured","settings.repositories.noProvidersDescription":"Signing in with GitHub, GitLab or Bitbucket needs provider credentials an administrator configures for this deployment. You can still connect a GitLab or Bitbucket account with an access token.","settings.repositories.githubUnavailable":"Ask an administrator to enable GitHub.","settings.repositories.connectGithubCli":"Connect with GitHub CLI","settings.repositories.githubCliHint":"Use your local gh login to browse and import repositories.","settings.repositories.authKindGithubCli":"GitHub CLI","settings.repositories.addGithubAccount":"Add GitHub account or organization","settings.repositories.githubSelectTitle":"Select repositories","settings.repositories.githubSelectedShareHint":"Members with repository permissions in {organization} can use the repositories you authorize here.","settings.repositories.githubPreselectedHint":"Previously authorized or linked repositories are already selected when you have permission to authorize them. Review the selection before saving.","settings.repositories.githubReplaceHint":"Saving replaces this account’s existing workspace access with your selection. Removed repositories stop receiving new credentials. Previously issued credentials may work until they expire.","settings.repositories.githubFilterRepos":"Search repositories","settings.repositories.githubNoRepos":"No repositories available to authorize.","settings.repositories.githubSearchNoMatches":"No repositories match your search.","settings.repositories.githubAccessChanged":"Someone changed this account’s access. Go back and review the repositories again before saving.","settings.repositories.githubMoreRepos":"Load more repositories","settings.repositories.githubBack":"Back to accounts","settings.repositories.githubSaveOneRepo":"Authorize 1 repository","settings.repositories.githubSaveRepos":"Authorize {count} repositories","settings.repositories.githubEditWorkspaceAccess":"Change workspace access","settings.repositories.githubShareHint":"Choose your personal GitHub account, or an organization where you administer repositories, to share with {organization}. Members with repository permissions in Studio can use this connection.","settings.repositories.githubInstallHint":"Nothing here is yours to share yet. Install the GitHub App on your personal account or on repositories you administer, or ask an account owner to connect it to Studio. A repository you only collaborate on is not yours to share.","settings.repositories.installGithubAccount":"Install on another account","settings.repositories.checkGithubAccess":"Check access","settings.repositories.switchGithubUser":"Use another GitHub login","settings.repositories.githubReturnHint":"GitHub opens in a new tab. After saving access, return here to choose the account. If it does not appear, use Check access.","settings.repositories.githubRefreshFailed":"Could not check GitHub access. Try again without leaving this dialog.","settings.repositories.githubConnected":"GitHub account connected","settings.repositories.manageRepositoryAccess":"Manage repository access","settings.repositories.connectedBy":"Connected by {name}","settings.repositories.connectedByUnknown":"Connected by an unavailable user","settings.repositories.dismiss":"Dismiss","settings.repositories.tryAgain":"Try again","settings.repositories.oauthNoInstallations":"GitHub authorization succeeded, but no app installations are available to this user. Add a GitHub account or organization to finish setup.","settings.repositories.oauthDenied":"Authorization was cancelled. Connect again when you are ready.","settings.repositories.oauthExpired":"This connection attempt expired or belongs to another session. Start again from this page.","settings.repositories.oauthNotConfigured":"This git provider is not configured. Ask an administrator to enable it.","settings.repositories.oauthFailed":"Could not connect your git account. Try again. If it keeps failing, contact an administrator.","settings.repositories.authKindGithubApp":"GitHub App","settings.repositories.authKindOauth":"OAuth","settings.repositories.authKindToken":"Personal token","settings.repositories.accessUnavailable":"Access unavailable","settings.repositories.accessUnavailableHint":"Studio cannot access this account. Authorize it again to continue using its repositories.","settings.repositories.githubReconnect":"Reconnect GitHub","settings.repositories.authorizeWorkspaceAccess":"Authorize workspace access","settings.repositories.selectRepositories":"Select repositories","settings.repositories.authorizationRequired":"Workspace authorization required","settings.repositories.authorizationRequiredHint":"Studio has a GitHub App installation recorded for {login}, but this workspace has no authorization to use it. Sign in to GitHub and choose the repositories to share with this workspace.","settings.repositories.accessRevoked":"Access revoked","settings.repositories.accessRevokedHint":"Access to this account was revoked. Authorize it again to restore repository access.","settings.repositories.noAuthorizedRepositories":"No repositories authorized","settings.repositories.noAuthorizedRepositoriesHint":"This workspace has no repositories authorized through {login}. Select which repositories it can use.","settings.repositories.providerUnavailable":"Provider unavailable","settings.repositories.providerUnavailableHint":"This deployment is not configured to access this account. Ask an administrator to enable the provider.","settings.repositories.installationMissing":"GitHub connection incomplete","settings.repositories.installationMissingHint":"Studio has no GitHub App installation linked to this account. Connect GitHub and select the installation for {login}.","settings.repositories.githubReconnectUnavailable":"GitHub reconnection is unavailable on this deployment. Ask an administrator to configure the GitHub App, then authorize workspace access.","settings.repositories.disconnect":"Disconnect","settings.repositories.disconnectTitle":'Disconnect "{login}"?',"settings.repositories.disconnectDescription":"Repositories linked through this account stay listed, but become anonymous public clones — private ones will stop working.","settings.repositories.disconnected":"Account disconnected","settings.repositories.tokenDialogTitle":"Connect GitLab with a token","settings.repositories.tokenDialogDescription":"Use a personal, project or group access token with the api scope — agents push branches and open merge requests with it. Stored encrypted and never shown again.","settings.repositories.tokenDialogTitleBitbucket":"Connect Bitbucket with a token","settings.repositories.tokenDialogDescriptionBitbucket":"Use a workspace, project or repository access token that can write repositories and pull requests — agents push branches and open pull requests with it. Bitbucket Cloud only. Stored encrypted and never shown again.","settings.repositories.addAccount":"Add account","settings.repositories.addAccountTitle":"Connect a git account","settings.repositories.addAccountDescription":"Choose where your repositories live.","settings.repositories.chooseMethodDescription":"Pick how Studio should connect to this provider.","settings.repositories.back":"Back","settings.repositories.providerGithub":"GitHub","settings.repositories.providerGitlab":"GitLab","settings.repositories.providerBitbucket":"Bitbucket","settings.repositories.providerGithubHint":"Install the Studio app and pick the repositories to share.","settings.repositories.providerTokenOrOauthHint":"Connect with an access token, or authorize with OAuth.","settings.repositories.providerTokenOnlyHint":"Connect with an access token.","settings.repositories.methodToken":"Use an access token","settings.repositories.methodTokenHint":"The provider limits the token to the repositories you scope it to.","settings.repositories.methodOauth":"Authorize with OAuth","settings.repositories.methodOauthHint":"Sign in and authorize Studio in your browser.","settings.repositories.methodOauthScopeNote":"Reaches every repository this account can see; it cannot be narrowed to a subset.","settings.repositories.methodApp":"Install the GitHub app","settings.repositories.methodAppHint":"Choose exactly which repositories Studio may use.","settings.repositories.tokenStepsTitle":"Creating the token","settings.repositories.openProvider":"Open provider","settings.repositories.tokenWorkspaceLabel":"Workspace","settings.repositories.tokenWorkspacePlaceholder":"your-workspace","settings.repositories.tokenWorkspaceHint":"The slug in your Bitbucket URL. An access token cannot name its own workspace, so Studio verifies it against this one.","settings.repositories.tokenProjectLabel":"Project path (optional)","settings.repositories.tokenProjectPlaceholder":"group/project","settings.repositories.tokenProjectHint":"Fill this in to jump straight to that project’s token page.","settings.repositories.bitbucketStep1":"Open the repository you want Studio to reach, or the project that groups them.","settings.repositories.bitbucketStep2":"Settings → Security → Access tokens → Create token.","settings.repositories.bitbucketStep3":"Grant Repositories read and write, and Pull requests read and write.","settings.repositories.bitbucketStep4":"Paste the token below. Bitbucket keeps it to what you scoped it to.","settings.repositories.gitlabStep1":"Open the project or group you want Studio to reach.","settings.repositories.gitlabStep2":"Settings → Access tokens → Add new token.","settings.repositories.gitlabStep3":"Role: Developer or above. Scope: api.","settings.repositories.gitlabStep4":"Paste the token below. A project token only reaches that project.","settings.repositories.tokenHostLabel":"Host","settings.repositories.tokenHostPlaceholder":"gitlab.com","settings.repositories.tokenLabel":"Access token","settings.repositories.tokenPlaceholder":"glpat-…","settings.repositories.tokenPlaceholderBitbucket":"ATCTT…","settings.repositories.connect":"Connect","settings.repositories.connecting":"Connecting…","settings.repositories.connected":'Connected as "{login}"',"settings.repositories.reposTitle":"Repositories","settings.repositories.reposEmptyTitle":"No repositories yet","settings.repositories.reposEmptyDescription":"Choose a repository from a connected GitHub, GitLab or Bitbucket account.","settings.repositories.addRepository":"Add repository","settings.repositories.moreActions":"More actions","settings.repositories.repoAccountNeedsAttention":"Connected through {login}, which needs attention in Connected accounts.","settings.repositories.unlink":"Unlink","settings.repositories.unlinkTitle":'Unlink "{path}"?',"settings.repositories.unlinkDescription":"The repository is removed from this organization. Nothing is deleted on the provider.","settings.repositories.unlinked":"Repository unlinked","settings.repositories.openInProvider":"Open repository","settings.repositories.visibilityPublic":"Public","settings.repositories.visibilityPrivate":"Private","settings.repositories.visibilityInternal":"Internal","settings.repositories.anonymousClone":"Anonymous clone","settings.repositories.sandboxImageLabel":"Sandbox image","settings.repositories.sandboxImageDefault":"Default image","settings.repositories.sandboxImageAndroid":"Android emulator","settings.repositories.sandboxImageError":"Could not change the sandbox image","settings.repositories.monitorDeploys":"Show deploys on Monitor","settings.repositories.monitorDeploysError":"Could not change whether Monitor shows this repository","settings.repositories.addDialogTitle":"Add repository","settings.repositories.cancel":"Cancel","settings.repositories.failed":"Something went wrong","settings.nav.connections":"Connections","settings.nav.automations":"Automations","settings.nav.skills":"Skills","settings.nav.memory":"Memory","settings.nav.monitor":"Monitor","settings.nav.members":"Members","settings.nav.security":"Security","settings.nav.profile":"Profile & Preferences","settings.nav.backToHome":"Back to home","settings.nav.signOut":"Sign Out","settings.profile.avatar":"Avatar","settings.profile.displayName":"Display name","settings.profile.displayNamePlaceholder":"Your name","settings.profile.email":"Email","settings.profile.avatarUpload":"Change your picture","settings.profile.avatarDialogTitle":"Profile picture","settings.profile.avatarDialogDescription":"Drag to reposition and scroll to zoom. Only the picture you are using is visible to other people.","settings.profile.avatarDeleted":"Picture deleted","settings.profile.avatarRemove":"Remove","settings.profile.avatarRemoved":"Picture removed","settings.profile.avatarUpdated":"Picture updated","settings.profile.avatarUploadError":"Failed to update the picture","settings.profile.updateSuccess":"Profile updated successfully","settings.profile.updateError":"Failed to update profile","settings.preferences.title":"Preferences","settings.blog.sectionTitle":"Blog","settings.blogView.title":"Blog view","settings.blogView.description":"Blog as its own project view, with each post beside the site's render of it. When off, the blog is edited in the Site Editor's Content tab.","settings.blog.aiTitle":"AI blog","settings.blog.aiDescription":"Brand context, campaigns and post generation. When off, posts are written by hand.","settings.blogBlocks.title":"Hide the default blog blocks","settings.blogBlocks.description":"Only this site's own post blocks are offered when writing or importing a post. Existing posts are unaffected.","settings.blocksEditor.title":"New blocks editor","settings.blocksEditor.description":"Applies to everyone in this organization. The rest of Studio always uses the new layout.","settings.siteAppsInstall.title":"Install apps from the catalogue","settings.siteAppsInstall.description":"Let the Apps tab install an app into the site: it writes the app's module and its registration to the branch, adds the dependency, and restarts the sandbox's dev server so the app's settings form appears. With it off the catalogue stays browsable and nothing is installable.","settings.multiAppPreview.title":"Preview several apps of a monorepo","settings.multiAppPreview.description":"Add other apps of a project's repository and view them side by side in the preview. Each one runs its own dev server in the sandbox.","settings.cmsAutoCommit.title":"Commit each save to the branch","settings.cmsAutoCommit.description":"In Fast Preview, every save becomes a commit on the branch being edited. Turned off, saves stay in Studio: the editor and the preview show them, but they reach the branch only when someone publishes or submits for review, as a single commit. Until then they are not in the repository, so a pull request, a deploy preview, or anyone working on the branch outside Studio won't see them.","settings.preferences.theme":"Theme","settings.preferences.themeLight":"Light theme","settings.preferences.themeDark":"Dark theme","settings.preferences.themeSystem":"System theme","settings.preferences.language":"Language","settings.preferences.notifications":"Notifications","settings.preferences.notificationsDescription":"Browser notifications for important events.","settings.preferences.notificationsDenied":"Notifications denied. Please enable them in your browser settings.","settings.preferences.sounds":"Sounds","settings.preferences.soundsDescription":"Sounds for agent actions and notifications.","settings.preferences.soundsPreview":"Preview notification sound","settings.preferences.toolApproval":"Tool approval","settings.preferences.toolApprovalDescription":"Which tools need your approval before they run.","settings.preferences.toolApprovalAsk":"Ask before edit","settings.preferences.toolApprovalAskShort":"Ask","settings.preferences.toolApprovalAskDescription":"Auto-approve read-only tools","settings.preferences.toolApprovalAuto":"Auto approve","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Execute all without approval","settings.automations.browseAgentsButton":"Browse projects","settings.automations.emptyDescription":"Automations are created per agent. Open an agent and add one from its Automations tab.","settings.automations.emptyTitle":"No automations yet","settings.automations.noResultsDescription":'No automations match "{search}"',"settings.automations.noResultsTitle":"No automations found","settings.automations.pageTitle":"Automations","settings.automations.searchPlaceholder":"Search automations...","settings.skills.importButton":"Import skill","settings.skills.importing":"Importing…","settings.skills.importSuccess":'Imported "{name}"',"settings.skills.importError":"Failed to import skill","settings.skills.importMissingSkillMd":"That folder has no SKILL.md at its root. Pick the skill's own folder.","settings.skills.importNeedsFolder":"Pick a folder, not individual files — this browser may not support folder upload.","settings.skills.searchPlaceholder":"Search skills...","settings.skills.noDescription":"No description","settings.skills.filterAll":"All","settings.skills.emptyTitle":"No skills yet","settings.skills.emptyDescription":"Import a folder with a SKILL.md to give your agents reusable instructions they can load on demand.","settings.skills.noResultsTitle":"No skills found","settings.skills.noResultsDescription":'No skills match "{search}"',"settings.skills.cancel":"Cancel","settings.skills.deleteButton":"Delete","settings.skills.deleteDialogTitle":"Delete this skill?","settings.skills.deleteDialogDescription":`This removes "{name}" and its files. This can't be undone.`,"settings.skills.deleteSuccess":"Skill deleted","settings.skills.deleteError":"Failed to delete skill","settings.skills.importTooManyFiles":"That folder has {count} files (limit {max}). Import a folder with just the skill's own files.","settings.skills.importSlugTaken":'A skill named "{slug}" already exists. Delete it first to re-import.',"settings.skills.errorTitle":"Couldn't load skills","settings.skills.errorDescription":"The skill catalog could not be loaded. You may not have access to this org's files.","settings.skills.retry":"Try again","settings.memory.tabOrg":"Organization","settings.memory.tabUser":"Just you","settings.memory.orgHeading":"Shared with everyone in {org}","settings.memory.userHeading":"Your personal memory","settings.memory.orgPlaceholder":"Facts everyone's chats should know. For example: we ship on Thursdays, prices are in BRL, the brand voice is informal.","settings.memory.userPlaceholder":"Things Deco should remember about you. For example: reply in Portuguese, I own the checkout, keep summaries short.","settings.memory.saving":"Saving…","settings.memory.saved":"Saved","settings.memory.notSaved":"Not saved","settings.memory.saveError":"Couldn't save. Keep typing to retry.","settings.memory.readOnly":"You can read this memory but not change it.","settings.memory.updated":"Updated {time}","settings.memory.notStarted":"Nothing remembered yet","settings.memory.conflict":"This memory changed while you were editing.","settings.memory.loadLatest":"Load latest","settings.memory.keepMine":"Keep my version","settings.memory.budget":"{percent}% of what chats read","settings.memory.budgetOver":"Chats only read the beginning","settings.memory.budgetHint":"Chats load the first 16,000 characters. Keep this a short index and move details into separate notes.","settings.memory.errorTitle":"Couldn't load memory","settings.memory.errorDescription":"The organization's files couldn't be loaded. You may not have access to them.","settings.memory.retry":"Try again","settings.buckets.accessKeyIdLabel":"Access key ID","settings.buckets.addBucket":"Add bucket","settings.buckets.addBucketButton":"Add bucket","settings.buckets.addS3Bucket":"Add S3 bucket","settings.buckets.addingButton":"Adding…","settings.buckets.apiKeyHelperText":"Sent as the x-api-key header on each refresh call.","settings.buckets.apiKeyLabel":"API key","settings.buckets.bucketAdded":'Bucket "{name}" added',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"my-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removed',"settings.buckets.bucketsConfigured":"{count} bucket(s) configured","settings.buckets.cancelButton":"Cancel","settings.buckets.credentialsEncryptedDescription":"Credentials are encrypted at rest and never returned over the API. For Cloudflare R2, Google Cloud Storage, or MinIO, set a custom endpoint.","settings.buckets.credentialsLabel":"Credentials","settings.buckets.deleteButton":"Delete {name}","settings.buckets.descriptionLabel":"Description (optional)","settings.buckets.descriptionPlaceholder":"What is this bucket used for?","settings.buckets.emptyStateDescription":"Add an S3-compatible bucket (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). Access keys are encrypted at rest and never returned over the API.","settings.buckets.endpointHelperText":"Required for non-AWS providers (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (optional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Failed to add bucket","settings.buckets.failedToLoadConfigs":"Failed to load file configurations: {error}","settings.buckets.failedToLoadConfigsFallback":"Failed to load file configs","settings.buckets.failedToRemoveBucket":"Failed to remove bucket","settings.buckets.forcePathStyleHelperText":"Required for Google Cloud Storage and most MinIO setups.","settings.buckets.forcePathStyleLabel":"Force path-style URLs","settings.buckets.managed":"Managed","settings.buckets.nameHelperText":"Letters, digits, underscore, dot, hyphen. Unique within the organization.","settings.buckets.nameLabel":"Name","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"No buckets yet","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefix: {prefix}","settings.buckets.prefixHelperText":"All object keys are written under this prefix. Useful for multi-tenant buckets or credentials scoped to a sub-path. A trailing slash is added automatically.","settings.buckets.prefixLabel":"Key prefix (optional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"public: {url}","settings.buckets.publicUrlBaseHelperText":"Host used to build public URLs returned by the picker (R2 dev domain, CDN, custom host). Leave blank to use the bucket's S3 host (AWS default).","settings.buckets.publicUrlBaseLabel":"Public URL base (optional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev or https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint POSTed (with the API key below) to vend temporary credentials. Must return accessKeyId, secretAccessKey, sessionToken, and expiration.","settings.buckets.refreshUrlLabel":"Refresh URL","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Region","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"This deletes the encrypted credentials for {name}. The bucket itself is not affected. This cannot be undone.","settings.buckets.removeBucketTitle":"Remove bucket configuration?","settings.buckets.removeButton":"Remove","settings.buckets.removingButton":"Removing…","settings.buckets.secretAccessKeyLabel":"Secret access key","settings.buckets.staticKeyHelperText":"A long-lived access key ID and secret, used as-is.","settings.buckets.staticKeyOption":"Static key pair (long-lived)","settings.buckets.stsSessionHelperText":"Stores only a refresh endpoint + API key; short-lived credentials are fetched on demand and refreshed automatically.","settings.buckets.temporarySessionOption":"Temporary session (STS, auto-refreshed)","settings.connectClients.anyOtherClientDescription":"Any other MCP client: paste this endpoint into it to give that runtime every connection enabled in this org, governed by your Decopilot rules.","settings.connectClients.apiKeyOption":"API key","settings.connectClients.copy":"Copy","settings.connectClients.doneHideKey":"Done, hide key","settings.connectClients.generateKey":"Generate key","settings.connectClients.generateKeyFor":"Generate key for {client}","settings.connectClients.generatingKey":"Generating…","settings.connectClients.headlessKeyHint":"For CI, Conductor, or headless agents that can't open a browser.","settings.connectClients.installMethod":"Installation method","settings.connectClients.keyCreated":"Key created","settings.connectClients.mcpDescription":"For clients without a shell. Sharing Library files and messaging agents need the CLI + skill.","settings.connectClients.oauthDiscoveryDetails":"OAuth discovery details","settings.connectClients.oauthKeyHint":"Recommended for your laptop. A browser opens on first use to sign in, with no token to manage.","settings.connectClients.oauthMetadataHint":"OAuth 2.1 Protected Resource Metadata is advertised on 401:","settings.connectClients.oauthOption":"OAuth","settings.connectClients.otherClient":"Other","settings.connectClients.pageTitle":"Connect","settings.connectClients.recommended":"Recommended","settings.connectClients.skillDescription":"Install the Studio skill and log in once. Your agent can then use this org's chats, agents, tasks and Library files through the decocms CLI.","settings.connectClients.skillInstallStep":"1. Install the skill","settings.connectClients.skillLoginHint":"A browser opens to approve the login. The session renews itself.","settings.connectClients.skillLoginStep":"2. Log in","settings.connectClients.skillNeedsBun":"Needs Bun.","settings.connectClients.skillOtherAgentsHint":"The installer asks which agents to add the skill to.","settings.connectClients.skillTab":"CLI + skill","settings.connectClients.skillTitle":"Connect your agent","settings.connectClients.snippetOneTimeWarning":"Copy this snippet now. The key won't be shown again, and you can revoke it from the list below.","settings.connectForms.apiKeyField":"API Key","settings.connectForms.apiKeyRequired":"API key is required","settings.connectForms.baseUrlField":"Base URL","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.baseUrlRequired":"Base URL is required","settings.connectForms.cancel":"Cancel","settings.connectForms.connectionSavedSuccess":"Connection saved successfully","settings.connectForms.defaultKeyLabel":"Personal key","settings.connectForms.failedSaveConnection":"Failed to save connection: {error}","settings.connectForms.failedSaveKey":"Failed to save key: {error}","settings.connectForms.hideApiKey":"Hide API key","settings.connectForms.keySavedSuccess":"Key saved successfully","settings.connectForms.labelField":"Label","settings.connectForms.labelPlaceholder":"e.g. Personal key","settings.connectForms.labelPlaceholderOpenAiCompatible":"e.g. My OpenAI-compatible server","settings.connectForms.labelPlaceholderPreset":"e.g. {name} prod, {name} dev","settings.connectForms.optional":"optional","settings.connectForms.recommended":"recommended","settings.connectForms.saveConnection":"Save Connection","settings.connectForms.saveKey":"Save Key","settings.connectForms.saving":"Saving...","settings.connectForms.showApiKey":"Show API key","settings.connectProviderDialog.backButton":"Back","settings.connectProviderDialog.backButtonLabel":"Back","settings.connectProviderDialog.connectionTimedOutMessage":"Connection timed out","settings.connectProviderDialog.defaultProviderName":"Provider","settings.connectProviderDialog.defaultTitle":"Add API key","settings.connectProviderDialog.oauthFailedMessage":"OAuth connection failed: {error}","settings.connectProviderDialog.oauthPendingMessage":"Authorize the connection in the popup window. This dialog will close once authorization completes.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} connected successfully","settings.connectProviderDialog.provisionPendingMessage":"Connecting…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} connected successfully","settings.connectProviderDialog.retryButton":"Retry","settings.connectProviderDialog.securityCheckFailedMessage":"Security check failed: State token mismatch","settings.connectProviderDialog.startOAuthFailedMessage":"Failed to start OAuth: {error}","settings.agentTools.chatHarnessCodexTitle":"Use Codex for new sandbox chats","settings.agentTools.chatHarnessCodexDescription":"Runs new sandbox chats with Codex. Link your ChatGPT subscription in AI Providers or connect a Responses API provider. Existing chats keep their runtime.","settings.codexSubscription.setupHeading":"Connect Codex","settings.codexSubscription.setupDescription":"Link your ChatGPT subscription in Settings → AI Providers, or connect a provider with an OpenAI Responses API endpoint.","settings.codexSubscription.connect":"Link","settings.codexSubscription.connected":"ChatGPT subscription linked","settings.codexSubscription.disconnect":"Disconnect","settings.codexSubscription.disconnected":"ChatGPT subscription unlinked","settings.codexSubscription.howTo":"Run this command locally, sign in with ChatGPT, then paste the contents of ~/.codex/auth.json:","settings.codexSubscription.title":"ChatGPT for Codex","settings.codexSubscription.tokenPlaceholder":"Paste the contents of auth.json","settings.claudeSubscription.connect":"Link","settings.claudeSubscription.connected":"Claude subscription linked","settings.claudeSubscription.disconnect":"Disconnect","settings.claudeSubscription.disconnected":"Claude subscription unlinked","settings.claudeSubscription.howTo":"Generate a token on your own machine with","settings.claudeSubscription.title":"Claude Pro or Max","settings.claudeSubscription.tokenPlaceholder":"Paste your token","settings.githubCopilot.connect":"Link","settings.githubCopilot.connected":"GitHub Copilot linked","settings.githubCopilot.disconnect":"Disconnect","settings.githubCopilot.disconnected":"GitHub Copilot unlinked","settings.githubCopilot.howTo":"Create a fine-grained GitHub token with the Copilot Requests permission","settings.githubCopilot.sharedBy":"Every run in this organization uses {name}'s shared GitHub Copilot plan.","settings.githubCopilot.shareTitle":"Share with org","settings.githubCopilot.shareDescription":"Every chat and task in this organization runs on your Copilot plan, ahead of members' own plans and the organization's AI providers.","settings.githubCopilot.title":"GitHub Copilot","settings.githubCopilot.tokenPlaceholder":"Paste your github_pat_… token","settings.ownAccounts.more":"More actions","settings.providerKeyRow.edit":"Edit","settings.ownAccounts.title":"Your own accounts","settings.ownAccounts.cancel":"Cancel","settings.ownAccounts.addApiKey":"Add API key","settings.ownAccounts.linked":"Linked","settings.ownAccounts.expired":"Expired","settings.decoCreditsHero.add":"Add","settings.decoCreditsHero.addCredits":"Add credits","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Available credit balance","settings.decoCreditsHero.cancel":"Cancel","settings.decoCreditsHero.cancelButton":"Cancel","settings.decoCreditsHero.custom":"Custom","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Disconnect","settings.decoCreditsHero.disconnectButton":"Disconnect","settings.decoCreditsHero.disconnectDescription":"This will remove the Deco AI Gateway from this workspace. Your credit balance is preserved and will be available if you reconnect.","settings.decoCreditsHero.disconnectError":"Failed to disconnect: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway disconnected","settings.decoCreditsHero.disconnectTitle":"Disconnect Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Refresh balance","settings.decoCreditsHero.title":"Deco AI Gateway","settings.planUsage.title":"Plan","settings.planUsage.loadFailed":"Couldn't read this organization's plan.","settings.planUsage.retry":"Retry","settings.planUsage.aiUsage":"AI usage","settings.planUsage.usageUnavailable":"Unavailable","settings.planUsage.used":"used","settings.plans.perMonth":"/ month","settings.planUsage.periodHint":"Resets at the start of each billing period.","settings.planUsage.noAiIncluded":"No AI usage included.","settings.planUsage.included":"Included in plan","settings.planUsage.credits":"Added credits","settings.planUsage.creditsInUse":"In use","settings.planUsage.manageBilling":"Manage billing","settings.planUsage.portalFailed":"Couldn't open billing: {message}","settings.planUsage.subscribe":"Subscribe","settings.planUsage.changePlan":"Change plan","settings.planUsage.changed":"Plan updated","settings.planUsage.changeFailed":"Couldn't change plan: {message}","settings.planUsage.feature.cms":"CMS","settings.planUsage.feature.chat":"Superagent chat","settings.planUsage.feature.monitoring":"Site analytics","settings.planUsage.feature.kanban":"Agentic Kanban","settings.planUsage.feature.model_choice":"Choose your model","settings.planUsage.feature.credits":"Extra credits","settings.planUsage.feature.diagnostic":"Deco Score","settings.planUsage.feature.diagnostic_enriched":"Enriched Deco Score","settings.plans.title":"Plans","settings.plans.loadFailed":"Couldn't load the plans.","settings.plans.currentPlan":"Current plan","settings.plans.firstMonthFree":"1st month free","settings.plans.startTrial":"Start free trial","settings.plans.custom.name":"Custom","settings.plans.custom.description":"For large teams with their own contract","settings.plans.custom.cta":"Talk to us","settings.plans.managed":"Your plan: {plan}. Contact us to change it.","settings.plans.invoice.cta":"Add to my invoice","settings.plans.invoice.confirm":"{plan} will be added to your next invoice. Switch now?","settings.plans.invoice.cancel":"Cancel","settings.plans.invoice.switch":"Switch plan","settings.paywall.bullets.kanban.1":"Agents that do the work and move the cards","settings.paywall.bullets.kanban.2":"A board the whole team shares","settings.paywall.bullets.kanban.3":"Columns, tags and priorities","settings.paywall.bullets.allowance.1":"A monthly allowance that resets","settings.paywall.bullets.allowance.2":"Top up with extra credits any time","settings.paywall.bullets.allowance.3":"Your message stays in the composer","settings.paywall.bullets.cms.1":"Edit content and layout","settings.paywall.bullets.cms.2":"Live preview as you go","settings.paywall.bullets.cms.3":"Publish when it looks right","settings.paywall.bullets.monitoring.1":"Pageviews, visitors and sources","settings.paywall.bullets.monitoring.2":"Cache hit rate, latency and errors","settings.paywall.bullets.monitoring.3":"Traffic by country and device","settings.paywall.upgradeTitle":"{feature} comes with {plan}","settings.paywall.upgradeDescription":"Unlocks it for everyone in the organization.","settings.paywall.description":"This organization's plan doesn't include {feature}. Change the plan to unlock it for everyone in the org.","settings.paywall.seePlans":"See plans","settings.paywall.dismiss":"Not now","settings.paywall.serverRefusedFeature":"Your plan does not include this. Ask an owner to upgrade, or see plans.","settings.paywall.serverRefusedBudget":"This organization has used its monthly AI allowance. Chat and tasks pause until you upgrade or top up.","settings.decoCreditsHero.topUpFailed":"Top-up failed: {message}","settings.deleteOrganizationSection.cancel":"Cancel","settings.deleteOrganizationSection.dangerZone":"Danger zone","settings.deleteOrganizationSection.deleteButton":"Delete","settings.deleteOrganizationSection.deleteOrganizationAction":"Delete organization","settings.deleteOrganizationSection.deleteOrganizationDescription":"Permanently delete this organization and all of its data.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Delete organization?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Delete organization","settings.deleteOrganizationSection.deleteWarning":"This will permanently delete all data associated with {organizationName}. This action cannot be undone.","settings.deleteOrganizationSection.deleting":"Deleting…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Failed to delete organization","settings.deleteOrganizationSection.organizationDeleted":"Organization deleted","settings.deleteOrganizationSection.typeToConfirm":"Type {organizationName} to confirm:","settings.domainSettings.addDnsRecordInstruction":"Add the DNS record below, then verify.","settings.domainSettings.addDomain":"Add domain","settings.domainSettings.adding":"Adding…","settings.domainSettings.copied":"Copied","settings.domainSettings.dnsInstructions":"Add this TXT record at your DNS provider, then click Verify:","settings.domainSettings.domainAdded":"Domain added","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domain removed","settings.domainSettings.domainVerified":"Domain verified","settings.domainSettings.emailDomains":"Email domains","settings.domainSettings.emailDomainsDescription":"Let people with a matching email domain discover and join this organization.","settings.domainSettings.failedAddDomain":"Failed to add domain","settings.domainSettings.failedRemove":"Failed to remove","settings.domainSettings.failedUpdate":"Failed to update","settings.domainSettings.failedVerify":"Failed to verify","settings.domainSettings.joinMode":"Join mode","settings.domainSettings.joinModeAuto":"Auto-join","settings.domainSettings.joinModeHelpAuto":"Anyone with a verified @{domain} email joins automatically.","settings.domainSettings.joinModeHelpOff":"Not discoverable — no one can find or join through this domain.","settings.domainSettings.joinModeHelpRequest":"People with a verified @{domain} email can request to join; an admin approves.","settings.domainSettings.joinModeOff":"Off","settings.domainSettings.joinModeRequest":"Require approval","settings.domainSettings.joinModeUpdated":"Join mode updated","settings.domainSettings.pending":"Pending","settings.domainSettings.remove":"Remove","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"TXT record not found yet — DNS can take a few minutes.","settings.domainSettings.value":"value","settings.domainSettings.verified":"Verified","settings.domainSettings.verify":"Verify","settings.editProviderDialog.apiKey":"API key","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Enter the API key again to confirm changing the base URL","settings.editProviderDialog.baseUrl":"Base URL","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancel","settings.editProviderDialog.editTitle":"Edit {name}","settings.editProviderDialog.failedToUpdate":"Failed to update: {error}","settings.editProviderDialog.hideApiKey":"Hide API key","settings.editProviderDialog.label":"Label","settings.editProviderDialog.labelPlaceholder":"e.g. Personal key","settings.editProviderDialog.labelRequired":"Label is required","settings.editProviderDialog.leaveBlankHint":"leave blank to keep current","settings.editProviderDialog.providerUpdated":"Provider updated","settings.editProviderDialog.save":"Save","settings.editProviderDialog.saving":"Saving...","settings.editProviderDialog.showApiKey":"Show API key","settings.joinRequestsSection.approve":"Approve","settings.joinRequestsSection.approveFailed":"Failed to approve","settings.joinRequestsSection.approved":"Request approved","settings.joinRequestsSection.deny":"Deny","settings.joinRequestsSection.denied":"Request denied","settings.joinRequestsSection.denyFailed":"Failed to deny","settings.joinRequestsSection.description":"People who requested to join via a domain in approval mode.","settings.joinRequestsSection.title":"Join requests","settings.review.title":"Reviewers & merge","settings.review.description":"The Reviewer runs on a task's pull request when its card reaches In Review.","settings.review.reviewerTitle":"Reviewer","settings.review.reviewerDescription":"Reviews the code with the repo's own review skills, fixes what it finds and tests the change on the deploy preview. An approval moves the card to QA; anything it can't settle comes back to you.","settings.review.cheapReviewerModelTitle":"Run reviewers on a cheaper model","settings.review.cheapReviewerModelDescription":"Uses a smaller model than the Super Agent. Cheaper, possibly less thorough.","settings.review.autoMergeTitle":"Auto-merge","settings.review.autoMergeDescription":"Merge the pull request when its card reaches Ready for Deployment, without waiting for Ship.","settings.review.autoResolveConflictsTitle":"Auto-resolve merge conflicts","settings.review.autoResolveConflictsDescription":"When a pull request in Ready for Deployment conflicts with its base, the Super Agent merges the base and pushes. Follows Auto-merge unless set here.","settings.review.autoAssignReportTasksTitle":"Assign Deco Score tasks to the Super Agent","settings.review.autoAssignReportTasksDescription":"Tasks created from the Deco Score go to the Super Agent instead of staying unassigned.","settings.review.updateError":"Couldn't update the setting","settings.taskPrompt.title":"System prompt","settings.taskPrompt.fieldLabel":"Instructions","settings.taskPrompt.placeholder":"e.g. Use pnpm, never npm. Never edit files under src/generated/.","settings.taskPrompt.save":"Save","settings.taskPrompt.saved":"System prompt saved","settings.taskPrompt.failed":"Couldn't save the system prompt","settings.taskPrompt.skillsLabel":"Skills on every column","settings.agentTools.title":"Agent tools","settings.agentTools.description":"What coding-agent runs can reach beyond their repository.","settings.agentTools.orgMcpsTitle":"Give runs this org's MCP connections","settings.agentTools.orgMcpsDescription":"The Super Agent and reviewers get every connected MCP. Tools load only when needed, so more connections don't crowd the context.","settings.agentTools.orgMcpsPickTitle":"Connections runs can reach","settings.agentTools.orgMcpsPickDescription":"Turn one off to keep it out of runs, for example an MCP for the tracker a run already reports to. New connections start on.","settings.agentTools.orgMcpsPickAriaLabel":"Let runs reach {name}","settings.agentTools.orgMcpsPickEmpty":"This organization has no MCP connections yet","settings.agentTools.orgMcpsPickFailed":"Could not save which connections runs can reach","settings.agentTools.orgMcpsPickLoadFailed":"Could not load MCP connections","settings.agentTools.orgMcpsPickSearch":"Search connections…","settings.agentTools.orgMcpsPickEnableAll":"Enable all","settings.agentTools.orgMcpsPickDisableAll":"Disable all","settings.agentTools.orgMcpsPickNoMatch":"No connection matches that search","settings.agentTools.orgMcpsPickSave":"Save","settings.agentTools.orgMcpsPickSaving":"Saving…","settings.agentTools.orgMcpsPickDiscard":"Discard","settings.agentTools.orgMcpsPickSaved":"Saved which connections runs can reach","settings.agentTools.chatRuntimeSection":"Chats","settings.agentTools.chatHarnessSandboxOnlyTitle":"Run chats with Claude Code in a sandbox","settings.agentTools.chatHarnessSandboxOnlyDescription":"Each chat gets its own sandbox instead of running on Decopilot. The first message waits for the sandbox to start. Needs an Anthropic, OpenRouter or deco AI gateway key, or a Claude subscription.","settings.agentTools.codingAgentsClaudeCodeTitle":"Run Code Agent chats with Claude Code","settings.agentTools.codingAgentsClaudeCodeDescription":"Chats on an agent imported from GitHub run in that agent's sandbox, next to the code. Replies arrive a whole turn at a time. Applies to new chats only.","settings.orgRoleDetail.addMember":"Add Member","settings.orgRoleDetail.addMembersToGrantPermissions":"Add members to grant them the configured permissions.","settings.orgRoleDetail.addMembersToRole":"Add Members to Role","settings.orgRoleDetail.addWithCount":"Add ({count})","settings.orgRoleDetail.added":"Added","settings.orgRoleDetail.allConnections":"All connections","settings.orgRoleDetail.allConnectionsDescription":"Every tool on every connection, including ones added later. Uncheck a connection to leave it out.","settings.orgRoleDetail.allModels":"All models","settings.orgRoleDetail.allOrgPermissions":"All organization permissions","settings.orgRoleDetail.allProjects":"All projects","settings.orgRoleDetail.allProjectsDescription":"This role can access every project, including ones created later. Uncheck a project to hide it from this role, or turn off to pick specific projects.","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Built-in role permissions cannot be changed","settings.orgRoleDetail.cancel":"Cancel","settings.orgRoleDetail.createRole":"Create role","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} enabled","settings.orgRoleDetail.failedToSaveRole":"Failed to save role","settings.orgRoleDetail.general":"General","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Grant full access to all features below","settings.orgRoleDetail.loadingModels":"Loading models...","settings.orgRoleDetail.mcpPermissions":"MCP Permissions","settings.orgRoleDetail.members":"Members","settings.orgRoleDetail.membersUpdatedSuccessfully":"Members updated successfully!","settings.orgRoleDetail.models":"Models","settings.orgRoleDetail.noLlmConnectionsConfigured":"No LLM connections configured","settings.orgRoleDetail.noMembers":"No members","settings.orgRoleDetail.noMembersAvailable":"No members available","settings.orgRoleDetail.noMembersFound":"No members found","settings.orgRoleDetail.noMembersMatch":'No members match "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'No permissions match "{searchQuery}"',"settings.orgRoleDetail.noProjectsAvailable":"No projects available","settings.orgRoleDetail.noProjectsMatch":'No projects match "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Organization Permissions","settings.orgRoleDetail.owner":"Owner","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"Owner membership cannot be changed","settings.orgRoleDetail.projects":"Projects","settings.orgRoleDetail.removeMember":"Remove {name} from role","settings.orgRoleDetail.roleCreatedSuccessfully":"Role created successfully!","settings.orgRoleDetail.roleName":"Role name","settings.orgRoleDetail.roleNameIsRequired":"Role name is required","settings.orgRoleDetail.roleUpdatedSuccessfully":"Role updated successfully!","settings.orgRoleDetail.saveChanges":"Save Changes","settings.orgRoleDetail.saving":"Saving...","settings.orgRoleDetail.searchMcpServers":"Search MCP servers...","settings.orgRoleDetail.searchMembers":"Search members...","settings.orgRoleDetail.searchModels":"Search models...","settings.orgRoleDetail.searchPermissions":"Search permissions...","settings.orgRoleDetail.searchProjects":"Search projects...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Select members to add to this role.","settings.orgRoleDetail.showMore":"Show more ({remaining} remaining)","settings.orgRoleDetail.somethingWentWrong":"Something went wrong","settings.orgRoleDetail.unknown":"Unknown","settings.orgRoleDetail.userIsDefaultRoleMessage":"User is the default role — members can't be removed from it; assign another role to change their access","settings.orgSso.cancelButton":"Cancel","settings.orgSso.clientIdLabel":"Client ID","settings.orgSso.clientIdPlaceholder":"your-client-id","settings.orgSso.clientSecretEditDescription":"Leave empty to keep current","settings.orgSso.clientSecretLabel":"Client secret","settings.orgSso.clientSecretPlaceholder":"your-client-secret","settings.orgSso.clientSecretRequiredError":"Client secret is required for the first setup","settings.orgSso.configurationRemovedSuccess":"SSO configuration removed","settings.orgSso.configurationSavedSuccess":"SSO configuration saved","settings.orgSso.configureSsoButton":"Configure SSO","settings.orgSso.discoveryEndpointDescription":"Optional. Detected from the issuer when empty.","settings.orgSso.discoveryEndpointLabel":"Discovery endpoint","settings.orgSso.discoveryEndpointPlaceholder":"Auto-detected from issuer","settings.orgSso.domainLabel":"Domain","settings.orgSso.editConfigButton":"Edit configuration","settings.orgSso.emailDomainDescription":"The email domain this provider covers.","settings.orgSso.emailDomainLabel":"Email domain","settings.orgSso.emailDomainPlaceholder":"company.com","settings.orgSso.enforceSsoDescription":"Require all members to authenticate via SSO","settings.orgSso.enforceSsoLabel":"Enforce SSO","settings.orgSso.enforcementDisabledSuccess":"SSO enforcement disabled","settings.orgSso.enforcementEnabledSuccess":"SSO enforcement enabled","settings.orgSso.issuerUrlDescription":"Your identity provider's OIDC issuer URL.","settings.orgSso.issuerUrlLabel":"Issuer URL","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Loading...","settings.orgSso.providerLabel":"Provider","settings.orgSso.removeButton":"Remove","settings.orgSso.removeConfirmation":"Are you sure you want to remove SSO configuration?","settings.orgSso.removeSsoConfigError":"Failed to remove SSO config","settings.orgSso.requiredFieldsError":"Issuer, Client ID, and Domain are required","settings.orgSso.saveSsoConfigError":"Failed to save SSO config","settings.orgSso.savingButton":"Saving...","settings.orgSso.scopesLabel":"Scopes","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single sign-on","settings.orgSso.securityTitle":"Security","settings.orgSso.testSsoButton":"Test SSO","settings.orgSso.toggleEnforcementError":"Failed to toggle SSO enforcement","settings.orgSso.updateButton":"Update","settings.organizationForm.failedToReadImage":"Failed to read image","settings.organizationForm.failedToUpdateOrg":"Failed to update organization","settings.organizationForm.imageTooLarge":"Image must be smaller than 2MB","settings.organizationForm.logoDescription":"256×256px recommended.","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Organization name","settings.organizationForm.nameRequired":"Name is required","settings.organizationForm.nameTitle":"Name","settings.organizationForm.nameTooLong":"Name is too long","settings.organizationForm.updateSuccess":"Organization updated successfully","settings.organizationForm.uploadLogoLabel":"Upload organization logo","settings.organizationForm.urlDescription":"Used in links and API integrations, so it can't be changed.","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.addedTimeAgo":"{label} · added {time} ago","settings.providerKeyRow.cancel":"Cancel","settings.providerKeyRow.claudeCode":"Claude Code","settings.providerKeyRow.codex":"Codex","settings.providerKeyRow.delete":"Delete","settings.providerKeyRow.deleteApiKey":"Delete API key","settings.providerKeyRow.failedToDeleteKey":"Failed to delete key: {error}","settings.providerKeyRow.keyDeleted":"Key deleted","settings.roles.allConnections":"All connections","settings.roles.basicAccess":"Basic access","settings.roles.builtIn":"Built-in","settings.roles.cancel":"Cancel","settings.roles.columnMembers":"Members","settings.roles.columnPermissions":"Permissions","settings.roles.columnRole":"Role","settings.roles.columnType":"Type","settings.roles.connectionCount":"{count} connection(s)","settings.roles.createRole":"New role","settings.roles.createRoleGetStarted":"Create a role to get started.","settings.roles.custom":"Custom","settings.roles.delete":"Delete","settings.roles.deleteRoleConfirm":'Are you sure you want to delete the "{role}" role? This action cannot be undone.',"settings.roles.deleteRoleTitle":"Delete Role","settings.roles.deletedSuccessfully":"Role deleted successfully!","settings.roles.failedToLoad":"Failed to load roles","settings.roles.fullAccess":"Full access","settings.roles.fullOrgAccess":"Full org access","settings.roles.noPermissions":"No permissions","settings.roles.noRoles":"No roles","settings.roles.noRolesFound":"No roles found","settings.roles.noRolesMatchSearch":'No roles match "{search}"',"settings.roles.orgPermsCount":"{count} org perm(s)","settings.roles.pageTitle":"Roles","settings.roles.roleAdmin":"Admin","settings.roles.roleOwner":"Owner","settings.roles.roleUser":"User","settings.roles.searchPlaceholder":"Search roles...","settings.apiKeys.accessLabel":"Access","settings.apiKeys.accessReadOnly":"Read only","settings.apiKeys.accessReadOnlyDescription":"The {count} Studio tools that never change data. Tools added later stay out.","settings.apiKeys.accessCustom":"Choose tools","settings.apiKeys.accessCustomDescription":"Only the Studio and connection tools you pick. Tools added later stay out.","settings.apiKeys.accessFull":"Full access","settings.apiKeys.accessFullDescription":"Every tool, including ones that delete data and ones added later.","settings.apiKeys.expired":"Expired","settings.apiKeys.expiredOn":"Expired {date}","settings.apiKeys.expiresOn":"Expires {date}","settings.apiKeys.expiryDays":"{days} days","settings.apiKeys.expiryLabel":"Expires after","settings.apiKeys.expiryNever":"Never","settings.apiKeys.expiryYear":"1 year","settings.apiKeys.neverExpires":"Never expires","settings.apiKeys.readOnlyBadge":"Read only","settings.apiKeys.toolCount":"{count} tools","settings.apiKeys.studioTools":"Studio","settings.apiKeys.toolsGroupCount":"{count}/{total}","settings.apiKeys.toolsNone":"No tools","settings.apiKeys.toolsSelectGroup":"Select every tool in {name}","settings.apiKeys.toolsSelected":"{count} selected","settings.apiKeys.toolsLoadFailed":"Couldn't load the tool list. Close and try again.","settings.apiKeys.toolsSearch":"Search tools…","settings.apiKeys.cancelButton":"Cancel","settings.apiKeys.copied":"Copied to clipboard","settings.apiKeys.copyKey":"Copy key","settings.apiKeys.createButton":"Create key","settings.apiKeys.createdAt":"Created {date}","settings.apiKeys.createdDescription":"Copy this key now — it won't be shown again.","settings.apiKeys.createdTitle":"API key created","settings.apiKeys.creatingButton":"Creating…","settings.apiKeys.deleteDescription":"Any application using this key will immediately lose access. This cannot be undone.","settings.apiKeys.deleteKey":"Delete key","settings.apiKeys.deleteTitle":'Delete "{name}"?',"settings.apiKeys.done":"Done","settings.apiKeys.emptyDescription":"Create a key to authenticate external applications with this organization.","settings.apiKeys.emptyTitle":"No API keys yet","settings.apiKeys.failedToCreateKey":"Failed to create API key","settings.apiKeys.failedToDeleteKey":"Failed to delete API key","settings.apiKeys.failedToLoadError":"Failed to load API keys: {error}","settings.apiKeys.keyDeleted":'API key "{name}" deleted',"settings.apiKeys.loading":"Loading API keys…","settings.apiKeys.nameLabel":"Name","settings.apiKeys.namePlaceholder":"My integration","settings.apiKeys.newKey":"New key","settings.apiKeys.newKeyDescription":"Give the key only the tools it needs. Whoever holds the key can use them, even if it leaks.","settings.apiKeys.newKeyTitle":"New API key","settings.apiKeys.sectionDescription":"For scripts and clients that can't sign in through a browser.","settings.apiKeys.sectionTitle":"API keys","settings.secrets.cancelButton":"Cancel","settings.secrets.createButton":"Create secret","settings.secrets.creatingButton":"Creating…","settings.secrets.descriptionLabel":"Description (optional)","settings.secrets.descriptionPlaceholder":"What is this secret used for?","settings.secrets.emptyDescription":"Store API keys, tokens, and other sensitive values. Values are encrypted at rest and never returned over the API.","settings.secrets.emptyTitle":"No secrets yet","settings.secrets.failedToCreateSecret":"Failed to create secret","settings.secrets.failedToLoadError":"Failed to load secrets: {error}","settings.secrets.nameHelp":"Letters, digits, underscore, dot, hyphen. Case-insensitive within its scope.","settings.secrets.nameLabel":"Name","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"New secret","settings.secrets.newSecretDescription":"Stored encrypted in the credential vault. Choose who can read it.","settings.secrets.newSecretTitle":"New secret","settings.secrets.scopeLabel":"Scope","settings.secrets.scopeOrganization":"Organization","settings.secrets.scopeOrganizationDescription":"Organization — visible to all members","settings.secrets.scopePrivate":"Private","settings.secrets.scopePrivateDescription":"Private — only visible to me","settings.secrets.secretCreated":'Secret "{name}" created',"settings.secrets.secretsCountSingular":"{count} secret stored","settings.secrets.secretsCountPlural":"{count} secrets stored","settings.secrets.sectionOrganization":"Organization","settings.secrets.sectionPrivate":"Private to me","settings.secrets.valueLabel":"Value","settings.simpleModeSection.defaultModels":"Default models","settings.simpleModeSection.failedToSave":"Failed to save: {error}","settings.simpleModeSection.notAvailableWithCurrentProvider":"Not available with current provider","settings.simpleModeSection.pickModel":"Pick model","settings.simpleModeSection.saved":"Saved","settings.simpleModeSection.saving":"Saving…","settings.simpleModeSection.tierDeepResearch":"Deep research","settings.simpleModeSection.tierFast":"Fast","settings.simpleModeSection.tierImage":"Image","settings.simpleModeSection.tierSmart":"Smart","settings.simpleModeSection.tierThinking":"Thinking","settings.simpleModeSection.tierWebSearch":"Web search","settings.aiProviders.groupChat":"Chat and tasks","settings.aiProviders.groupMedia":"Images and web search only","settings.aiProviders.customOpenAiCompatible":"Custom OpenAI-compatible","settings.aiProviders.customOpenAiDescription":"Bring your own model server (advanced)","settings.infraBilling.noSites":"This organization doesn't own any deco.cx site yet.","settings.infraBilling.siteLabel":"Sites","settings.infraBilling.pickASite":"Select at least one site.","settings.infraBilling.tooManySites":"Showing the first {count} sites. Select specific sites to see the rest.","settings.infraBilling.multipleTeams":"These sites are billed by {count} legacy teams. Each team's plan and invoices are listed under Invoices.","settings.infraBilling.noTeam":"These sites aren't linked to a legacy billing team.","settings.infraBilling.partialTeam":"This site's legacy team also bills sites outside this organization, so its plan and invoices aren't shown here.","settings.infraBilling.billingUnavailable":"Plan and invoices are temporarily unavailable.","settings.infraBilling.monthLabel":"Month","settings.infraBilling.warehouseUnavailable":"Usage data couldn't be read, so the figures below are incomplete.","settings.infraBilling.summaryTitle":"Summary","settings.infraBilling.metricsTitle":"Metrics","settings.infraBilling.invoicesTitle":"Invoices","settings.infraBilling.detailsTitle":"Billing details","settings.infraBilling.currentPlan":"Current plan","settings.infraBilling.nextBilling":"Next billing","settings.infraBilling.manageButton":"Manage","settings.infraBilling.portalError":"Couldn't open billing portal: {message}","settings.infraBilling.requestsPerPageview":"Requests per pageview","settings.infraBilling.plan.free":"Free","settings.infraBilling.plan.pro":"Pro","settings.infraBilling.plan.enterprise":"Enterprise","settings.infraBilling.pageviews":"Pageviews","settings.infraBilling.pageviewsDescription":"Pages served to visitors this month.","settings.infraBilling.requests":"Requests","settings.infraBilling.requestsDescription":"CDN and shared infrastructure requests.","settings.infraBilling.dataTransfer":"Data transfer","settings.infraBilling.dataTransferDescription":"Bandwidth served from the edge and the origin.","settings.infraBilling.noInvoices":"No invoices issued for this team.","settings.infraBilling.invoiceReference":"Reference","settings.infraBilling.invoiceDue":"Due date","settings.infraBilling.invoiceAmount":"Amount","settings.infraBilling.invoiceStatus":"Status","settings.infraBilling.invoiceDocuments":"Documents","settings.infraBilling.invoiceNf":"Invoice","settings.infraBilling.invoiceBankSlip":"Bank slip","settings.infraBilling.invoiceBankTransfer":"Bank transfer","settings.infraBilling.statusPaid":"Paid","settings.infraBilling.statusOverdue":"Overdue","settings.infraBilling.statusPending":"Pending","settings.gitCredentials.title":"Git credentials","settings.gitCredentials.description":"Tokens that let sandboxes pull private repos and dependencies, like submodules or private npm, go, pub or cargo packages. Pick a secret per host.","settings.gitCredentials.addCredential":"Add credential","settings.gitCredentials.cancel":"Cancel","settings.gitCredentials.createNewSecret":"Create new secret","settings.gitCredentials.createNewSecretAriaLabel":"Create new secret","settings.gitCredentials.createNewSecretDescription":"Stored encrypted. The credential references the secret by id, and its value never leaves the server.","settings.gitCredentials.createNewSecretTitle":"Create new secret","settings.gitCredentials.descriptionLabel":"Description (optional)","settings.gitCredentials.descriptionPlaceholder":"What is this token used for?","settings.gitCredentials.failedToLoadSecrets":"Failed to load secrets","settings.gitCredentials.failedToSave":"Failed to save git credentials","settings.gitCredentials.failedToSaveSecret":"Failed to save","settings.gitCredentials.hostAriaLabel":"Git credential {index} host","settings.gitCredentials.hostInvalidMessage":"Bare hostname, e.g. github.com (no scheme or path).","settings.gitCredentials.hostPlaceholder":"github.com","settings.gitCredentials.maxReached":"You've reached the limit of {max} git credentials. Remove one to add another.","settings.gitCredentials.nameLabel":"Name","settings.gitCredentials.namePlaceholder":"GITHUB_DEPS_PAT","settings.gitCredentials.nameHelperText":"Letters, digits, underscore, dot, hyphen.","settings.gitCredentials.noSecretsYet":'No secrets yet. Use the "+" to create one.',"settings.gitCredentials.pickSecretPlaceholder":"Pick a secret…","settings.gitCredentials.remove":"Remove","settings.gitCredentials.removeAriaLabel":"Remove git credential","settings.gitCredentials.saveSecret":"Save secret","settings.gitCredentials.saving":"Saving…","settings.gitCredentials.secretAriaLabel":"Git credential {index} secret","settings.gitCredentials.scopeLabel":"Scope","settings.gitCredentials.scopeOrganization":"Organization, visible to all members","settings.gitCredentials.scopePrivate":"Private, only visible to me","settings.gitCredentials.secretSaved":'Saved secret "{name}"',"settings.gitCredentials.tokenExposureWarning":"The token is installed in the sandbox's git config for the session, so commands and agents running there can use it. Scope it to the repositories it needs.","settings.gitCredentials.tokenLabel":"Personal access token","settings.gitCredentials.tokenPlaceholder":"Paste your token"},dte={"announcements.ptBr.title":"Studio is now in Portuguese","announcements.ptBr.description":"We noticed your browser is set to Portuguese, so we switched Studio to Portuguese (Brazil) for you. You can switch back to English anytime in settings.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Switch back to English","announcements.legacyAdmin.title":"Welcome to Deco Studio","announcements.legacyAdmin.description":"We've retired the legacy admin. Everything for your store now lives in Studio.","announcements.legacyAdmin.benefitPreview":"Edit pages next to a live preview of your site.","announcements.legacyAdmin.benefitCompare":"See the before and after before you publish.","announcements.legacyAdmin.benefitAgent":"Ask the agent in chat to make changes for you.","announcements.legacyAdmin.continue":"Continue","announcements.legacyAdmin.questions":"Questions?","announcements.release.ariaLabel":"Release announcement","announcements.release.dismiss":"Dismiss release announcement","announcements.release.learnMore":"Learn more","announcements.version.ariaLabel":"Studio update","announcements.version.dismiss":"Dismiss Studio update","announcements.version.eyebrow":"Studio update","announcements.version.title":"A new version is ready","announcements.version.description":"Refresh to load the latest Studio updates.","announcements.version.currentSession":"Current session · {version}","announcements.version.refresh":"Refresh now"},ute={"assets.browser.title":"Assets","assets.browser.bucketLabel":"Bucket: {name}","assets.browser.noBucketTitle":"No assets bucket for this site","assets.browser.noBucketDescription":"Configure and associate an S3-compatible bucket with this site to browse and upload assets here.","assets.browser.deleteAction":"Delete","assets.browser.deleteConfirmTitle":"Delete file?","assets.browser.deleteConfirmDescription":'Permanently delete "{name}" from the bucket? This cannot be undone.',"assets.browser.deleteCancel":"Cancel","assets.browser.deleteConfirm":"Delete","assets.browser.deleted":"File deleted","assets.browser.deleteFailed":"Failed to delete file"},pte={...fee,...vee,...bee,...yee,...See,...wee,...xee,...Tee,...kee,...Eee,...Cee,...Pee,..._ee,...Aee,...Ree,...Dee,...Oee,...Nee,...Mee,...Kee,...Yee,...Zee,...Iee,...Lee,...Bee,...Fee,...jee,...zee,...qee,...Uee,...$ee,...Vee,...Hee,...Gee,...Wee,...Qee,...Jee,...Xee,...ete,...tte,...ote,...ate,...nte,...rte,...ste,...ite,...lte,...cte,...dte,...ute,...gee,...hee};function MB(t,e){return e?t.replace(/\{(\w+)\}/g,(o,a)=>Object.hasOwn(e,a)?String(e[a]):o):t}const mte={"page.overview":"Visão geral","page.app":"App","page.view":"Visualização","page.file":"Arquivo","page.document":"Documento","page.item":"Item","page.breadcrumbs":"Navegação estrutural","page.breadcrumbMenu":"Mostrar caminho de navegação","page.views":"Visualizações da página","page.openThread":"Abrir chat","page.closeThread":"Fechar chat","page.collapseSidebar":"Recolher barra lateral","page.expandSidebar":"Expandir barra lateral"},hte={"projects.overview.metrics":"Métricas","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"Novo projeto","projects.card.updated":"Atualizado {time}","projects.empty.title":"Seu comércio, um projeto por vez","projects.empty.description":"Um site, um app, uma loja. Cada um com suas conexões, seu relatório e seu quadro.","projects.empty.readOnly":"Peça a um admin para criar o primeiro projeto.","projects.new.title":"Novo projeto","projects.new.subtitle":"O que você vai configurar?","projects.new.back":"Voltar","projects.new.create":"Criar projeto","projects.new.creating":"Criando…","projects.new.nameLabel":"Nome do projeto","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Dê um nome ao projeto","projects.new.failed":"Não foi possível criar o projeto","projects.new.created":"{title} está pronto","projects.new.path.repository":"Importar um código","projects.new.path.repository.hint":"Traga o código de um site ou app","projects.new.path.folder":"Nova pasta de projeto","projects.new.path.folder.hint":"Dê o nome agora, conecte depois","projects.new.step.folder.title":"Dê nome ao seu projeto","projects.reports.chooserTitle":"Continuar para Relatórios","projects.reports.chooserSubtitle":"Escolha um projeto para continuar","projects.reports.chooserSearch":"Buscar projeto…","projects.reports.chooserEmpty":"Nenhum projeto com esse nome.","projects.reports.status.ready":"Pronto","projects.reports.status.running":"Rodando","projects.reports.status.none":"Não rodou","projects.reports.status.locked":"Bloqueado","projects.connections.orgWide":"Toda a organização","projects.connections.usedBy":"{count} projetos","projects.settings.title":"Projetos","projects.settings.searchPlaceholder":"Buscar projetos…","projects.settings.open":"Abrir","projects.settings.openSettings":"Configurações","projects.settings.noResults":"Nenhum projeto corresponde a “{search}”","projects.identity.storeUrlLabel":"URL da loja","projects.identity.storeUrlDescription":"A loja no ar. Os relatórios rodam contra este endereço.","projects.apps.reports":"Relatório","projects.apps.blog":"Blog","projects.apps.siteEditor":"Editor de site","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"Testes ponta a ponta","projects.apps.automations":"Automações","projects.apps.calendar":"Calendário","projects.apps.experiments":"Experimentos"},gte={"virtualMcp.addConnectionDialog.addConnectionTitle":"Adicionar Conexão","virtualMcp.addConnectionDialog.authenticationFailedError":"Autenticação falhou: {error}","virtualMcp.addConnectionDialog.connected":"Conectado","virtualMcp.addConnectionDialog.connectedAuthenticated":"Conectado e autenticado","virtualMcp.addConnectionDialog.connectionsTitle":"Conexões","virtualMcp.addConnectionDialog.failedToAddConnection":"Falha ao adicionar conexão","virtualMcp.addConnectionDialog.failedToConnect":"Falha ao conectar","virtualMcp.addConnectionDialog.mcpServerConnectionError":"Este servidor MCP não pode ser conectado: nenhum método de conexão disponível","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Pesquisar conexões...","virtualMcp.addConnectionDialog.signInFailedDescription":"Foi adicionada ao seu projeto, mas sua configuração de login parece estar errada. Você pode tentar autenticar novamente mais tarde nas configurações da conexão. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Não foi possível fazer login nesta conexão","virtualMcp.connectionDialogContent.add":"Adicionar","virtualMcp.connectionDialogContent.added":"Adicionado","virtualMcp.connectionDialogContent.builtByDeco":"Construído e mantido pela Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Construído e mantido pelo fornecedor oficial","virtualMcp.connectionDialogContent.connect":"Conectar","virtualMcp.connectionDialogContent.connected":"Conectado","virtualMcp.connectionDialogContent.customConnection":"Conexão Personalizada","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"Nenhuma conexão disponível","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"Nenhuma conexão ainda","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'Nenhuma conexão corresponde a "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Feito por Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"Todas as conexões","virtualMcp.connectionDialogContent.sectionVerified":"Verificado","virtualMcp.connectionDialogContent.tabAll":"Todos","virtualMcp.connectionDialogContent.tabConnected":"Conectados","virtualMcp.connectionDialogContent.verifiedByDeco":"Verificado pelo time da Deco","virtualMcp.connectionItem.authorize":"Autorizar","virtualMcp.connectionItem.configureResources":"Configurar recursos","virtualMcp.connectionItem.connectionDisabled":"Conexão desativada","virtualMcp.connectionItem.connectionEnabled":"Conexão ativada","virtualMcp.connectionItem.connectionNotFound":"Conexão não encontrada","virtualMcp.connectionItem.connectionSettings":"Configurações de conexão","virtualMcp.connectionItem.disable":"Desativar","virtualMcp.connectionItem.disableConnection":"Desativar conexão","virtualMcp.connectionItem.disabled":"Desativada","virtualMcp.connectionItem.disabledError":"Desativada (erro)","virtualMcp.connectionItem.enable":"Ativar","virtualMcp.connectionItem.failedToUpdateConnection":"Falha ao atualizar a conexão","virtualMcp.connectionItem.needsAuthorization":"Requer autorização","virtualMcp.connectionItem.newInstance":"Nova instância","virtualMcp.connectionItem.remove":"Remover","virtualMcp.connectionItem.removeConnection":"Remover conexão","virtualMcp.dependencySelectionDialog.authorizationDescription":"Esta conexão deve ser autorizada antes de você poder configurar suas ferramentas e recursos.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Autorização obrigatória","virtualMcp.dependencySelectionDialog.authorize":"Autorizar","virtualMcp.dependencySelectionDialog.deselectAll":"Desselecionar tudo","virtualMcp.dependencySelectionDialog.done":"Concluído","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"Nenhuma ferramenta ativa selecionada","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"Nenhum prompt disponível","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"Nenhum recurso disponível","virtualMcp.dependencySelectionDialog.noToolsAvailable":"Nenhuma ferramenta disponível","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts não são suportados por este servidor","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Recursos não são suportados por este servidor","virtualMcp.dependencySelectionDialog.selectAll":"Selecionar tudo","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Algo deu errado","virtualMcp.dependencySelectionDialog.tabActive":"Ativas","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Recursos","virtualMcp.dependencySelectionDialog.tabTools":"Ferramentas","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Ferramentas não são suportadas por este servidor","virtualMcp.dependencySelectionDialog.unexpectedError":"Erro inesperado","virtualMcp.filesSection.add":"Adicionar","virtualMcp.filesSection.description":"Anexe arquivos e skills que o projeto sempre pode consultar.","virtualMcp.filesSection.failedUploadFile":"Falha ao enviar arquivo.","virtualMcp.filesSection.fileTooLargeDescription":"Excede o limite de 25MB, não enviado: {names}","virtualMcp.filesSection.fileTooLargeTitle":"Arquivo muito grande","virtualMcp.filesSection.filesAndSkills":"Arquivos e skills","virtualMcp.filesSection.kindFile":"Arquivo","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"Nenhum arquivo encontrado.","virtualMcp.filesSection.noFilesOrSkillsYet":"Nenhum arquivo ou skill ainda. Adicione um ou arraste e solte aqui.","virtualMcp.filesSection.noSkillsFound":"Nenhum skill encontrado.","virtualMcp.filesSection.removeAriaLabel":"Remover {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Pesquisar arquivos...","virtualMcp.filesSection.searchSkillsPlaceholder":"Pesquisar skills...","virtualMcp.filesSection.selectFileOrFolder":"Selecionar arquivo ou pasta","virtualMcp.filesSection.selectSkill":"Selecionar skill","virtualMcp.filesSection.uploadFile":"Enviar arquivo","virtualMcp.layoutTabContent.noMainView":"Sem visão principal","virtualMcp.layoutTabContent.automations":"Automações","virtualMcp.layoutTabContent.chatAlwaysShown":"O Chat sempre aparece quando é a visualização padrão","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Visualização principal","virtualMcp.layoutTabContent.mainViewDescription":"O que os usuários veem quando abrem este projeto pela primeira vez.","virtualMcp.layoutTabContent.settings":"Configurações","virtualMcp.layoutTabContent.showChat":"Mostrar chat","virtualMcp.layoutTabContent.showChatDescription":"Exibir Chat no painel lateral junto com a visualização principal.","virtualMcp.layoutTabContent.siteEditor":"Editor do site","virtualMcp.settings.title":"Configurações do projeto","virtualMcp.settings.navigation":"Seções das configurações do projeto","virtualMcp.settings.identity.icon":"Ícone do projeto","virtualMcp.settings.identity.iconDescription":"Como seu projeto aparece na barra lateral e no Studio.","virtualMcp.settings.identity.name":"Nome do projeto","virtualMcp.settings.identity.description":"Descrição","virtualMcp.settings.repository.title":"Repositório","virtualMcp.settings.repository.description":"O código deste projeto e como o sandbox roda ele.","virtualMcp.settings.repository.repoTitle":"Repositório","virtualMcp.settings.repository.runtimeTitle":"Como roda","virtualMcp.settings.repository.runtimeDescription":"O que o sandbox instala e sobe para mostrar o preview deste projeto.","virtualMcp.settings.pageTitle":"Configurações do projeto","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"O que abre primeiro e quais views aparecem na sidebar.","virtualMcp.settings.cmsEmptyTitle":"Nenhum conteúdo de site ainda","virtualMcp.settings.repository.open":"Ir para Repositório","virtualMcp.settings.repository.none":"Nenhum repositório conectado","virtualMcp.settings.repository.noneDescription":"Conecte um repositório do GitHub para editar e pré-visualizar o site deste projeto.","virtualMcp.settings.repository.connect":"Conectar repositório","virtualMcp.settings.repository.change":"Trocar","virtualMcp.settings.repository.connected":"{name} conectado","virtualMcp.settings.cmsEmpty":"Conecte o repositório do site para ligar o CMS.","virtualMcp.settings.general.title":"Geral","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site e sandbox","virtualMcp.settings.blocksV8Site.label":"Site Blocks v8","virtualMcp.settings.blocksV8Site.description":"Edite este site com o editor do Blocks v8 e o CMS hospedado. Desligado: v7, ligado ao git.","virtualMcp.settings.groups.advanced":"Avançado","virtualMcp.settings.groups.details":"Detalhes","virtualMcp.settings.connections.title":"Conexões","virtualMcp.settings.views.defaults":"Layout padrão","virtualMcp.settings.views.sidebar":"Visualizações","virtualMcp.settings.views.open":"Abrir","virtualMcp.settings.views.pin":"Fixar na barra lateral","virtualMcp.settings.views.unpin":"Remover da barra lateral","virtualMcp.settings.views.setMainView":"Definir como visualização principal","virtualMcp.settings.views.rowActions":"Opções da visualização","virtualMcp.virtualMcp.addConnection":"Adicionar conexão","virtualMcp.virtualMcp.agentDeleted":'Excluído "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agente","virtualMcp.virtualMcp.agentNamePlaceholder":"Nome do projeto","virtualMcp.virtualMcp.authenticationFailed":"Falha na autenticação: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Autenticação bem-sucedida","virtualMcp.virtualMcp.backToSpaces":"Voltar aos espaços","virtualMcp.virtualMcp.cancel":"Cancelar","virtualMcp.virtualMcp.connect":"Conectar","virtualMcp.virtualMcp.connections":"Conexões","virtualMcp.virtualMcp.created":"Criado em","virtualMcp.virtualMcp.createdBy":"Criado por","virtualMcp.virtualMcp.delete":"Excluir","virtualMcp.virtualMcp.deleteAgent":"Excluir projeto","virtualMcp.virtualMcp.deleteAgentConfirm":"Excluir Projeto?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"Esta ação não pode ser desfeita. Isto excluirá permanentemente {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Exclua permanentemente este projeto e todos os seus dados.","virtualMcp.virtualMcp.descriptionPlaceholder":"Adicionar uma descrição...","virtualMcp.virtualMcp.failedToCreateInstance":"Falha ao criar instância","virtualMcp.virtualMcp.fullscreen":"Tela cheia","virtualMcp.virtualMcp.improve":"Melhorar","virtualMcp.virtualMcp.instanceAlreadyAdded":"Esta instância já foi adicionada ao projeto","virtualMcp.virtualMcp.instructions":"Instruções","virtualMcp.virtualMcp.instructionsPlaceholder":"Defina como este agente deve se comportar, qual tom usar, qualquer restrição ou diretriz...","virtualMcp.virtualMcp.lastUsedLabel":"Último uso","virtualMcp.virtualMcp.neverUsed":"Nunca foi usado","virtualMcp.virtualMcp.newInstanceCreated":"Nova instância criada","virtualMcp.virtualMcp.noConnectionsYet":"Nenhuma conexão ainda. Adicione uma para começar.","virtualMcp.virtualMcp.openFullscreenEditor":"Abrir editor em tela cheia","virtualMcp.virtualMcp.promptTemplate":"+ Modelo de prompt","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
91
|
+
This site reports no post sections yet — once it does, cite them here with @.`,"sandbox.formats.starterName":"Standard post","sandbox.formats.suggestButton":"Suggest formats","sandbox.formats.suggestFailed":"Couldn't suggest formats","sandbox.formats.suggestHint":"Name the formats this blog already writes in, from how its posts are built","sandbox.formats.suggested":"{count} format(s) added","sandbox.formats.unknownCitations":"This format cites sections the site doesn't have: {names}","sandbox.generatePost.stepCampaign":"Campaign","sandbox.generatePost.campaignHint":"A post is written for a campaign: it carries the moment, the products it may name and the links to them.","sandbox.generatePost.noCampaigns":"No campaign to write for yet. Create one under Context → Campaigns.","sandbox.generatePost.campaignProducts":"{count} product(s)","sandbox.generatePost.campaignNoProducts":"No products","sandbox.generatePost.formatBlocksHint":"The blocks this format cites are the only ones a post may be built from, and each is filled to its own schema.","sandbox.generatePost.countLabel":"How many drafts","sandbox.generatePost.countHint":"Each takes a different angle on the same campaign. They land as separate cards.","sandbox.generatePost.coverHint":"Every draft gets a cover image, generated and uploaded to your bucket.","sandbox.generatePost.gapNoStoreData":"No connected system answered, so nothing in these posts was checked against the store.","sandbox.generatePost.gapSectionsDropped":"{count} section(s) were dropped: their props did not match the block that renders them.","sandbox.generatePost.gapNoBucket":"No bucket to upload images to, so the posts have no cover. Configure one under Settings → Buckets.","sandbox.generatePost.gapNoImageModel":"This organization has no image model configured, so the posts have no cover.","sandbox.generatePost.gapImagesFailed":"The cover images could not be generated. The posts are otherwise complete.","sandbox.generatePost.gapDraftsFailed":"{count} draft(s) could not be written and their cards were left empty.","sandbox.generatePost.back":"Back","sandbox.generatePost.blockedBrand":"Fill in {fields} on the Brand tab first — a post written without them reads like any other brand's.","sandbox.generatePost.done":"Wrote {count} draft(s) — ready for review","sandbox.generatePost.extraLabel":"Anything else?","sandbox.generatePost.extraPlaceholder":"What you want on top of everything else, in your words.","sandbox.generatePost.failed":"Could not write these posts","sandbox.generatePost.formatHint":"Pick a format this brand already uses, or describe a new one.","sandbox.generatePost.formatNameLabel":"Format name","sandbox.generatePost.formatNamePlaceholder":"The format, named by the job it does","sandbox.generatePost.formatValueLabel":"How a post like this is built","sandbox.generatePost.formatValuePlaceholder":"How it opens, develops and closes.","sandbox.generatePost.generate":"Generate {count} draft(s)","sandbox.generatePost.next":"Next","sandbox.generatePost.stepExtra":"Instructions","sandbox.generatePost.stepFormat":"Format","sandbox.generatePost.subtitle":"Pick the campaign and the format. The posts land on the board as drafts.","sandbox.generatePost.title":"Generate posts","sandbox.itemActions.addVariant":"Add variant","sandbox.itemActions.delete":"Delete","sandbox.itemActions.discardChanges":"Discard changes","sandbox.itemActions.duplicate":"Duplicate","sandbox.itemActions.editSeo":"Edit SEO","sandbox.itemActions.moreActions":"More actions","sandbox.itemActions.rename":"Rename","sandbox.itemActions.viewJson":"View JSON","sandbox.itemRow.duplicateName":"Another record uses this name","sandbox.itemRow.missingFields":"Missing: {fields}","sandbox.itemRow.selectItem":"Select {title}","sandbox.itemRow.variantCount":"{count} variants","sandbox.listBlocks.addCard":"Add card","sandbox.listBlocks.addItem":"Add item","sandbox.listBlocks.addStat":"Add stat","sandbox.listBlocks.addStep":"Add step","sandbox.listBlocks.cardBody":"Card body","sandbox.listBlocks.cardTitle":"Card title","sandbox.listBlocks.checklistItem":"Checklist item","sandbox.listBlocks.checklistTitle":"Checklist title (optional)","sandbox.listBlocks.columnTitle":"Column title","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Label","sandbox.listBlocks.optionA":"Option A","sandbox.listBlocks.optionB":"Option B","sandbox.listBlocks.removeCard":"Remove card","sandbox.listBlocks.removeItem":"Remove item","sandbox.listBlocks.removeStat":"Remove stat","sandbox.listBlocks.removeStep":"Remove step","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Step description","sandbox.listBlocks.stepTitle":"Step title","sandbox.listBlocks.stepsTitle":"Steps title (optional)","sandbox.mediaBlocks.addCaption":"Add a caption…","sandbox.mediaBlocks.altText":"Alt text (accessibility)","sandbox.mediaBlocks.altLabel":"Alt","sandbox.mediaBlocks.buttonLabel":"Button label","sandbox.mediaBlocks.calloutText":"Callout text…","sandbox.mediaBlocks.calloutTitle":"Callout title","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://destination-url.com","sandbox.linkSuggest.button":"Suggest links","sandbox.linkSuggest.hint":"Find phrases to link to your other posts (uses AI credits)","sandbox.linkSuggest.noCandidates":"No other posts to link to yet","sandbox.linkSuggest.title":"Suggested internal links","sandbox.linkSuggest.description":"Pick which phrases to link to your other posts. Nothing changes until you apply.","sandbox.linkSuggest.none":"No internal links to suggest.","sandbox.linkSuggest.apply":"Apply {count}","sandbox.linkSuggest.applied":"Applied {count} link(s)","sandbox.linkSuggest.failed":"Could not suggest links","sandbox.linkPicker.tabPost":"Post","sandbox.linkPicker.tabProduct":"Product","sandbox.linkPicker.searchPosts":"Search your posts…","sandbox.linkPicker.noPosts":"No matching posts","sandbox.linkPicker.searchProducts":"Search your catalog…","sandbox.linkPicker.searching":"Searching…","sandbox.linkPicker.noProducts":"No matching products","sandbox.mediaBlocks.divider":"Divider","sandbox.mediaBlocks.fullWidth":"Full width","sandbox.mediaBlocks.highPriority":"Priority","sandbox.mediaBlocks.highPriorityHint":"Loads eagerly with high fetch priority. Use for images above the fold.","sandbox.mediaBlocks.label":"Label","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Optional description","sandbox.mediaBlocks.pasteVideoUrl":"Paste a YouTube or Vimeo URL to preview","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Video","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancel","sandbox.pageFormDialog.labelName":"Name","sandbox.pageFormDialog.labelPath":"Path","sandbox.pageFormDialog.labelTemplate":"Template","sandbox.pageFormDialog.pendingCreate":"Creating…","sandbox.pageFormDialog.pendingDuplicate":"Duplicating…","sandbox.pageFormDialog.pendingSave":"Saving…","sandbox.pageFormDialog.placeholderName":"My page","sandbox.pageFormDialog.placeholderPath":"/example","sandbox.pageFormDialog.submitCreate":"Create","sandbox.pageFormDialog.submitDuplicate":"Duplicate","sandbox.pageFormDialog.submitSave":"Save","sandbox.pageFormDialog.titleCreate":"Create new page","sandbox.pageFormDialog.titleDuplicate":"Duplicate page","sandbox.pageFormDialog.titleRename":"Rename page","sandbox.pathParamPickerChip.buttonTitle":"Value for {paramLabel} — click to pick","sandbox.pathParamPickerChip.couldNotLoad":"Couldn't load — is the dev server running?","sandbox.pathParamPickerChip.kindCategoryHeading":"Categories","sandbox.pathParamPickerChip.kindCategoryNoun":"category","sandbox.pathParamPickerChip.kindProductHeading":"Products","sandbox.pathParamPickerChip.kindProductNoun":"product","sandbox.pathParamPickerChip.loading":"Loading {noun}…","sandbox.pathParamPickerChip.noResults":"No results.","sandbox.pathParamPickerChip.pickValueHeading":"Pick a value for","sandbox.pathParamPickerChip.pickValueTitle":"Pick a value for {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Search {options} or enter a value…","sandbox.pathParamPickerChip.useRawValue":'Use "{rawTerm}" as {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Bulleted","sandbox.plainBlocks.codePlaceholder":"Code","sandbox.plainBlocks.headingLevel1":"Heading 1","sandbox.plainBlocks.headingLevel2":"Heading 2","sandbox.plainBlocks.headingLevel3":"Heading 3","sandbox.plainBlocks.headingLevel4":"Heading 4","sandbox.plainBlocks.headingPlaceholder":"Heading","sandbox.plainBlocks.languagePlaceholder":"language","sandbox.plainBlocks.listItemPlaceholder":"List item","sandbox.plainBlocks.numberedLabel":"Numbered","sandbox.plainBlocks.quotePlaceholder":"Quote","sandbox.postBoard.close":"Close","sandbox.postBoard.archived":"Moved to Archived","sandbox.postBoard.collapse":"Collapse to panel","sandbox.postBoard.collapseLane":"Collapse {lane}","sandbox.postBoard.delete":"Delete","sandbox.postBoard.emptyDescription":"Generate a few ideas and shape them into published posts.","sandbox.postBoard.emptyTitle":"No posts yet","sandbox.postBoard.duplicateTitle":"Duplicate title","sandbox.postBoard.expand":"Expand to full page","sandbox.postBoard.expandLane":"Expand {lane}","sandbox.postBoard.laneEmpty":"Nothing here yet","sandbox.postBoard.laneArchived":"Archived","sandbox.postBoard.laneGenerating":"Generating","sandbox.postBoard.laneDraft":"Draft","sandbox.postBoard.laneAwaitingReview":"Awaiting review","sandbox.postBoard.lanePublished":"Published","sandbox.postBoard.laneScheduled":"Scheduled","sandbox.postBoard.moveBlocked":"This post is missing required fields — open it to finish before scheduling.","sandbox.postBoard.moveFailed":"Could not move this post","sandbox.postBoard.moveInFlight":"Still moving this post…","sandbox.postBoard.moveNotATarget":"Generating is set by the generation run, not by hand.","sandbox.postBoard.nIssues":"{count} to fix before scheduling","sandbox.postBoard.newPost":"New post","sandbox.postBoard.newPostGenerate":"Generate","sandbox.postBoard.newPostGenerateHint":"Write it with AI, from your context","sandbox.postBoard.newPostWrite":"Write","sandbox.postBoard.newPostWriteHint":"Start an empty draft yourself","sandbox.postBoard.importContent":"Import content","sandbox.postBoard.importContentHint":"Bring in HTML or Markdown you already wrote","sandbox.postBoard.importTitle":"Import content","sandbox.postBoard.importDescription":"Paste HTML or Markdown you already wrote. It becomes an editable draft in your design system — no AI, no credits.","sandbox.postBoard.importUpload":"Upload a file","sandbox.postBoard.importRun":"Import","sandbox.postBoard.importEmpty":"Nothing to import — the content was empty.","sandbox.postBoard.imported":"Imported — review and publish.","sandbox.postBoard.readyToSchedule":"Ready to schedule","sandbox.postBoard.selectPrompt":"Select a post to view it here.","sandbox.postBoard.untitled":"Untitled post","sandbox.postBoard.generatingLabel":"Generating…","sandbox.postBoard.usesCredits":"Uses AI credits","sandbox.postBoard.viewBoard":"Board","sandbox.postBoard.viewList":"List","sandbox.postCalendar.couldNotCreate":"Could not create","sandbox.postCalendar.couldNotReschedule":"Could not reschedule","sandbox.postCalendar.createdScheduledPost":"Created scheduled post","sandbox.postCalendar.legendScheduled":"Scheduled","sandbox.postCalendar.legendUnscheduled":"Not scheduled","sandbox.postCalendar.next":"Next month","sandbox.postCalendar.onlyScheduledCanMove":"Only scheduled posts can be moved.","sandbox.postCalendar.previous":"Previous month","sandbox.postCalendar.schedulePostOn":"Schedule a post on {date}","sandbox.postCalendar.today":"Today","sandbox.postCalendar.unscheduledHint":"Dashed posts aren't scheduled — they sit on their display date, and nothing will publish them.","sandbox.postCalendar.undatedEmpty":"Every post has a date.","sandbox.postCalendar.undatedLabel":"No date · {count}","sandbox.postEditor.addPropLabel":"Add prop","sandbox.postEditor.authorsLabel":"Authors","sandbox.postEditor.categoriesLabel":"Categories","sandbox.postEditor.contentTab":"Content","sandbox.postEditor.coverAltDescription":"Describes the image for screen readers and when it fails to load. Empty: the post title is used.","sandbox.postEditor.coverAltLabel":"Cover image alt text","sandbox.postEditor.coverImageLabel":"Cover image","sandbox.postEditor.dateLabel":"Date","sandbox.postEditor.deletePost":"Delete post","sandbox.postEditor.deletePostCancel":"Cancel","sandbox.postEditor.deletePostConfirmBody":`"{title}" will be removed permanently. This can't be undone.`,"sandbox.postEditor.deletePostConfirmBodyDraft":'"{title}" will be removed from your draft. Nothing goes live until you publish, and until then you can bring it back by discarding this change in Publish.',"sandbox.postEditor.deletePostConfirmBodyNeverPublished":`"{title}" will be removed from your draft. It was never published, so nothing changes on the live site, and once removed it can't be brought back.`,"sandbox.postEditor.deletePostConfirmTitle":"Delete this post?","sandbox.postEditor.deletePostFailed":"Delete failed","sandbox.postEditor.deletePostSuccess":'Deleted "{title}"',"sandbox.postEditor.deletingPost":"Deleting…","sandbox.postEditor.duplicateTitleWarning":"Another post already uses this title. Duplicate titles compete with each other in search.","sandbox.postEditor.excerptLabel":"Excerpt","sandbox.postEditor.extraPropsLabel":"Extra props","sandbox.postEditor.issuePlural":"issues","sandbox.postEditor.issueSingular":"issue","sandbox.postEditor.keyPlaceholder":"key","sandbox.postEditor.legacyCodeBlock":"Code block","sandbox.postEditor.legacyContentPlaceholder":"Write the post…","sandbox.postEditor.legacyImageDataUrl":"Pasted image data isn't kept in the post. Upload the image or use its address.","sandbox.postEditor.legacyInsertImage":"Insert image from the library","sandbox.postEditor.legacyInsertImageUrl":"Insert image from a URL","sandbox.postEditor.legacySectionsNotice":"This post also has {count} blocks from the block editor. They are kept as they are; this editor only changes the HTML body.","sandbox.postEditor.missingFieldPlural":"Missing required fields: {fields}","sandbox.postEditor.missingFieldSingular":"Missing required field: {fields}","sandbox.postEditor.noAuthorsYet":"No authors yet — create some in the authors collection.","sandbox.postEditor.noCategoriesYet":"No categories yet — create some in the categories collection.","sandbox.postEditor.noContentYet":"This post has no content yet. Use ⊕ to add your first block.","sandbox.postEditScreen.notFound":"This post no longer exists","sandbox.postEditScreen.notFoundHint":"It may have been deleted, or the link points at an id this site does not have.","sandbox.postEditScreen.edit":"Edit","sandbox.postEditScreen.preview":"Preview","sandbox.postEditScreen.resizeSplit":"Resize the editor and the preview","sandbox.postEditScreen.resizeSplitHint":"Drag to resize. Double-click to reset.","sandbox.postPreview.desktop":"Desktop","sandbox.postPreview.frameTitle":"Post preview","sandbox.postPreview.missingParams":"Not enough to build the URL","sandbox.postPreview.missingParamsHint":"Set the post's slug, and its category when the blog route uses one.","sandbox.postPreview.mobile":"Mobile","sandbox.postPreview.noOrigin":"Waiting for the site","sandbox.postPreview.noOriginHint":"The preview appears once this project's site is serving.","sandbox.postPreview.noRoute":"This site has no blog post page","sandbox.postPreview.noRouteHint":"Add a page with the blog post section, or set the blog app's pageSlug, and the preview can render.","sandbox.postPreview.openInNewTab":"Open in new tab","sandbox.postPreview.refresh":"Refresh","sandbox.postEditor.postTitlePlaceholder":"Post title","sandbox.postEditor.readTimeLabel":"Read time (minutes)","sandbox.postEditor.previewRequiresSlugAndCategory":"Set the post slug (and its category) plus the blog app's pageSlug to preview","sandbox.postEditor.previewTooltip":"Open the post preview in a new tab","sandbox.postEditor.scheduledDatetimeDescription":"When this post goes live. The site publishes it on its own once this moment passes.","sandbox.postEditor.scheduledDatetimeLabel":"Goes live at","sandbox.postEditor.removePropLabel":"Remove prop","sandbox.postEditor.seePreview":"See preview","sandbox.postEditor.selectAuthorsPlaceholder":"Select authors","sandbox.postEditor.selectCategoriesPlaceholder":"Select categories","sandbox.postEditor.seoCanonicalLabel":"Canonical URL","sandbox.postEditor.seoCanonicalPlaceholder":"https://example.com/blog/my-post","sandbox.postEditor.seoDescriptionLabel":"SEO description","sandbox.postEditor.seoImageLabel":"SEO image","sandbox.postEditor.seoNoIndexingLabel":"Hide from search engines (noindex)","sandbox.postEditor.seoSectionHint":"Overrides how this post appears in search engines. Empty fields fall back to the post's title, excerpt and cover image.","sandbox.postEditor.seoSectionLabel":"SEO","sandbox.postEditor.seoTitleLabel":"SEO title","sandbox.postEditor.settingsTab":"Settings","sandbox.postEditor.statusLabel":"Status","sandbox.postEditor.slugDeduped":"That slug was already taken — saved as “{slug}”.","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"my-post","sandbox.postEditor.valuePlaceholder":"value","sandbox.postList.noMatches":"No posts match your search or filters.","sandbox.postToolbar.allPosts":"All posts","sandbox.postToolbar.archiveSelected":"Archive selected","sandbox.postToolbar.archiveSelectedPosts":"Archive selected posts","sandbox.postToolbar.authorLabel":"Author","sandbox.postToolbar.categoryLabel":"Category","sandbox.postToolbar.clearFilter":"Clear filter","sandbox.postToolbar.deselectAll":"Deselect all","sandbox.postToolbar.deselectAllPosts":"Deselect all posts","sandbox.postToolbar.exitSelection":"Exit selection","sandbox.postToolbar.filterBy":"Filter by","sandbox.postToolbar.filterLabel":"Filter","sandbox.postToolbar.itemsSelected":"{count} selected","sandbox.postToolbar.clearSearch":"Clear search","sandbox.postToolbar.searchAriaLabel":"Search posts","sandbox.postToolbar.searchPlaceholder":"Search posts","sandbox.postToolbar.selectAll":"Select all","sandbox.postToolbar.selectAllPosts":"Select all posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Sort by","sandbox.postToolbar.sortNewest":"Newest","sandbox.postToolbar.sortNewestFirst":"Newest first","sandbox.postToolbar.sortOldest":"Oldest","sandbox.postToolbar.sortOldestFirst":"Oldest first","sandbox.postToolbar.sortTitleAZ":"Title A–Z","sandbox.postToolbar.sortTitleZA":"Title Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.postToolbar.statusLabel":"Status","sandbox.preview.catchAllParamLabel":"path","sandbox.preview.choosePage":"Choose page","sandbox.preview.clickElementToAsk":"Click any element to ask the AI","sandbox.preview.collapseTerminal":"Collapse terminal","sandbox.preview.expandTerminal":"Expand terminal","sandbox.preview.resizeTerminal":"Resize terminal","sandbox.preview.createNewPage":"Create new page","sandbox.preview.devServerPreviewTitle":"Dev Server Preview","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Mobile (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.enterToGo":"Enter to go","sandbox.preview.failedToCreatePage":"Failed to create page","sandbox.preview.globalBadge":"Global","sandbox.preview.globalComponents":"Global components","sandbox.preview.globalLoaders":"Global loaders","sandbox.preview.loaderBadge":"Loader","sandbox.preview.loaderNoLongerExists":"This loader no longer exists.","sandbox.preview.noPagesFound":"No pages found in this site.","sandbox.preview.noSearchResults":"No results match your search.","sandbox.preview.siteRoutes":"Site routes","sandbox.preview.noServerRunning":"No server running","sandbox.preview.openInNewTab":"Open in new tab","sandbox.preview.pageAlreadyExists":'A page with path "{path}" already exists.',"sandbox.preview.pageCreated":'Page "{name}" created',"sandbox.preview.blockOnNoPage":"This block isn't used on any page, so there's nothing to preview.","sandbox.preview.previewMetadataNotReady":"Preview metadata not ready yet","sandbox.preview.pageSchemaNotReady":"The site is still loading. Try again in a moment.","sandbox.preview.searchPagesAndComponents":"Search pages and components...","sandbox.preview.startingPreview":"Starting your preview","sandbox.preview.startingPreviewHint":"Showing your published site. You can make changes now — they'll appear once the preview is ready.","sandbox.preview.templateNoLongerExists":"Selected template no longer exists.","sandbox.preview.valueForParam":"Value for {label}","sandbox.preview.blocksEditor":"Blocks editor","sandbox.preview.visualEditor":"Visual editor","sandbox.productBlocks.addProductIdButton":"Add product ID","sandbox.productBlocks.addProductsButton":"Add products","sandbox.productBlocks.addProductsDescription":"Search VTEX products, or pick a category or cluster","sandbox.productBlocks.browseProductsButton":"Browse products","sandbox.productBlocks.changeButton":"Change","sandbox.productBlocks.chooseProductButton":"Choose a product","sandbox.productBlocks.ctaLabelField":"CTA label","sandbox.productBlocks.ctaLabelPlaceholder":"View product","sandbox.productBlocks.dragToReorderLabel":"Drag to reorder","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Loading…","sandbox.productBlocks.productCardLabel":"Product card","sandbox.productBlocks.productField":"Product","sandbox.productBlocks.productPlural":"products","sandbox.productBlocks.productSingular":"product","sandbox.productBlocks.productSlugField":"Product slug","sandbox.productBlocks.productSlugPlaceholder":"product-slug","sandbox.productBlocks.productWithId":"Product {id}","sandbox.productBlocks.removeProductButton":"Remove product","sandbox.productBlocks.removeProductIdButton":"Remove product ID","sandbox.productBlocks.removeProductLabel":"Remove product","sandbox.productBlocks.shelfTitlePlaceholder":"Shelf title","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Start the dev server to browse products, or add SKU ids below.","sandbox.productBlocks.vtexProductIdPlaceholder":"VTEX product ID (e.g. 151331)","sandbox.productBlocks.vtexProductIds":"VTEX product IDs","sandbox.productPickerDialog.addProducts":"Add products","sandbox.productPickerDialog.categoryLabel":"Category: ","sandbox.productPickerDialog.change":" — change","sandbox.productPickerDialog.chooseProduct":"Choose a product","sandbox.productPickerDialog.clusterIdPlaceholder":"Collection / cluster ID (e.g. 2140)","sandbox.productPickerDialog.couldNotLoad":"Couldn't load — is the dev server running?","sandbox.productPickerDialog.done":"Done","sandbox.productPickerDialog.enterClusterPrompt":"Enter a collection or cluster ID.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filter categories…","sandbox.productPickerDialog.loadingCategories":"Loading categories…","sandbox.productPickerDialog.loadingProducts":"Loading products…","sandbox.productPickerDialog.modeCategory":"Category","sandbox.productPickerDialog.modeClusterId":"Cluster ID","sandbox.productPickerDialog.modeSearch":"Search","sandbox.productPickerDialog.noCategories":"No categories.","sandbox.productPickerDialog.noProductsFound":"No products found.","sandbox.productPickerDialog.noneSelected":"None selected","sandbox.productPickerDialog.pickCategoryPrompt":"Pick a category to see its products.","sandbox.productPickerDialog.searchProductsPlaceholder":"Search products by name or ID…","sandbox.productPickerDialog.selectedCount":"{count} selected","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Company","sandbox.recordEditor.fieldEmail":"Email","sandbox.recordEditor.fieldJobTitle":"Job title","sandbox.recordEditor.fieldName":"Name","sandbox.recordEditor.fieldType":"Type","sandbox.recordEditor.fieldUrl":"Website","sandbox.recordEditor.optionOrganization":"Organization","sandbox.recordEditor.optionPerson":"Person","sandbox.recordEditor.placeholderEmail":"author@example.com","sandbox.recordEditor.placeholderUrl":"https://example.com","sandbox.recordEditor.titleAuthor":"Author","sandbox.redirectFormDialog.title":"Create redirect","sandbox.redirectFormDialog.submit":"Create","sandbox.redirectFormDialog.pending":"Creating…","sandbox.redirectFormDialog.cancel":"Cancel","sandbox.redirectFormDialog.errorRequired":"From and To are required.","sandbox.redirectEditor.discardQueryParameters":"Discard query parameters","sandbox.redirectEditor.fromDescription":"The source path to match. Supports URLPattern syntax (e.g. /product/:slug).","sandbox.redirectEditor.fromLabel":"From","sandbox.redirectEditor.fromPlaceholder":"/old-path","sandbox.redirectEditor.statusDescription":"An explicit status code wins over the type.","sandbox.redirectEditor.statusFromType":"Follow the type ({status})","sandbox.redirectEditor.statusLabel":"Status code","sandbox.redirectEditor.title":"Redirect","sandbox.redirectEditor.toDescription":"The destination — a relative path or an absolute URL.","sandbox.redirectEditor.toLabel":"To","sandbox.redirectEditor.toPlaceholder":"/new-path","sandbox.redirectEditor.typeLabel":"Type","sandbox.redirectEditor.typePermanent":"Permanent ({status})","sandbox.redirectEditor.typePlaceholder":"Type","sandbox.redirectEditor.typeTemporary":"Temporary ({status})","sandbox.cmsSettings.title":"CMS","sandbox.cmsSettings.preview.title":"Preview","sandbox.cmsSettings.preview.description":"See your changes before they go live.","sandbox.cmsSettings.fastPreview.label":"Fast Preview","sandbox.cmsSettings.fastPreview.description":"New chats start as CMS sessions, previewed on your preview server instead of a sandbox. Existing chats keep the mode they were created with.","sandbox.cmsSettings.fastPreview.needsPreviewServerUrl":"Set a preview server above to enable Fast Preview.","sandbox.cmsSettings.blocksV8.needsPreviewServerUrl":"Add your site's address above to preview drafts. Until then, new chats start a coding session.","sandbox.cmsSettings.fastPreviewInPlace.label":"Instant preview (experimental)","sandbox.cmsSettings.fastPreviewInPlace.description":"Refresh edits in place, without waiting for a save — much faster, but only works on websites that have /live/previews route.","sandbox.cmsSettings.contentEditing.on":"Enabled","sandbox.cmsSettings.contentEditing.onDescription":"The Site Editor offers Content and opens Blocks beside Preview on desktop.","sandbox.cmsUnavailable.noPreviewServer":"It's a CMS session, but this project has no preview server configured.","sandbox.cmsUnavailable.noRepo":"It's a CMS session, but this project has no GitHub repository to save to.","sandbox.cmsUnavailable.startCodingSession":"Continue this branch in a coding session","sandbox.previewServerUrlField.description":"Your live server's address, used to preview content. Required for Fast Preview.","sandbox.previewServerUrlField.descriptionBlocksV8":"Your live site's address. Studio shows your drafts on it before you publish. A new address shows drafts after your next publish.","sandbox.previewServerUrlField.label":"Preview server","sandbox.previewServerUrlField.placeholder":"https://example.com","sandbox.fieldDescriptionTooltipsField.label":"Compact descriptions","sandbox.fieldDescriptionTooltipsField.description":"In the blocks form, show a field's description as a hover tooltip on its title instead of text below the title.","sandbox.legacyBlogPostFormatField.label":"Legacy blog post editor","sandbox.legacyBlogPostFormatField.description":"Edit a blog post's body via HTML, in one rich-text editor saved to its content field, the format older blog templates read, instead of as blocks.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edits stay local until you save this as a global {singular}. Run to invoke it against the live preview.","sandbox.runnableBlockEditor.closeJsonEditor":"Close JSON editor","sandbox.runnableBlockEditor.closeResult":"Close result","sandbox.runnableBlockEditor.collapse":"Collapse","sandbox.runnableBlockEditor.collapseResult":"Collapse result","sandbox.runnableBlockEditor.editAsJson":"Edit as JSON","sandbox.runnableBlockEditor.expand":"Expand","sandbox.runnableBlockEditor.expandResult":"Expand result","sandbox.runnableBlockEditor.failedToRun":"Failed to run {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"This {singular} doesn't publish a props schema. Edit its props as JSON, then run it.","sandbox.runnableBlockEditor.inferredSchemaNotice":"This {singular} doesn't publish a props schema — fields below are inferred from its saved values. Use the JSON editor to add props not shown here.","sandbox.runnableBlockEditor.invalidJsonError":"Invalid JSON — changes aren't saved until it parses.","sandbox.runnableBlockEditor.noInputEmptyState":"This {singular} takes no configurable input. Run it to see its output.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Open in new tab (re-runs the {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Open result in new tab","sandbox.runnableBlockEditor.pressRunToInvoke":"Press Run to invoke this {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Result","sandbox.runnableBlockEditor.run":"Run","sandbox.runnableBlockEditor.runAriaLabel":"Run {singular}","sandbox.runnableBlockEditor.running":"Running {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Save as global {singular}","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Save as global {singular}","sandbox.runnableBlockEditor.savedModeDescription":"Global {singular} — changes save automatically. Run to invoke it against the live preview.","sandbox.runnableBlocksBrowser.emptyFolder":"This folder is empty.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Start the preview dev server so its manifest loads.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"No {kind} here","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Folder breadcrumb","sandbox.runnableBlocksBrowser.hideSaved":"Hide saved","sandbox.runnableBlocksBrowser.noSearchResults":'No {kind} match "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"Search covers every folder — try a different term.","sandbox.runnableBlocksBrowser.savedBlockToast":'Saved {singular} "{blockId}"',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} saved","sandbox.runnableBlocksBrowser.searchAriaLabel":"Search all {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Search all {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"See saved","sandbox.runtimeFields.auto":"Auto","sandbox.runtimeFields.autoDetect":"Auto-detect","sandbox.runtimeFields.devServerPort":"Dev server port","sandbox.runtimeFields.devServerPortDescription":"Leave blank to let the runner pick.","sandbox.runtimeFields.packageManager":"Package manager","sandbox.runtimeFields.packagePath":"Package path","sandbox.runtimeFields.packagePathDescription":"Path (relative to repo root) to the directory containing package.json. Leave blank for the repo root.","sandbox.runtimeApps.title":"Other apps","sandbox.runtimeApps.description":"Other apps of this repository to preview beside the main one, up to {max}. Each runs its own dev server.","sandbox.runtimeApps.add":"Add app","sandbox.runtimeApps.remove":"Remove {path}","sandbox.runtimeApps.duplicate":"This app is already in the list.","sandbox.appTabs.label":"Apps","sandbox.appTabs.root":"root","sandbox.appTabs.main":"Main","sandbox.appTabs.remove":"Remove {app}","sandbox.appTabs.add":"Add another app from this repository","sandbox.appTabs.pathLabel":"Path of the app in the repository, like apps/checkout","sandbox.appTabs.mainHint":"The chat and the editor work on this app.","sandbox.appTabs.extraHint":"Preview only. The chat keeps working on {app}.","sandbox.appPane.previewOnly":"Preview only. The chat and the editor keep working on {app}.","sandbox.appTabs.saveError":"Couldn't save the project's apps.","sandbox.appTabs.split":"View side by side","sandbox.appTabs.single":"View one app","sandbox.appPane.path":"Path in {app}","sandbox.appPane.reload":"Reload {app}","sandbox.appPane.openInNewTab":"Open {app} in a new tab","sandbox.appPane.close":"Close {app}","sandbox.appPane.failed":"The sandbox couldn't start. Retry from {app}.","sandbox.appPane.waiting":"Starting the sandbox…","sandbox.appPane.noUrl":"This app has no preview address.","sandbox.appPane.notStarted":"{app} isn't running yet: the sandbox started before it was added.","sandbox.appPane.start":"Start {app}","sandbox.savedSectionEditor.closeJsonEditor":"Close JSON editor","sandbox.saveStatus.failed":"Couldn't save","sandbox.saveStatus.saved":"Saved","sandbox.saveStatus.saving":"Saving…","sandbox.savedSectionEditor.editAsJson":"Edit as JSON","sandbox.savedSectionEditor.globalSectionDescription":"Global section — changes save automatically and apply everywhere it's used.","sandbox.savedSectionEditor.invalidJsonError":"Invalid JSON — changes aren't saved until it parses.","sandbox.savedSectionEditor.noEditableFields":"No editable fields for this section.","sandbox.schemaless.agentPrompt":"This site's content is edited in deco Studio, but Studio hasn't received the site's schema yet, so its content forms show raw fields. Please set that up in this repository:\n\n1. Make sure @decocms/blocks is 8.11.0 or newer (upgrade it if not), then run `npx deco skills install` to add the deco framework skills to this repository.\n2. Load the deco-site-workflow skill and follow its references/schema.md: generate the schema with `npx deco schema` and commit .deco/schema.gen.json; make DECO_SITE resolve to the Studio site {site}; send the schema to Studio with `npx deco schema push`; and wire `npx deco schema push` into the production deploy (after the deploy succeeds, with a Studio API key in the DECO_TOKEN secret) so every deploy sends it.\n3. Run `npx deco check` and report back: what you changed, and what each command printed.","sandbox.schemaless.agentPromptSiteUnknown":"this project uses (ask me for its name if you can't find it)","sandbox.schemaless.back":"All blocks","sandbox.schemaless.bannerBody":"This site hasn't sent Studio its schema yet (the description of each form's fields), so every block opens with plain fields built from its saved values. Saving still keeps everything else as it is. Ask the coding agent working on your site to set it up: copy the prompt and paste it into the agent. It takes one deploy, and the forms here update on their own.","sandbox.schemaless.bannerTitle":"Content forms are showing raw fields","sandbox.schemaless.copyPrompt":"Copy prompt for your agent","sandbox.schemaless.copyPromptFailed":"Couldn't copy the prompt. Check that this page may use the clipboard, then try again.","sandbox.schemaless.empty":"Empty","sandbox.schemaless.installSkill":"Install skill","sandbox.schemaless.item":"Item {n}","sandbox.schemaless.itemCount":"{count} items","sandbox.schemaless.listLabel":"Saved blocks","sandbox.schemaless.noBlocks":"No saved blocks yet.","sandbox.schemaless.noMatches":"No blocks match your search.","sandbox.schemaless.noType":"Without a type","sandbox.schemaless.notANumber":"Enter a number. The saved value stays until you do.","sandbox.schemaless.notSet":"Not set","sandbox.schemaless.pickBlock":"Pick a block to see its content.","sandbox.schemaless.promptCopied":"Copied","sandbox.schemaless.promptCopiedAnnouncement":"Prompt copied to the clipboard","sandbox.schemaless.searchPlaceholder":"Search blocks","sandbox.schemaless.usesSkill":"Uses the deco-site-workflow skill","sandbox.sectionRenameDialog.cancel":"Cancel","sandbox.sectionRenameDialog.description":"Updates the display name. The internal key stays the same so pages referencing this section keep working.","sandbox.sectionRenameDialog.keyLabel":"Key","sandbox.sectionRenameDialog.nameLabel":"Name","sandbox.sectionRenameDialog.save":"Save","sandbox.sectionRenameDialog.saving":"Saving…","sandbox.sectionRenameDialog.title":"Rename section","sandbox.sectionsRightPane.selectSectionDescription":"Pick a saved section to edit it, or an available one to customize and save as global.","sandbox.sectionsRightPane.selectSectionTitle":"Select a section to edit","sandbox.stateCard.erroredHeadline":"Couldn't start the sandbox","sandbox.stateCard.githubConnectionMissingMessage":"The GitHub connection this chat used was removed. Link the repository again to start the sandbox.","sandbox.stateCard.linkRepoAgain":"Link repository","sandbox.stateCard.githubNotAuthenticatedMessage":"This project's GitHub repo isn't authenticated. Reconnect it in Connections, then retry.","sandbox.stateCard.reconnectGithub":"Reconnect GitHub","sandbox.stateCard.resume":"Resume","sandbox.stateCard.suspendedHeadline":"Sandbox is paused","sandbox.stateCard.resumeToContinue":"Resume to continue.","sandbox.stateCard.retry":"Retry","sandbox.tableBlock.addColumn":"Add column","sandbox.tableBlock.addRow":"Add row","sandbox.tableBlock.headerPlaceholder":"Header {n}","sandbox.tableBlock.noRowsYet":"No rows yet — add one below.","sandbox.tableBlock.removeColumn":"Remove column {n}","sandbox.tableBlock.removeRow":"Remove row {n}","sandbox.toolbar.closeTab":"Close {tab}","sandbox.toolbar.moreActions":"More actions","sandbox.toolbar.noScriptsFound":"No scripts found","sandbox.toolbar.restart":"Restart","sandbox.toolbar.resume":"Resume","sandbox.toolbar.retry":"Retry","sandbox.toolbar.run":"Run","sandbox.toolbar.runAScript":"run a script","sandbox.toolbar.runScript":"Run script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Start","sandbox.toolbar.startProcess":"Start process","sandbox.toolbar.stop":"Stop","sandbox.toolbar.stopProcess":"Stop process","sandbox.toolbar.stopSandboxTooltip":"Stop sandbox","sandbox.toolbar.stopping":"Stopping…","sandbox.variantCalendar.always":"Always","sandbox.variantCalendar.calendarMode":"Calendar","sandbox.variantCalendar.dateMatcherInfo":"Variants gated by a date matcher appear here.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} ongoing variant(s) hidden — enable "Show ongoing" to view.',"sandbox.variantCalendar.next":"Next","sandbox.variantCalendar.noDatedVariants":"No dated variants in view.","sandbox.variantCalendar.noScheduledVariants":"No scheduled variants.","sandbox.variantCalendar.ongoing":"Ongoing","sandbox.variantCalendar.previous":"Previous","sandbox.variantCalendar.showOngoing":"Show ongoing ({count})","sandbox.variantCalendar.timelineMode":"Timeline","sandbox.variantCalendar.today":"Today","sandbox.variantCalendar.todayLabel":"Today","sandbox.variantCalendar.variantBlock":"Variant / Block","sandbox.visualEditorPrompt.inputPlaceholder":"Ask the AI...","sandbox.visualEditorPrompt.sendButton":"Send","sandbox.calendarView.noDraft.title":"Pick a draft to plan your campaigns","sandbox.calendarView.noDraft.desc":"Your campaigns are saved in a draft, like any other edit. Pick a draft in the bar above, or open the site editor to start one.","sandbox.calendarView.loadFailed":"Couldn't load your campaigns.","sandbox.calendarView.loadFailedHint":"Nothing was changed. Try again in a moment.","sandbox.dateCampaigns.intro":"Every date on your site is a campaign: a variant with the rule “Campaign” shows while its campaign runs. Changes are saved in your draft and go live when you publish.","sandbox.dateCampaigns.new":"New campaign","sandbox.dateCampaigns.empty.title":"No campaigns yet","sandbox.dateCampaigns.empty.desc":"Create one here, or from a variant in the site editor: choose the rule “Campaign” and type a name.","sandbox.dateCampaigns.listMode":"List","sandbox.dateCampaigns.timelineMode":"Timeline","sandbox.dateCampaigns.status.running":"Running","sandbox.dateCampaigns.status.upcoming":"Upcoming","sandbox.dateCampaigns.status.ended":"Ended","sandbox.dateCampaigns.status.always":"Always on","sandbox.dateCampaigns.status.unreadable":"Dates can't be read","sandbox.dateCampaigns.state.new":"Not published yet","sandbox.dateCampaigns.state.changed":"Changed in your draft","sandbox.dateCampaigns.removedTitle":"Removed in your draft","sandbox.dateCampaigns.removedHint":"These campaigns stop when you publish. To keep one, create it again with the same name.","sandbox.dateCampaigns.unreadableHint":"One of its dates can't be read, so its variants don't show. Pick new dates and save.","sandbox.dateCampaigns.publishedWindow":"Published: {window}","sandbox.dateCampaigns.saveDates":"Save dates","sandbox.dateCampaigns.delete":"Delete campaign","sandbox.dateCampaigns.deleted":"Campaign “{name}” deleted from your draft","sandbox.dateCampaigns.deletedHint":"It leaves the site when you publish. Undo brings it back.","sandbox.dateCampaigns.allCampaigns":"All campaigns","sandbox.dateCampaigns.today":"Today","sandbox.dateCampaigns.previous":"Earlier","sandbox.dateCampaigns.next":"Later","sandbox.dateCampaigns.nothingInRange":"No campaign runs in these months.","sandbox.dateCampaigns.missing.title":"Your site needs an update for campaigns","sandbox.dateCampaigns.missing.desc":"Ask your developer to update the site to the latest version of Blocks and publish it. Your campaigns will show up here.","sandbox.dateCampaigns.replaced.title":"Your site handles campaigns in its own code","sandbox.dateCampaigns.replaced.desc":"Its developers defined their own campaigns, so they can't be changed here. Ask them how to change one.","sandbox.dateCampaigns.conflict.title":"Your site already has a block named “campaigns”","sandbox.dateCampaigns.conflict.desc":"It isn't a list of campaigns, so campaigns can't be added yet. Rename that block, then come back here.","sandbox.previewAs.label":"Preview as","sandbox.previewAs.intro":"Only this preview changes. Your visitors keep seeing the site as it is.","sandbox.previewAs.unavailable":"Make a change or publish your site first; then the preview can show another moment or force a test.","sandbox.previewAs.momentLabel":"Preview as of","sandbox.previewAs.momentHint":"Campaigns show as they will at this moment. Times are in your computer's time zone.","sandbox.previewAs.now":"Now","sandbox.previewAs.testsLabel":"A/B tests","sandbox.previewAs.testsHint":"Not set: you see the side your own visit got.","sandbox.previewAs.noTests":"No A/B tests yet.","sandbox.previewAs.testsLoadFailed":"Couldn't load your tests.","sandbox.previewAs.tryAgain":"Try again","sandbox.previewAs.off":"Off","sandbox.previewAs.on":"On","sandbox.previewAs.reset":"Show as it is now"},cte={"settings.subscriptionUsage.refresh":"Refresh","settings.subscriptionUsage.codeReview":"Code review","settings.subscriptionUsage.primary":"Primary limit","settings.subscriptionUsage.secondary":"Secondary limit","settings.subscriptionUsage.resets":"Resets {date}","settings.subscriptionUsage.limitReached":"Limit reached","settings.subscriptionUsage.viewUsage":"View usage","settings.subscriptionUsage.openProvider":"View on provider","settings.voice.title":"Voice mode","settings.voice.description":"Let members talk to agents by voice. Needs ElevenLabs set up on this deployment.","settings.title":"Profile & Preferences","settings.nav.organization":"Organization","settings.nav.build":"Build","settings.nav.manage":"Manage","settings.nav.general":"General","settings.nav.connect":"Connect","settings.nav.aiProviders":"AI Providers","settings.nav.secrets":"Secrets","settings.nav.billing":"Billing & AI","settings.nav.buckets":"Buckets","settings.nav.syncedRepos":"Synced repos","settings.nav.repositories":"Repositories","settings.nav.storage":"Storage","settings.nav.advanced":"Advanced","settings.subnav.ariaLabel":"Settings sections","settings.subnav.infrastructure":"Infrastructure","settings.nav.tasks":"Board","settings.jira.sectionTitle":"Jira","settings.jira.connectTitle":"Connect Jira","settings.jira.connectDescription":"Use a Jira Cloud site and an API token, ideally from a service account with access to the project.","settings.jira.siteLabel":"Jira site","settings.jira.sitePlaceholder":"yourcompany.atlassian.net","settings.jira.emailLabel":"Atlassian account email","settings.jira.emailPlaceholder":"you@company.com","settings.jira.tokenLabel":"API token","settings.jira.tokenPlaceholder":"Paste your token","settings.jira.connect":"Connect","settings.jira.connecting":"Connecting…","settings.jira.connected":"Jira connected","settings.jira.connectFailed":"Could not connect to Jira","settings.jira.disconnect":"Disconnect","settings.jira.disconnected":"Jira disconnected","settings.jira.disconnectTitle":"Disconnect Jira?","settings.jira.disconnectDescription":"The sync stops and the credentials are deleted. Cards already on the board stay, but stop updating.","settings.jira.cancel":"Cancel","settings.jira.boardLabel":"Jira board","settings.jira.boardDescription":"Studio acts when a card enters one of this board's columns.","settings.jira.boardPlaceholder":"Select a board","settings.jira.boardSearchPlaceholder":"Search boards…","settings.jira.noBoardsMatch":"No board matches that search","settings.jira.loadingBoards":"Loading boards…","settings.jira.enabledLabel":"Integration enabled","settings.jira.enabledDescription":"While off, cards moving on the board are ignored.","settings.jira.enableRequirements":"Pick a board before enabling the integration","settings.jira.saveFailed":"Could not save the Jira settings","settings.jira.createTokenLink":"Create an API token","settings.jira.webhookTitle":"Instant updates (webhook)","settings.jira.webhookDescription":"Optional. Without it, an issue entering an automated status is picked up on the next 5-minute check; with it, the run starts once the card has stayed put for 20 seconds.","settings.jira.webhookCopy":"Copy","settings.jira.webhookCopied":"Webhook URL copied","settings.jira.webhookStep1":"In Jira, open Settings (gear icon) → System → Webhooks. This requires a Jira admin.","settings.jira.webhookStep2":"Click “Create a webhook” and paste the URL above.","settings.jira.webhookStep3":"Under Events, check Issue: created and Issue: updated.","settings.jira.webhookStep4":"Optionally scope it with a JQL filter, e.g. project = <your project key>.","settings.jira.webhookStep5":"Save. An issue entering an automated status now starts its run once it has stayed there for 20 seconds.","settings.jira.automationsLabel":"Run the agent when an issue enters…","settings.jira.automationsDescription":"The automations that run when an issue enters one of these statuses and stays there for 20 seconds. Open one to change its prompt, or give any automation a “When a Jira issue enters a status” starter. A card dragged through a status, or into the wrong one and straight back, starts nothing. An issue that links an open pull request has it continued. The agent reads the issue and updates it in Jira; nothing is copied to the board.","settings.jira.toggleAutomation":"Turn {name} on or off","settings.jira.addAutomation":"Add automation","settings.jira.fromAny":"From any column","settings.jira.fromEarlier":"From an earlier column","settings.jira.fromLater":"From a later column (sent back)","settings.jira.fromStatuses":"From {statuses}","settings.jira.originLabel":"When the card comes from","settings.jira.originStatusesPlaceholder":"Pick statuses","settings.jira.originHelp":"A move starts one rule: the one naming where the card came from, else the one for its direction on the board, else the one for any column. Where it came from is the status it last stayed in, not one it was dragged through.","settings.jira.createRule":"Create automation","settings.jira.cancelRule":"Cancel","settings.jira.noColumnsYet":"No columns on this board yet","settings.jira.columnsFailed":"Could not load this board's columns","settings.jira.testRunLabel":"Run it by hand","settings.jira.testRunDescription":"Run an automation on one issue or a batch now, without enabling the integration, to see what its prompt does.","settings.jira.issueKeysPlaceholder":"ABC-123 or a link, one per line or comma-separated","settings.jira.issueKeysCount":"{count} issue(s)","settings.jira.issueKeysUnreadable":"could not read: {items}","settings.jira.testRunIssueAriaLabel":"Jira issue key or link","settings.jira.testRun":"Run agent {count}","settings.jira.testRunRunning":"Starting…","settings.jira.testRunStarted":"Started on","settings.jira.testRunFailed":"Could not start the run","settings.jira.testRunHelp":"This is a real run: the agent reads the actual issue, comments on it, and may move it. Running it again stops whatever run is still working that issue, and an issue that links an open pull request has it continued.","settings.jira.testRunAutomation":"Automation to run","settings.jira.testRunNoAutomations":"Add an automation above first: running by hand fires one of them.","settings.jira.together":"One run for all of them, so the agent works the issues as a batch","settings.jira.togetherStarted":"Started one run on","settings.jira.testRunWatch":"Watch runs in Monitor","settings.syncedRepos.addRepo":"Add repo","settings.syncedRepos.cancel":"Cancel","settings.syncedRepos.create":"Create","settings.syncedRepos.creating":"Creating…","settings.syncedRepos.created":'Sync created — syncing into "{volume}" in the background',"settings.syncedRepos.emptyTitle":"No synced repos yet","settings.syncedRepos.emptyDescription":"Pick a repository and it will appear in the library as a read-only folder, kept in sync automatically.","settings.syncedRepos.failed":"Something went wrong","settings.syncedRepos.nameDialogDescription":"{repo} will be kept in sync into this read-only library folder.","settings.syncedRepos.nameDialogTitle":"Name the synced folder","settings.syncedRepos.namePlaceholder":"folder-name","settings.syncedRepos.pickerTitle":"Sync a repo into the library","settings.syncedRepos.remove":"Stop syncing","settings.syncedRepos.removeDescription":"The already-synced files stay in the library; only the sync stops. You can delete the folder afterwards if you don't need it.","settings.syncedRepos.removeTitle":'Stop syncing "{volume}"?',"settings.syncedRepos.removed":"Sync removed","settings.syncedRepos.rowSubtitle":"Library folder: {volume}","settings.repositories.accountsTitle":"Connected accounts","settings.repositories.accountsEmptyTitle":"No accounts connected","settings.repositories.accountsEmptyDescription":"Connect a GitHub, GitLab or Bitbucket account to browse your repositories and link private ones.","settings.repositories.noProvidersTitle":"No git provider configured","settings.repositories.noProvidersDescription":"Signing in with GitHub, GitLab or Bitbucket needs provider credentials an administrator configures for this deployment. You can still connect a GitLab or Bitbucket account with an access token.","settings.repositories.githubUnavailable":"Ask an administrator to enable GitHub.","settings.repositories.connectGithubCli":"Connect with GitHub CLI","settings.repositories.githubCliHint":"Use your local gh login to browse and import repositories.","settings.repositories.authKindGithubCli":"GitHub CLI","settings.repositories.addGithubAccount":"Add GitHub account or organization","settings.repositories.githubSelectTitle":"Select repositories","settings.repositories.githubSelectedShareHint":"Members with repository permissions in {organization} can use the repositories you authorize here.","settings.repositories.githubPreselectedHint":"Previously authorized or linked repositories are already selected when you have permission to authorize them. Review the selection before saving.","settings.repositories.githubReplaceHint":"Saving replaces this account’s existing workspace access with your selection. Removed repositories stop receiving new credentials. Previously issued credentials may work until they expire.","settings.repositories.githubFilterRepos":"Search repositories","settings.repositories.githubNoRepos":"No repositories available to authorize.","settings.repositories.githubSearchNoMatches":"No repositories match your search.","settings.repositories.githubAccessChanged":"Someone changed this account’s access. Go back and review the repositories again before saving.","settings.repositories.githubMoreRepos":"Load more repositories","settings.repositories.githubBack":"Back to accounts","settings.repositories.githubSaveOneRepo":"Authorize 1 repository","settings.repositories.githubSaveRepos":"Authorize {count} repositories","settings.repositories.githubEditWorkspaceAccess":"Change workspace access","settings.repositories.githubShareHint":"Choose your personal GitHub account, or an organization where you administer repositories, to share with {organization}. Members with repository permissions in Studio can use this connection.","settings.repositories.githubInstallHint":"Nothing here is yours to share yet. Install the GitHub App on your personal account or on repositories you administer, or ask an account owner to connect it to Studio. A repository you only collaborate on is not yours to share.","settings.repositories.installGithubAccount":"Install on another account","settings.repositories.checkGithubAccess":"Check access","settings.repositories.switchGithubUser":"Use another GitHub login","settings.repositories.githubReturnHint":"GitHub opens in a new tab. After saving access, return here to choose the account. If it does not appear, use Check access.","settings.repositories.githubRefreshFailed":"Could not check GitHub access. Try again without leaving this dialog.","settings.repositories.githubConnected":"GitHub account connected","settings.repositories.manageRepositoryAccess":"Manage repository access","settings.repositories.connectedBy":"Connected by {name}","settings.repositories.connectedByUnknown":"Connected by an unavailable user","settings.repositories.dismiss":"Dismiss","settings.repositories.tryAgain":"Try again","settings.repositories.oauthNoInstallations":"GitHub authorization succeeded, but no app installations are available to this user. Add a GitHub account or organization to finish setup.","settings.repositories.oauthDenied":"Authorization was cancelled. Connect again when you are ready.","settings.repositories.oauthExpired":"This connection attempt expired or belongs to another session. Start again from this page.","settings.repositories.oauthNotConfigured":"This git provider is not configured. Ask an administrator to enable it.","settings.repositories.oauthFailed":"Could not connect your git account. Try again. If it keeps failing, contact an administrator.","settings.repositories.authKindGithubApp":"GitHub App","settings.repositories.authKindOauth":"OAuth","settings.repositories.authKindToken":"Personal token","settings.repositories.accessUnavailable":"Access unavailable","settings.repositories.accessUnavailableHint":"Studio cannot access this account. Authorize it again to continue using its repositories.","settings.repositories.githubReconnect":"Reconnect GitHub","settings.repositories.authorizeWorkspaceAccess":"Authorize workspace access","settings.repositories.selectRepositories":"Select repositories","settings.repositories.authorizationRequired":"Workspace authorization required","settings.repositories.authorizationRequiredHint":"Studio has a GitHub App installation recorded for {login}, but this workspace has no authorization to use it. Sign in to GitHub and choose the repositories to share with this workspace.","settings.repositories.accessRevoked":"Access revoked","settings.repositories.accessRevokedHint":"Access to this account was revoked. Authorize it again to restore repository access.","settings.repositories.noAuthorizedRepositories":"No repositories authorized","settings.repositories.noAuthorizedRepositoriesHint":"This workspace has no repositories authorized through {login}. Select which repositories it can use.","settings.repositories.providerUnavailable":"Provider unavailable","settings.repositories.providerUnavailableHint":"This deployment is not configured to access this account. Ask an administrator to enable the provider.","settings.repositories.installationMissing":"GitHub connection incomplete","settings.repositories.installationMissingHint":"Studio has no GitHub App installation linked to this account. Connect GitHub and select the installation for {login}.","settings.repositories.githubReconnectUnavailable":"GitHub reconnection is unavailable on this deployment. Ask an administrator to configure the GitHub App, then authorize workspace access.","settings.repositories.disconnect":"Disconnect","settings.repositories.disconnectTitle":'Disconnect "{login}"?',"settings.repositories.disconnectDescription":"Repositories linked through this account stay listed, but become anonymous public clones — private ones will stop working.","settings.repositories.disconnected":"Account disconnected","settings.repositories.tokenDialogTitle":"Connect GitLab with a token","settings.repositories.tokenDialogDescription":"Use a personal, project or group access token with the api scope — agents push branches and open merge requests with it. Stored encrypted and never shown again.","settings.repositories.tokenDialogTitleBitbucket":"Connect Bitbucket with a token","settings.repositories.tokenDialogDescriptionBitbucket":"Use a workspace, project or repository access token that can write repositories and pull requests — agents push branches and open pull requests with it. Bitbucket Cloud only. Stored encrypted and never shown again.","settings.repositories.addAccount":"Add account","settings.repositories.addAccountTitle":"Connect a git account","settings.repositories.addAccountDescription":"Choose where your repositories live.","settings.repositories.chooseMethodDescription":"Pick how Studio should connect to this provider.","settings.repositories.back":"Back","settings.repositories.providerGithub":"GitHub","settings.repositories.providerGitlab":"GitLab","settings.repositories.providerBitbucket":"Bitbucket","settings.repositories.providerGithubHint":"Install the Studio app and pick the repositories to share.","settings.repositories.providerTokenOrOauthHint":"Connect with an access token, or authorize with OAuth.","settings.repositories.providerTokenOnlyHint":"Connect with an access token.","settings.repositories.methodToken":"Use an access token","settings.repositories.methodTokenHint":"The provider limits the token to the repositories you scope it to.","settings.repositories.methodOauth":"Authorize with OAuth","settings.repositories.methodOauthHint":"Sign in and authorize Studio in your browser.","settings.repositories.methodOauthScopeNote":"Reaches every repository this account can see; it cannot be narrowed to a subset.","settings.repositories.methodApp":"Install the GitHub app","settings.repositories.methodAppHint":"Choose exactly which repositories Studio may use.","settings.repositories.tokenStepsTitle":"Creating the token","settings.repositories.openProvider":"Open provider","settings.repositories.tokenWorkspaceLabel":"Workspace","settings.repositories.tokenWorkspacePlaceholder":"your-workspace","settings.repositories.tokenWorkspaceHint":"The slug in your Bitbucket URL. An access token cannot name its own workspace, so Studio verifies it against this one.","settings.repositories.tokenProjectLabel":"Project path (optional)","settings.repositories.tokenProjectPlaceholder":"group/project","settings.repositories.tokenProjectHint":"Fill this in to jump straight to that project’s token page.","settings.repositories.bitbucketStep1":"Open the repository you want Studio to reach, or the project that groups them.","settings.repositories.bitbucketStep2":"Settings → Security → Access tokens → Create token.","settings.repositories.bitbucketStep3":"Grant Repositories read and write, and Pull requests read and write.","settings.repositories.bitbucketStep4":"Paste the token below. Bitbucket keeps it to what you scoped it to.","settings.repositories.gitlabStep1":"Open the project or group you want Studio to reach.","settings.repositories.gitlabStep2":"Settings → Access tokens → Add new token.","settings.repositories.gitlabStep3":"Role: Developer or above. Scope: api.","settings.repositories.gitlabStep4":"Paste the token below. A project token only reaches that project.","settings.repositories.tokenHostLabel":"Host","settings.repositories.tokenHostPlaceholder":"gitlab.com","settings.repositories.tokenLabel":"Access token","settings.repositories.tokenPlaceholder":"glpat-…","settings.repositories.tokenPlaceholderBitbucket":"ATCTT…","settings.repositories.connect":"Connect","settings.repositories.connecting":"Connecting…","settings.repositories.connected":'Connected as "{login}"',"settings.repositories.reposTitle":"Repositories","settings.repositories.reposEmptyTitle":"No repositories yet","settings.repositories.reposEmptyDescription":"Choose a repository from a connected GitHub, GitLab or Bitbucket account.","settings.repositories.addRepository":"Add repository","settings.repositories.moreActions":"More actions","settings.repositories.repoAccountNeedsAttention":"Connected through {login}, which needs attention in Connected accounts.","settings.repositories.unlink":"Unlink","settings.repositories.unlinkTitle":'Unlink "{path}"?',"settings.repositories.unlinkDescription":"The repository is removed from this organization. Nothing is deleted on the provider.","settings.repositories.unlinked":"Repository unlinked","settings.repositories.openInProvider":"Open repository","settings.repositories.visibilityPublic":"Public","settings.repositories.visibilityPrivate":"Private","settings.repositories.visibilityInternal":"Internal","settings.repositories.anonymousClone":"Anonymous clone","settings.repositories.sandboxImageLabel":"Sandbox image","settings.repositories.sandboxImageDefault":"Default image","settings.repositories.sandboxImageAndroid":"Android emulator","settings.repositories.sandboxImageError":"Could not change the sandbox image","settings.repositories.monitorDeploys":"Show deploys on Monitor","settings.repositories.monitorDeploysError":"Could not change whether Monitor shows this repository","settings.repositories.addDialogTitle":"Add repository","settings.repositories.cancel":"Cancel","settings.repositories.failed":"Something went wrong","settings.nav.connections":"Connections","settings.nav.automations":"Automations","settings.nav.skills":"Skills","settings.nav.memory":"Memory","settings.nav.monitor":"Monitor","settings.nav.members":"Members","settings.nav.security":"Security","settings.nav.profile":"Profile & Preferences","settings.nav.backToHome":"Back to home","settings.nav.signOut":"Sign Out","settings.profile.avatar":"Avatar","settings.profile.displayName":"Display name","settings.profile.displayNamePlaceholder":"Your name","settings.profile.email":"Email","settings.profile.avatarUpload":"Change your picture","settings.profile.avatarDialogTitle":"Profile picture","settings.profile.avatarDialogDescription":"Drag to reposition and scroll to zoom. Only the picture you are using is visible to other people.","settings.profile.avatarDeleted":"Picture deleted","settings.profile.avatarRemove":"Remove","settings.profile.avatarRemoved":"Picture removed","settings.profile.avatarUpdated":"Picture updated","settings.profile.avatarUploadError":"Failed to update the picture","settings.profile.updateSuccess":"Profile updated successfully","settings.profile.updateError":"Failed to update profile","settings.preferences.title":"Preferences","settings.blog.sectionTitle":"Blog","settings.blogView.title":"Blog view","settings.blogView.description":"Blog as its own project view, with each post beside the site's render of it. When off, the blog is edited in the Site Editor's Content tab.","settings.blog.aiTitle":"AI blog","settings.blog.aiDescription":"Brand context, campaigns and post generation. When off, posts are written by hand.","settings.blogBlocks.title":"Hide the default blog blocks","settings.blogBlocks.description":"Only this site's own post blocks are offered when writing or importing a post. Existing posts are unaffected.","settings.blocksEditor.title":"New blocks editor","settings.blocksEditor.description":"Applies to everyone in this organization. The rest of Studio always uses the new layout.","settings.siteAppsInstall.title":"Install apps from the catalogue","settings.siteAppsInstall.description":"Let the Apps tab install an app into the site: it writes the app's module and its registration to the branch, adds the dependency, and restarts the sandbox's dev server so the app's settings form appears. With it off the catalogue stays browsable and nothing is installable.","settings.multiAppPreview.title":"Preview several apps of a monorepo","settings.multiAppPreview.description":"Add other apps of a project's repository and view them side by side in the preview. Each one runs its own dev server in the sandbox.","settings.cmsAutoCommit.title":"Commit each save to the branch","settings.cmsAutoCommit.description":"In Fast Preview, every save becomes a commit on the branch being edited. Turned off, saves stay in Studio: the editor and the preview show them, but they reach the branch only when someone publishes or submits for review, as a single commit. Until then they are not in the repository, so a pull request, a deploy preview, or anyone working on the branch outside Studio won't see them.","settings.preferences.theme":"Theme","settings.preferences.themeLight":"Light theme","settings.preferences.themeDark":"Dark theme","settings.preferences.themeSystem":"System theme","settings.preferences.language":"Language","settings.preferences.notifications":"Notifications","settings.preferences.notificationsDescription":"Browser notifications for important events.","settings.preferences.notificationsDenied":"Notifications denied. Please enable them in your browser settings.","settings.preferences.sounds":"Sounds","settings.preferences.soundsDescription":"Sounds for agent actions and notifications.","settings.preferences.soundsPreview":"Preview notification sound","settings.preferences.toolApproval":"Tool approval","settings.preferences.toolApprovalDescription":"Which tools need your approval before they run.","settings.preferences.toolApprovalAsk":"Ask before edit","settings.preferences.toolApprovalAskShort":"Ask","settings.preferences.toolApprovalAskDescription":"Auto-approve read-only tools","settings.preferences.toolApprovalAuto":"Auto approve","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Execute all without approval","settings.automations.browseAgentsButton":"Browse projects","settings.automations.emptyDescription":"Automations are created per agent. Open an agent and add one from its Automations tab.","settings.automations.emptyTitle":"No automations yet","settings.automations.noResultsDescription":'No automations match "{search}"',"settings.automations.noResultsTitle":"No automations found","settings.automations.pageTitle":"Automations","settings.automations.searchPlaceholder":"Search automations...","settings.skills.importButton":"Import skill","settings.skills.importing":"Importing…","settings.skills.importSuccess":'Imported "{name}"',"settings.skills.importError":"Failed to import skill","settings.skills.importMissingSkillMd":"That folder has no SKILL.md at its root. Pick the skill's own folder.","settings.skills.importNeedsFolder":"Pick a folder, not individual files — this browser may not support folder upload.","settings.skills.searchPlaceholder":"Search skills...","settings.skills.noDescription":"No description","settings.skills.filterAll":"All","settings.skills.emptyTitle":"No skills yet","settings.skills.emptyDescription":"Import a folder with a SKILL.md to give your agents reusable instructions they can load on demand.","settings.skills.noResultsTitle":"No skills found","settings.skills.noResultsDescription":'No skills match "{search}"',"settings.skills.cancel":"Cancel","settings.skills.deleteButton":"Delete","settings.skills.deleteDialogTitle":"Delete this skill?","settings.skills.deleteDialogDescription":`This removes "{name}" and its files. This can't be undone.`,"settings.skills.deleteSuccess":"Skill deleted","settings.skills.deleteError":"Failed to delete skill","settings.skills.importTooManyFiles":"That folder has {count} files (limit {max}). Import a folder with just the skill's own files.","settings.skills.importSlugTaken":'A skill named "{slug}" already exists. Delete it first to re-import.',"settings.skills.errorTitle":"Couldn't load skills","settings.skills.errorDescription":"The skill catalog could not be loaded. You may not have access to this org's files.","settings.skills.retry":"Try again","settings.memory.tabOrg":"Organization","settings.memory.tabUser":"Just you","settings.memory.orgHeading":"Shared with everyone in {org}","settings.memory.userHeading":"Your personal memory","settings.memory.orgPlaceholder":"Facts everyone's chats should know. For example: we ship on Thursdays, prices are in BRL, the brand voice is informal.","settings.memory.userPlaceholder":"Things Deco should remember about you. For example: reply in Portuguese, I own the checkout, keep summaries short.","settings.memory.saving":"Saving…","settings.memory.saved":"Saved","settings.memory.notSaved":"Not saved","settings.memory.saveError":"Couldn't save. Keep typing to retry.","settings.memory.readOnly":"You can read this memory but not change it.","settings.memory.updated":"Updated {time}","settings.memory.notStarted":"Nothing remembered yet","settings.memory.conflict":"This memory changed while you were editing.","settings.memory.loadLatest":"Load latest","settings.memory.keepMine":"Keep my version","settings.memory.budget":"{percent}% of what chats read","settings.memory.budgetOver":"Chats only read the beginning","settings.memory.budgetHint":"Chats load the first 16,000 characters. Keep this a short index and move details into separate notes.","settings.memory.errorTitle":"Couldn't load memory","settings.memory.errorDescription":"The organization's files couldn't be loaded. You may not have access to them.","settings.memory.retry":"Try again","settings.buckets.accessKeyIdLabel":"Access key ID","settings.buckets.addBucket":"Add bucket","settings.buckets.addBucketButton":"Add bucket","settings.buckets.addS3Bucket":"Add S3 bucket","settings.buckets.addingButton":"Adding…","settings.buckets.apiKeyHelperText":"Sent as the x-api-key header on each refresh call.","settings.buckets.apiKeyLabel":"API key","settings.buckets.bucketAdded":'Bucket "{name}" added',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"my-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removed',"settings.buckets.bucketsConfigured":"{count} bucket(s) configured","settings.buckets.cancelButton":"Cancel","settings.buckets.credentialsEncryptedDescription":"Credentials are encrypted at rest and never returned over the API. For Cloudflare R2, Google Cloud Storage, or MinIO, set a custom endpoint.","settings.buckets.credentialsLabel":"Credentials","settings.buckets.deleteButton":"Delete {name}","settings.buckets.descriptionLabel":"Description (optional)","settings.buckets.descriptionPlaceholder":"What is this bucket used for?","settings.buckets.emptyStateDescription":"Add an S3-compatible bucket (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). Access keys are encrypted at rest and never returned over the API.","settings.buckets.endpointHelperText":"Required for non-AWS providers (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (optional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Failed to add bucket","settings.buckets.failedToLoadConfigs":"Failed to load file configurations: {error}","settings.buckets.failedToLoadConfigsFallback":"Failed to load file configs","settings.buckets.failedToRemoveBucket":"Failed to remove bucket","settings.buckets.forcePathStyleHelperText":"Required for Google Cloud Storage and most MinIO setups.","settings.buckets.forcePathStyleLabel":"Force path-style URLs","settings.buckets.managed":"Managed","settings.buckets.nameHelperText":"Letters, digits, underscore, dot, hyphen. Unique within the organization.","settings.buckets.nameLabel":"Name","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"No buckets yet","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefix: {prefix}","settings.buckets.prefixHelperText":"All object keys are written under this prefix. Useful for multi-tenant buckets or credentials scoped to a sub-path. A trailing slash is added automatically.","settings.buckets.prefixLabel":"Key prefix (optional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"public: {url}","settings.buckets.publicUrlBaseHelperText":"Host used to build public URLs returned by the picker (R2 dev domain, CDN, custom host). Leave blank to use the bucket's S3 host (AWS default).","settings.buckets.publicUrlBaseLabel":"Public URL base (optional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev or https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint POSTed (with the API key below) to vend temporary credentials. Must return accessKeyId, secretAccessKey, sessionToken, and expiration.","settings.buckets.refreshUrlLabel":"Refresh URL","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Region","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"This deletes the encrypted credentials for {name}. The bucket itself is not affected. This cannot be undone.","settings.buckets.removeBucketTitle":"Remove bucket configuration?","settings.buckets.removeButton":"Remove","settings.buckets.removingButton":"Removing…","settings.buckets.secretAccessKeyLabel":"Secret access key","settings.buckets.staticKeyHelperText":"A long-lived access key ID and secret, used as-is.","settings.buckets.staticKeyOption":"Static key pair (long-lived)","settings.buckets.stsSessionHelperText":"Stores only a refresh endpoint + API key; short-lived credentials are fetched on demand and refreshed automatically.","settings.buckets.temporarySessionOption":"Temporary session (STS, auto-refreshed)","settings.connectClients.anyOtherClientDescription":"Any other MCP client: paste this endpoint into it to give that runtime every connection enabled in this org, governed by your Decopilot rules.","settings.connectClients.apiKeyOption":"API key","settings.connectClients.copy":"Copy","settings.connectClients.doneHideKey":"Done, hide key","settings.connectClients.generateKey":"Generate key","settings.connectClients.generateKeyFor":"Generate key for {client}","settings.connectClients.generatingKey":"Generating…","settings.connectClients.headlessKeyHint":"For CI, Conductor, or headless agents that can't open a browser.","settings.connectClients.installMethod":"Installation method","settings.connectClients.keyCreated":"Key created","settings.connectClients.mcpDescription":"For clients without a shell. Sharing Library files and messaging agents need the CLI + skill.","settings.connectClients.oauthDiscoveryDetails":"OAuth discovery details","settings.connectClients.oauthKeyHint":"Recommended for your laptop. A browser opens on first use to sign in, with no token to manage.","settings.connectClients.oauthMetadataHint":"OAuth 2.1 Protected Resource Metadata is advertised on 401:","settings.connectClients.oauthOption":"OAuth","settings.connectClients.otherClient":"Other","settings.connectClients.pageTitle":"Connect","settings.connectClients.recommended":"Recommended","settings.connectClients.skillDescription":"Install the Studio skill and log in once. Your agent can then use this org's chats, agents, tasks and Library files through the decocms CLI.","settings.connectClients.skillInstallStep":"1. Install the skill","settings.connectClients.skillLoginHint":"A browser opens to approve the login. The session renews itself.","settings.connectClients.skillLoginStep":"2. Log in","settings.connectClients.skillNeedsBun":"Needs Bun.","settings.connectClients.skillOtherAgentsHint":"The installer asks which agents to add the skill to.","settings.connectClients.skillTab":"CLI + skill","settings.connectClients.skillTitle":"Connect your agent","settings.connectClients.snippetOneTimeWarning":"Copy this snippet now. The key won't be shown again, and you can revoke it from the list below.","settings.connectForms.apiKeyField":"API Key","settings.connectForms.apiKeyRequired":"API key is required","settings.connectForms.baseUrlField":"Base URL","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.baseUrlRequired":"Base URL is required","settings.connectForms.cancel":"Cancel","settings.connectForms.connectionSavedSuccess":"Connection saved successfully","settings.connectForms.defaultKeyLabel":"Personal key","settings.connectForms.failedSaveConnection":"Failed to save connection: {error}","settings.connectForms.failedSaveKey":"Failed to save key: {error}","settings.connectForms.hideApiKey":"Hide API key","settings.connectForms.keySavedSuccess":"Key saved successfully","settings.connectForms.labelField":"Label","settings.connectForms.labelPlaceholder":"e.g. Personal key","settings.connectForms.labelPlaceholderOpenAiCompatible":"e.g. My OpenAI-compatible server","settings.connectForms.labelPlaceholderPreset":"e.g. {name} prod, {name} dev","settings.connectForms.optional":"optional","settings.connectForms.recommended":"recommended","settings.connectForms.saveConnection":"Save Connection","settings.connectForms.saveKey":"Save Key","settings.connectForms.saving":"Saving...","settings.connectForms.showApiKey":"Show API key","settings.connectProviderDialog.backButton":"Back","settings.connectProviderDialog.backButtonLabel":"Back","settings.connectProviderDialog.connectionTimedOutMessage":"Connection timed out","settings.connectProviderDialog.defaultProviderName":"Provider","settings.connectProviderDialog.defaultTitle":"Add API key","settings.connectProviderDialog.oauthFailedMessage":"OAuth connection failed: {error}","settings.connectProviderDialog.oauthPendingMessage":"Authorize the connection in the popup window. This dialog will close once authorization completes.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} connected successfully","settings.connectProviderDialog.provisionPendingMessage":"Connecting…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} connected successfully","settings.connectProviderDialog.retryButton":"Retry","settings.connectProviderDialog.securityCheckFailedMessage":"Security check failed: State token mismatch","settings.connectProviderDialog.startOAuthFailedMessage":"Failed to start OAuth: {error}","settings.agentTools.chatHarnessCodexTitle":"Use Codex for new sandbox chats","settings.agentTools.chatHarnessCodexDescription":"Runs new sandbox chats with Codex. Link your ChatGPT subscription in AI Providers or connect a Responses API provider. Existing chats keep their runtime.","settings.codexSubscription.setupHeading":"Connect Codex","settings.codexSubscription.setupDescription":"Link your ChatGPT subscription in Settings → AI Providers, or connect a provider with an OpenAI Responses API endpoint.","settings.codexSubscription.connect":"Link","settings.codexSubscription.connected":"ChatGPT subscription linked","settings.codexSubscription.disconnect":"Disconnect","settings.codexSubscription.disconnected":"ChatGPT subscription unlinked","settings.codexSubscription.howTo":"Run this command locally, sign in with ChatGPT, then paste the contents of ~/.codex/auth.json:","settings.codexSubscription.title":"ChatGPT for Codex","settings.codexSubscription.tokenPlaceholder":"Paste the contents of auth.json","settings.claudeSubscription.connect":"Link","settings.claudeSubscription.connected":"Claude subscription linked","settings.claudeSubscription.disconnect":"Disconnect","settings.claudeSubscription.disconnected":"Claude subscription unlinked","settings.claudeSubscription.howTo":"Generate a token on your own machine with","settings.claudeSubscription.title":"Claude Pro or Max","settings.claudeSubscription.tokenPlaceholder":"Paste your token","settings.githubCopilot.connect":"Link","settings.githubCopilot.connected":"GitHub Copilot linked","settings.githubCopilot.disconnect":"Disconnect","settings.githubCopilot.disconnected":"GitHub Copilot unlinked","settings.githubCopilot.howTo":"Create a fine-grained GitHub token with the Copilot Requests permission","settings.githubCopilot.sharedBy":"Every run in this organization uses {name}'s shared GitHub Copilot plan.","settings.githubCopilot.shareTitle":"Share with org","settings.githubCopilot.shareDescription":"Every chat and task in this organization runs on your Copilot plan, ahead of members' own plans and the organization's AI providers.","settings.githubCopilot.title":"GitHub Copilot","settings.githubCopilot.tokenPlaceholder":"Paste your github_pat_… token","settings.ownAccounts.more":"More actions","settings.providerKeyRow.edit":"Edit","settings.ownAccounts.title":"Your own accounts","settings.ownAccounts.cancel":"Cancel","settings.ownAccounts.addApiKey":"Add API key","settings.ownAccounts.linked":"Linked","settings.ownAccounts.expired":"Expired","settings.decoCreditsHero.add":"Add","settings.decoCreditsHero.addCredits":"Add credits","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Available credit balance","settings.decoCreditsHero.cancel":"Cancel","settings.decoCreditsHero.cancelButton":"Cancel","settings.decoCreditsHero.custom":"Custom","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Disconnect","settings.decoCreditsHero.disconnectButton":"Disconnect","settings.decoCreditsHero.disconnectDescription":"This will remove the Deco AI Gateway from this workspace. Your credit balance is preserved and will be available if you reconnect.","settings.decoCreditsHero.disconnectError":"Failed to disconnect: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway disconnected","settings.decoCreditsHero.disconnectTitle":"Disconnect Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Refresh balance","settings.decoCreditsHero.title":"Deco AI Gateway","settings.planUsage.title":"Plan","settings.planUsage.loadFailed":"Couldn't read this organization's plan.","settings.planUsage.retry":"Retry","settings.planUsage.aiUsage":"AI usage","settings.planUsage.usageUnavailable":"Unavailable","settings.planUsage.used":"used","settings.plans.perMonth":"/ month","settings.planUsage.periodHint":"Resets at the start of each billing period.","settings.planUsage.noAiIncluded":"No AI usage included.","settings.planUsage.included":"Included in plan","settings.planUsage.credits":"Added credits","settings.planUsage.creditsInUse":"In use","settings.planUsage.manageBilling":"Manage billing","settings.planUsage.portalFailed":"Couldn't open billing: {message}","settings.planUsage.subscribe":"Subscribe","settings.planUsage.changePlan":"Change plan","settings.planUsage.changed":"Plan updated","settings.planUsage.changeFailed":"Couldn't change plan: {message}","settings.planUsage.feature.cms":"CMS","settings.planUsage.feature.chat":"Superagent chat","settings.planUsage.feature.monitoring":"Site analytics","settings.planUsage.feature.kanban":"Agentic Kanban","settings.planUsage.feature.model_choice":"Choose your model","settings.planUsage.feature.credits":"Extra credits","settings.planUsage.feature.diagnostic":"Deco Score","settings.planUsage.feature.diagnostic_enriched":"Enriched Deco Score","settings.plans.title":"Plans","settings.plans.loadFailed":"Couldn't load the plans.","settings.plans.currentPlan":"Current plan","settings.plans.firstMonthFree":"1st month free","settings.plans.startTrial":"Start free trial","settings.plans.custom.name":"Custom","settings.plans.custom.description":"For large teams with their own contract","settings.plans.custom.cta":"Talk to us","settings.plans.managed":"Your plan: {plan}. Contact us to change it.","settings.plans.invoice.cta":"Add to my invoice","settings.plans.invoice.confirm":"{plan} will be added to your next invoice. Switch now?","settings.plans.invoice.cancel":"Cancel","settings.plans.invoice.switch":"Switch plan","settings.paywall.bullets.kanban.1":"Agents that do the work and move the cards","settings.paywall.bullets.kanban.2":"A board the whole team shares","settings.paywall.bullets.kanban.3":"Columns, tags and priorities","settings.paywall.bullets.allowance.1":"A monthly allowance that resets","settings.paywall.bullets.allowance.2":"Top up with extra credits any time","settings.paywall.bullets.allowance.3":"Your message stays in the composer","settings.paywall.bullets.cms.1":"Edit content and layout","settings.paywall.bullets.cms.2":"Live preview as you go","settings.paywall.bullets.cms.3":"Publish when it looks right","settings.paywall.bullets.monitoring.1":"Pageviews, visitors and sources","settings.paywall.bullets.monitoring.2":"Cache hit rate, latency and errors","settings.paywall.bullets.monitoring.3":"Traffic by country and device","settings.paywall.upgradeTitle":"{feature} comes with {plan}","settings.paywall.upgradeDescription":"Unlocks it for everyone in the organization.","settings.paywall.description":"This organization's plan doesn't include {feature}. Change the plan to unlock it for everyone in the org.","settings.paywall.seePlans":"See plans","settings.paywall.dismiss":"Not now","settings.paywall.serverRefusedFeature":"Your plan does not include this. Ask an owner to upgrade, or see plans.","settings.paywall.serverRefusedBudget":"This organization has used its monthly AI allowance. Chat and tasks pause until you upgrade or top up.","settings.decoCreditsHero.topUpFailed":"Top-up failed: {message}","settings.deleteOrganizationSection.cancel":"Cancel","settings.deleteOrganizationSection.dangerZone":"Danger zone","settings.deleteOrganizationSection.deleteButton":"Delete","settings.deleteOrganizationSection.deleteOrganizationAction":"Delete organization","settings.deleteOrganizationSection.deleteOrganizationDescription":"Permanently delete this organization and all of its data.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Delete organization?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Delete organization","settings.deleteOrganizationSection.deleteWarning":"This will permanently delete all data associated with {organizationName}. This action cannot be undone.","settings.deleteOrganizationSection.deleting":"Deleting…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Failed to delete organization","settings.deleteOrganizationSection.organizationDeleted":"Organization deleted","settings.deleteOrganizationSection.typeToConfirm":"Type {organizationName} to confirm:","settings.domainSettings.addDnsRecordInstruction":"Add the DNS record below, then verify.","settings.domainSettings.addDomain":"Add domain","settings.domainSettings.adding":"Adding…","settings.domainSettings.copied":"Copied","settings.domainSettings.dnsInstructions":"Add this TXT record at your DNS provider, then click Verify:","settings.domainSettings.domainAdded":"Domain added","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domain removed","settings.domainSettings.domainVerified":"Domain verified","settings.domainSettings.emailDomains":"Email domains","settings.domainSettings.emailDomainsDescription":"Let people with a matching email domain discover and join this organization.","settings.domainSettings.failedAddDomain":"Failed to add domain","settings.domainSettings.failedRemove":"Failed to remove","settings.domainSettings.failedUpdate":"Failed to update","settings.domainSettings.failedVerify":"Failed to verify","settings.domainSettings.joinMode":"Join mode","settings.domainSettings.joinModeAuto":"Auto-join","settings.domainSettings.joinModeHelpAuto":"Anyone with a verified @{domain} email joins automatically.","settings.domainSettings.joinModeHelpOff":"Not discoverable — no one can find or join through this domain.","settings.domainSettings.joinModeHelpRequest":"People with a verified @{domain} email can request to join; an admin approves.","settings.domainSettings.joinModeOff":"Off","settings.domainSettings.joinModeRequest":"Require approval","settings.domainSettings.joinModeUpdated":"Join mode updated","settings.domainSettings.pending":"Pending","settings.domainSettings.remove":"Remove","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"TXT record not found yet — DNS can take a few minutes.","settings.domainSettings.value":"value","settings.domainSettings.verified":"Verified","settings.domainSettings.verify":"Verify","settings.editProviderDialog.apiKey":"API key","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Enter the API key again to confirm changing the base URL","settings.editProviderDialog.baseUrl":"Base URL","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancel","settings.editProviderDialog.editTitle":"Edit {name}","settings.editProviderDialog.failedToUpdate":"Failed to update: {error}","settings.editProviderDialog.hideApiKey":"Hide API key","settings.editProviderDialog.label":"Label","settings.editProviderDialog.labelPlaceholder":"e.g. Personal key","settings.editProviderDialog.labelRequired":"Label is required","settings.editProviderDialog.leaveBlankHint":"leave blank to keep current","settings.editProviderDialog.providerUpdated":"Provider updated","settings.editProviderDialog.save":"Save","settings.editProviderDialog.saving":"Saving...","settings.editProviderDialog.showApiKey":"Show API key","settings.joinRequestsSection.approve":"Approve","settings.joinRequestsSection.approveFailed":"Failed to approve","settings.joinRequestsSection.approved":"Request approved","settings.joinRequestsSection.deny":"Deny","settings.joinRequestsSection.denied":"Request denied","settings.joinRequestsSection.denyFailed":"Failed to deny","settings.joinRequestsSection.description":"People who requested to join via a domain in approval mode.","settings.joinRequestsSection.title":"Join requests","settings.review.title":"Reviewers & merge","settings.review.description":"The Reviewer runs on a task's pull request when its card reaches In Review.","settings.review.reviewerTitle":"Reviewer","settings.review.reviewerDescription":"Reviews the code with the repo's own review skills, fixes what it finds and tests the change on the deploy preview. An approval moves the card to QA; anything it can't settle comes back to you.","settings.review.cheapReviewerModelTitle":"Run reviewers on a cheaper model","settings.review.cheapReviewerModelDescription":"Uses a smaller model than the Super Agent. Cheaper, possibly less thorough.","settings.review.autoMergeTitle":"Auto-merge","settings.review.autoMergeDescription":"Merge the pull request when its card reaches Ready for Deployment, without waiting for Ship.","settings.review.autoResolveConflictsTitle":"Auto-resolve merge conflicts","settings.review.autoResolveConflictsDescription":"When a pull request in Ready for Deployment conflicts with its base, the Super Agent merges the base and pushes. Follows Auto-merge unless set here.","settings.review.autoAssignReportTasksTitle":"Assign Deco Score tasks to the Super Agent","settings.review.autoAssignReportTasksDescription":"Tasks created from the Deco Score go to the Super Agent instead of staying unassigned.","settings.review.updateError":"Couldn't update the setting","settings.taskPrompt.title":"System prompt","settings.taskPrompt.fieldLabel":"Instructions","settings.taskPrompt.placeholder":"e.g. Use pnpm, never npm. Never edit files under src/generated/.","settings.taskPrompt.save":"Save","settings.taskPrompt.saved":"System prompt saved","settings.taskPrompt.failed":"Couldn't save the system prompt","settings.taskPrompt.skillsLabel":"Skills on every column","settings.agentTools.title":"Agent tools","settings.agentTools.description":"What coding-agent runs can reach beyond their repository.","settings.agentTools.orgMcpsTitle":"Give runs this org's MCP connections","settings.agentTools.orgMcpsDescription":"The Super Agent and reviewers get every connected MCP. Tools load only when needed, so more connections don't crowd the context.","settings.agentTools.orgMcpsPickTitle":"Connections runs can reach","settings.agentTools.orgMcpsPickDescription":"Turn one off to keep it out of runs, for example an MCP for the tracker a run already reports to. New connections start on.","settings.agentTools.orgMcpsPickAriaLabel":"Let runs reach {name}","settings.agentTools.orgMcpsPickEmpty":"This organization has no MCP connections yet","settings.agentTools.orgMcpsPickFailed":"Could not save which connections runs can reach","settings.agentTools.orgMcpsPickLoadFailed":"Could not load MCP connections","settings.agentTools.orgMcpsPickSearch":"Search connections…","settings.agentTools.orgMcpsPickEnableAll":"Enable all","settings.agentTools.orgMcpsPickDisableAll":"Disable all","settings.agentTools.orgMcpsPickNoMatch":"No connection matches that search","settings.agentTools.orgMcpsPickSave":"Save","settings.agentTools.orgMcpsPickSaving":"Saving…","settings.agentTools.orgMcpsPickDiscard":"Discard","settings.agentTools.orgMcpsPickSaved":"Saved which connections runs can reach","settings.agentTools.chatRuntimeSection":"Chats","settings.agentTools.chatHarnessSandboxOnlyTitle":"Run chats with Claude Code in a sandbox","settings.agentTools.chatHarnessSandboxOnlyDescription":"Each chat gets its own sandbox instead of running on Decopilot. The first message waits for the sandbox to start. Needs an Anthropic, OpenRouter or deco AI gateway key, or a Claude subscription.","settings.agentTools.codingAgentsClaudeCodeTitle":"Run Code Agent chats with Claude Code","settings.agentTools.codingAgentsClaudeCodeDescription":"Chats on an agent imported from GitHub run in that agent's sandbox, next to the code. Replies arrive a whole turn at a time. Applies to new chats only.","settings.orgRoleDetail.addMember":"Add Member","settings.orgRoleDetail.addMembersToGrantPermissions":"Add members to grant them the configured permissions.","settings.orgRoleDetail.addMembersToRole":"Add Members to Role","settings.orgRoleDetail.addWithCount":"Add ({count})","settings.orgRoleDetail.added":"Added","settings.orgRoleDetail.allConnections":"All connections","settings.orgRoleDetail.allConnectionsDescription":"Every tool on every connection, including ones added later. Uncheck a connection to leave it out.","settings.orgRoleDetail.allModels":"All models","settings.orgRoleDetail.allOrgPermissions":"All organization permissions","settings.orgRoleDetail.allProjects":"All projects","settings.orgRoleDetail.allProjectsDescription":"This role can access every project, including ones created later. Uncheck a project to hide it from this role, or turn off to pick specific projects.","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Built-in role permissions cannot be changed","settings.orgRoleDetail.cancel":"Cancel","settings.orgRoleDetail.createRole":"Create role","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} enabled","settings.orgRoleDetail.failedToSaveRole":"Failed to save role","settings.orgRoleDetail.general":"General","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Grant full access to all features below","settings.orgRoleDetail.loadingModels":"Loading models...","settings.orgRoleDetail.mcpPermissions":"MCP Permissions","settings.orgRoleDetail.members":"Members","settings.orgRoleDetail.membersUpdatedSuccessfully":"Members updated successfully!","settings.orgRoleDetail.models":"Models","settings.orgRoleDetail.noLlmConnectionsConfigured":"No LLM connections configured","settings.orgRoleDetail.noMembers":"No members","settings.orgRoleDetail.noMembersAvailable":"No members available","settings.orgRoleDetail.noMembersFound":"No members found","settings.orgRoleDetail.noMembersMatch":'No members match "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'No permissions match "{searchQuery}"',"settings.orgRoleDetail.noProjectsAvailable":"No projects available","settings.orgRoleDetail.noProjectsMatch":'No projects match "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Organization Permissions","settings.orgRoleDetail.owner":"Owner","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"Owner membership cannot be changed","settings.orgRoleDetail.projects":"Projects","settings.orgRoleDetail.removeMember":"Remove {name} from role","settings.orgRoleDetail.roleCreatedSuccessfully":"Role created successfully!","settings.orgRoleDetail.roleName":"Role name","settings.orgRoleDetail.roleNameIsRequired":"Role name is required","settings.orgRoleDetail.roleUpdatedSuccessfully":"Role updated successfully!","settings.orgRoleDetail.saveChanges":"Save Changes","settings.orgRoleDetail.saving":"Saving...","settings.orgRoleDetail.searchMcpServers":"Search MCP servers...","settings.orgRoleDetail.searchMembers":"Search members...","settings.orgRoleDetail.searchModels":"Search models...","settings.orgRoleDetail.searchPermissions":"Search permissions...","settings.orgRoleDetail.searchProjects":"Search projects...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Select members to add to this role.","settings.orgRoleDetail.showMore":"Show more ({remaining} remaining)","settings.orgRoleDetail.somethingWentWrong":"Something went wrong","settings.orgRoleDetail.unknown":"Unknown","settings.orgRoleDetail.userIsDefaultRoleMessage":"User is the default role — members can't be removed from it; assign another role to change their access","settings.orgSso.cancelButton":"Cancel","settings.orgSso.clientIdLabel":"Client ID","settings.orgSso.clientIdPlaceholder":"your-client-id","settings.orgSso.clientSecretEditDescription":"Leave empty to keep current","settings.orgSso.clientSecretLabel":"Client secret","settings.orgSso.clientSecretPlaceholder":"your-client-secret","settings.orgSso.clientSecretRequiredError":"Client secret is required for the first setup","settings.orgSso.configurationRemovedSuccess":"SSO configuration removed","settings.orgSso.configurationSavedSuccess":"SSO configuration saved","settings.orgSso.configureSsoButton":"Configure SSO","settings.orgSso.discoveryEndpointDescription":"Optional. Detected from the issuer when empty.","settings.orgSso.discoveryEndpointLabel":"Discovery endpoint","settings.orgSso.discoveryEndpointPlaceholder":"Auto-detected from issuer","settings.orgSso.domainLabel":"Domain","settings.orgSso.editConfigButton":"Edit configuration","settings.orgSso.emailDomainDescription":"The email domain this provider covers.","settings.orgSso.emailDomainLabel":"Email domain","settings.orgSso.emailDomainPlaceholder":"company.com","settings.orgSso.enforceSsoDescription":"Require all members to authenticate via SSO","settings.orgSso.enforceSsoLabel":"Enforce SSO","settings.orgSso.enforcementDisabledSuccess":"SSO enforcement disabled","settings.orgSso.enforcementEnabledSuccess":"SSO enforcement enabled","settings.orgSso.issuerUrlDescription":"Your identity provider's OIDC issuer URL.","settings.orgSso.issuerUrlLabel":"Issuer URL","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Loading...","settings.orgSso.providerLabel":"Provider","settings.orgSso.removeButton":"Remove","settings.orgSso.removeConfirmation":"Are you sure you want to remove SSO configuration?","settings.orgSso.removeSsoConfigError":"Failed to remove SSO config","settings.orgSso.requiredFieldsError":"Issuer, Client ID, and Domain are required","settings.orgSso.saveSsoConfigError":"Failed to save SSO config","settings.orgSso.savingButton":"Saving...","settings.orgSso.scopesLabel":"Scopes","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single sign-on","settings.orgSso.securityTitle":"Security","settings.orgSso.testSsoButton":"Test SSO","settings.orgSso.toggleEnforcementError":"Failed to toggle SSO enforcement","settings.orgSso.updateButton":"Update","settings.organizationForm.failedToReadImage":"Failed to read image","settings.organizationForm.failedToUpdateOrg":"Failed to update organization","settings.organizationForm.imageTooLarge":"Image must be smaller than 2MB","settings.organizationForm.logoDescription":"256×256px recommended.","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Organization name","settings.organizationForm.nameRequired":"Name is required","settings.organizationForm.nameTitle":"Name","settings.organizationForm.nameTooLong":"Name is too long","settings.organizationForm.updateSuccess":"Organization updated successfully","settings.organizationForm.uploadLogoLabel":"Upload organization logo","settings.organizationForm.urlDescription":"Used in links and API integrations, so it can't be changed.","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.addedTimeAgo":"{label} · added {time} ago","settings.providerKeyRow.cancel":"Cancel","settings.providerKeyRow.claudeCode":"Claude Code","settings.providerKeyRow.codex":"Codex","settings.providerKeyRow.delete":"Delete","settings.providerKeyRow.deleteApiKey":"Delete API key","settings.providerKeyRow.failedToDeleteKey":"Failed to delete key: {error}","settings.providerKeyRow.keyDeleted":"Key deleted","settings.roles.allConnections":"All connections","settings.roles.basicAccess":"Basic access","settings.roles.builtIn":"Built-in","settings.roles.cancel":"Cancel","settings.roles.columnMembers":"Members","settings.roles.columnPermissions":"Permissions","settings.roles.columnRole":"Role","settings.roles.columnType":"Type","settings.roles.connectionCount":"{count} connection(s)","settings.roles.createRole":"New role","settings.roles.createRoleGetStarted":"Create a role to get started.","settings.roles.custom":"Custom","settings.roles.delete":"Delete","settings.roles.deleteRoleConfirm":'Are you sure you want to delete the "{role}" role? This action cannot be undone.',"settings.roles.deleteRoleTitle":"Delete Role","settings.roles.deletedSuccessfully":"Role deleted successfully!","settings.roles.failedToLoad":"Failed to load roles","settings.roles.fullAccess":"Full access","settings.roles.fullOrgAccess":"Full org access","settings.roles.noPermissions":"No permissions","settings.roles.noRoles":"No roles","settings.roles.noRolesFound":"No roles found","settings.roles.noRolesMatchSearch":'No roles match "{search}"',"settings.roles.orgPermsCount":"{count} org perm(s)","settings.roles.pageTitle":"Roles","settings.roles.roleAdmin":"Admin","settings.roles.roleOwner":"Owner","settings.roles.roleUser":"User","settings.roles.searchPlaceholder":"Search roles...","settings.apiKeys.accessLabel":"Access","settings.apiKeys.accessReadOnly":"Read only","settings.apiKeys.accessReadOnlyDescription":"The {count} Studio tools that never change data. Tools added later stay out.","settings.apiKeys.accessCustom":"Choose tools","settings.apiKeys.accessCustomDescription":"Only the Studio and connection tools you pick. Tools added later stay out.","settings.apiKeys.accessFull":"Full access","settings.apiKeys.accessFullDescription":"Every tool, including ones that delete data and ones added later.","settings.apiKeys.expired":"Expired","settings.apiKeys.expiredOn":"Expired {date}","settings.apiKeys.expiresOn":"Expires {date}","settings.apiKeys.expiryDays":"{days} days","settings.apiKeys.expiryLabel":"Expires after","settings.apiKeys.expiryNever":"Never","settings.apiKeys.expiryYear":"1 year","settings.apiKeys.neverExpires":"Never expires","settings.apiKeys.readOnlyBadge":"Read only","settings.apiKeys.toolCount":"{count} tools","settings.apiKeys.studioTools":"Studio","settings.apiKeys.toolsGroupCount":"{count}/{total}","settings.apiKeys.toolsNone":"No tools","settings.apiKeys.toolsSelectGroup":"Select every tool in {name}","settings.apiKeys.toolsSelected":"{count} selected","settings.apiKeys.toolsLoadFailed":"Couldn't load the tool list. Close and try again.","settings.apiKeys.toolsSearch":"Search tools…","settings.apiKeys.cancelButton":"Cancel","settings.apiKeys.copied":"Copied to clipboard","settings.apiKeys.copyKey":"Copy key","settings.apiKeys.createButton":"Create key","settings.apiKeys.createdAt":"Created {date}","settings.apiKeys.createdDescription":"Copy this key now — it won't be shown again.","settings.apiKeys.createdTitle":"API key created","settings.apiKeys.creatingButton":"Creating…","settings.apiKeys.deleteDescription":"Any application using this key will immediately lose access. This cannot be undone.","settings.apiKeys.deleteKey":"Delete key","settings.apiKeys.deleteTitle":'Delete "{name}"?',"settings.apiKeys.done":"Done","settings.apiKeys.emptyDescription":"Create a key to authenticate external applications with this organization.","settings.apiKeys.emptyTitle":"No API keys yet","settings.apiKeys.failedToCreateKey":"Failed to create API key","settings.apiKeys.failedToDeleteKey":"Failed to delete API key","settings.apiKeys.failedToLoadError":"Failed to load API keys: {error}","settings.apiKeys.keyDeleted":'API key "{name}" deleted',"settings.apiKeys.loading":"Loading API keys…","settings.apiKeys.nameLabel":"Name","settings.apiKeys.namePlaceholder":"My integration","settings.apiKeys.newKey":"New key","settings.apiKeys.newKeyDescription":"Give the key only the tools it needs. Whoever holds the key can use them, even if it leaks.","settings.apiKeys.newKeyTitle":"New API key","settings.apiKeys.sectionDescription":"For scripts and clients that can't sign in through a browser.","settings.apiKeys.sectionTitle":"API keys","settings.secrets.cancelButton":"Cancel","settings.secrets.createButton":"Create secret","settings.secrets.creatingButton":"Creating…","settings.secrets.descriptionLabel":"Description (optional)","settings.secrets.descriptionPlaceholder":"What is this secret used for?","settings.secrets.emptyDescription":"Store API keys, tokens, and other sensitive values. Values are encrypted at rest and never returned over the API.","settings.secrets.emptyTitle":"No secrets yet","settings.secrets.failedToCreateSecret":"Failed to create secret","settings.secrets.failedToLoadError":"Failed to load secrets: {error}","settings.secrets.nameHelp":"Letters, digits, underscore, dot, hyphen. Case-insensitive within its scope.","settings.secrets.nameLabel":"Name","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"New secret","settings.secrets.newSecretDescription":"Stored encrypted in the credential vault. Choose who can read it.","settings.secrets.newSecretTitle":"New secret","settings.secrets.scopeLabel":"Scope","settings.secrets.scopeOrganization":"Organization","settings.secrets.scopeOrganizationDescription":"Organization — visible to all members","settings.secrets.scopePrivate":"Private","settings.secrets.scopePrivateDescription":"Private — only visible to me","settings.secrets.secretCreated":'Secret "{name}" created',"settings.secrets.secretsCountSingular":"{count} secret stored","settings.secrets.secretsCountPlural":"{count} secrets stored","settings.secrets.sectionOrganization":"Organization","settings.secrets.sectionPrivate":"Private to me","settings.secrets.valueLabel":"Value","settings.simpleModeSection.defaultModels":"Default models","settings.simpleModeSection.failedToSave":"Failed to save: {error}","settings.simpleModeSection.notAvailableWithCurrentProvider":"Not available with current provider","settings.simpleModeSection.pickModel":"Pick model","settings.simpleModeSection.saved":"Saved","settings.simpleModeSection.saving":"Saving…","settings.simpleModeSection.tierDeepResearch":"Deep research","settings.simpleModeSection.tierFast":"Fast","settings.simpleModeSection.tierImage":"Image","settings.simpleModeSection.tierSmart":"Smart","settings.simpleModeSection.tierThinking":"Thinking","settings.simpleModeSection.tierWebSearch":"Web search","settings.aiProviders.groupChat":"Chat and tasks","settings.aiProviders.groupMedia":"Images and web search only","settings.aiProviders.customOpenAiCompatible":"Custom OpenAI-compatible","settings.aiProviders.customOpenAiDescription":"Bring your own model server (advanced)","settings.infraBilling.noSites":"This organization doesn't own any deco.cx site yet.","settings.infraBilling.siteLabel":"Sites","settings.infraBilling.pickASite":"Select at least one site.","settings.infraBilling.tooManySites":"Showing the first {count} sites. Select specific sites to see the rest.","settings.infraBilling.multipleTeams":"These sites are billed by {count} legacy teams. Each team's plan and invoices are listed under Invoices.","settings.infraBilling.noTeam":"These sites aren't linked to a legacy billing team.","settings.infraBilling.partialTeam":"This site's legacy team also bills sites outside this organization, so its plan and invoices aren't shown here.","settings.infraBilling.billingUnavailable":"Plan and invoices are temporarily unavailable.","settings.infraBilling.monthLabel":"Month","settings.infraBilling.warehouseUnavailable":"Usage data couldn't be read, so the figures below are incomplete.","settings.infraBilling.summaryTitle":"Summary","settings.infraBilling.metricsTitle":"Metrics","settings.infraBilling.invoicesTitle":"Invoices","settings.infraBilling.detailsTitle":"Billing details","settings.infraBilling.currentPlan":"Current plan","settings.infraBilling.nextBilling":"Next billing","settings.infraBilling.manageButton":"Manage","settings.infraBilling.portalError":"Couldn't open billing portal: {message}","settings.infraBilling.requestsPerPageview":"Requests per pageview","settings.infraBilling.plan.free":"Free","settings.infraBilling.plan.pro":"Pro","settings.infraBilling.plan.enterprise":"Enterprise","settings.infraBilling.pageviews":"Pageviews","settings.infraBilling.pageviewsDescription":"Pages served to visitors this month.","settings.infraBilling.requests":"Requests","settings.infraBilling.requestsDescription":"CDN and shared infrastructure requests.","settings.infraBilling.dataTransfer":"Data transfer","settings.infraBilling.dataTransferDescription":"Bandwidth served from the edge and the origin.","settings.infraBilling.noInvoices":"No invoices issued for this team.","settings.infraBilling.invoiceReference":"Reference","settings.infraBilling.invoiceDue":"Due date","settings.infraBilling.invoiceAmount":"Amount","settings.infraBilling.invoiceStatus":"Status","settings.infraBilling.invoiceDocuments":"Documents","settings.infraBilling.invoiceNf":"Invoice","settings.infraBilling.invoiceBankSlip":"Bank slip","settings.infraBilling.invoiceBankTransfer":"Bank transfer","settings.infraBilling.statusPaid":"Paid","settings.infraBilling.statusOverdue":"Overdue","settings.infraBilling.statusPending":"Pending","settings.gitCredentials.title":"Git credentials","settings.gitCredentials.description":"Tokens that let sandboxes pull private repos and dependencies, like submodules or private npm, go, pub or cargo packages. Pick a secret per host.","settings.gitCredentials.addCredential":"Add credential","settings.gitCredentials.cancel":"Cancel","settings.gitCredentials.createNewSecret":"Create new secret","settings.gitCredentials.createNewSecretAriaLabel":"Create new secret","settings.gitCredentials.createNewSecretDescription":"Stored encrypted. The credential references the secret by id, and its value never leaves the server.","settings.gitCredentials.createNewSecretTitle":"Create new secret","settings.gitCredentials.descriptionLabel":"Description (optional)","settings.gitCredentials.descriptionPlaceholder":"What is this token used for?","settings.gitCredentials.failedToLoadSecrets":"Failed to load secrets","settings.gitCredentials.failedToSave":"Failed to save git credentials","settings.gitCredentials.failedToSaveSecret":"Failed to save","settings.gitCredentials.hostAriaLabel":"Git credential {index} host","settings.gitCredentials.hostInvalidMessage":"Bare hostname, e.g. github.com (no scheme or path).","settings.gitCredentials.hostPlaceholder":"github.com","settings.gitCredentials.maxReached":"You've reached the limit of {max} git credentials. Remove one to add another.","settings.gitCredentials.nameLabel":"Name","settings.gitCredentials.namePlaceholder":"GITHUB_DEPS_PAT","settings.gitCredentials.nameHelperText":"Letters, digits, underscore, dot, hyphen.","settings.gitCredentials.noSecretsYet":'No secrets yet. Use the "+" to create one.',"settings.gitCredentials.pickSecretPlaceholder":"Pick a secret…","settings.gitCredentials.remove":"Remove","settings.gitCredentials.removeAriaLabel":"Remove git credential","settings.gitCredentials.saveSecret":"Save secret","settings.gitCredentials.saving":"Saving…","settings.gitCredentials.secretAriaLabel":"Git credential {index} secret","settings.gitCredentials.scopeLabel":"Scope","settings.gitCredentials.scopeOrganization":"Organization, visible to all members","settings.gitCredentials.scopePrivate":"Private, only visible to me","settings.gitCredentials.secretSaved":'Saved secret "{name}"',"settings.gitCredentials.tokenExposureWarning":"The token is installed in the sandbox's git config for the session, so commands and agents running there can use it. Scope it to the repositories it needs.","settings.gitCredentials.tokenLabel":"Personal access token","settings.gitCredentials.tokenPlaceholder":"Paste your token"},dte={"announcements.ptBr.title":"Studio is now in Portuguese","announcements.ptBr.description":"We noticed your browser is set to Portuguese, so we switched Studio to Portuguese (Brazil) for you. You can switch back to English anytime in settings.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Switch back to English","announcements.legacyAdmin.title":"Welcome to Deco Studio","announcements.legacyAdmin.description":"We've retired the legacy admin. Everything for your store now lives in Studio.","announcements.legacyAdmin.benefitPreview":"Edit pages next to a live preview of your site.","announcements.legacyAdmin.benefitCompare":"See the before and after before you publish.","announcements.legacyAdmin.benefitAgent":"Ask the agent in chat to make changes for you.","announcements.legacyAdmin.continue":"Continue","announcements.legacyAdmin.questions":"Questions?","announcements.release.ariaLabel":"Release announcement","announcements.release.dismiss":"Dismiss release announcement","announcements.release.learnMore":"Learn more","announcements.version.ariaLabel":"Studio update","announcements.version.dismiss":"Dismiss Studio update","announcements.version.eyebrow":"Studio update","announcements.version.title":"A new version is ready","announcements.version.description":"Refresh to load the latest Studio updates.","announcements.version.currentSession":"Current session · {version}","announcements.version.refresh":"Refresh now"},ute={"assets.browser.title":"Assets","assets.browser.bucketLabel":"Bucket: {name}","assets.browser.noBucketTitle":"No assets bucket for this site","assets.browser.noBucketDescription":"Configure and associate an S3-compatible bucket with this site to browse and upload assets here.","assets.browser.deleteAction":"Delete","assets.browser.deleteConfirmTitle":"Delete file?","assets.browser.deleteConfirmDescription":'Permanently delete "{name}" from the bucket? This cannot be undone.',"assets.browser.deleteCancel":"Cancel","assets.browser.deleteConfirm":"Delete","assets.browser.deleted":"File deleted","assets.browser.deleteFailed":"Failed to delete file"},pte={...fee,...vee,...bee,...yee,...See,...wee,...xee,...Tee,...kee,...Eee,...Cee,...Pee,..._ee,...Aee,...Ree,...Dee,...Oee,...Nee,...Mee,...Kee,...Yee,...Zee,...Iee,...Lee,...Bee,...Fee,...jee,...zee,...qee,...Uee,...$ee,...Vee,...Hee,...Gee,...Wee,...Qee,...Jee,...Xee,...ete,...tte,...ote,...ate,...nte,...rte,...ste,...ite,...lte,...cte,...dte,...ute,...gee,...hee};function MB(t,e){return e?t.replace(/\{(\w+)\}/g,(o,a)=>Object.hasOwn(e,a)?String(e[a]):o):t}const mte={"page.overview":"Visão geral","page.app":"App","page.view":"Visualização","page.file":"Arquivo","page.document":"Documento","page.item":"Item","page.breadcrumbs":"Navegação estrutural","page.breadcrumbMenu":"Mostrar caminho de navegação","page.views":"Visualizações da página","page.openThread":"Abrir chat","page.closeThread":"Fechar chat","page.collapseSidebar":"Recolher barra lateral","page.expandSidebar":"Expandir barra lateral"},hte={"projects.overview.metrics":"Métricas","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"Novo projeto","projects.card.updated":"Atualizado {time}","projects.empty.title":"Seu comércio, um projeto por vez","projects.empty.description":"Um site, um app, uma loja. Cada um com suas conexões, seu relatório e seu quadro.","projects.empty.readOnly":"Peça a um admin para criar o primeiro projeto.","projects.new.title":"Novo projeto","projects.new.subtitle":"O que você vai configurar?","projects.new.back":"Voltar","projects.new.create":"Criar projeto","projects.new.creating":"Criando…","projects.new.nameLabel":"Nome do projeto","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Dê um nome ao projeto","projects.new.failed":"Não foi possível criar o projeto","projects.new.created":"{title} está pronto","projects.new.path.repository":"Importar um código","projects.new.path.repository.hint":"Traga o código de um site ou app","projects.new.path.folder":"Nova pasta de projeto","projects.new.path.folder.hint":"Dê o nome agora, conecte depois","projects.new.step.folder.title":"Dê nome ao seu projeto","projects.reports.chooserTitle":"Continuar para Relatórios","projects.reports.chooserSubtitle":"Escolha um projeto para continuar","projects.reports.chooserSearch":"Buscar projeto…","projects.reports.chooserEmpty":"Nenhum projeto com esse nome.","projects.reports.status.ready":"Pronto","projects.reports.status.running":"Rodando","projects.reports.status.none":"Não rodou","projects.reports.status.locked":"Bloqueado","projects.connections.orgWide":"Toda a organização","projects.connections.usedBy":"{count} projetos","projects.settings.title":"Projetos","projects.settings.searchPlaceholder":"Buscar projetos…","projects.settings.open":"Abrir","projects.settings.openSettings":"Configurações","projects.settings.noResults":"Nenhum projeto corresponde a “{search}”","projects.identity.storeUrlLabel":"URL da loja","projects.identity.storeUrlDescription":"A loja no ar. Os relatórios rodam contra este endereço.","projects.apps.reports":"Relatório","projects.apps.blog":"Blog","projects.apps.siteEditor":"Editor de site","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"Testes ponta a ponta","projects.apps.automations":"Automações","projects.apps.calendar":"Calendário","projects.apps.experiments":"Experimentos"},gte={"virtualMcp.settings.assetStorage.label":"Armazenamento de arquivos do CMS","virtualMcp.settings.assetStorage.description":"Escolha onde este projeto consulta e envia imagens e arquivos. As URLs do conteúdo existente não mudam.","virtualMcp.settings.assetStorage.automatic":"Automático (corresponder ao site)","virtualMcp.settings.assetStorage.missing":"O armazenamento selecionado está indisponível. Escolha outro nas configurações do projeto.","virtualMcp.settings.assetStorage.loading":"Carregando configurações de armazenamento…","virtualMcp.settings.assetStorage.loadError":"Não foi possível carregar as configurações de armazenamento.","virtualMcp.addConnectionDialog.addConnectionTitle":"Adicionar Conexão","virtualMcp.addConnectionDialog.authenticationFailedError":"Autenticação falhou: {error}","virtualMcp.addConnectionDialog.connected":"Conectado","virtualMcp.addConnectionDialog.connectedAuthenticated":"Conectado e autenticado","virtualMcp.addConnectionDialog.connectionsTitle":"Conexões","virtualMcp.addConnectionDialog.failedToAddConnection":"Falha ao adicionar conexão","virtualMcp.addConnectionDialog.failedToConnect":"Falha ao conectar","virtualMcp.addConnectionDialog.mcpServerConnectionError":"Este servidor MCP não pode ser conectado: nenhum método de conexão disponível","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Pesquisar conexões...","virtualMcp.addConnectionDialog.signInFailedDescription":"Foi adicionada ao seu projeto, mas sua configuração de login parece estar errada. Você pode tentar autenticar novamente mais tarde nas configurações da conexão. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Não foi possível fazer login nesta conexão","virtualMcp.connectionDialogContent.add":"Adicionar","virtualMcp.connectionDialogContent.added":"Adicionado","virtualMcp.connectionDialogContent.builtByDeco":"Construído e mantido pela Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Construído e mantido pelo fornecedor oficial","virtualMcp.connectionDialogContent.connect":"Conectar","virtualMcp.connectionDialogContent.connected":"Conectado","virtualMcp.connectionDialogContent.customConnection":"Conexão Personalizada","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"Nenhuma conexão disponível","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"Nenhuma conexão ainda","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'Nenhuma conexão corresponde a "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Feito por Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"Todas as conexões","virtualMcp.connectionDialogContent.sectionVerified":"Verificado","virtualMcp.connectionDialogContent.tabAll":"Todos","virtualMcp.connectionDialogContent.tabConnected":"Conectados","virtualMcp.connectionDialogContent.verifiedByDeco":"Verificado pelo time da Deco","virtualMcp.connectionItem.authorize":"Autorizar","virtualMcp.connectionItem.configureResources":"Configurar recursos","virtualMcp.connectionItem.connectionDisabled":"Conexão desativada","virtualMcp.connectionItem.connectionEnabled":"Conexão ativada","virtualMcp.connectionItem.connectionNotFound":"Conexão não encontrada","virtualMcp.connectionItem.connectionSettings":"Configurações de conexão","virtualMcp.connectionItem.disable":"Desativar","virtualMcp.connectionItem.disableConnection":"Desativar conexão","virtualMcp.connectionItem.disabled":"Desativada","virtualMcp.connectionItem.disabledError":"Desativada (erro)","virtualMcp.connectionItem.enable":"Ativar","virtualMcp.connectionItem.failedToUpdateConnection":"Falha ao atualizar a conexão","virtualMcp.connectionItem.needsAuthorization":"Requer autorização","virtualMcp.connectionItem.newInstance":"Nova instância","virtualMcp.connectionItem.remove":"Remover","virtualMcp.connectionItem.removeConnection":"Remover conexão","virtualMcp.dependencySelectionDialog.authorizationDescription":"Esta conexão deve ser autorizada antes de você poder configurar suas ferramentas e recursos.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Autorização obrigatória","virtualMcp.dependencySelectionDialog.authorize":"Autorizar","virtualMcp.dependencySelectionDialog.deselectAll":"Desselecionar tudo","virtualMcp.dependencySelectionDialog.done":"Concluído","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"Nenhuma ferramenta ativa selecionada","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"Nenhum prompt disponível","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"Nenhum recurso disponível","virtualMcp.dependencySelectionDialog.noToolsAvailable":"Nenhuma ferramenta disponível","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts não são suportados por este servidor","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Recursos não são suportados por este servidor","virtualMcp.dependencySelectionDialog.selectAll":"Selecionar tudo","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Algo deu errado","virtualMcp.dependencySelectionDialog.tabActive":"Ativas","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Recursos","virtualMcp.dependencySelectionDialog.tabTools":"Ferramentas","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Ferramentas não são suportadas por este servidor","virtualMcp.dependencySelectionDialog.unexpectedError":"Erro inesperado","virtualMcp.filesSection.add":"Adicionar","virtualMcp.filesSection.description":"Anexe arquivos e skills que o projeto sempre pode consultar.","virtualMcp.filesSection.failedUploadFile":"Falha ao enviar arquivo.","virtualMcp.filesSection.fileTooLargeDescription":"Excede o limite de 25MB, não enviado: {names}","virtualMcp.filesSection.fileTooLargeTitle":"Arquivo muito grande","virtualMcp.filesSection.filesAndSkills":"Arquivos e skills","virtualMcp.filesSection.kindFile":"Arquivo","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"Nenhum arquivo encontrado.","virtualMcp.filesSection.noFilesOrSkillsYet":"Nenhum arquivo ou skill ainda. Adicione um ou arraste e solte aqui.","virtualMcp.filesSection.noSkillsFound":"Nenhum skill encontrado.","virtualMcp.filesSection.removeAriaLabel":"Remover {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Pesquisar arquivos...","virtualMcp.filesSection.searchSkillsPlaceholder":"Pesquisar skills...","virtualMcp.filesSection.selectFileOrFolder":"Selecionar arquivo ou pasta","virtualMcp.filesSection.selectSkill":"Selecionar skill","virtualMcp.filesSection.uploadFile":"Enviar arquivo","virtualMcp.layoutTabContent.noMainView":"Sem visão principal","virtualMcp.layoutTabContent.automations":"Automações","virtualMcp.layoutTabContent.chatAlwaysShown":"O Chat sempre aparece quando é a visualização padrão","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Visualização principal","virtualMcp.layoutTabContent.mainViewDescription":"O que os usuários veem quando abrem este projeto pela primeira vez.","virtualMcp.layoutTabContent.settings":"Configurações","virtualMcp.layoutTabContent.showChat":"Mostrar chat","virtualMcp.layoutTabContent.showChatDescription":"Exibir Chat no painel lateral junto com a visualização principal.","virtualMcp.layoutTabContent.siteEditor":"Editor do site","virtualMcp.settings.title":"Configurações do projeto","virtualMcp.settings.navigation":"Seções das configurações do projeto","virtualMcp.settings.identity.icon":"Ícone do projeto","virtualMcp.settings.identity.iconDescription":"Como seu projeto aparece na barra lateral e no Studio.","virtualMcp.settings.identity.name":"Nome do projeto","virtualMcp.settings.identity.description":"Descrição","virtualMcp.settings.repository.title":"Repositório","virtualMcp.settings.repository.description":"O código deste projeto e como o sandbox roda ele.","virtualMcp.settings.repository.repoTitle":"Repositório","virtualMcp.settings.repository.runtimeTitle":"Como roda","virtualMcp.settings.repository.runtimeDescription":"O que o sandbox instala e sobe para mostrar o preview deste projeto.","virtualMcp.settings.pageTitle":"Configurações do projeto","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"O que abre primeiro e quais views aparecem na sidebar.","virtualMcp.settings.cmsEmptyTitle":"Nenhum conteúdo de site ainda","virtualMcp.settings.repository.open":"Ir para Repositório","virtualMcp.settings.repository.none":"Nenhum repositório conectado","virtualMcp.settings.repository.noneDescription":"Conecte um repositório do GitHub para editar e pré-visualizar o site deste projeto.","virtualMcp.settings.repository.connect":"Conectar repositório","virtualMcp.settings.repository.change":"Trocar","virtualMcp.settings.repository.connected":"{name} conectado","virtualMcp.settings.cmsEmpty":"Conecte o repositório do site para ligar o CMS.","virtualMcp.settings.general.title":"Geral","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site e sandbox","virtualMcp.settings.blocksV8Site.label":"Site Blocks v8","virtualMcp.settings.blocksV8Site.description":"Edite este site com o editor do Blocks v8 e o CMS hospedado. Desligado: v7, ligado ao git.","virtualMcp.settings.groups.advanced":"Avançado","virtualMcp.settings.groups.details":"Detalhes","virtualMcp.settings.connections.title":"Conexões","virtualMcp.settings.views.defaults":"Layout padrão","virtualMcp.settings.views.sidebar":"Visualizações","virtualMcp.settings.views.open":"Abrir","virtualMcp.settings.views.pin":"Fixar na barra lateral","virtualMcp.settings.views.unpin":"Remover da barra lateral","virtualMcp.settings.views.setMainView":"Definir como visualização principal","virtualMcp.settings.views.rowActions":"Opções da visualização","virtualMcp.virtualMcp.addConnection":"Adicionar conexão","virtualMcp.virtualMcp.agentDeleted":'Excluído "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agente","virtualMcp.virtualMcp.agentNamePlaceholder":"Nome do projeto","virtualMcp.virtualMcp.authenticationFailed":"Falha na autenticação: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Autenticação bem-sucedida","virtualMcp.virtualMcp.backToSpaces":"Voltar aos espaços","virtualMcp.virtualMcp.cancel":"Cancelar","virtualMcp.virtualMcp.connect":"Conectar","virtualMcp.virtualMcp.connections":"Conexões","virtualMcp.virtualMcp.created":"Criado em","virtualMcp.virtualMcp.createdBy":"Criado por","virtualMcp.virtualMcp.delete":"Excluir","virtualMcp.virtualMcp.deleteAgent":"Excluir projeto","virtualMcp.virtualMcp.deleteAgentConfirm":"Excluir Projeto?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"Esta ação não pode ser desfeita. Isto excluirá permanentemente {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Exclua permanentemente este projeto e todos os seus dados.","virtualMcp.virtualMcp.descriptionPlaceholder":"Adicionar uma descrição...","virtualMcp.virtualMcp.failedToCreateInstance":"Falha ao criar instância","virtualMcp.virtualMcp.fullscreen":"Tela cheia","virtualMcp.virtualMcp.improve":"Melhorar","virtualMcp.virtualMcp.instanceAlreadyAdded":"Esta instância já foi adicionada ao projeto","virtualMcp.virtualMcp.instructions":"Instruções","virtualMcp.virtualMcp.instructionsPlaceholder":"Defina como este agente deve se comportar, qual tom usar, qualquer restrição ou diretriz...","virtualMcp.virtualMcp.lastUsedLabel":"Último uso","virtualMcp.virtualMcp.neverUsed":"Nunca foi usado","virtualMcp.virtualMcp.newInstanceCreated":"Nova instância criada","virtualMcp.virtualMcp.noConnectionsYet":"Nenhuma conexão ainda. Adicione uma para começar.","virtualMcp.virtualMcp.openFullscreenEditor":"Abrir editor em tela cheia","virtualMcp.virtualMcp.promptTemplate":"+ Modelo de prompt","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
92
92
|
Defina quem é este agente e em que ele é especializado.
|
|
93
93
|
Exemplo: Você é um agente de triagem de suporte para comerciantes B2B.
|
|
94
94
|
</role>
|
|
@@ -164,8 +164,8 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
|
|
|
164
164
|
`)},WO=function(){var t=parseInt(document.body.getAttribute(xd)||"0",10);return isFinite(t)?t:0},Yre=function(){A.useEffect(function(){return document.body.setAttribute(xd,(WO()+1).toString()),function(){var t=WO()-1;t<=0?document.body.removeAttribute(xd):document.body.setAttribute(xd,t.toString())}},[])},Zre=function(t){var e=t.noRelative,o=t.noImportant,a=t.gapMode,n=a===void 0?"margin":a;Yre();var r=A.useMemo(function(){return Gre(n)},[n]);return A.createElement(Wre,{styles:Kre(r,!e,n,o?"":"!important")})},zT=!1;if(typeof window<"u")try{var Wg=Object.defineProperty({},"passive",{get:function(){return zT=!0,!0}});window.addEventListener("test",Wg,Wg),window.removeEventListener("test",Wg,Wg)}catch{zT=!1}var Wc=zT?{passive:!1}:!1,Qre=function(t){return t.tagName==="TEXTAREA"},YF=function(t,e){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[e]!=="hidden"&&!(o.overflowY===o.overflowX&&!Qre(t)&&o[e]==="visible")},Jre=function(t){return YF(t,"overflowY")},Xre=function(t){return YF(t,"overflowX")},KO=function(t,e){var o=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=ZF(t,a);if(n){var r=QF(t,a),i=r[1],c=r[2];if(i>c)return!0}a=a.parentNode}while(a&&a!==o.body);return!1},ese=function(t){var e=t.scrollTop,o=t.scrollHeight,a=t.clientHeight;return[e,o,a]},tse=function(t){var e=t.scrollLeft,o=t.scrollWidth,a=t.clientWidth;return[e,o,a]},ZF=function(t,e){return t==="v"?Jre(e):Xre(e)},QF=function(t,e){return t==="v"?ese(e):tse(e)},ose=function(t,e){return t==="h"&&e==="rtl"?-1:1},ase=function(t,e,o,a,n){var r=ose(t,window.getComputedStyle(e).direction),i=r*a,c=o.target,d=e.contains(c),u=!1,m=i>0,h=0,f=0;do{if(!c)break;var v=QF(t,c),b=v[0],S=v[1],T=v[2],x=S-T-r*b;(b||x)&&ZF(t,c)&&(h+=x,f+=b);var k=c.parentNode;c=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!d&&c!==document.body||d&&(e.contains(c)||e===c));return(m&&Math.abs(h)<1||!m&&Math.abs(f)<1)&&(u=!0),u},Kg=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},YO=function(t){return[t.deltaX,t.deltaY]},ZO=function(t){return t&&"current"in t?t.current:t},nse=function(t,e){return t[0]===e[0]&&t[1]===e[1]},rse=function(t){return`
|
|
165
165
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
166
166
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
167
|
-
`)},sse=0,Kc=[];function ise(t){var e=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(sse++)[0],r=A.useState(KF)[0],i=A.useRef(t);A.useEffect(function(){i.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var S=_re([t.lockRef.current],(t.shards||[]).map(ZO),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var c=A.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!i.current.allowPinchZoom;var x=Kg(S),k=o.current,C="deltaX"in S?S.deltaX:k[0]-x[0],E="deltaY"in S?S.deltaY:k[1]-x[1],_,D=S.target,R=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in S&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,U=L?L===D||L.contains(D):!1;if(U)return!1;var B=KO(R,D);if(!B)return!0;if(B?_=R:(_=R==="v"?"h":"v",B=KO(R,D)),!B)return!1;if(!a.current&&"changedTouches"in S&&(C||E)&&(a.current=_),!_)return!0;var z=a.current||_;return ase(z,T,S,z==="h"?C:E)},[]),d=A.useCallback(function(S){var T=S;if(!(!Kc.length||Kc[Kc.length-1]!==r)){var x="deltaY"in T?YO(T):Kg(T),k=e.current.filter(function(_){return _.name===T.type&&(_.target===T.target||T.target===_.shadowParent)&&nse(_.delta,x)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var C=(i.current.shards||[]).map(ZO).filter(Boolean).filter(function(_){return _.contains(T.target)}),E=C.length>0?c(T,C[0]):!i.current.noIsolation;E&&T.cancelable&&T.preventDefault()}}},[]),u=A.useCallback(function(S,T,x,k){var C={name:S,delta:T,target:x,should:k,shadowParent:lse(x)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(E){return E!==C})},1)},[]),m=A.useCallback(function(S){o.current=Kg(S),a.current=void 0},[]),h=A.useCallback(function(S){u(S.type,YO(S),S.target,c(S,t.lockRef.current))},[]),f=A.useCallback(function(S){u(S.type,Kg(S),S.target,c(S,t.lockRef.current))},[]);A.useEffect(function(){return Kc.push(r),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Wc),document.addEventListener("touchmove",d,Wc),document.addEventListener("touchstart",m,Wc),function(){Kc=Kc.filter(function(S){return S!==r}),document.removeEventListener("wheel",d,Wc),document.removeEventListener("touchmove",d,Wc),document.removeEventListener("touchstart",m,Wc)}},[]);var v=t.removeScrollBar,b=t.inert;return A.createElement(A.Fragment,null,b?A.createElement(r,{styles:rse(n)}):null,v?A.createElement(Zre,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function lse(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const cse=Bre(WF,ise);var fE=A.forwardRef(function(t,e){return A.createElement(pb,Wr({},t,{ref:e,sideCar:cse}))});fE.classNames=pb.classNames;var qT=["Enter"," "],dse=["ArrowDown","PageUp","Home"],JF=["ArrowUp","PageDown","End"],use=[...dse,...JF],pse={ltr:[...qT,"ArrowRight"],rtl:[...qT,"ArrowLeft"]},mse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bm="Menu",[Hp,hse,gse]=rF(bm),[Jl,XF]=Ji(bm,[gse,PF,FF]),ym=PF(),ej=FF(),[tj,Xi]=Jl(bm),[fse,Sm]=Jl(bm),oj=t=>{const{__scopeMenu:e,open:o=!1,children:a,dir:n,onOpenChange:r,modal:i=!0}=t,c=ym(e),[d,u]=A.useState(null),m=A.useRef(!1),h=Cr(r),f=sF(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})}},[]),y.jsx(LF,{...c,children:y.jsx(tj,{scope:e,open:o,onOpenChange:h,content:d,onContentChange:u,children:y.jsx(fse,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:a})})})};oj.displayName=bm;var vse="MenuAnchor",vE=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return y.jsx(sre,{...n,...a,ref:e})});vE.displayName=vse;var bE="MenuPortal",[bse,aj]=Jl(bE,{forceMount:void 0}),nj=t=>{const{__scopeMenu:e,forceMount:o,children:a,container:n}=t,r=Xi(bE,e);return y.jsx(bse,{scope:e,forceMount:o,children:y.jsx(js,{present:o||r.open,children:y.jsx(gE,{asChild:!0,container:n,children:a})})})};nj.displayName=bE;var nr="MenuContent",[yse,yE]=Jl(nr),rj=A.forwardRef((t,e)=>{const o=aj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Sm(nr,t.__scopeMenu);return y.jsx(Hp.Provider,{scope:t.__scopeMenu,children:y.jsx(js,{present:a||r.open,children:y.jsx(Hp.Slot,{scope:t.__scopeMenu,children:i.modal?y.jsx(Sse,{...n,ref:e}):y.jsx(wse,{...n,ref:e})})})})}),Sse=A.forwardRef((t,e)=>{const o=Xi(nr,t.__scopeMenu),a=A.useRef(null),n=$o(e,a);return A.useEffect(()=>{const r=a.current;if(r)return VF(r)},[]),y.jsx(SE,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),wse=A.forwardRef((t,e)=>{const o=Xi(nr,t.__scopeMenu);return y.jsx(SE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),xse=$p("MenuContent.ScrollLock"),SE=A.forwardRef((t,e)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...S}=t,T=Xi(nr,o),x=Sm(nr,o),k=ym(o),C=ej(o),E=hse(o),[_,D]=A.useState(null),R=A.useRef(null),O=$o(e,R,T.onContentChange),L=A.useRef(0),U=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),oe=b?fE:A.Fragment,H=b?{as:xse,allowPinchZoom:!0}:void 0,K=se=>{const Q=U.current+se,M=E().filter(de=>!de.disabled),G=document.activeElement,V=M.find(de=>de.ref.current===G)?.textValue,I=M.map(de=>de.textValue),j=Mse(I,Q,V),X=M.find(de=>de.textValue===j)?.ref.current;(function de(ue){U.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),cF();const J=A.useCallback(se=>F.current===z.current?.side&&Lse(se,z.current?.area),[]);return y.jsx(yse,{scope:o,searchRef:U,onItemEnter:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),onItemLeave:A.useCallback(se=>{J(se)||(R.current?.focus(),D(null))},[J]),onTriggerLeave:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(se=>{z.current=se},[]),children:y.jsx(oe,{...H,children:y.jsx(rE,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(nE,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:y.jsx(Tre,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{x.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(ire,{role:"menu","aria-orientation":"vertical","data-state":xj(T.open),"data-radix-menu-content":"",dir:x.dir,...k,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,se=>{const M=se.target.closest("[data-radix-menu-content]")===se.currentTarget,G=se.ctrlKey||se.altKey||se.metaKey,V=se.key.length===1;M&&(se.key==="Tab"&&se.preventDefault(),!G&&V&&K(se.key));const I=R.current;if(se.target!==I||!use.includes(se.key))return;se.preventDefault();const X=E().filter(de=>!de.disabled).map(de=>de.ref.current);JF.includes(se.key)&&X.reverse(),Ose(X)}),onBlur:mt(t.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:mt(t.onPointerMove,Gp(se=>{const Q=se.target,M=W.current!==se.clientX;if(se.currentTarget.contains(Q)&&M){const G=se.clientX>W.current?"right":"left";F.current=G,W.current=se.clientX}}))})})})})})})});rj.displayName=nr;var Tse="MenuGroup",wE=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Do.div,{role:"group",...a,ref:e})});wE.displayName=Tse;var kse="MenuLabel",sj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Do.div,{...a,ref:e})});sj.displayName=kse;var sv="MenuItem",QO="menu.itemSelect",mb=A.forwardRef((t,e)=>{const{disabled:o=!1,onSelect:a,...n}=t,r=A.useRef(null),i=Sm(sv,t.__scopeMenu),c=yE(sv,t.__scopeMenu),d=$o(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!o&&h){const f=new CustomEvent(QO,{bubbles:!0,cancelable:!0});h.addEventListener(QO,v=>a?.(v),{once:!0}),nF(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return y.jsx(ij,{...n,ref:d,disabled:o,onClick:mt(t.onClick,m),onPointerDown:h=>{t.onPointerDown?.(h),u.current=!0},onPointerUp:mt(t.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(t.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||qT.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});mb.displayName=sv;var ij=A.forwardRef((t,e)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...r}=t,i=yE(sv,o),c=ej(o),d=A.useRef(null),u=$o(e,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[r.children]),y.jsx(Hp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:y.jsx(kre,{asChild:!0,...c,focusable:!a,children:y.jsx(Do.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:mt(t.onPointerMove,Gp(b=>{a?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(t.onPointerLeave,Gp(b=>i.onItemLeave(b))),onFocus:mt(t.onFocus,()=>h(!0)),onBlur:mt(t.onBlur,()=>h(!1))})})})}),Ese="MenuCheckboxItem",lj=A.forwardRef((t,e)=>{const{checked:o=!1,onCheckedChange:a,...n}=t;return y.jsx(mj,{scope:t.__scopeMenu,checked:o,children:y.jsx(mb,{role:"menuitemcheckbox","aria-checked":iv(o)?"mixed":o,...n,ref:e,"data-state":kE(o),onSelect:mt(n.onSelect,()=>a?.(iv(o)?!0:!o),{checkForDefaultPrevented:!1})})})});lj.displayName=Ese;var cj="MenuRadioGroup",[Cse,Pse]=Jl(cj,{value:void 0,onValueChange:()=>{}}),dj=A.forwardRef((t,e)=>{const{value:o,onValueChange:a,...n}=t,r=Cr(a);return y.jsx(Cse,{scope:t.__scopeMenu,value:o,onValueChange:r,children:y.jsx(wE,{...n,ref:e})})});dj.displayName=cj;var uj="MenuRadioItem",pj=A.forwardRef((t,e)=>{const{value:o,...a}=t,n=Pse(uj,t.__scopeMenu),r=o===n.value;return y.jsx(mj,{scope:t.__scopeMenu,checked:r,children:y.jsx(mb,{role:"menuitemradio","aria-checked":r,...a,ref:e,"data-state":kE(r),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});pj.displayName=uj;var xE="MenuItemIndicator",[mj,_se]=Jl(xE,{checked:!1}),hj=A.forwardRef((t,e)=>{const{__scopeMenu:o,forceMount:a,...n}=t,r=_se(xE,o);return y.jsx(js,{present:a||iv(r.checked)||r.checked===!0,children:y.jsx(Do.span,{...n,ref:e,"data-state":kE(r.checked)})})});hj.displayName=xE;var Ase="MenuSeparator",gj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Do.div,{role:"separator","aria-orientation":"horizontal",...a,ref:e})});gj.displayName=Ase;var Rse="MenuArrow",fj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return y.jsx(lre,{...n,...a,ref:e})});fj.displayName=Rse;var TE="MenuSub",[Dse,vj]=Jl(TE),bj=t=>{const{__scopeMenu:e,children:o,open:a=!1,onOpenChange:n}=t,r=Xi(TE,e),i=ym(e),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Cr(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),y.jsx(LF,{...i,children:y.jsx(tj,{scope:e,open:a,onOpenChange:h,content:u,onContentChange:m,children:y.jsx(Dse,{scope:e,contentId:Fi(),triggerId:Fi(),trigger:c,onTriggerChange:d,children:o})})})};bj.displayName=TE;var gp="MenuSubTrigger",yj=A.forwardRef((t,e)=>{const o=Xi(gp,t.__scopeMenu),a=Sm(gp,t.__scopeMenu),n=vj(gp,t.__scopeMenu),r=yE(gp,t.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:t.__scopeMenu},m=A.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),y.jsx(vE,{asChild:!0,...u,children:y.jsx(ij,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":xj(o.open),...t,ref:hm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Gp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!o.open&&!i.current&&(r.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:mt(t.onPointerLeave,Gp(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,T=f[b?"left":"right"],x=f[b?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+S,y:h.clientY},{x:T,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:T,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(h),h.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:mt(t.onKeyDown,h=>{const f=r.searchRef.current!=="";t.disabled||f&&h.key===" "||pse[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});yj.displayName=gp;var Sj="MenuSubContent",wj=A.forwardRef((t,e)=>{const o=aj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Sm(nr,t.__scopeMenu),c=vj(Sj,t.__scopeMenu),d=A.useRef(null),u=$o(e,d);return y.jsx(Hp.Provider,{scope:t.__scopeMenu,children:y.jsx(js,{present:a||r.open,children:y.jsx(Hp.Slot,{scope:t.__scopeMenu,children:y.jsx(SE,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{i.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(t.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(t.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:mt(t.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=mse[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});wj.displayName=Sj;function xj(t){return t?"open":"closed"}function iv(t){return t==="indeterminate"}function kE(t){return iv(t)?"indeterminate":t?"checked":"unchecked"}function Ose(t){const e=document.activeElement;for(const o of t)if(o===e||(o.focus(),document.activeElement!==e))return}function Nse(t,e){return t.map((o,a)=>t[(e+a)%t.length])}function Mse(t,e,o){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,r=o?t.indexOf(o):-1;let i=Nse(t,Math.max(r,0));n.length===1&&(i=i.filter(u=>u!==o));const d=i.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==o?d:void 0}function Ise(t,e){const{x:o,y:a}=t;let n=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){const c=e[r],d=e[i],u=c.x,m=c.y,h=d.x,f=d.y;m>a!=f>a&&o<(h-u)*(a-m)/(f-m)+u&&(n=!n)}return n}function Lse(t,e){if(!e)return!1;const o={x:t.clientX,y:t.clientY};return Ise(o,e)}function Gp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Bse=oj,Fse=vE,jse=nj,zse=rj,qse=wE,Use=sj,$se=mb,Vse=lj,Hse=dj,Gse=pj,Wse=hj,Kse=gj,Yse=fj,Zse=bj,Qse=yj,Jse=wj,hb="DropdownMenu",[Xse]=Ji(hb,[XF]),$a=XF(),[eie,Tj]=Xse(hb),kj=t=>{const{__scopeDropdownMenu:e,children:o,dir:a,open:n,defaultOpen:r,onOpenChange:i,modal:c=!0}=t,d=$a(e),u=A.useRef(null),[m,h]=gm({prop:n,defaultProp:r??!1,onChange:i,caller:hb});return y.jsx(eie,{scope:e,triggerId:Fi(),triggerRef:u,contentId:Fi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:y.jsx(Bse,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};kj.displayName=hb;var Ej="DropdownMenuTrigger",Cj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=t,r=Tj(Ej,o),i=$a(o);return y.jsx(Fse,{asChild:!0,...i,children:y.jsx(Do.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:hm(e,r.triggerRef),onPointerDown:mt(t.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(t.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Cj.displayName=Ej;var tie="DropdownMenuPortal",Pj=t=>{const{__scopeDropdownMenu:e,...o}=t,a=$a(e);return y.jsx(jse,{...a,...o})};Pj.displayName=tie;var _j="DropdownMenuContent",Aj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=Tj(_j,o),r=$a(o),i=A.useRef(!1);return y.jsx(zse,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...a,ref:e,onCloseAutoFocus:mt(t.onCloseAutoFocus,c=>{i.current||n.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:mt(t.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!n.modal||m)&&(i.current=!0)}),style:{...t.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)"}})});Aj.displayName=_j;var oie="DropdownMenuGroup",aie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(qse,{...n,...a,ref:e})});aie.displayName=oie;var nie="DropdownMenuLabel",Rj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Use,{...n,...a,ref:e})});Rj.displayName=nie;var rie="DropdownMenuItem",Dj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx($se,{...n,...a,ref:e})});Dj.displayName=rie;var sie="DropdownMenuCheckboxItem",Oj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Vse,{...n,...a,ref:e})});Oj.displayName=sie;var iie="DropdownMenuRadioGroup",Nj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Hse,{...n,...a,ref:e})});Nj.displayName=iie;var lie="DropdownMenuRadioItem",Mj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Gse,{...n,...a,ref:e})});Mj.displayName=lie;var cie="DropdownMenuItemIndicator",Ij=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Wse,{...n,...a,ref:e})});Ij.displayName=cie;var die="DropdownMenuSeparator",Lj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Kse,{...n,...a,ref:e})});Lj.displayName=die;var uie="DropdownMenuArrow",pie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Yse,{...n,...a,ref:e})});pie.displayName=uie;var mie=t=>{const{__scopeDropdownMenu:e,children:o,open:a,onOpenChange:n,defaultOpen:r}=t,i=$a(e),[c,d]=gm({prop:a,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return y.jsx(Zse,{...i,open:c,onOpenChange:d,children:o})},hie="DropdownMenuSubTrigger",Bj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Qse,{...n,...a,ref:e})});Bj.displayName=hie;var gie="DropdownMenuSubContent",Fj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Jse,{...n,...a,ref:e,style:{...t.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)"}})});Fj.displayName=gie;var jj=kj,zj=Cj,qj=Pj,Uj=Aj,fie=Rj,$j=Dj,vie=Oj,bie=Nj,yie=Mj,Vj=Ij,Sie=Lj,wie=mie,xie=Bj,Tie=Fj;const EE=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));EE.displayName="AlertTriangle";const Hj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Hj.displayName="Archive";const Gj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Gj.displayName="ArrowUpRight";const Wj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 6 9 17l-5-5"}));Wj.displayName="Check";const CE=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));CE.displayName="ChevronRight";const Kj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Kj.displayName="Circle";const Yj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Yj.displayName="CpuChip01";const Zj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Zj.displayName="DotsHorizontal";const Qj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Qj.displayName="GitBranch01";const Jj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Jj.displayName="HardDrive";const Xj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Xj.displayName="LinkExternal01";const e3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));e3.displayName="Lock01";const t3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));t3.displayName="RefreshCw01";const o3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));o3.displayName="Server01";const a3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));a3.displayName="Shield01";const n3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));n3.displayName="User01";const r3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));r3.displayName="Users03";const s3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));s3.displayName="X";function kie(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(jj,{"data-slot":"dropdown-menu",...o}),e[2]=o,e[3]=a):a=e[3],a}function Eie(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(zj,{"data-slot":"dropdown-menu-trigger",...o}),e[2]=o,e[3]=a):a=e[3],a}function Cie(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,sideOffset:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?4:n;let i;e[4]!==o?(i=Je("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),e[4]=o,e[5]=i):i=e[5];let c;return e[6]!==a||e[7]!==r||e[8]!==i?(c=y.jsx(qj,{children:y.jsx(Uj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:i,...a})}),e[6]=a,e[7]=r,e[8]=i,e[9]=c):c=e[9],c}function Pie(t){const e=ye.c(12);let o,a,n,r;e[0]!==t?({className:o,inset:a,variant:r,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const i=r===void 0?"default":r;let c;e[5]!==o?(c=Je("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),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==n||e[9]!==c||e[10]!==i?(d=y.jsx($j,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":i,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=i,e[11]=d):d=e[11],d}function CTe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:n,children:a,checked:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let i;e[5]!==n?(i=Je("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),e[5]=n,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Vj,{children:y.jsx(Wj,{className:"size-4"})})}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==a||e[10]!==r||e[11]!==i?(d=y.jsxs(vie,{"data-slot":"dropdown-menu-checkbox-item",className:i,checked:o,...r,children:[c,a]}),e[8]=o,e[9]=a,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function PTe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(bie,{"data-slot":"dropdown-menu-radio-group",...o}),e[2]=o,e[3]=a):a=e[3],a}function _Te(t){const e=ye.c(11);let o,a,n;e[0]!==t?({className:a,children:o,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==a?(r=Je("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),e[4]=a,e[5]=r):r=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Vj,{children:y.jsx(Kj,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let c;return e[7]!==o||e[8]!==n||e[9]!==r?(c=y.jsxs(yie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[i,o]}),e[7]=o,e[8]=n,e[9]=r,e[10]=c):c=e[10],c}function ATe(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,inset:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o?(r=Je("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),e[4]=o,e[5]=r):r=e[5];let i;return e[6]!==a||e[7]!==n||e[8]!==r?(i=y.jsx(fie,{"data-slot":"dropdown-menu-label","data-inset":a,className:r,...n}),e[6]=a,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function RTe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("bg-border -mx-1 my-1 h-px",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(Sie,{"data-slot":"dropdown-menu-separator",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function DTe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(wie,{"data-slot":"dropdown-menu-sub",...o}),e[2]=o,e[3]=a):a=e[3],a}function OTe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:a,inset:n,children:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let i;e[5]!==a?(i=Je("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),e[5]=a,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx(CE,{className:"ml-auto size-4"}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==n||e[10]!==r||e[11]!==i?(d=y.jsxs(xie,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:i,...r,children:[o,c]}),e[8]=o,e[9]=n,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function NTe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("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),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(Tie,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function _ie(){const t=ye.c(3),[e,o]=A.useState(-1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=i=>{if(!i)return;const c=()=>o(i.clientWidth);c();const d=new ResizeObserver(c);return d.observe(i),()=>d.disconnect()},t[0]=a):a=t[0];const n=a;let r;return t[1]!==e?(r=[e,n],t[1]=e,t[2]=r):r=t[2],r}function Aie(){let t=new Map;const e=new Set,o=()=>e.forEach(a=>a());return{getSnapshot:()=>t,subscribe(a){return e.add(a),()=>{e.delete(a)}},register(a){if(t.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return t=new Map(t).set(a.after,a),o(),()=>{if(t.get(a.after)!==a)return;const n=new Map(t);n.delete(a.after),t=n,o()}}}}const PE=A.createContext(null);function Rie(t){const e=ye.c(3),{children:o}=t,[a]=A.useState(Aie);let n;return e[0]!==o||e[1]!==a?(n=y.jsx(PE,{value:a,children:o}),e[0]=o,e[1]=a,e[2]=n):n=e[2],n}function Die(t){const e=ye.c(2),{children:o}=t;let a;return e[0]!==o?(a=y.jsx(PE,{value:null,children:o}),e[0]=o,e[1]=a):a=e[1],a}function gb(){return A.use(PE)}function i3(t){const e=ye.c(3),o=gb();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return e[0]!==t||e[1]!==o?(a=y.jsx("span",{hidden:!0,ref:n=>n?o.register(t):void 0}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}function Oie(t,e){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const r=e.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(a)??[]]};return t.flatMap(a)}function Nie(t,e){const o=t.map(a=>a.label).filter(a=>typeof a=="string").reverse();return e&&o.push(e),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const l3=5;function Mie(t,e=!1,o=l3){const a=t.map(i=>({type:"item",item:i}));if(t.length<=(e?1:o))return a;const n=e?0:1,r=t.length-(e?1:2);return a.splice(n,r-n,{type:"menu",items:t.slice(n,r)}),a}const c3=W$(function(e){return y.jsx("a",{...e,"aria-current":void 0})});function Iie(t){const e=ye.c(12),{items:o}=t,a=Ua();let n;e[0]!==a?(n=a("page.breadcrumbMenu"),e[0]=a,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(Zj,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let i;e[3]!==n?(i=y.jsx(Eie,{asChild:!0,children:y.jsx(bn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),e[3]=n,e[4]=i):i=e[4];let c;e[5]!==o?(c=o.map(Lie),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=y.jsx(Cie,{align:"start",children:c}),e[7]=c,e[8]=d):d=e[8];let u;return e[9]!==i||e[10]!==d?(u=y.jsxs(kie,{children:[i,d]}),e[9]=i,e[10]=d,e[11]=u):u=e[11],u}function Lie(t){const e=y.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return y.jsx(Pie,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?y.jsx(c3,{...t.link,children:e}):e},t.key)}function Bie(t){const e=ye.c(14),{item:o,current:a}=t,n=typeof o.label=="string"?o.label:void 0;if(a){let i;return e[0]!==o.label||e[1]!==n?(i=y.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),e[0]=o.label,e[1]=n,e[2]=i):i=e[2],i}if(o.onSelect){let i;return e[3]!==o.label||e[4]!==o.onSelect||e[5]!==n?(i=y.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[3]=o.label,e[4]=o.onSelect,e[5]=n,e[6]=i):i=e[6],i}if(o.link){let i;return e[7]!==o.label||e[8]!==o.link||e[9]!==n?(i=y.jsx(c3,{...o.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[7]=o.label,e[8]=o.link,e[9]=n,e[10]=i):i=e[10],i}let r;return e[11]!==o.label||e[12]!==n?(r=y.jsx("span",{title:n,className:"block max-w-48 truncate",children:o.label}),e[11]=o.label,e[12]=n,e[13]=r):r=e[13],r}function d3(t){const e=ye.c(21),{items:o}=t,a=Ua(),[n,r]=_ie();let i,c,d,u,m,h;if(e[0]!==o||e[1]!==r||e[2]!==a||e[3]!==n){const b=Mie(o,n>=0&&n<320,l3);u=r,e[10]!==a?(m=a("page.breadcrumbs"),e[10]=a,e[11]=m):m=e[11],h='min-w-0 flex-1 first:pl-3 [&:has(~[data-slot="panel-topbar-left-target"]:not(:empty))]:flex-initial',i="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=b.map((S,T)=>y.jsxs("li",{className:Je("flex min-w-0 items-center gap-2",T>0&&"min-w-5",S.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[T>0&&y.jsx(CE,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?y.jsx(Bie,{item:S.item,current:T===b.length-1}):y.jsx(Iie,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),e[0]=o,e[1]=r,e[2]=a,e[3]=n,e[4]=i,e[5]=c,e[6]=d,e[7]=u,e[8]=m,e[9]=h}else i=e[4],c=e[5],d=e[6],u=e[7],m=e[8],h=e[9];let f;e[12]!==i||e[13]!==c||e[14]!==d?(f=y.jsx("ol",{"data-slot":i,className:c,children:d}),e[12]=i,e[13]=c,e[14]=d,e[15]=f):f=e[15];let v;return e[16]!==u||e[17]!==m||e[18]!==h||e[19]!==f?(v=y.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),e[16]=u,e[17]=m,e[18]=h,e[19]=f,e[20]=v):v=e[20],v}function Fie(t){const e=ye.c(12),{items:o,scope:a}=t,n=gb();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let i,c;e[0]!==r||e[1]!==o||e[2]!==a?(i=Oie(o,r),c=Nie(i,a),e[0]=r,e[1]=o,e[2]=a,e[3]=i,e[4]=c):(i=e[3],c=e[4]);const d=c;let u;e[5]!==d?(u=d&&y.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==i?(m=y.jsx(d3,{items:i}),e[7]=i,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=y.jsxs(y.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function jie(t){const e=ye.c(3),o=gb();let a;return e[0]!==t||e[1]!==o?(a=o?y.jsx(i3,{...t}):y.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:y.jsx(d3,{items:t.items??[]})}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const zie=Object.assign(jie,{Provider:Rie,Detached:Die});function qie(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx("div",{...a,"data-slot":"page",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Uie(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("min-h-0 min-w-0 flex-1 overflow-auto",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx("div",{...a,"data-slot":"page-content",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const $ie={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},Vie="px-4 md:pl-6 md:pr-8",u3=A.createContext(!1);function Hie(t){const e=ye.c(12);let o,a,n;e[0]!==t?({className:o,width:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?"wide":n,i=A.use(u3);let c;e[4]!==o||e[5]!==i||e[6]!==r?(c=Je("w-full",i?Je(Vie,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",$ie[r],o),e[4]=o,e[5]=i,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==c||e[10]!==r?(d=y.jsx("div",{...a,"data-slot":"page-container","data-width":r,className:c}),e[8]=a,e[9]=c,e[10]=r,e[11]=d):d=e[11],d}function Gie(t){const e=ye.c(9),{children:o,actions:a,className:n}=t,r=gb();let i;e[0]!==o||e[1]!==n||e[2]!==r?(i=r?y.jsx(i3,{after:"page",parent:{label:o}}):y.jsx("div",{"data-slot":"page-title",className:Je("flex flex-wrap items-center justify-between gap-3",n),children:y.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),e[0]=o,e[1]=n,e[2]=r,e[3]=i):i=e[3];let c;e[4]!==a?(c=a&&y.jsx(p3,{children:a}),e[4]=a,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==c?(d=y.jsxs(y.Fragment,{children:[i,c]}),e[6]=i,e[7]=c,e[8]=d):d=e[8],d}function p3(t){const e=ye.c(3),{children:o,secondary:a}=t;let n;if(e[0]!==o||e[1]!==a){const r=y.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=y.jsx(pn.Topbar.Right.Portal,{fallback:r,children:r}),e[0]=o,e[1]=a,e[2]=n}else n=e[2];return n}function Wie(t){const e=ye.c(28),{breadcrumbs:o,scope:a,leading:n,actions:r,navigation:i,trailingActions:c}=t;let d;e[0]!==o||e[1]!==a?(d=y.jsx(Fie,{items:o,scope:a}),e[0]=o,e[1]=a,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=y.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=y.jsxs(pn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),e[4]=n,e[5]=d,e[6]=m):m=e[6];let h;e[7]!==r?(h=y.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),e[7]=r,e[8]=h):h=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=y.jsx(pn.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"}),e[9]=f):f=e[9];let v;e[10]!==h||e[11]!==c?(v=y.jsxs(pn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),e[10]=h,e[11]=c,e[12]=v):v=e[12];let b;e[13]!==m||e[14]!==v?(b=y.jsxs(pn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),e[13]=m,e[14]=v,e[15]=b):b=e[15];let S;e[16]!==i?(S=y.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),e[16]=i,e[17]=S):S=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=y.jsx(pn.Toolbar.Left.Target,{}),e[18]=T):T=e[18];let x;e[19]!==S?(x=y.jsxs(pn.Toolbar.Left,{children:[S,T]}),e[19]=S,e[20]=x):x=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=y.jsx(pn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:y.jsx(pn.Toolbar.Center.Target,{})}),e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=y.jsx(pn.Toolbar.Right,{children:y.jsx(pn.Toolbar.Right.Target,{})}),e[22]=C):C=e[22];let E;e[23]!==x?(E=y.jsxs(pn.Toolbar,{children:[x,k,C]}),e[23]=x,e[24]=E):E=e[24];let _;return e[25]!==E||e[26]!==b?(_=y.jsxs(y.Fragment,{children:[b,E]}),e[25]=E,e[26]=b,e[27]=_):_=e[27],_}function Kie(t){const e=ye.c(11);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);const n=Ua();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let i;e[5]!==o?(i=Je("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),e[5]=o,e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==r||e[9]!==i?(c=y.jsx("nav",{"aria-label":r,...a,"data-slot":"page-tabs",className:i}),e[7]=a,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Yie(t){const e=ye.c(14);let o,a,n,r;e[0]!==t?({active:o,asChild:r,className:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const i=r===void 0?!1:r,c=i?void 0:"button",d=i&&o?"page":void 0,u=i?void 0:o;let m;e[5]!==a?(m=Je("shrink-0",a),e[5]=a,e[6]=m):m=e[6];let h;return e[7]!==i||e[8]!==n||e[9]!==c||e[10]!==d||e[11]!==u||e[12]!==m?(h=y.jsx(bn,{asChild:i,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),e[7]=i,e[8]=n,e[9]=c,e[10]=d,e[11]=u,e[12]=m,e[13]=h):h=e[13],h}const Td=Object.assign(qie,{Header:Wie,Tabs:Kie,Tab:Yie,Actions:p3,Content:Uie,Container:Object.assign(Hie,{Inset:u3}),Title:Gie,Breadcrumbs:zie});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 Mn=ia?.navigator,ze=ia?.document,ka=ia?.location,UT=ia?.fetch,$T=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,JO=ia?.AbortController,Zie=ia?.CompressionStream,mn=Mn?.userAgent,ot=ge??{},XO="1.372.3",Qa={DEBUG:!1,LIB_VERSION:XO,LIB_NAME:"web",JS_SDK_VERSION:XO};function e2(t,e,o,a,n,r,i){try{var c=t[r](i),d=c.value}catch(u){return void o(u)}c.done?e(d):Promise.resolve(d).then(a,n)}function er(t){return function(){var e=this,o=arguments;return new Promise((function(a,n){var r=t.apply(e,o);function i(d){e2(r,a,n,i,c,"next",d)}function c(d){e2(r,a,n,i,c,"throw",d)}i(void 0)}))}}function Me(){return Me=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},Me.apply(null,arguments)}function m3(t,e){if(t==null)return{};var o={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;o[a]=t[a]}return o}function VT(){return VT=er((function*(t,e,o){e===void 0&&(e=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),r=n.write(new TextEncoder().encode(t)).then((()=>n.close())).catch((function(){var d=er((function*(u){try{yield n.abort(u)}catch{}throw u}));return function(u){return d.apply(this,arguments)}})()),i=new Response(a.readable).blob(),[c]=yield Promise.all([i,r]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return e&&console.error("Failed to gzip compress data",d),null}})),VT.apply(this,arguments)}var Qie=["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"],t2=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var o=t.toLowerCase();return Qie.concat(e).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},Jie=["$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 Et(t,e){return t.indexOf(e)!==-1}var fb=function(t){return t.trim()},HT=function(t){return t.replace(/^\$/,"")},h3=Object.prototype,g3=h3.hasOwnProperty,vb=h3.toString,Bt=Array.isArray||function(t){return vb.call(t)==="[object Array]"},Rs=t=>typeof t=="function",Fo=t=>t===Object(t)&&!Bt(t),hd=t=>{if(Fo(t)){for(var e in t)if(g3.call(t,e))return!1;return!0}return!1},$e=t=>t===void 0,Po=t=>vb.call(t)=="[object String]",Tf=t=>Po(t)&&t.trim().length===0,zs=t=>t===null,Pt=t=>$e(t)||zs(t),sr=t=>vb.call(t)=="[object Number]"&&t==t,sd=t=>sr(t)&&t>0,Yr=t=>vb.call(t)==="[object Boolean]",Xie=t=>t instanceof FormData,ele=t=>Et(Jie,t);function f3(t){return t===null||typeof t!="object"}function lv(t,e){return{}.toString.call(t)==="[object "+e+"]"}function _E(t){return typeof Event<"u"&&(function(e,o){try{return e instanceof o}catch{return!1}})(t,Event)}var tle=[!0,"true",1,"1","yes"],Hw=t=>Et(tle,t),ole=[!1,"false",0,"0","no"];function Zr(t,e,o,a,n){return e>o&&(a.warn("min cannot be greater than max."),e=o),sr(t)?t>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):e>t?(a.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),Zr(n||o,e,o,a))}let ale=class{constructor(e){this.$t={},this.zt=e.zt,this.Ut=Zr(e.bucketSize,0,100,e.Gt),this.Wt=Zr(e.refillRate,0,this.Ut,e.Gt),this.Xt=Zr(e.refillInterval,0,864e5,e.Gt)}Jt(e,o){var a=Math.floor((o-e.lastAccess)/this.Xt);a>0&&(e.tokens=Math.min(e.tokens+a*this.Wt,this.Ut),e.lastAccess=e.lastAccess+a*this.Xt)}consumeRateLimit(e){var o,a=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,a):this.$t[n]=r={tokens:this.Ut,lastAccess:a},r.tokens===0||(r.tokens--,r.tokens===0&&((o=this.zt)==null||o.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Yg,o2,Gw,Ln="Mobile",cv="iOS",Ms="Android",jd="Tablet",v3=Ms+" "+jd,b3="iPad",y3="Apple",S3=y3+" Watch",Ep="Safari",zd="BlackBerry",w3="Samsung",x3=w3+"Browser",T3=w3+" Internet",Bl="Chrome",nle=Bl+" OS",k3=Bl+" "+cv,AE="Internet Explorer",E3=AE+" "+Ln,RE="Opera",rle=RE+" Mini",DE="Edge",C3="Microsoft "+DE,kd="Firefox",P3=kd+" "+cv,Wp="Nintendo",Kp="PlayStation",Ed="Xbox",_3=Ms+" "+Ln,A3=Ln+" "+Ep,fp="Windows",GT=fp+" Phone",a2="Nokia",WT="Ouya",R3="Generic",sle=R3+" "+Ln.toLowerCase(),D3=R3+" "+jd.toLowerCase(),KT="Konqueror",Za="(\\d+(\\.\\d+)?)",Ww=new RegExp("Version/"+Za),ile=new RegExp(Ed,"i"),lle=new RegExp(Kp+" \\w+","i"),cle=new RegExp(Wp+" \\w+","i"),OE=new RegExp(zd+"|PlayBook|BB10","i"),dle={"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"},O3=function(t,e){return e=e||"",Et(t," OPR/")&&Et(t,"Mini")?rle:Et(t," OPR/")?RE:OE.test(t)?zd:Et(t,"IE"+Ln)||Et(t,"WPDesktop")?E3:Et(t,x3)?T3:Et(t,DE)||Et(t,"Edg/")?C3:Et(t,"FBIOS")?"Facebook "+Ln:Et(t,"UCWEB")||Et(t,"UCBrowser")?"UC Browser":Et(t,"CriOS")?k3:Et(t,"CrMo")||Et(t,Bl)?Bl:Et(t,Ms)&&Et(t,Ep)?_3:Et(t,"FxiOS")?P3:Et(t.toLowerCase(),KT.toLowerCase())?KT:((o,a)=>a&&Et(a,y3)||(function(n){return Et(n,Ep)&&!Et(n,Bl)&&!Et(n,Ms)})(o))(t,e)?Et(t,Ln)?A3:Ep:Et(t,kd)?kd:Et(t,"MSIE")||Et(t,"Trident/")?AE:Et(t,"Gecko")?kd:""},ule={[E3]:[new RegExp("rv:"+Za)],[C3]:[new RegExp(DE+"?\\/"+Za)],[Bl]:[new RegExp("("+Bl+"|CrMo)\\/"+Za)],[k3]:[new RegExp("CriOS\\/"+Za)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Za)],[Ep]:[Ww],[A3]:[Ww],[RE]:[new RegExp("(Opera|OPR)\\/"+Za)],[kd]:[new RegExp(kd+"\\/"+Za)],[P3]:[new RegExp("FxiOS\\/"+Za)],[KT]:[new RegExp("Konqueror[:/]?"+Za,"i")],[zd]:[new RegExp(zd+" "+Za),Ww],[_3]:[new RegExp("android\\s"+Za,"i")],[T3]:[new RegExp(x3+"\\/"+Za)],[AE]:[new RegExp("(rv:|MSIE )"+Za)],Mozilla:[new RegExp("rv:"+Za)]},ple=function(t,e){var o=O3(t,e),a=ule[o];if($e(a))return null;for(var n=0;a.length>n;n++){var r=t.match(a[n]);if(r)return parseFloat(r[r.length-2])}return null},n2=[[new RegExp(Ed+"; "+Ed+" (.*?)[);]","i"),t=>[Ed,t&&t[1]||""]],[new RegExp(Wp,"i"),[Wp,""]],[new RegExp(Kp,"i"),[Kp,""]],[OE,[zd,""]],[new RegExp(fp,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[GT,""];if(new RegExp(Ln).test(e)&&!/IEMobile\b/.test(e))return[fp+" "+Ln,""];var o=/Windows NT ([0-9.]+)/i.exec(e);if(o&&o[1]){var a=dle[o[1]]||"";return/arm/i.test(e)&&(a="RT"),[fp,a]}return[fp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[cv,[t[3],t[4],t[5]||"0"].join(".")]:[cv,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=$e(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Ms+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ms+")","i"),t=>t&&t[2]?[Ms,[t[2],t[3],t[4]||"0"].join(".")]:[Ms,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[nle,""]],[/Linux|debian/i,["Linux",""]]],r2=function(t){return cle.test(t)?Wp:lle.test(t)?Kp:ile.test(t)?Ed:new RegExp(WT,"i").test(t)?WT:new RegExp("("+GT+"|WPDesktop)","i").test(t)?GT:/iPad/.test(t)?b3:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?S3:OE.test(t)?zd:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(a2,"i").test(t)?a2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Ln).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ms:v3:new RegExp("(pda|"+Ln+")","i").test(t)?sle:new RegExp(jd,"i").test(t)&&!new RegExp(jd+" pc","i").test(t)?D3:""},mle=t=>t instanceof Error,N3={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}},hle=N3.info;function M3(t){if(Yr(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Bt(t))return{arrayValue:{values:t.map((e=>M3(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function s2(t){var e=[];for(var o in t){var a=t[o];zs(a)||$e(a)||e.push({key:o,value:M3(a)})}return e}function gle(t){var e=globalThis._posthogChunkIds;if(e){var o=Object.keys(e);return Gw&&o.length===o2||(o2=o.length,Gw=o.reduce(((a,n)=>{Yg||(Yg={});var r=Yg[n];if(r)a[r[0]]=r[1];else for(var i=t(n),c=i.length-1;c>=0;c--){var d=i[c],u=d?.filename,m=e[n];if(u&&m){a[u]=m,Yg[n]=[u,m];break}}return a}),{})),Gw}}class fle{constructor(e,o,a){a===void 0&&(a=[]),this.coercers=e,this.stackParser=o,this.modifiers=a}buildFromUnknown(e,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(e),r=this.buildParsingContext(o),i=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(i,a),$exception_level:"error"}}modifyFrames(e){var o=this;return er((function*(){for(var a of e)a.stacktrace&&a.stacktrace.frames&&Bt(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return e}))()}coerceFallback(e){var o;return{type:"Error",value:"Unknown error",stack:(o=e.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(e,o){var a,n;return e.cause!=null&&(a=this.parseStacktrace(e.cause,o)),e.stack!=""&&e.stack!=null&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Me({},e,{cause:a,stack:n})}applyChunkIds(e,o){return e.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(e,o){for(var a of this.coercers)if(a.match(e))return a.coerce(e,o);return this.coerceFallback(o)}applyModifiers(e){var o=this;return er((function*(){var a=e;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(e,o){var a,n,r,i={type:e.type,value:e.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(r=e.synthetic)!==null&&r!==void 0&&r}};e.stack&&(i.stacktrace={type:"raw",frames:e.stack});var c=[i];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,Me({},o,{handled:!0}))),c}buildParsingContext(e){var o;return{chunkIdMap:gle(this.stackParser),skipFirstLines:(o=e.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(e,o,a){a===void 0&&(a=0);var n=(r,i)=>{if(4>=i){var c=this.buildCoercingContext(e,o,i);return this.applyCoercers(r,c)}};return Me({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:e,apply:r=>n(r,a),next:r=>n(r,a+1)})}}var qd="?";function YT(t,e,o,a,n){var r={platform:t,filename:e,function:o==="<anonymous>"?qd:o,in_app:!0};return $e(a)||(r.lineno=a),$e(n)||(r.colno=n),r}var I3=(t,e)=>{var o=t.indexOf("safari-extension")!==-1,a=t.indexOf("safari-web-extension")!==-1;return o||a?[t.indexOf("@")!==-1?t.split("@")[0]:qd,o?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},vle=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ble=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yle=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sle=(t,e)=>{var o=vle.exec(t);if(o){var[,a,n,r]=o;return YT(e,a,qd,+n,+r)}var i=ble.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=yle.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=I3(i[1]||qd,i[2]);return YT(e,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},wle=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Tle=(t,e)=>{var o=wle.exec(t);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=xle.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],r=o[1]||qd;return[r,n]=I3(r,n),YT(e,n,r,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},i2=/\(error: (.*)\)/;let kle=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,o){var a=Po(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:a?e.stack:void 0,cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var o=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?o+": "+e.message:o}isDOMException(e){return lv(e,"DOMException")}isDOMError(e){return lv(e,"DOMError")}};class Ele{match(e){return(o=>o instanceof Error)(e)}coerce(e,o){return{type:this.getType(e),value:this.getMessage(e,o),stack:this.getStack(e),cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,o){var a=e.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(e){return e.stacktrace||e.stack||void 0}}let Cle=class{constructor(){}match(e){return lv(e,"ErrorEvent")&&e.error!=null}coerce(e,o){var a;return o.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var Ple=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let _le=class{match(e){return typeof e=="string"}coerce(e,o){var a,[n,r]=this.getInfos(e);return{type:n??"Error",value:r??e,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(e){var o="Error",a=e,n=e.match(Ple);return n&&(o=n[1],a=n[2]),[o,a]}};var Ale=["fatal","error","warning","log","info","debug"];function L3(t,e){e===void 0&&(e=40);var o=Object.keys(t);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(e>=n.length)return a===o.length?n:n.length>e?n.slice(0,e)+"...":n}return""}let Rle=class{match(e){return typeof e=="object"&&e!==null}coerce(e,o){var a,n=this.getErrorPropertyFromObject(e);return n?o.apply(n):{type:this.getType(e),value:this.getValue(e),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return _E(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var o="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(o+=" with message: '"+e.message+"'"),o}if("message"in e&&typeof e.message=="string")return e.message;var a=this.getObjectClassName(e);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+L3(e)}isSeverityLevel(e){return Po(e)&&!Tf(e)&&Ale.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var o in e)if({}.hasOwnProperty.call(e,o)){var a=e[o];if(mle(a))return a}}getObjectClassName(e){try{var o=Object.getPrototypeOf(e);return o?o.constructor.name:void 0}catch{return}}},Dle=class{match(e){return _E(e)}coerce(e,o){var a,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+L3(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Ole=class{match(e){return f3(e)}coerce(e,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Nle=class{match(e){return lv(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!_E(e))return!1;try{var o=e.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(e,o){var a,n=this.getUnhandledRejectionReason(e);return f3(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(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}};var dv="$message",uv="$timestamp",Mle=new Set([dv,uv]),Kw={enabled:!0,max_bytes:32768};function pv(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:Kw.enabled,max_bytes:Lle(t.max_bytes,Kw.max_bytes)}:Me({},Kw)}let Ile=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=pv(e)}setConfig(e){this.Bt=pv(e),this.er()}add(e){var o=(function(n){var r=(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(r)try{var i=JSON.parse(r);if(!Fo(i))return;var c=i,d=c[dv],u=c[uv];return!Po(d)||d.trim().length===0||!Po(u)&&!sr(u)?void 0:{step:c,json:r}}catch{return}})(e);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var r=encodeURIComponent(n),i=0,c=0;r.length>c;c++)r[c]==="%"?(i+=1,c+=2):i+=1;return i})(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((e=>e.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 e=this.Kt.shift();e&&(this.Qt-=e.bytes)}}};function Lle(t,e){if(!sr(t)||t===1/0||t===-1/0)return e;var o=Math.floor(t);return 0>o?e:o}var B3=function(t,e){var{debugEnabled:o}=e===void 0?{}:e,a={C(n){if(ge&&(Qa.DEBUG||ot.POSTHOG_DEBUG||o)&&!$e(ge.console)&&ge.console){for(var r=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],i=arguments.length,c=new Array(i>1?i-1:0),d=1;i>d;d++)c[d-1]=arguments[d];r(t,...c)}},info(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("error",...r)},critical(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];console.error(t,...r)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>B3(t+" "+n,r)};return a},Ue=B3("[PostHog.js]"),To=Ue.createLogger,Ble=To("[ExternalScriptsLoader]"),Yw=(t,e,o)=>{if(t.config.disable_external_dependency_loading)return Ble.warn(e+" 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,r=function(){if(a[i].src===e){var d=a[i];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,o(void 0,u)})),d.onerror=u=>o(u),{v:void 0})}},i=0;a.length>i;i++)if(n=r())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=e,d.onload=h=>{d.__posthog_loading_callback_fired=!0,o(void 0,h)},d.onerror=h=>o(h),t.config.prepare_external_dependency_script&&(d=t.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var u,m=ze.querySelectorAll("body > script");m.length>0?(u=m[0].parentNode)==null||u.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};ot.__PosthogExtensions__=ot.__PosthogExtensions__||{},ot.__PosthogExtensions__.loadExternalDependency=(t,e,o)=>{if(e!=="remote-config"){var a;if(t.config.__preview_external_dependency_versioned_paths)a=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var n="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}a=t.requestRouter.endpointFor("assets",n)}Yw(t,a,o)}else{var i=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");Yw(t,i,o)}},ot.__PosthogExtensions__.loadSiteApp=(t,e,o)=>{var a=t.requestRouter.endpointFor("api",e);Yw(t,a,o)};var F3="$people_distinct_id",mv="$device_id",vp="__alias",bp="__timers",ZT="$autocapture_disabled_server_side",QT="$heatmaps_enabled_server_side",JT="$exception_capture_enabled_server_side",XT="$error_tracking_suppression_rules",e0="$error_tracking_capture_extension_exceptions",t0="$web_vitals_enabled_server_side",NE="$dead_clicks_enabled_server_side",o0="$product_tours_enabled_server_side",a0="$web_vitals_allowed_metrics",yp="$session_recording_remote_config",j3="$replay_override_sampling",z3="$replay_override_linked_flag",q3="$replay_override_url_trigger",U3="$replay_override_event_trigger",hv="$sesid",ME="$session_is_sampled",gd="$enabled_feature_flags",kf="$active_feature_flags",Sp="$early_access_features",n0="$feature_flag_details",r0="$feature_flag_payloads",s0="$feature_flag_request_id",As="$override_feature_flags",id="$override_feature_flag_payloads",wp="$stored_person_properties",_l="$stored_group_properties",i0="$surveys",l0="$surveys_activated",Ef="ph_product_tours",Cp="$flag_call_reported",c0="$flag_call_reported_session_id",d0="$feature_flag_errors",gv="$feature_flag_evaluated_at",br="$user_state",u0="$client_session_props",p0="$capture_rate_limit",m0="$initial_campaign_params",h0="$initial_referrer_info",fv="$initial_person_info",vv="$epp",$3="__POSTHOG_TOOLBAR__",Zg="$posthog_cookieless",V3="$sdk_debug_extensions_init_method",H3="$sdk_debug_extensions_init_time_ms",G3="$sdk_debug_recording_script_not_loaded",IE="PostHog loadExternalDependency extension not found.",Al="on_reject",Ds="always",Yc="anonymous",Zc="identified",g0="identified_only",bv="visibilitychange",yv="beforeunload",ld="$pageview",Zw="$pageleave",Qw="$identify",l2="$groupidentify";function Qg(t,e){Bt(t)&&t.forEach(e)}function bo(t,e){if(!Pt(t))if(Bt(t))t.forEach(e);else if(Xie(t))t.forEach(((a,n)=>e(a,n)));else for(var o in t)g3.call(t,o)&&e(t[o],o)}var Mo=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),a=1;e>a;a++)o[a-1]=arguments[a];for(var n of o)for(var r in n)n[r]!==void 0&&(t[r]=n[r]);return t};function Cf(t){for(var e=Object.keys(t),o=e.length,a=new Array(o);o--;)a[o]=[e[o],t[e[o]]];return a}var c2=function(t){try{return t()}catch{return}},Fle=function(t){return function(){try{for(var e=arguments.length,o=new Array(e),a=0;e>a;a++)o[a]=arguments[a];return t.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)}}},LE=function(t){var e={};return bo(t,(function(o,a){(Po(o)&&o.length>0||sr(o))&&(e[a]=o)})),e},jle=["herokuapp.com","vercel.app","netlify.app"];function zle(t){var e=t?.hostname;if(!Po(e))return!1;var o=e.split(".").slice(-2).join(".");for(var a of jle)if(o===a)return!1;return!0}function Jo(t,e,o,a){var{capture:n=!1,passive:r=!0}=a??{};t?.addEventListener(e,o,{capture:n,passive:r})}function W3(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return sr(t)&&isFinite(t)&&Math.floor(t)===t});class Sv{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,o,a,n){if(!Number.isInteger(e)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>e||0>o||0>a||0>n||e>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=e/Math.pow(2,40),r[1]=e/Math.pow(2,32),r[2]=e/Math.pow(2,24),r[3]=e/Math.pow(2,16),r[4]=e/Math.pow(2,8),r[5]=e,r[6]=112|o>>>8,r[7]=o,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new Sv(r)}toString(){for(var e="",o=0;this.bytes.length>o;o++)e=e+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Sv(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var o=0;16>o;o++){var a=this.bytes[o]-e.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class qle{constructor(){this.I=0,this.S=0,this.k=new Ule}generate(){var e=this.generateOrAbort();if($e(e)){this.I=0;var o=this.generateOrAbort();if($e(o))throw new Error("Could not generate UUID after timestamp reset");return o}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Sv.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 d2,K3=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(K3=t=>crypto.getRandomValues(t));class Ule{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(K3(this.T),this.N=0),this.T[this.N++]}}var Ri=()=>$le().toString(),$le=()=>(d2||(d2=new qle)).generate(),Xu="",Vle=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Kr={R:()=>!!ze,B(t){Ue.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",o=ze.cookie.split(";").filter((r=>r.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},Z(t){var e;try{e=JSON.parse(Kr.O(t))||{}}catch{}return e},M(t,e,o,a,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(b,S){if(S===void 0&&(S=ze),Xu)return Xu;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var T=b.split("."),x=Math.min(T.length,8),k="dmn_chk_"+Ri();!Xu&&x--;){var C=T.slice(x).join("."),E=k+"=1;domain=."+C+";path=/";S.cookie=E+";max-age=3",S.cookie.includes(k)&&(S.cookie=E+";max-age=0",Xu=C)}return Xu})(m);if(!f){var v=(b=>{var S=b.match(Vle);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),r="; expires="+d.toUTCString()}n&&(i="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+r+"; SameSite=Lax; path=/"+c+i;return u.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(t,e){if(ze!=null&&ze.cookie)try{Kr.M(t,"",-1,e)}catch{return}}},Jw=null,Co={R(){if(!zs(Jw))return Jw;var t=!0;if($e(ge))t=!1;else try{var e="__mplssupport__";Co.M(e,"xyz"),Co.O(e)!=='"xyz"'&&(t=!1),Co.F(e)}catch{t=!1}return t||Ue.error("localStorage unsupported; falling back to cookie store"),Jw=t,t},B(t){Ue.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){Co.B(e)}return null},Z(t){try{return JSON.parse(Co.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(o){Co.B(o)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){Co.B(e)}}},Hle=[mv,"distinct_id",hv,ME,vv,fv,br],Jg={},Gle={R:()=>!0,B(t){Ue.error("memoryStorage error: "+t)},O:t=>Jg[t]||null,Z:t=>Jg[t]||null,M(t,e){Jg[t]=e},F(t){delete Jg[t]}},Tl=null,Ea={R(){if(!zs(Tl))return Tl;if(Tl=!0,$e(ge))Tl=!1;else try{var t="__support__";Ea.M(t,"xyz"),Ea.O(t)!=='"xyz"'&&(Tl=!1),Ea.F(t)}catch{Tl=!1}return Tl},B(t){Ue.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){Ea.B(e)}return null},Z(t){try{return JSON.parse(Ea.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(o){Ea.B(o)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){Ea.B(e)}}};class Wle{constructor(e){this._instance=e}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ds||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Al}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(e){this.nr.M(this.sr,e?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:e,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.O(this.sr);return Hw(e)?1:Et(ole,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,o=e==="localStorage"?Co:Kr;if(!this.ar||this.ar!==o){this.ar=o;var a=e==="localStorage"?Kr:Co;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(Hw(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[Mn?.doNotTrack,Mn?.msDoNotTrack,ot.doNotTrack].some((e=>Hw(e)))}}var Xg=To("[Dead Clicks]"),Kle=()=>!0,Yle=t=>{var e,o=!((e=t.instance.persistence)==null||!e.get_property(NE)),a=t.instance.config.capture_dead_clicks;return Yr(a)?a:!!Fo(a)||o};class u2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,o,a){this.instance=e,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[NE]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&e(),(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Xg.error("failed to load script",n):e()}))}hr(){var e;if(ze){if(!this.lr&&(e=ot.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var o=Fo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=ot.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(ze),Xg.info("starting...")}}else Xg.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Xg.info("stopping..."))}}var Xw=To("[SegmentIntegration]"),Y3="posthog-js";function Z3(t,e){var{organization:o,projectId:a,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:i=!0}=e===void 0?{}:e;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!t.__loaded)return c;c.tags||(c.tags={});var v=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=v,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var b,S=((d=c.exception)==null?void 0:d.values)||[],T=S.map((k=>Me({},k,{stacktrace:k.stacktrace?Me({},k.stacktrace,{type:"raw",frames:(k.stacktrace.frames||[]).map((C=>Me({},C,{platform:"web:javascript"})))}):void 0}))),x={$exception_message:((u=S[0])==null?void 0:u.value)||c.message,$exception_type:(m=S[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:T,$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&&(x.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),i&&((b=t.exceptions)==null||b.sendExceptionEvent(x)),c}}class Zle{constructor(e,o,a,n,r,i){this.name=Y3,this.setupOnce=function(c){c(Z3(e,{organization:o,projectId:a,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class p2{constructor(e){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=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,o){var a,n=this.gr(e,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var o;return this.gr(e,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:c,maxScrollY:d,maxContentHeight:u,lastContentY:m,maxContentY:h}=r;if(!($e(i)||$e(c)||$e(d)||$e(u)||$e(m)||$e(h))){i=Math.ceil(i),c=Math.ceil(c),d=Math.ceil(d),u=Math.ceil(u),m=Math.ceil(m),h=Math.ceil(h);var f=i>1?Zr(c/i,0,1,Ue):1,v=i>1?Zr(d/i,0,1,Ue):1,b=u>1?Zr(m/u,0,1,Ue):1,S=u>1?Zr(h/u,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=(e.getTime()-a.timestamp.getTime())/1e3),n}}var Qle={[F3]:{exposure:"hidden"},[vp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[bp]:{exposure:"hidden"},[ZT]:{exposure:"event"},[QT]:{exposure:"hidden"},[JT]:{exposure:"event"},[XT]:{exposure:"hidden"},[e0]:{exposure:"event"},[t0]:{exposure:"event"},[NE]:{exposure:"event"},[o0]:{exposure:"hidden"},[a0]:{exposure:"event"},[yp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[hv]:{exposure:"hidden"},[ME]:{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"},[gd]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!Fo(t))return{};for(var e={},o=Object.keys(t),a=0;o.length>a;a++)e["$feature/"+o[a]]=t[o[a]];return e}},[kf]:{exposure:"event"},[Sp]:{exposure:"hidden"},[n0]:{exposure:"hidden"},[r0]:{exposure:"event"},[s0]:{exposure:"event"},[As]:{exposure:"event"},[id]:{exposure:"hidden"},[wp]:{exposure:"hidden"},[_l]:{exposure:"hidden"},[i0]:{exposure:"hidden"},[l0]:{exposure:"event"},[Ef]:{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"},[Cp]:{exposure:"hidden"},[c0]:{exposure:"hidden"},[d0]:{exposure:"hidden"},[gv]:{exposure:"hidden"},[br]:{exposure:"hidden"},[u0]:{exposure:"hidden"},[p0]:{exposure:"hidden"},[m0]:{exposure:"hidden"},[h0]:{exposure:"hidden"},[fv]:{exposure:"hidden"},[vv]:{exposure:"hidden"},[j3]:{exposure:"event"},[z3]:{exposure:"event"},[q3]:{exposure:"event"},[U3]:{exposure:"event"},[V3]:{exposure:"event"},[H3]:{exposure:"event"},[G3]:{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"}},Jle=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],wv=t=>{var e=ze?.createElement("a");return $e(e)?null:(e.href=t,e)},xv=function(t,e){for(var o,a=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var r=a[n].split("=");if(r[0]===e){o=r;break}}if(!Bt(o)||2>o.length)return"";var i=o[1];try{i=decodeURIComponent(i)}catch{Ue.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Yp=function(t,e,o){if(!t||!e||!e.length)return t;for(var a=t.split("#"),n=a[1],r=(a[0]||"").split("?"),i=r[1],c=r[0],d=(i||"").split("&"),u=[],m=0;d.length>m;m++){var h=d[m].split("=");Bt(h)&&(e.includes(h[0])?u.push(h[0]+"="+o):u.push(d[m]))}var f=c;return i!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Tv=function(t,e){var o=t.match(new RegExp(e+"=([^&]*)"));return o?o[1]:null},ef="https?://(.*)",Ud=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Xle=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ud],Zp="<masked>",ece=["li_fat_id"];function Q3(t,e,o){if(!ze)return{};var a,n=e?[...Ud,...o||[]]:[],r=J3(Yp(ze.URL,n,Zp),t),i=(a={},bo(ece,(function(c){var d=Kr.O(c);a[c]=d||null})),a);return Mo(i,r)}function J3(t,e){var o=Xle.concat(e||[]),a={};return bo(o,(function(n){var r=xv(t,n);a[n]=r||null})),a}function X3(t){var e=(function(r){return r?r.search(ef+"google.([^/?]*)")===0?"google":r.search(ef+"bing.com")===0?"bing":r.search(ef+"yahoo.com")===0?"yahoo":r.search(ef+"duckduckgo.com")===0?"duckduckgo":null:null})(t),o=e!="yahoo"?"q":"p",a={};if(!zs(e)){a.$search_engine=e;var n=ze?xv(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function m2(){return navigator.language||navigator.userLanguage}var kv="$direct";function e4(){return ze?.referrer||kv}function t4(t,e){var o=t?[...Ud,...e||[]]:[],a=ka?.href.substring(0,1e3);return{r:e4().substring(0,1e3),u:a?Yp(a,o,Zp):void 0}}function o4(t){var e,{r:o,u:a}=t,n={$referrer:o,$referring_domain:o==null?void 0:o==kv?kv:(e=wv(o))==null?void 0:e.host};if(a){n.$current_url=a;var r=wv(a);n.$host=r?.host,n.$pathname=r?.pathname;var i=J3(a);Mo(n,i)}if(o){var c=X3(o);Mo(n,c)}return n}function a4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function tce(){try{return new Date().getTimezoneOffset()}catch{return}}var oce=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class ex{constructor(e,o){this.Bt=e,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"})(e),this.nr=this.br(e),this.load(),e.debug&&Ue.info("Persistence loaded",e.persistence,Me({},this.props)),this.update_config(e,e,o),this.save()}isDisabled(){return!!this._r}br(e){oce.indexOf(e.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var r=[...Hle,...n];return Me({},Co,{Z(i){try{var c={};try{c=Kr.Z(i)||{}}catch{}var d=Mo(c,JSON.parse(Co.O(i)||"{}"));return Co.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{Co.M(i,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Kr.M(i,f,d,u,m,h)}catch(v){Co.B(v)}},F(i,c){try{ge?.localStorage.removeItem(i),Kr.F(i,c)}catch(d){Co.B(d)}}})})(e.cookie_persisted_properties||[]),a=e.persistence.toLowerCase();return a==="localstorage"&&Co.R()?Co:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ea.R()?Ea:a==="memory"?Gle:a==="cookie"?Kr:o.R()?o:Kr}wr(e){var o=e??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[gv];return!a||typeof a!="number"||Date.now()-a>o}properties(){var e={};return bo(this.props,((o,a)=>{var n=(r=>{var i=Qle[r];if(i)return i;for(var[c,d]of Jle)if(r.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===gd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Mo(e,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(e[a]=o)})),e}load(){if(!this._r){var e=this.nr.Z(this.yr);e&&(this.props=Mo({},e))}}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(e,o,a){if(Fo(e)){$e(o)&&(o="None"),this.Ir=$e(a)?this.kr:a;var n=!1;if(bo(e,((r,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==o||(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}register(e,o){if(Fo(e)){this.Ir=$e(o)?this.kr:o;var a=!1;if(bo(e,((n,r)=>{e.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),a=!0)})),a)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Ar(e),this.save())}update_campaign_params(){if(!this.mr){var e=Q3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);hd(LE(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=ze?.referrer)?X3(e):{})}update_referrer_info(){var e;this.register_once({$referrer:e4(),$referring_domain:ze!=null&&ze.referrer&&((e=wv(ze.referrer))==null?void 0:e.host)||kv},void 0)}set_initial_person_info(){this.props[m0]||this.props[h0]||this.register_once({[fv]:t4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};bo([h0,m0],(i=>{var c=this.props[i];c&&bo(c,(function(d,u){e["$initial_"+HT(u)]=d}))}));var o,a,n=this.props[fv];if(n){var r=(o=o4(n),a={},bo(o,(function(i,c){a["$initial_"+HT(c)]=i})),a);Mo(e,r)}return e}safe_merge(e){return bo(this.props,(function(o,a){a in e||(e[a]=o)})),e}update_config(e,o,a){if(this.kr=this.Ir=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!a),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==o.persistence||!((i,c)=>{if(i.length!==c.length)return!1;var d=[...i].sort(),u=[...c].sort();return d.every(((m,h)=>m===u[h]))})(e.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(e),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_secure(e){e!==this.Sr&&(this.Sr=e,this.remove(),this.save())}set_event_timer(e,o){var a=this.props[bp]||{};a[e]=o,this.Tr(bp,a),this.save()}remove_event_timer(e){var o=this.props[bp]||{},a=o[e];return $e(a)||(delete o[e],this.Tr(bp,o),this.save()),a}get_property(e){return this.props[e]}set_property(e,o){this.Tr(e,o),this.save()}Tr(e,o){this.props[e]=o}Ar(e){delete this.props[e]}}var ep={Activation:"events",Cancellation:"cancelEvents"},tx={Popover:"popover",API:"api",Widget:"widget"},xp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ox={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},f0={Popover:"popover",Inline:"inline"},ace={SHOWN:"product tour shown"},h2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},g2=To("[RateLimiter]");class nce{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{g2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void g2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var o,a,n;e===void 0&&(e=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:i}=this,c=new Date().getTime(),d=(o=(a=this.instance.persistence)==null?void 0:a.get_property(p0))!==null&&o!==void 0?o:{tokens:r,last:c};d.tokens+=(c-d.last)/1e3*i,d.last=c,d.tokens>r&&(d.tokens=r);var u=1>d.tokens;return u||e||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+i+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(n=this.instance.persistence)==null||n.set_property(p0,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(e){var o=this.serverLimits[e||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var tp=To("[RemoteConfig]");class n4{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=ot._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Er(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Rr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){e(o.json)}})}load(){try{if(this.remoteConfig)return tp.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void tp.warn("Remote config is disabled. Falling back to local config.");this.Er((e=>{if(!e)return tp.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(e),this.Mr()}))}catch(e){tp.error("Error loading remote config",e)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var e;if(!this.Or){var o=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(e){var o;e||tp.error("Failed to fetch remote config from PostHog."),this._instance.Nr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var $r={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,$d=Uint32Array,BE=new rr([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]),FE=new rr([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]),f2=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r4=function(t,e){for(var o=new fn(31),a=0;31>a;++a)o[a]=e+=1<<t[a-1];var n=new $d(o[30]);for(a=1;30>a;++a)for(var r=o[a];o[a+1]>r;++r)n[r]=r-o[a]<<5|a;return[o,n]},s4=r4(BE,2),v0=s4[1];s4[0][28]=258,v0[258]=28;for(var v2=r4(FE,0)[1],i4=new fn(32768),yo=0;32768>yo;++yo){var Qc=(43690&yo)>>>1|(21845&yo)<<1;i4[yo]=((65280&(Qc=(61680&(Qc=(52428&Qc)>>>2|(13107&Qc)<<2))>>>4|(3855&Qc)<<4))>>>8|(255&Qc)<<8)>>>1}var Pp=function(t,e,o){for(var a=t.length,n=0,r=new fn(e);a>n;++n)++r[t[n]-1];var i,c=new fn(e);for(n=0;e>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(i=new fn(a),n=0;a>n;++n)i[n]=i4[c[t[n]-1]++]>>>15-t[n];return i},ql=new rr(288);for(yo=0;144>yo;++yo)ql[yo]=8;for(yo=144;256>yo;++yo)ql[yo]=9;for(yo=256;280>yo;++yo)ql[yo]=7;for(yo=280;288>yo;++yo)ql[yo]=8;var Ev=new rr(32);for(yo=0;32>yo;++yo)Ev[yo]=5;var rce=Pp(ql,9),sce=Pp(Ev,5),l4=function(t){return(t/8>>0)+(7&t&&1)},c4=function(t,e,o){(o==null||o>t.length)&&(o=t.length);var a=new(t instanceof fn?fn:t instanceof $d?$d:rr)(o-e);return a.set(t.subarray(e,o)),a},Ps=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8},op=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8,t[a+2]|=o>>>16},ax=function(t,e){for(var o=[],a=0;t.length>a;++a)t[a]&&o.push({s:a,f:t[a]});var n=o.length,r=o.slice();if(!n)return[new rr(0),0];if(n==1){var i=new rr(o[0].s+1);return i[o[0].s]=1,[i,1]}o.sort((function(_,D){return _.f-D.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],u=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[u].f?u++:h++],d=o[u!=m&&o[h].f>o[u].f?u++:h++],o[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(a=1;n>a;++a)r[a].s>f&&(f=r[a].s);var v=new fn(f+1),b=b0(o[m-1],v,0);if(b>e){a=0;var S=0,T=b-e,x=1<<T;for(r.sort((function(_,D){return v[D.s]-v[_.s]||_.f-D.f}));n>a;++a){var k=r[a].s;if(e>=v[k])break;S+=x-(1<<b-v[k]),v[k]=e}for(S>>>=T;S>0;){var C=r[a].s;e>v[C]?S-=1<<e-v[C]++-1:++a}for(;a>=0&&S;--a){var E=r[a].s;v[E]==e&&(--v[E],++S)}b=e}return[new rr(v),b]},b0=function(t,e,o){return t.s==-1?Math.max(b0(t.l,e,o+1),b0(t.r,e,o+1)):e[t.s]=o},b2=function(t){for(var e=t.length;e&&!t[--e];);for(var o=new fn(++e),a=0,n=t[0],r=1,i=function(d){o[a++]=d},c=1;e>=c;++c)if(t[c]==n&&c!=e)++r;else{if(!n&&r>2){for(;r>138;r-=138)i(32754);r>2&&(i(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(i(n),--r;r>6;r-=6)i(8304);r>2&&(i(r-3<<5|8208),r=0)}for(;r--;)i(n);r=1,n=t[c]}return[o.subarray(0,a),e]},ap=function(t,e){for(var o=0,a=0;e.length>a;++a)o+=t[a]*e[a];return o},y0=function(t,e,o){var a=o.length,n=l4(e+2);t[n]=255&a,t[n+1]=a>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;a>r;++r)t[n+r+4]=o[r];return 8*(n+4+a)},y2=function(t,e,o,a,n,r,i,c,d,u,m){Ps(e,m++,o),++n[256];for(var h=ax(n,15),f=h[0],v=h[1],b=ax(r,15),S=b[0],T=b[1],x=b2(f),k=x[0],C=x[1],E=b2(S),_=E[0],D=E[1],R=new fn(19),O=0;k.length>O;++O)R[31&k[O]]++;for(O=0;_.length>O;++O)R[31&_[O]]++;for(var L=ax(R,7),U=L[0],B=L[1],z=19;z>4&&!U[f2[z-1]];--z);var F,W,oe,H,K=u+5<<3,J=ap(n,ql)+ap(r,Ev)+i,se=ap(n,f)+ap(r,S)+i+14+3*z+ap(R,U)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return y0(e,m,t.subarray(d,d+u));if(Ps(e,m,1+(J>se)),m+=2,J>se){F=Pp(f,v),W=f,oe=Pp(S,T),H=S;var Q=Pp(U,B);for(Ps(e,m,C-257),Ps(e,m+5,D-1),Ps(e,m+10,z-4),m+=14,O=0;z>O;++O)Ps(e,m+3*O,U[f2[O]]);m+=3*z;for(var M=[k,_],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)Ps(e,m,Q[I=31&V[O]]),m+=U[I],I>15&&(Ps(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=rce,W=ql,oe=sce,H=Ev;for(O=0;c>O;++O)if(a[O]>255){var I;op(e,m,F[257+(I=a[O]>>>18&31)]),m+=W[I+257],I>7&&(Ps(e,m,a[O]>>>23&31),m+=BE[I]);var j=31&a[O];op(e,m,oe[j]),m+=H[j],j>3&&(op(e,m,a[O]>>>5&8191),m+=FE[j])}else op(e,m,F[a[O]]),m+=W[a[O]];return op(e,m,F[256]),m+W[256]},ice=new $d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),lce=(function(){for(var t=new $d(256),e=0;256>e;++e){for(var o=e,a=9;--a;)o=(1&o&&3988292384)^o>>>1;t[e]=o}return t})(),nx=function(t,e,o){for(;o;++e)t[e]=o,o>>>=8};function cce(t,e){e===void 0&&(e={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=lce[255&v^f[b]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=t.length;o.p(t);var n,r,i,c,d,u=(c=10+((n=e).filename&&n.filename.length+1||0),d=8,(function(h,f,v,b,S,T){var x=h.length,k=new rr(b+x+5*(1+Math.floor(x/7e3))+S),C=k.subarray(b,k.length-S),E=0;if(!f||8>x)for(var _=0;x>=_;_+=65535){var D=_+65535;x>D?E=y0(C,E,h.subarray(_,D)):(C[_]=!0,E=y0(C,E,h.subarray(_,x)))}else{for(var R=ice[f-1],O=R>>>13,L=8191&R,U=(1<<v)-1,B=new fn(32768),z=new fn(U+1),F=Math.ceil(v/3),W=2*F,oe=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&U},H=new $d(25e3),K=new fn(288),J=new fn(32),se=0,Q=0,M=(_=0,0),G=0,V=0;x>_;++_){var I=oe(_),j=32767&_,X=z[I];if(B[j]=X,z[I]=j,_>=G){var de=x-_;if((se>7e3||M>24576)&&de>423){E=y2(h,C,0,H,K,J,Q,M,V,_-V,E),M=se=Q=0,V=_;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ee=2,qe=0,Z=L,ne=j-X&32767;if(de>2&&I==oe(_-ne))for(var ve=Math.min(O,de)-1,ie=Math.min(32767,_),Te=Math.min(258,de);ie>=ne&&--Z&&j!=X;){if(h[_+Ee]==h[_+Ee-ne]){for(var Pe=0;Te>Pe&&h[_+Pe]==h[_+Pe-ne];++Pe);if(Pe>Ee){if(Ee=Pe,qe=ne,Pe>ve)break;var it=Math.min(ne,Pe-2),ct=0;for(ue=0;it>ue;++ue){var Ge=_-ne+ue+32768&32767,at=Ge-B[Ge]+32768&32767;at>ct&&(ct=at,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(qe){H[M++]=268435456|v0[Ee]<<18|v2[qe];var Ne=31&v0[Ee],Oe=31&v2[qe];Q+=BE[Ne]+FE[Oe],++K[257+Ne],++J[Oe],G=_+Ee,++se}else H[M++]=h[_],++K[h[_]]}}E=y2(h,C,!0,H,K,J,Q,M,V,_-V,E)}return c4(k,0,b+l4(E)+S)})(r=t,(i=e).level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+i.mem,c,d)),m=u.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&&nx(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)}})(u,e),nx(u,m-8,o.d()),nx(u,m-4,a),u}var dce=!!$T||!!UT,d4="text/plain",S2=!1,bb=function(t,e,o){var a;o===void 0&&(o=!0);var[n,r]=t.split("?"),i=Me({},e),c=(a=r?.split("&").map((u=>{var m,[h,f]=u.split("="),v=o&&(m=i[h])!==null&&m!==void 0?m:f;return delete i[h],h+"="+v})))!==null&&a!==void 0?a:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var v=[];return bo(u,(function(b,S){$e(b)||$e(S)||S==="undefined"||(h=encodeURIComponent((T=>T instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},fd=(t,e)=>JSON.stringify(t,((o,a)=>typeof a=="bigint"?a.toString():a),e),rx=t=>{if(t.tr)return t.tr;var{data:e,compression:o}=t;if(e){if(o===$r.GZipJS){var a=cce((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new rr(c.length+(c.length>>>1)),h=0,f=function(T){m[h++]=T},v=0;u>v;++v){if(h+5>m.length){var b=new rr(h+8+(u-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 c4(m,0,h)})(fd(e)),{mtime:0});return{contentType:d4,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===$r.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(fd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:fd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=fd(e);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},uce=(function(){var t=er((function*(e){var o=fd(e.data),a=yield(function(r,i,c){return VT.apply(this,arguments)})(o,Qa.DEBUG,{rethrow:!0});if(!a)return e;var n=yield a.arrayBuffer();return Me({},e,{tr:{contentType:d4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),w2=(t,e)=>bb(t,{_:new Date().getTime().toString(),ver:Qa.JS_SDK_VERSION,compression:e}),Pf=[];UT&&Pf.push({transport:"fetch",method(t){var e,o,{contentType:a,body:n,estimatedSize:r}=(e=rx(t))!==null&&e!==void 0?e:{},i=new Headers;bo(t.headers,(function(m,h){i.append(h,m)})),a&&i.append("Content-Type",a);var c=t.url,d=null;if(JO){var u=new JO;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}UT(c,Me({method:t?.method||"GET",headers:i,keepalive:t.method==="POST"&&52428.8>(r||0),body:n,signal:(o=d)==null?void 0:o.signal},t.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)}t.callback==null||t.callback(f)})))).catch((m=>{Ue.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),$T&&Pf.push({transport:"XHR",method(t){var e,o=new $T;o.open(t.method||"GET",t.url,!0);var{contentType:a,body:n}=(e=rx(t))!==null&&e!==void 0?e:{};bo(t.headers,(function(r,i){o.setRequestHeader(i,r)})),a&&o.setRequestHeader("Content-Type",a),t.timeout&&(o.timeout=t.timeout),t.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var r={statusCode:o.status,text:o.responseText};if(o.status===200)try{r.json=JSON.parse(o.responseText)}catch{}t.callback==null||t.callback(r)}},o.send(n)}}),Mn!=null&&Mn.sendBeacon&&Pf.push({transport:"sendBeacon",method(t){var e=bb(t.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=rx(t))!==null&&o!==void 0?o:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:a});Mn.sendBeacon(e,r)}catch{}}});var S0=3e3;class pce{constructor(e,o){this.Pr=!0,this.Lr=[],this.Dr=Zr(o?.flush_interval_ms||S0,250,5e3,Ue.createLogger("flush interval"),S0),this.Br=e}enqueue(e){this.Lr.push(e),this.jr||this.$r()}unload(){this.qr();var e=this.Lr.length>0?this.Zr():{},o=Object.values(e);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Me({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var e=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var r=o[n],i=new Date().getTime();r.data&&Bt(r.data)&&bo(r.data,(c=>{c.offset=Math.abs(c.timestamp-i),delete c.timestamp})),e.Br(r)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var e={};return bo(this.Lr,(o=>{var a,n=o,r=(n?n.batchKey:null)||n.url;$e(e[r])&&(e[r]=Me({},n,{data:[]})),(a=e[r].data)==null||a.push(n.data)})),this.Lr=[],e}}var mce=["retriesPerformedSoFar"];class hce{constructor(e){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=e,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},Jo(ge,"online",this.Ur),Jo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:o}=e,a=m3(e,mce);sd(o)&&(a.url=bb(a.url,{retry_count:o})),this._instance._send_request(Me({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Me({retriesPerformedSoFar:o},a))}}))}Wr(e){var o=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=o+1;var a=(function(i){var c=3e3*Math.pow(2,i),d=c/2,u=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(u+m*(u-d))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:e});var r="Enqueued failed request for retry in "+a;navigator.onLine||(r+=" (Browser is offline)"),Ue.warn(r),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 e=Date.now(),o=[],a=this.Lr.filter((r=>e>r.retryAt||(o.push(r),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:e}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(Me({},e,{transport:"sendBeacon"}))}catch(o){Ue.error(o)}this.Lr=[]}}class gce{constructor(e){this.Kr=()=>{var o,a,n,r;this.Qr||(this.Qr={});var i=this.scrollElement(),c=this.scrollY(),d=i?Math.max(0,i.scrollHeight-i.clientHeight):0,u=c+(i?.clientHeight||0),m=i?.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=u,this.Qr.maxContentY=Math.max(u,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(r=this.Qr.maxContentHeight)!==null&&r!==void 0?r:0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var e=this.Qr;return setTimeout(this.Kr,0),e}startMeasuringScrollPosition(){Jo(ge,"scroll",this.Kr,{capture:!0}),Jo(ge,"scrollend",this.Kr,{capture:!0}),Jo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var e=Bt(this.ei)?this.ei:[this.ei];for(var o of e){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var fce=t=>t4(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class x2{constructor(e,o,a,n){this.ti=r=>{var i=this.ri();if(!i||i.sessionId!==r){var c={sessionId:r,props:this.ii(this._instance)};this.ni.register({[u0]:c})}},this._instance=e,this.si=o,this.ni=a,this.ii=n||fce,this.si.onSessionId(this.ti)}ri(){return this.ni.props[u0]}getSetOnceProps(){var e,o=(e=this.ri())==null?void 0:e.props;return o?"r"in o?o4(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 e={};return bo(LE(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),e["$session_entry_"+HT(a)]=o})),e}}class jE{constructor(){this.oi={}}on(e,o){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(o),()=>{this.oi[e]=this.oi[e].filter((a=>a!==o))}}emit(e,o){for(var a of this.oi[e]||[])a(o);for(var n of this.oi["*"]||[])n(e,o)}}var sx=To("[SessionId]");class T2{on(e,o){return this.ai.on(e,o)}constructor(e,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new jE,this.hi=(u,m)=>!(!sd(u)||!sd(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Ds)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||Ri,this.fi=a||Ri;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Zr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,sx.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+r+"_window_id",this.mi="ph_"+r+"_primary_window_exists",this.yi()){var i=Ea.Z(this.gi),c=Ea.Z(this.mi);i&&!c?this.ci=i:Ea.F(this.gi),Ea.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(u=>{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(u){sx.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return $e(this.li)&&(this.li=[]),this.li.push(e),this.di&&e(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==e))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Ea.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&Ea.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?Ea.Z(this.gi):null}bi(e,o,a){e===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=e,this.ni.register({[hv]:[o,e,a]}))}Si(){var e=this.ni.props[hv];return Bt(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(yv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ea.F(this.mi)},Jo(ge,yv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,o){if(e===void 0&&(e=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Ds)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,r,i]=this.Si(),c=this.Ci(),d=sd(i)&&Math.abs(a-i)>864e5,u=!1,m=!r,h=!m&&!e&&this.hi(a,n);m||h||d?(r=this.vi(),c=this.fi(),sx.info("new session ID generated",{sessionId:r,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),i=a,u=!0):c||(c=this.fi(),u=!0);var f=sd(n)&&e&&!d?n:a,v=sd(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,v),e||this.pi(),u&&this.li.forEach((b=>b(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:v,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[e]=this.Si();if(this.hi(new Date().getTime(),e)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var u4=function(t,e){if(!t)return!1;var o=t.userAgent;if(o&&t2(o,e))return!0;try{var a=t?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>t2(n?.brand,e))))return!0}catch{}return!!t.webdriver},Cv=function(t,e){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function k2(t,e,o){return fd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:o})}var p4={exact:(t,e)=>e.some((o=>t.some((a=>o===a)))),is_not:(t,e)=>e.every((o=>t.every((a=>o!==a)))),regex:(t,e)=>e.some((o=>t.some((a=>Cv(o,a))))),not_regex:(t,e)=>e.every((o=>t.every((a=>!Cv(o,a))))),icontains:(t,e)=>e.map(tf).some((o=>t.map(tf).some((a=>o.includes(a))))),not_icontains:(t,e)=>e.map(tf).every((o=>t.map(tf).every((a=>!o.includes(a))))),gt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a>parseFloat(n)))})),lt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a<parseFloat(n)))}))},tf=t=>t.toLowerCase();function m4(t,e){return!t||Object.entries(t).every((o=>{var[a,n]=o,r=e?.[a];if($e(r)||zs(r))return!1;var i=[String(r)],c=p4[n.operator];return!!c&&c(n.values,i)}))}var w0="custom",E2="i.posthog.com",vce=/^\/static\//;class bce{constructor(e){this.ki={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,o=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+E2,".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":w0),this.ki[this.apiHost]}Ti(e){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&vce.test(e))return o.trim().replace(/\/$/,"")||void 0}endpointFor(e,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),e==="ui")return this.uiHost+o;if(e==="flags")return this.flagsApiHost+o;if(e==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===w0)return this.apiHost+o;var n=E2+o;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var no=To("[Surveys]"),x0="seenSurvey_",yce=[tx.Popover,tx.Widget,tx.API],Sce={ignoreConditions:!1,ignoreDelay:!1,displayType:f0.Popover},wce=To("[PostHog ExternalIntegrations]"),xce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Tce{constructor(e){this._instance=e}ur(e,o){var a;(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,e,(n=>{if(n)return wce.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var e=this,o=function(i){var c,d,u;!n||(c=ot.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||e.ur(xce[i],(()=>{var m;(m=ot.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[i])==null||m.start(e._instance)})),!n&&(d=ot.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[i]&&((u=ot.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[i])==null||u.stop())};for(var[a,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;o(a)}}}var Jc,_p={},ix=0,T0=()=>{},C2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',np="Surveys module not available",P2="sanitize_properties is deprecated. Use before_send instead",h4="Invalid value for property_denylist config: ",cd="posthog",g4=!dce&&mn?.indexOf("MSIE")===-1&&mn?.indexOf("Mozilla")===-1,_2=t=>{var e;return Me({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:zle(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:T0,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:ka&&Po(ka?.search)&&ka.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||(e=ge.location)==null?void 0:e.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:g0,before_send:void 0,request_queue_config:{flush_interval_ms:S0},error_tracking:{},_onCapture:T0,__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}))(t))},kce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],A2=t=>{var e={};for(var[o,a]of kce)$e(t[o])||(e[a]=t[o]);var n=Mo({},e,t);return Bt(t.property_blacklist)&&($e(t.property_denylist)?n.property_denylist=t.property_blacklist:Bt(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:Ue.error(h4+t.property_denylist)),n};class Ece{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,o){if(e){var a=this.Ri.indexOf(e);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Ds||this.config.cookieless_mode===Al&&this.consent.isRejected()}get decideEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new Ece,this.Mi=!1,this.version=Qa.LIB_VERSION,this.Fi=new jE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=_2(),this.SentryIntegration=Zle,this.sentryIntegration=a=>(function(n,r){var i=Z3(n,r);return{name:Y3,processEvent:c=>i(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 gce(this),this.pageViewManager=new p2(this),this.rateLimiter=new nce(this),this.requestRouter=new bce(this),this.consent=new Wle(this),this.externalIntegrations=new Tce(this);var o=(e=tr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};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,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(i),r?.({})},set_once:(a,n,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(a=>Ue.info('send "'+a?.event+'"',a)))}init(e,o,a){if(a&&a!==cd){var n,r=(n=_p[a])!==null&&n!==void 0?n:new tr;return r._init(e,o,a),_p[a]=r,_p[cd][a]=r,r}return this._init(e,o,a)}_init(e,o,a){var n,r;if(o===void 0&&(o={}),$e(e)||Tf(e))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({},_2(o.defaults),A2(o),{name:a,token:e})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:$r.GZipJS;var i=this.qi();this.persistence=new ex(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ex(Me({},this.config,{persistence:"sessionStorage"}),i);var c=Me({},this.persistence.props),d=Me({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new pce((T=>this.Vi(T)),this.config.request_queue_config),this.Hi=new hce(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new T2(this),this.sessionPropsManager=new x2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(u)),Qa.DEBUG=Qa.DEBUG||this.config.debug,Qa.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:o,thisC:Me({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Me({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=o.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(br);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Yc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Zc)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(Ri()),b=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(br,o.bootstrap.isIdentifiedID?Zc:Yc),this.register({distinct_id:m,$device_id:b})}}if(u)this.register_once({distinct_id:Zg,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(Ri());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(br,Yc)}return Jo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(T,x){var k=T.config.segment;if(!k)return x();(function(C,E){var _=C.config.segment;if(!_)return E();var D=O=>{var L=()=>O.anonymousId()||Ri();C.config.get_device_id=L,O.id()&&(C.register({distinct_id:O.id(),$device_id:L()}),C.persistence.set_property(br,Zc)),E()},R=_.user();"then"in R&&Rs(R.then)?R.then(D):D(R)})(T,(()=>{k.register((C=>{Promise&&Promise.resolve||Xw.warn("This browser does not have Promise support, and can not use the segment integration");var E=(_,D)=>{if(!D)return _;_.event.userId||_.event.anonymousId===C.get_distinct_id()||(Xw.info("No userId set, resetting PostHog"),C.reset()),_.event.userId&&_.event.userId!==C.get_distinct_id()&&(Xw.info("UserId set, identifying with PostHog"),C.identify(_.event.userId));var R=C.calculateEventProperties(D,_.event.properties);return _.event.properties=Object.assign({},R,_.event.properties),_};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:_=>E(_,_.event.event),page:_=>E(_,ld),identify:_=>E(_,Qw),screen:_=>E(_,"$screen")}})(T)).then((()=>{x()}))}))})(this,(()=>this.Ui())):this.Ui(),Rs(this.config._onCapture)&&this.config._onCapture!==T0&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(T=>this.config._onCapture(T.event,T)))),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(e){var o,a,n,r,i,c,d,u=performance.now(),m=Me({},tr.__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&&!e&&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=(r=this.logs)!==null&&r!==void 0?r:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(i=this.conversations)!==null&&i!==void 0?i: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,Yle)),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,u)}Gi(e,o){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,o)}),0);var a=e.shift();if(a)try{a()}catch(r){Ue.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-o);this.register_for_session({[V3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[H3]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var o;if(!ze||!ze.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.Wi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Et(e.supportedCompression,$r.GZipJS)?$r.GZipJS:Et(e.supportedCompression,$r.Base64)?$r.Base64:void 0),(o=e.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:g0}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(a){Ue.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&ka!=null&&ka.hostname){var e=ka.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?e===o:o.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new n4(this),this.Ki.load()}Xi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Zi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Qg(this.__request_queue,(e=>this.Vi(e))),this.__request_queue=[],this.Xi()}_handle_unload(){var e,o,a,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(Zw),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(Zw,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(g4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=bb(e.url,{ip:this.config.ip?1:0}),e.headers=Me({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(o=>{var a,n,r,i=Me({},o);i.timeout=i.timeout||6e4,i.url=w2(i.url,i.compression);var c=(a=i.transport)!==null&&a!==void 0?a:"fetch",d=Pf.filter((m=>!i.disableTransport||!m.transport||!i.disableTransport.includes(m.transport))),u=(n=(r=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:r.method)!==null&&n!==void 0?n:d[0].method;if(!u)throw new Error("No available transport method");c!=="sendBeacon"&&i.data&&i.compression===$r.GZipJS&&Zie&&!S2?uce(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return S2=!0,void u(Me({},i,{compression:void 0,url:w2(o.url,void 0)}));u(i)})):u(i)})(Me({},e,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),e.callback==null||e.callback(o)}}))))}Vi(e){this.Hi?this.Hi.retriableRequest(e):this._send_request(e)}_execute_array(e){ix++;try{var o,a=[],n=[],r=[];Qg(e,(c=>{c&&(Bt(o=c[0])?r.push(c):Rs(c)?c.call(this):Bt(c)&&o==="alias"?a.push(c):Bt(c)&&o.indexOf("capture")!==-1&&Rs(this[o])?r.push(c):n.push(c))}));var i=function(c,d){Qg(c,(function(u){if(Bt(u[0])){var m=d;bo(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};i(a,this),i(n,this),i(r,this)}finally{ix--}}push(e){if(ix>0&&Bt(e)&&Po(e[0])){var o=tr.prototype[e[0]];Rs(o)&&o.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,o,a){var n,r,i,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(e)&&Po(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||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&&!Po(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),e!=="$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=Ri(),b={uuid:v,event:e,properties:this.calculateEventProperties(e,o||{},f,v)};e===ld&&this.config.__preview_capture_bot_pageviews&&u&&(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,T,x,k=this.tn(a?.$set_once,e!==l2,e===Qw);if(k&&(b.$set_once=k),a!=null&&a._noTruncate||(r=this.config.properties_string_max_length,i=b,c=L=>Po(L)?L.slice(0,r):L,d=new Set,b=(function L(U,B){return U!==Object(U)?c?c(U):U:d.has(U)?void 0:(d.add(U),Bt(U)?(z=[],Qg(U,(F=>{z.push(L(F))}))):(z={},bo(U,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(i)),b.timestamp=f,$e(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),e===xp.DISMISSED||e===xp.SENT){var C=o?.[ox.SURVEY_ID],E=o?.[ox.SURVEY_ITERATION];(L=>{try{var U=(B=>((z,F)=>{var W=""+x0+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+x0+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(B){no.error("Failed to persist survey seen state",B)}})({id:C,current_iteration:E}),b.$set=Me({},b.$set,{[(S={id:C,current_iteration:E},T=e===xp.SENT?"responded":"dismissed",x="$survey_"+T+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(x="$survey_"+T+"/"+S.id+"/"+S.current_iteration),x)]:!0})}else e===xp.SHOWN&&(b.$set=Me({},b.$set,{[ox.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===ace.SHOWN){var _=o?.[h2.TOUR_TYPE];_&&(b.$set=Me({},b.$set,{[h2.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var D=Me({},b.properties.$set,b.$set);if(hd(D)||this.setPersonPropertiesForFlags(D),!Pt(this.config.before_send)){var R=this.rn(b);if(!R)return;b=R}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(e){return this.on("eventCaptured",(o=>e(o.event,o)))}calculateEventProperties(e,o,a,n,r){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var i=r?void 0:this.persistence.remove_event_timer(e),c=Me({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),e==="$snapshot"){var d=Me({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Po(c.distinct_id)&&!sr(c.distinct_id)||Tf(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(x,k){var C,E,_,D;if(!mn)return{};var R,O,L,U,B,z,F,W,oe=x?[...Ud,...k||[]]:[],[H,K]=(function(J){for(var se=0;n2.length>se;se++){var[Q,M]=n2[se],G=Q.exec(J),V=G&&(Rs(M)?M(G,J):M);if(V)return V}return["",""]})(mn);return Mo(LE({$os:H,$os_version:K,$browser:O3(mn,navigator.vendor),$device:r2(mn),$device_type:(O=mn,L={userAgentDataPlatform:(C=navigator)==null||(C=C.userAgentData)==null?void 0:C.platform,maxTouchPoints:(E=navigator)==null?void 0:E.maxTouchPoints,screenWidth:ge==null||(_=ge.screen)==null?void 0:_.width,screenHeight:ge==null||(D=ge.screen)==null?void 0:D.height,devicePixelRatio:ge?.devicePixelRatio},W=r2(O),W===b3||W===v3||W==="Kobo"||W==="Kindle Fire"||W===D3?jd:W===Wp||W===Ed||W===Kp||W===WT?"Console":W===S3?"Wearable":W?Ln:L?.userAgentDataPlatform==="Android"&&((U=L?.maxTouchPoints)!==null&&U!==void 0?U:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(z=L?.screenHeight)!==null&&z!==void 0?z:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Ln:jd:"Desktop"),$timezone:a4(),$timezone_offset:tce()}),{$current_url:Yp(ka?.href,oe,Zp),$host:ka?.host,$pathname:ka?.pathname,$raw_user_agent:mn.length>1e3?mn.substring(0,997)+"...":mn,$browser_version:ple(mn,navigator.vendor),$browser_language:m2(),$browser_language_prefix:(R=m2(),typeof R=="string"?R.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Qa.LIB_NAME,$lib_version:Qa.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(r,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(x){c.$sdk_debug_error_capturing_properties=String(x)}if(this.requestRouter.region===w0&&(c.$lib_custom_api_host=this.config.api_host),u=e!==ld||r?e!==Zw||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Mo(c,u),e===ld&&ze&&(c.title=ze.title),!$e(i)){var b=a.getTime()-i;c.$duration=parseFloat((b/1e3).toFixed(3))}mn&&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(),Bt(this.config.property_denylist)?bo(this.config.property_denylist,(function(x){delete c[x]})):Ue.error(h4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Ue.error(P2),c=S(c,e));var T=this.nn();return c.$process_person_profile=T,T&&!r&&this.sn("_calculate_event_properties"),c}tn(e,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return e;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Mo({},r,i||{},e||{}),d=this.config.sanitize_properties;return d&&(Ue.error(P2),c=d(c,"$set_once")),o&&(this.Mi=!0),hd(c)?void 0:c}register(e,o){var a;(a=this.persistence)==null||a.register(e,o)}register_once(e,o,a){var n;(n=this.persistence)==null||n.register_once(e,o,a)}register_for_session(e){var o;(o=this.sessionPersistence)==null||o.register(e)}unregister(e){var o;(o=this.persistence)==null||o.unregister(e)}unregister_for_session(e){var o;(o=this.sessionPersistence)==null||o.unregister(e)}an(e,o){this.register({[e]:o})}getFeatureFlag(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(e,o)}getFeatureFlagPayload(e){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(e)}getFeatureFlagResult(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(e,o)}isFeatureEnabled(e,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(e,o)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(e,o,a)}updateEarlyAccessFeatureEnrollment(e,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,o,a)}getEarlyAccessFeatures(e,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,o,a)}on(e,o){return this.Fi.on(e,o)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:np}),()=>{})}onSessionId(e){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(e))!==null&&o!==void 0?o:()=>{}}getSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(e,o):e([],{isLoaded:!1,error:np})}getActiveMatchingSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,o):e([],{isLoaded:!1,error:np})}renderSurvey(e,o){var a;(a=this.surveys)==null||a.renderSurvey(e,o)}displaySurvey(e,o){var a;o===void 0&&(o=Sce),(a=this.surveys)==null||a.displaySurvey(e,o)}cancelPendingSurvey(e){var o;(o=this.surveys)==null||o.cancelPendingSurvey(e)}canRenderSurvey(e){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(e))!==null&&o!==void 0?o:{visible:!1,disabledReason:np}}canRenderSurveyAsync(e,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(e,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:np})}ln(e){return!e||Tf(e)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):e===Zg?(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,o,a){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(sr(e)&&(e=e.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(e)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(mv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(vp)&&(this.unregister(vp),this.register({distinct_id:e}));var r,i=(this.persistence.get_property(br)||Yc)===Yc;e!==n&&i?(this.persistence.set_property(br,Zc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(Qw,{distinct_id:e,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=k2(e,o,a),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),e!==n&&(this.reloadFeatureFlags(),this.unregister(Cp))}}setPersonProperties(e,o){if((e||o)&&this.sn("posthog.setPersonProperties")){var a=k2(this.get_distinct_id(),e,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:o||{}},!0),this.capture("$set",{$set:e||{},$set_once:o||{}}),this.Di=a):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,o,a){if(e&&o){var n=this.getGroups(),r=n[e]!==o;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Me({},n,{[e]:o})}),r||a){var i={$group_type:e,$group_key:o};a&&(i.$group_set=a),this.capture(l2,i)}a&&this.setGroupPropertiesForFlags({[e]:a}),r&&!a&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(e,o)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(e,o))}resetGroupPropertiesForFlags(e){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(e)}reset(e){var o,a,n,r,i,c,d,u;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var m=this.get_property(mv);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(r=this.Ki)==null||r.stop(),(i=this.featureFlags)==null||i.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(br,Yc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ds)this.register_once({distinct_id:Zg,$device_id:null},"");else{var h=this.config.get_device_id(Ri());this.register_once({distinct_id:h,$device_id:e?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(e,o){var a;this.config.identity_distinct_id=e,this.config.identity_hash=o,this.alias(e),(a=this.conversations)==null||a.un()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,o;return(e=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){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(e!=null&&e.withTimestamp&&a){var r,i=(r=e.timestampLookBack)!==null&&r!==void 0?r:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-i,0)}return n}alias(e,o){return e===this.get_property(F3)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(o)&&(o=this.get_distinct_id()),e!==o?(this.an(vp,e),this.capture("$create_alias",{alias:e,distinct_id:o})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var o=Me({},this.config);if(Fo(e)){var a,n,r,i,c,d,u,m,h,f;Mo(this.config,A2(e));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 ex(Me({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);Yr(b)&&(this.config.debug=b),Yr(this.config.debug)&&(this.config.debug?(Qa.DEBUG=!0,Co.R()&&Co.M("ph_debug",!0),Ue.info("set_config",{config:e,oldConfig:o,newConfig:Me({},this.config)})):(Qa.DEBUG=!1,Co.R()&&Co.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(r=this.exceptions)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,o){Qa.LIB_NAME=e,Qa.LIB_VERSION=o}startSessionRecording(e){var o,a,n,r,i,c=e===!0,d={sampling:c||!(e==null||!e.sampling),linked_flag:c||!(e==null||!e.linked_flag),url_trigger:c||!(e==null||!e.url_trigger),event_trigger:c||!(e==null||!e.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&&((r=this.sessionRecording)==null||r.overrideTrigger("url")),d.event_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Me({},n,o))}}addExceptionStep(e,o){var a;(a=this.exceptions)==null||a.addExceptionStep(e,o)}captureLog(e){var o;(o=this.logs)==null||o.captureLog(e)}get logger(){var e,o;return(e=(o=this.logs)==null?void 0:o.logger)!==null&&e!==void 0?e:tr.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(e))!==null&&o!==void 0&&o}get_property(e){var o;return(o=this.persistence)==null?void 0:o.props[e]}getSessionProperty(e){var o;return(o=this.sessionPersistence)==null?void 0:o.props[e]}toString(){var e,o=(e=this.config.name)!==null&&e!==void 0?e:cd;return o!==cd&&(o=cd+"."+o),o}_isIdentified(){var e,o;return((e=this.persistence)==null?void 0:e.get_property(br))===Zc||((o=this.sessionPersistence)==null?void 0:o.get_property(br))===Zc}nn(){var e,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===g0&&!this._isIdentified()&&hd(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[vp])&&((o=this.persistence)==null||(o=o.props)==null||!o[vv]))}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(e){return this.config.person_profiles==="never"?(Ue.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(vv,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Al)}cn(){var e,o,a,n,r=this.qi();return((e=this.persistence)==null?void 0:e._r)!==r&&((a=this.persistence)==null||a.set_disabled(r)),((o=this.sessionPersistence)==null?void 0:o._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(e){var o;if(this.config.cookieless_mode!==Ds){if(this.Ni()){var a,n,r,i,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new T2(this),this.pageViewManager=new p2(this),this.persistence&&(this.sessionPropsManager=new x2(this,this.sessionManager,this.persistence));var d,u=(r=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&r!==void 0?r:(c=tr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;u&&(this.sessionRecording=this.Ei(this.sessionRecording,new u(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==Al&&((m=this.surveys)==null||m.loadIfEnabled()),($e(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((h=e?.captureEventName)!==null&&h!==void 0?h:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(C2)}opt_out_capturing(){var e,o,a;this.config.cookieless_mode!==Ds?(this.config.cookieless_mode===Al&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Al&&(this.register({distinct_id:Zg,$device_id:null}),(e=this.sessionManager)==null||e.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(C2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ds||(this.config.cookieless_mode===Al?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Mn?u4(Mn,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(ld,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(bv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Jo(ze,bv,this.Pi)))}debug(e){e===!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 e,o,a,n,r,i,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,r=(o="advanced_disable_flags")in(e=c)&&!Pt(e[o]),i=a in e&&!Pt(e[a]),r?e[o]:!!i&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),e[a]))}rn(e){if(Pt(this.config.before_send))return e;var o=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=e;for(var n of o){if(a=n(a),Pt(a)){var r="Event '"+e.event+"' was rejected in beforeSend function";return ele(e.event)?Ue.warn(r+". This can cause unexpected behavior."):Ue.info(r),null}a.properties&&!hd(a.properties)||Ue.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,o){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:o})}captureTraceMetric(e,o,a){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(e){var o=Yr(e)&&!e,a=Co.R()&&Co.O("ph_debug")==="true";return!o&&(!!a||e)}}function R2(t){return t instanceof Element&&(t.id===$3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function yb(t){return!!t&&t.nodeType===1}function ji(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function f4(t){return!!t&&t.nodeType===3}function v4(t){return!!t&&t.nodeType===11}function zE(t){return t?fb(t).split(/\s+/):[]}function D2(t){var e=ge?.location.href;return!!(e&&t&&t.some((o=>e.match(o))))}function Pv(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return zE(e)}function b4(t){return Pt(t)?null:fb(t).split(/(\s+)/).filter((e=>Ap(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qp(t){var e="";return E0(t)&&!S4(t)&&t.childNodes&&t.childNodes.length&&bo(t.childNodes,(function(o){var a;f4(o)&&o.textContent&&(e+=(a=b4(o.textContent))!==null&&a!==void 0?a:"")})),fb(e)}function O2(t){return $e(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}tr.__defaultExtensionClasses={},tr.dn={trace:Jc=()=>{},debug:Jc,info:Jc,warn:Jc,error:Jc,fatal:Jc},(function(t,e){for(var o=0;e.length>o;o++)t.prototype[e[o]]=Fle(t.prototype[e[o]])})(tr,["identify"]);var qE=["a","button","form","input","select","textarea","label"];function N2(t,e){if($e(e))return!0;var o,a=function(r){if(e.some((i=>r.matches(i))))return{v:!0}};for(var n of t)if(o=a(n))return o.v;return!1}function y4(t){var e=t.parentNode;return!(!e||!yb(e))&&e}var Cce=["next","previous","prev",">","<"],M2=[".ph-no-rageclick",".ph-no-capture"],k0=t=>!t||ji(t,"html")||!yb(t),I2=(t,e)=>{if(!ge||k0(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[t],n=t;n.parentNode&&!ji(n,"body");)if(v4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=y4(n);if(!r)break;if(e||qE.indexOf(r.tagName.toLowerCase())>-1)o=!0;else{var i=ge.getComputedStyle(r);i&&i.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(r),n=r}return{parentIsUsefulElement:o,targetElementList:a}};function E0(t){for(var e=t;e.parentNode&&!ji(e,"body");e=e.parentNode){var o=Pv(e);if(Et(o,"ph-sensitive")||Et(o,"ph-no-capture"))return!1}if(Et(Pv(t),"ph-include"))return!0;var a=t.type||"";if(Po(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!Po(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 S4(t){return!!(ji(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||ji(t,"select")||ji(t,"textarea")||t.getAttribute("contenteditable")==="true")}var w4="(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})",Pce=new RegExp("^(?:"+w4+")$"),_ce=new RegExp(w4),x4="\\d{3}-?\\d{2}-?\\d{4}",Ace=new RegExp("^("+x4+")$"),Rce=new RegExp("("+x4+")");function Ap(t,e){return e===void 0&&(e=!0),!(Pt(t)||Po(t)&&(t=fb(t),(e?Pce:_ce).test((t||"").replace(/[- ]/g,""))||(e?Ace:Rce).test(t)))}function L2(t){var e=Qp(t);return Ap(e=(e+" "+T4(t)).trim())?e:""}function T4(t){var e="";return t&&t.childNodes&&t.childNodes.length&&bo(t.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Qp(o);e=(e+" "+n).trim(),o.childNodes&&o.childNodes.length&&(e=(e+" "+T4(o)).trim())}catch(r){Ue.error("[AutoCapture]",r)}})),e}function B2(t){return t.replace(/"|\\"/g,'\\"')}function Dce(t){var e=t.attr__class;return e?Bt(e)?e:zE(e):void 0}class F2{constructor(e){this.disabled=e===!1;var o=Fo(e)?e:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(e,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:e,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:o,timestamp:a}];return!1}}var lx="$copy_autocapture",j2=To("[AutoCapture]");function cx(t,e){return e.length>t?e.slice(0,t)+"...":e}function Oce(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!yb(e));return e}function Nce(t,e){for(var o,a,{e:n,maskAllElementAttributes:r,maskAllText:i,elementAttributeIgnoreList:c,elementsChainAsString:d}=e,u=[t],m=t;m.parentNode&&!ji(m,"body");)v4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},S=!1,T=!1;if(bo(u,(_=>{var D=E0(_);_.tagName.toLowerCase()==="a"&&(S=_.getAttribute("href"),S=D&&S&&Ap(S)&&S),Et(Pv(_),"ph-no-capture")&&(T=!0),v.push((function(O,L,U,B){var z=O.tagName.toLowerCase(),F={tag_name:z};qE.indexOf(z)>-1&&!U&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?cx(1024,L2(O)):cx(1024,Qp(O)));var W=Pv(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),bo(O.attributes,(function(J){var se;if((!S4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Ap(J.value)&&(!Po(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=zE(Q).join(" ")),F["attr__"+J.name]=cx(1024,Q)}}));for(var oe=1,H=1,K=O;K=Oce(K);)oe++,K.tagName===O.tagName&&H++;return F.nth_child=oe,F.nth_of_type=H,F})(_,r,i,c));var R=(function(O){if(!E0(O))return{};var L={};return bo(O.attributes,(function(U){if(U.name&&U.name.indexOf("data-ph-capture-attribute")===0){var B=U.name.replace("data-ph-capture-attribute-",""),z=U.value;B&&z&&Ap(z)&&(L[B]=z)}})),L})(_);Mo(b,R)})),T)return{props:{},explicitNoCapture:T};if(i||(v[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?L2(t):Qp(t)),S){var x,k;v[0].attr__href=S;var C=(x=wv(S))==null?void 0:x.host,E=ge==null||(k=ge.location)==null?void 0:k.host;C&&E&&C!==E&&(h=S)}return{props:Mo({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(_){return _.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var U of(D.attr_class.sort(),D.attr_class))L+="."+U.replace(/"/g,"");var B=Me({},D.text?{text:D.text}:{},{"nth-child":(R=D.nth_child)!==null&&R!==void 0?R:0,"nth-of-type":(O=D.nth_of_type)!==null&&O!==void 0?O:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),z={};return Cf(B).sort(((F,W)=>{var[oe]=F,[H]=W;return oe.localeCompare(H)})).forEach((F=>{var[W,oe]=F;return z[B2(W.toString())]=B2(oe.toString())})),(L+=":")+Cf(z).map((F=>{var[W,oe]=F;return W+'="'+oe+'"'})).join("")})).join(";")})((function(_){return _.map((D=>{var R,O,L={text:(R=D.$el_text)==null?void 0:R.slice(0,400),tag_name:D.tag_name,href:(O=D.attr__href)==null?void 0:O.slice(0,2048),attr_class:Dce(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return Cf(D).filter((U=>{var[B]=U;return B.indexOf("attr__")===0})).forEach((U=>{var[B,z]=U;return L.attributes[B]=z})),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 rp=To("[ExceptionAutocapture]");function z2(t,e,o){try{if(!(e in t))return()=>{};var a=t[e],n=o(a);return Rs(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=a}}catch{return()=>{}}}var Mce=To("[TracingHeaders]"),bi=To("[Web Vitals]"),q2=9e5,U2="disabled",$2="lazy_loading",sp="awaiting_config",of="missing_config";To("[SessionRecording]"),To("[SessionRecording]");var C0="[SessionRecording]",yi=To(C0),Ice=To("[Heatmaps]");function V2(t){return Fo(t)&&"clientX"in t&&"clientY"in t&&sr(t.clientX)&&sr(t.clientY)}var H2=To("[Product Tours]"),Lce=["$set_once","$set"],Si=To("[SiteApps]"),G2="Error while initializing PostHog app with config id ";function Xc(t,e,o){if(Pt(t))return!1;switch(o){case"exact":return t===e;case"contains":var a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class Bce{constructor(e){this.vn=new jE,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=e,this.bn=new Set,this._n=new Set}init(){var e,o;$e((e=this._instance)==null?void 0:e._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(e){var o,a;if(!$e((o=this._instance)==null?void 0:o._addCaptureHook)&&(e.forEach((i=>{var c,d;(c=this._n)==null||c.add(i),(d=i.steps)==null||d.forEach((u=>{var m;(m=this.bn)==null||m.add(u?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,r=new Set;e.forEach((i=>{var c;(c=i.steps)==null||c.forEach((d=>{d!=null&&d.selector&&r.add(d?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,o){var a;o!=null&&e.length!=0&&(this.bn.has(e)||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(e){this.onAction("actionCaptured",(o=>e(o)))}wn(e,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(e,a))return!0;return!1}onAction(e,o){return this.vn.on(e,o)}gn(e,o){if(o!=null&&o.url){var a,n=e==null||(a=e.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!Xc(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(e,o){return!!this.Cn(e,o)&&!!this.Sn(e,o)&&!!this.xn(e,o)}Cn(e,o){var a;if(o==null||!o.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>Xc(c.href,o.href,o.href_matching||"exact")));var r,i=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!i&&Xc((r=i.match(/(?::|")href="(.*?)"/))?r[1]:"",o.href,o.href_matching||"exact")}Sn(e,o){var a;if(o==null||!o.text)return!0;var n=this.kn(e);if(n.length>0)return n.some((u=>Xc(u.text,o.text,o.text_matching||"exact")||Xc(u.$el_text,o.text,o.text_matching||"exact")));var r,i,c,d=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!Pt(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),i=o.text,c=o.text_matching||"exact",r.some((u=>Xc(u,i,c))))}xn(e,o){var a,n;if(o==null||!o.selector)return!0;var r=e==null||(a=e.properties)==null?void 0:a.$element_selectors;if(r!=null&&r.includes(o.selector))return!0;var i=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&i)try{return new RegExp(o.selector_regex).test(i)}catch{return!1}return!1}kn(e){var o;return(e==null||(o=e.properties)==null?void 0:o.$elements)==null?[]:e?.properties.$elements}yn(e,o){return o==null||!o.properties||o.properties.length===0||m4(o.properties.reduce(((a,n)=>{var r=Bt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:r,operator:n.operator||"exact"},a}),{}),e?.properties)}}class Fce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,o){return!!e&&m4(e.propertyFilters,o?.properties)}Nn(e,o){var a=new Map;return e.forEach((n=>{var r;(r=n.conditions)==null||(r=r[o])==null||(r=r.values)==null||r.forEach((i=>{if(i!=null&&i.name){var c=a.get(i.name)||[];c.push(n.id),a.set(i.name,c)}}))})),a}Mn(e,o,a){var n=(a===ep.Activation?this.Tn:this.An).get(e),r=[];return this.Fn((i=>{r=i.filter((c=>n?.includes(c.id)))})),r.filter((i=>{var c,d=(c=i.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((u=>u.name===e));return this.Rn(d,o)}))}register(e){var o;$e((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(e),this.Pn(e))}Pn(e){var o=e.filter((a=>{var n,r;return((n=a.conditions)==null?void 0:n.actions)&&((r=a.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new Bce(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,r,i,c,d;a.conditions&&(n=a.conditions)!=null&&n.actions&&(r=a.conditions)!=null&&(r=r.actions)!=null&&r.values&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.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((u=>{if(u&&u.name){var m=this.En.get(u.name);m&&m.push(a.id),this.En.set(u.name,m||[a.id])}})))})))}On(e){var o,a=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.events)&&((c=r.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.cancelEvents)&&((c=r.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(((r,i)=>{this.onEvent(r,i)})),this.Tn=this.Nn(e,ep.Activation),this.An=this.Nn(e,ep.Cancellation))}onEvent(e,o){var a,n=this.le(),r=this.Dn(),i=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[r])||[];if(i===e&&o&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:e,eventPayload:o,existingActivatedItems:c});var m=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(u=o.properties)==null?void 0:u.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(e)){var f=this.Mn(e,o,ep.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,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(e)){n.info("event name matched",{event:e,eventPayload:o,items:this.Tn.get(e)});var v=this.Mn(e,o,ep.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(e){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(e)&&this.jn(n.concat(this.En.get(e)||[]))}jn(e){var o=this.le(),a=[...new Set(e)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var e,o=this.Dn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class jce extends Fce{constructor(e){super(e)}Dn(){return l0}Bn(){return xp.SHOWN}Fn(e){var o;(o=this._instance)==null||o.getSurveys(e)}$n(e){var o;(o=this._instance)==null||o.cancelPendingSurvey(e)}le(){return no}Zn(e){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[l0]:e})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var dx="SDK is not enabled or survey functionality is not yet loaded",W2="Disabled. Not loading surveys.",zce=ge!=null&&ge.location?Tv(ge.location.hash,"__posthog")||Tv(location.hash,"state"):null,K2="_postHogToolbarParams",Y2=To("[Toolbar]"),Ka=To("[FeatureFlags]"),kl=To("[FeatureFlags]",{debugEnabled:!0}),ux=`" failed. Feature flags didn't load in time.`,Z2=t=>{for(var e={},o=0;t.length>o;o++)e[t[o]]=!0;return e},Q2=t=>{var e={};for(var[o,a]of Cf(t||{}))a&&(e[o]=a);return e},_s=To("[Error tracking]"),J2="Refusing to render web experiment since the viewer is a likely bot",qce={icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!ge&&Cv(e.href,t),not_regex:(t,e)=>!!ge&&!Cv(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class La{get Bt(){return this._instance.config}constructor(e){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{La.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var i;o.zn&&(La.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(i=o.zn)==null||i.set(r.feature_flag_key,r));var c=o._instance.getFeatureFlag(r.feature_flag_key);Po(c)&&r.variants[c]&&o.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];La.Yn(u)&&o.Un(r.name,d,u.transforms)}}))}),a)},this._instance=e,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())La.Hn(J2);else if(!this.Bt.disable_web_experiments){if(Pt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();La.Hn("applying feature flags",e),e.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,r=this._instance.getFeatureFlag(o),i=(n=this.zn)==null?void 0:n.get(o);r&&i!=null&&i.variants[r]&&this.Un(i.name,r,i.variants[r].transforms)}}))}}previewWebExperiment(){var e=La.getWindowLocation();if(e!=null&&e.search){var o=xv(e?.search,"__experiment_id"),a=xv(e?.search,"__experiment_variant");o&&a&&(La.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(e,o,a){if(this.Bt.disable_web_experiments&&!a)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>e(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(e,o,a){var n=a.filter((r=>r.id===e));n&&n.length>0&&(La.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(e){return!Pt(e.conditions)&&La.Wn(e)&&La.Xn(e)}static Wn(e){var o;if(Pt(e.conditions)||Pt((o=e.conditions)==null?void 0:o.url))return!0;var a,n,r,i=La.getWindowLocation();return!!i&&((a=e.conditions)==null||!a.url||qce[(n=(r=e.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](e.conditions.url,i))}static getWindowLocation(){return ge?.location}static Xn(e){var o;if(Pt(e.conditions)||Pt((o=e.conditions)==null?void 0:o.utm))return!0;var a=Q3();if(a.utm_source){var n,r,i,c,d,u,m,h,f=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==a.utm_campaign,v=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,b=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==a.utm_medium,S=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==a.utm_term;return f&&b&&S&&v}return!1}static Hn(e){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] "+e,a)}Un(e,o,a){this._is_bot()?La.Hn(J2):o!=="control"?a.forEach((n=>{if(n.selector){var r;La.Hn("applying transform of variant "+o+" for experiment "+e+" ",n);var i=(r=document)==null?void 0:r.querySelectorAll(n.selector);i?.forEach((c=>{var d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):La.Hn("Control variants leave the page unmodified.")}_is_bot(){return Mn&&this._instance?u4(Mn,this.Bt.custom_blocked_useragents):void 0}}var Zn=To("[Conversations]"),El="Conversations not available yet.",Sb={featureFlags:class{constructor(t){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=t,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(t){return this._instance.get_property(t)}ls(){var t,e;return(t=(e=this.ni)==null?void 0:e.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ka.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var t,e=(t=this.Bt.evaluation_contexts)!==null&&t!==void 0?t:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ka.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),e!=null&&e.length?e.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||Ka.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:o}=this._instance,a=(t=(e=o.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(a).length){var n,r,i=(n=(r=o.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((u=>!!a[u])).reduce(((u,m)=>(u[m]=a[m]||!1,u)),{}),d=Object.keys(i).filter((u=>c[u])).reduce(((u,m)=>(i[m]&&(u[m]=i[m]),u)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(t,e,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},r=Me({},a,t),i=Me({},n,e),c={};for(var[d,u]of Object.entries(r)){var m=typeof u=="string";c[d]={key:d,enabled:!!m||!!u,variant:m?u:void 0,reason:void 0,metadata:$e(i?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:i[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.os(n0),e=this.os(As),o=this.os(id);if(!o&&!e)return t||{};var a=Mo({},t||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(e||{})])];for(var r of n){var i,c,d=a[r],u=e?.[r],m=$e(u)?(i=d?.enabled)!==null&&i!==void 0&&i:!!u,h=$e(u)?d.variant:typeof u=="string"?u:void 0,f=o?.[r],v=Me({},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=Me({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),a[r]=v}return this.Jn||(Ka.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var t=this.os(gd),e=this.os(As);if(!e)return t||{};for(var o=Mo({},t),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Ka.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var t=this.os(r0),e=this.os(id);if(!e)return t||{};for(var o=Mo({},t||{}),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Ka.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,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(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.es=t}vs(t){var e;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(mv),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Me({},((e=this.ni)==null?void 0:e.get_initial_props())||{},this.os(wp)||{}),group_properties:this.os(_l),timezone:a4()};zs(a)||$e(a)||(n.$device_id=a),(t!=null&&t.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var r=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:r,data:n,compression:this.Bt.disable_compression?void 0:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:i=>{var c,d,u,m=!0;if(i.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=[];i.error?i.error instanceof Error?h.push(i.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):i.statusCode!==200&&h.push("api_error_"+i.statusCode),(c=i.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((d=i.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(u=this.ni)==null||u.register({[d0]:h}),v?Ka.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=i.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(t,e){var o;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(t,e);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else Ka.warn('getFeatureFlag for key "'+t+ux)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=t in o,n=o[t],r=this.getFlagPayloads()[t],i=String(n),c=this.os(s0)||void 0,d=this.os(gv)||void 0,u=this.os(Cp)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(c0);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[Cp]:u,[c0]:h}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(i))){var v,b,S,T,x,k,C,E,_,D;Bt(u[t])?u[t].push(i):u[t]=[i],(v=this.ni)==null||v.register({[Cp]:u});var R=this.getFeatureFlagDetails(t),O=[...(b=this.os(d0))!==null&&b!==void 0?b:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:r||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[t])||null,$feature_flag_bootstrapped_payload:((T=this.Bt.bootstrap)==null||(T=T.featureFlagPayloads)==null?void 0:T[t])||null,$used_bootstrap_value:!this.rs};$e(R==null||(x=R.metadata)==null?void 0:x.version)||(L.$feature_flag_version=R.metadata.version);var U,B=(k=R==null||(C=R.reason)==null?void 0:C.description)!==null&&k!==void 0?k:R==null||(E=R.reason)==null?void 0:E.code;B&&(L.$feature_flag_reason=B),R!=null&&(_=R.metadata)!=null&&_.id&&(L.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(L.$feature_flag_original_response=$e(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(L.$feature_flag_original_payload=R==null||(U=R.metadata)==null?void 0:U.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var z=r;if(!$e(r))try{z=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Ka.warn('getFeatureFlagResult for key "'+t+ux)}getRemoteConfigPayload(t,e){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:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,i=(r=n.json)==null?void 0:r.featureFlagPayloads;e(i?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(t,e);return $e(o)?void 0:!!o}Ka.warn('isFeatureEnabled for key "'+t+ux)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(i,c,d,u,m,h){d===void 0&&(d={}),u===void 0&&(u={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map((U=>{var B;return[U,(B=L[U].variant)!==null&&B!==void 0?B:L[U].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((U=>L[U].enabled)).filter((U=>{var B;return(B=L[U].metadata)==null?void 0:B.payload})).map((U=>{var B;return[U,(B=L[U].metadata)==null?void 0:B.payload]})))):Ka.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(i),v=f.flags,b=f.featureFlags,S=f.featureFlagPayloads;if(b){var T=i.requestId,x=i.evaluatedAt;if(Bt(b)){Ka.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(b)for(var C=0;b.length>C;C++)k[b[C]]=!0;c&&c.register({[kf]:b,[gd]:k})}else{var E=b,_=S,D=v;if(h!=null&&h.partialResponse)E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));E=Me({},d,Object.fromEntries(Object.entries(E).filter((O=>{var[L]=O;return R.has(L)})))),_=Me({},u,Object.fromEntries(Object.entries(_||{}).filter((O=>{var[L]=O;return R.has(L)})))),D=Me({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[L]=O;return R.has(L)}))))}else E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);c&&c.register(Me({[kf]:Object.keys(Q2(E)),[gd]:E||{},[r0]:_||{},[n0]:D||{}},T?{[s0]:T}:{},x?{[gv]:x}:{}))}}})(t,this.ni,a,n,r,o),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Ka.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Ka.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(As),this.ni.unregister(id),this.ps(),kl.info("All overrides cleared");if(Bt(t)){var e=Z2(t);return this.ni.register({[As]:e}),this.ps(),kl.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var o,a=t;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(As),kl.info("Flag overrides cleared");else if(a.flags){if(Bt(a.flags)){var n=Z2(a.flags);this.ni.register({[As]:n})}else this.ni.register({[As]:a.flags});kl.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(id),kl.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[id]:a.payloads}),kl.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[As]:t}),this.ps(),kl.info("Flag overrides set",{flags:t});Ka.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Kn){var{flags:e,flagVariants:o}=this.gs();t(e,o)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,o){var a,n=(this.os(Sp)||[]).find((d=>d.flagKey===t)),r={["$feature_enrollment/"+t]:e},i={$feature_flag:t,$feature_enrollment:e,$set:r};n&&(i.$early_access_feature_name=n.name),o&&(i.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(r,!1);var c=Me({},this.getFlagVariants(),{[t]:e});(a=this.ni)==null||a.register({[kf]:Object.keys(Q2(c)),[gd]:c}),this.ps()}getEarlyAccessFeatures(t,e,o){e===void 0&&(e=!1);var a=this.os(Sp),n=o?"&"+o.map((r=>"stage="+r)).join("&"):"";if(a&&!e)return t(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:r=>{var i,c;if(r.json){var d=r.json.earlyAccessFeatures;return(i=this.ni)==null||i.unregister(Sp),(c=this.ni)==null||c.register({[Sp]:d}),t(d)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((o=>e[o])),flagVariants:Object.keys(e).filter((o=>e[o])).reduce(((o,a)=>(o[a]=e[a],o)),{})}}ps(t){var{flags:e,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(e,o,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(wp)||{},a=t?.$set||(t!=null&&t.$set_once?{}:t),n=t?.$set_once,r={};if(n)for(var i in n)({}).hasOwnProperty.call(n,i)&&(i in o||(r[i]=n[i]));this._instance.register({[wp]:Me({},o,r,a)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(wp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(_l)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Me({},o[a],t[a]),delete t[a]})),this._instance.register({[_l]:Me({},o,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(_l)||{};this._instance.register({[_l]:Me({},e,{[t]:{}})})}else this._instance.unregister(_l)}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}}},Uce={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===sp||this.bs===of?this.bs:(t=(e=this.ys)==null?void 0:e.status)!==null&&t!==void 0?t:this.bs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=U2,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw yi.error("started without valid sessionManager"),new Error(C0+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ds)throw new Error(C0+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(yp))==null||!t.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&e&&o&&!a}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var o=!$e(Object.assign)&&!$e(Array.from);this.ws&&o?(this.Is(t),yi.info("starting")):(this.bs=U2,this.stopRecording())}}Is(t){var e,o,a;this.ws&&(this.bs!==sp&&this.bs!==of&&(this.bs=$2),ot!=null&&(e=ot.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(o=ot.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(t):(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return yi.error("could not load recorder",n);this.Cs(t)})))}stopRecording(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.stop()}xs(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.discard()}ks(){var t;(t=this.ni)==null||t.unregister(ME)}Ts(t,e){if(Pt(t))return null;var o,a=sr(t)?t:parseFloat(t);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(yi.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):a}As(t){if(this.ni){var e,o,a=this.ni,n=()=>{var r,i=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.Ts((r=this.Bt.session_recording)==null?void 0:r.sampleRate,"session_recording.sampleRate"),d=this.Ts(i?.sampleRate,"remote config sampleRate"),u=c??d;Pt(u)&&this.ks();var m=i?.minimumDurationMilliseconds;a.register({[yp]:Me({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Me({capturePerformance:t.capturePerformance},i?.networkPayloadCapture),canvasRecording:{enabled:i?.recordCanvas,fps:i?.canvasFps,quality:i?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:$e(m)?null:m,endpoint:i?.endpoint,triggerMatchType:i?.triggerMatchType,masking:i?.masking,urlTriggers:i?.urlTriggers,version:i?.version,triggerGroups:i?.triggerGroups})})};n(),(e=this._s)==null||e.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.As(t),void this.xs()):(this.As(t),void this.startIfEnabledOrStop()):(this.bs===sp&&(this.bs=of,yi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var o;e===void 0&&(e="log"),(o=this.ys)!=null&&o.log?this.ys.log(t,e):yi.warn("log called before recorder was ready")}get Ss(){var t,e,o=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(yp);return(o==null||(e=o.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(yp);if(!e)return!1;var o=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-o}Cs(t){var e,o;if((e=ot.__PosthogExtensions__)==null||!e.initSessionRecording)return yi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[G3]:!0});if(this.ys||(this.ys=(o=ot.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===of||this.bs===sp?void 0:(this.bs=sp,yi.info("persisted remote config is stale, requesting fresh config before starting"),void new n4(this._instance).load());this.bs=$2,this.ys.start(t)}onRRwebEmit(t){var e;(e=this.ys)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.ys||(e=this.ni)==null||e.register({[z3]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[j3]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,o;this.ys||(o=this.ni)==null||o.register({[t==="url"?q3:U3]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(t,e))}}},$ce={autocapture:class{constructor(t){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=t,this.rageclicks=new F2(t.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var t,e,o=Fo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(t=o.url_allowlist)==null?void 0:t.map((a=>new RegExp(a))),o.url_ignorelist=(e=o.url_ignorelist)==null?void 0:e.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&ze){var t=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){j2.error("Failed to capture event",a)}};if(Jo(ze,"submit",t,{capture:!0}),Jo(ze,"change",t,{capture:!0}),Jo(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=o=>{this.Ps(o=o||ge?.event,lx)};Jo(ze,"copy",e,{capture:!0}),Jo(ze,"cut",e,{capture:!0})}}}else j2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Ms=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[ZT]:!!t.autocapture_opt_out}),this.Ns=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Fs=t}getElementSelectors(t){var e,o=[];return(e=this.Fs)==null||e.forEach((a=>{var n=ze?.querySelectorAll(a);n?.forEach((r=>{t===r&&o.push(a)}))})),o}get isEnabled(){var t,e,o=(t=this.instance.persistence)==null?void 0:t.props[ZT];if(zs(this.Ns)&&!Yr(o)&&!this.instance.Fr())return!1;var a=(e=this.Ns)!==null&&e!==void 0?e:!!o;return!!this.instance.config.autocapture&&!a}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var o,a=O2(t);f4(a)&&(a=a.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||k0(h))return!1;var v,b,S;if(Yr(f)?(v=!!f&&M2,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:M2,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:T}=I2(h,!1);return!(function(x,k){if(x===!1||$e(x))return!1;var C;if(x===!0)C=Cce;else{if(!Bt(x))return!1;if(x.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;C=x.map((E=>E.toLowerCase()))}return k.some((E=>{var{safeText:_,ariaLabel:D}=E;return C.some((R=>_.includes(R)||D.includes(R)))}))})(b,T.map((x=>{var k;return{safeText:Qp(x).toLowerCase(),ariaLabel:((k=x.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!N2(T,v)})(a,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===lx;if(a&&(function(h,f,v,b,S){var T,x,k,C;if(v===void 0&&(v=void 0),!ge||k0(h)||(T=v)!=null&&T.url_allowlist&&!D2(v.url_allowlist)||(x=v)!=null&&x.url_ignorelist&&D2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var E=v.dom_event_allowlist;if(E&&!E.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:_,targetElementList:D}=I2(h,b);if(!(function(L,U){var B=U?.element_allowlist;if($e(B))return!0;var z,F=function(oe){if(B.some((H=>oe.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,v)||!N2(D,(C=v)==null?void 0:C.css_selector_allowlist))return!1;var R=ge.getComputedStyle(h);if(R&&R.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 _?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(qE.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=Nce(a,{e:t,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(i)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(r.$element_selectors=c),e===lx){var d,u=b4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=t.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(e,r),!0}}}isBrowserSupported(){return Rs(ze?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ls=(ge==null||(e=ge.location)==null?void 0:e.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 t,e;if(ge&&ge.history){var o=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||z2(ge.history,"pushState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("pushState")})),(e=ge.history.replaceState)!=null&&e.__posthog_wrapped__||z2(ge.history,"replaceState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("replaceState")})),this.js()}}Bs(t){try{var e,o=ge==null||(e=ge.location)==null?void 0:e.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(ld,{navigation_type:t}),this.Ls=o}catch(a){Ue.error("Error capturing "+t+" pageview",a)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Jo(ge,"popstate",t),this.Ds=()=>{ge&&ge.removeEventListener("popstate",t)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(t){var e;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=t,this.$s=!((e=this.instance.persistence)==null||!e.props[QT]),this.rageclicks=new F2(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return Fo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Bt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Pt(this.Bt.capture_heatmaps)?Pt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Ice.info("starting..."),this.Zs(),this.Ft()}else{var t;clearInterval((t=this.qs)!==null&&t!==void 0?t:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[QT]:e}),this.$s=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.T;return this.T=void 0,t}Hs(t){this.Tt(t.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),Jo(ge,yv,this.zs),this.Us=t=>this.Tt(t||ge?.event),Jo(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Jo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new u2(this.instance,Kle,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Jo(ze,bv,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(yv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(bv,this.Xs),clearTimeout(this.Js),(t=this.Ws)==null||t.stop(),this.Rs=!1)}Ks(t,e){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(i,c,d){for(var u=i;u&&yb(u)&&!ji(u,"body");){if(u===d)return!1;if(Et(c,ge?.getComputedStyle(u).position))return!0;u=y4(u)}return!1})(O2(t),["fixed","sticky"],n);return{x:t.clientX+(r?0:a),y:t.clientY+(r?0:o),target_fixed:r,type:e}}Tt(t,e){var o;if(e===void 0&&(e="click"),!R2(t.target)&&V2(t)){var a=this.Ks(t,e);(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Qs(Me({},a,{type:"rageclick"})),this.Qs(a)}}Gs(t){!R2(t.target)&&V2(t)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(t,"mousemove"))}),500))}Qs(t){if(ge){var e=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...Ud,...o||[]]:[],n=Yp(e,a,Zp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(t)}}Yr(){this.T&&!hd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:u2,webVitalsAutocapture:class{constructor(t){var e;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)=>Me({},o,{["$web_vitals_"+a.name+"_event"]:Me({},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))bi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();$e(r)||(Pt(o?.name)||Pt(o?.value)?bi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=r),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(Me({},o,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):bi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,r,i=ot.__PosthogExtensions__;$e(i)||$e(i.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),o&&a&&n&&r?(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&&r(this.ht.bind(this)),this.Rs=!0):bi.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.$s=!((e=this._instance.persistence)==null||!e.props[t0]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,o=Fo(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Pt(o)?((e=this._instance.persistence)==null?void 0:e.props[a0])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Fo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=Fo(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=Fo(this.oo)&&sr(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:q2;return t>0&&6e4>=t?q2:t}get isEnabled(){var t=ka?.protocol;if(t!=="http:"&&t!=="https:")return bi.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Fo(this.oo)?this.oo.web_vitals:Yr(this.oo)?this.oo:void 0;return Yr(e)?e:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(bi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=Fo(t.capturePerformance)&&!!t.capturePerformance.web_vitals,o=Fo(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[t0]:e}),this._instance.persistence.register({[a0]:o})),this.$s=e,this.startIfEnabled()}}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?bi.error("failed to load script",a):t()}))}io(){var t=ge?ge.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...Ud,...e||[]]:[];return Yp(t,o,Zp)}bi.error("Could not determine current URL")}}},Vce={exceptionObserver:class{constructor(t){var e,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=ot.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=ot.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=ot.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=ot.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=r(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=i(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){rp.error("failed to start",d),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[JT]),this.do=new ale({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:rp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Fo(t)?e=Me({},e,t):($e(t)?this.co:t)&&(e=Me({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(rp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return rp.error("failed to load script",a);t()}))}ho(){var t,e,o;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.lo)==null||e.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[JT]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(t){var e,o,a,n=(e=t==null||(o=t.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(n)?rp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,o;this.fo=[],this.po=new fle([new kle,new Nle,new Cle,new Ele,new Dle,new Rle,new _le,new Ole],(function(a){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];return function(c,d){d===void 0&&(d=0);for(var u=[],m=c.split(`
|
|
168
|
-
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=i2.test(f)?f.replace(i2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var S=b(v,a);if(S){u.push(S);break}}if(u.length>=50)break}}}return(function(T){if(!T.length)return[];var x=Array.from(T);return x.reverse(),x.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(C=x,C[C.length-1]||{}).filename,function:k.function||qd});var C}))})(u)}})("web:javascript",Sle,Tle)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(XT))!==null&&e!==void 0?e:[],this.mo=pv(this.yo()),this.bo=new Ile(this.mo)}onConfigChange(){this.mo=pv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,o,a;if("errorTracking"in t){var n=(e=(o=t.errorTracking)==null?void 0:o.suppressionRules)!==null&&e!==void 0?e:[],r=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[XT]:this.fo,[e0]:r})}}get _o(){var t,e=!!this._instance.get_property(e0),o=this._instance.config.error_tracking.captureExtensionExceptions;return(t=o??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Po(t)||t.trim().length===0)return void _s.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(e),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>Mle.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&_s.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[dv]:t,[uv]:new Date().toISOString()},a))}catch(r){_s.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void _s.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void _s.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void _s.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(t.$exception_steps)?this.To(t):t;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return _s.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void _s.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Me({},t,{$exception_steps:e})}catch(o){return _s.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[dv]:t,[uv]:new Date().toISOString()})}wo(t){return Fo(t)?Me({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((o,a)=>{var{type:n,value:r}=a;return Po(n)&&n.length>0&&o.$exception_types.push(n),Po(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,i=p4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(t){return t.flatMap((e=>{var o,a;return(o=(a=e.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,o,a,n,r=(e=(o=t[0].stacktrace)==null?void 0:o.frames)!==null&&e!==void 0?e:[],i=r[r.length-1];return(a=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(t){return!Pt(t)&&Bt(t)}}},Hce=Me({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[o0]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(o0)||this.ur((()=>this.Ro()))}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?H2.error("Could not load product tours script",a):t()}))}Ro(){var t;!this.Ao&&(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var o=this.ni;if(o){var a=o.props[Ef];if(Bt(a)&&!e)return this.Eo=a,void t(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 r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return H2.error(i),void t([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[Ef]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){Pt(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(Ef)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},Sb),Gce={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var o=this.globalsForEvent(e);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,o,a,n,r,i,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:b}=t;return{event:Me({},m3(t,Lce),{properties:Me({},t.properties,b?{$set:Me({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},b)}:{},v?{$set_once:Me({},(a=(n=t.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],o=()=>{var i;!e.errored&&this.No.length&&(Si.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},a=!1,n=i=>{e.errored=!i,e.loaded=!0,Si.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),a&&o()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(i){n(i)}});r&&(e.processEvent=r),a=!0}catch(i){Si.error(G2+t.id,i),n(!1)}if(a&&e.loaded)try{o()}catch(i){Si.error("Error while processing buffered events PostHog app with config id "+t.id,i),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of t)this.setupSiteApp(o)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(e)}catch(a){Si.error("Error while processing event "+t.event+" for site app "+o.id,a)}}}onRemoteConfig(t){var e,o,a,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return Si.error(G2+d,m)}))};for(var{id:i,url:c}of t.siteApps)r(i)}else Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Wce={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,o,a=this.Bo()||[];$e(this.Lo)&&((e=ot.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Mce.error("failed to load script",a);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},Kce=Me({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(Pt(e))return no.warn("Flags not loaded yet. Not loading surveys.");var o=Bt(e);this.jo=o?e.length>0:e,no.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var o=localStorage.key(e);(o!=null&&o.startsWith(x0)||o!=null&&o.startsWith("inProgressSurvey_"))&&t.push(o)}t.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)no.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)no.info(W2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())no.info("Not loading surveys in cookieless mode without consent.");else{var t=ot?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=t.generateSurveys;if(o)return void this.Vo(o,e);var a=t.loadExternalDependency;if(!a)return void this.Ho(IE);a(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else no.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new jce(this._instance),no.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){no.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return no.info(W2),t([]);var o,a=this._instance.get_property(i0);if(a&&!e)return t(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return t(r,i)})):(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 r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;no.error(c);var d={isLoaded:!1,error:c};return t([],d),void(o==null||o({surveys:[],context:d}))}var u,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&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[i0]:m});var f={isLoaded:!0};t(m,f),o?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(o){no.error("Error in survey callback",o)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);no.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((o=>{var a;e=(a=o.find((n=>n.id===t)))!==null&&a!==void 0?a:null})),e}Yo(t){if(Pt(this._surveyManager))return{eligible:!1,reason:dx};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Pt(this._surveyManager))return no.warn("init was not called"),{visible:!1,disabledReason:dx};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return Pt(this._surveyManager)?(no.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:dx})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);o({visible:i.eligible,disabledReason:i.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,o){var a;if(Pt(this._surveyManager))no.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(yce.includes(n.type)){var r=ze?.querySelector(e);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(no.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;no.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),no.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);no.warn("Survey element not found")}else no.warn("Surveys of type "+n.type+" cannot be rendered in the app");else no.warn("Survey not found")}}displaySurvey(t,e){var o;if(Pt(this._surveyManager))no.warn("init was not called");else{var a=this.Uo(t);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Me({},a,{appearance:Me({},a.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==f0.Popover&&e.initialResponses&&no.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void no.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==f0.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else no.warn("Survey not found")}}cancelPendingSurvey(t){Pt(this._surveyManager)?no.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},Sb),Yce={toolbar:class{constructor(t){this.instance=t}Go(t){ot.ph_toolbar_state=t}Wo(){var t;return(t=ot.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,o){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),W3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,o=o??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var a,n=zce||Tv(t.hash,"__posthog")||Tv(t.hash,"state"),r=n?c2((()=>JSON.parse(atob(decodeURIComponent(n)))))||c2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?t.hash=r.desiredHash:o?o.replaceState(o.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(e.getItem(K2)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(t){var e=ot.ph_load_toolbar||ot.ph_load_editor;!Pt(e)&&Rs(e)?e(t,this.instance):Y2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById($3));if(!ge||e)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Me({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(K2,JSON.stringify(Me({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return Y2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Jo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,o){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(t,e,o)}}},Zce=Me({experiments:La},Sb),Qce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;Pt(e)||(Yr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||W3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=ot?.__PosthogExtensions__;if(t&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var o=t.loadExternalDependency;if(!o)return void this.ra(IE);o(this._instance,"conversations",(a=>{a||!t.initConversations?this.ra("Could not load conversations script",a):this.ta(t.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!zs(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,o){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(t,e,o):(Zn.warn(El),null)}))()}getMessages(t,e){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.getMessages(t,e):(Zn.warn(El),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(El),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(El),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(El),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(El),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(El),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Jce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=To("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,o=(e=t.logs)==null?void 0:e.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=ot?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(o=>{var a;o||(a=t.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(IE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,o,a,n,r,i;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,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}=N3[v]||hle,T=String(Date.now())+"000000",x={};f.distinctId&&(x.posthogDistinctId=f.distinctId),f.sessionId&&(x.sessionId=f.sessionId),f.currentUrl&&(x["url.full"]=f.currentUrl),f.screenName&&(x["screen.name"]=f.screenName),f.appState&&(x["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(x.feature_flags=f.activeFeatureFlags);var k=Me({},x,h.attributes||{}),C={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:s2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(t,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r: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:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var o=this._instance.config.logs,a=Me({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:s2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(e.map((i=>i.record)),a,Qa.LIB_NAME,Qa.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=o}if(ot!=null&&(t=ot.location)!=null&&t.href&&(e.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Xce=Me({},Sb,Uce,$ce,Vce,Hce,Gce,Kce,Wce,Yce,Zce,Qce,Jce);tr.__defaultExtensionClasses=Me({},Xce);var X2,qs=(X2=_p[cd]=new tr,(function(){function t(){t.done||(t.done=!0,g4=!1,bo(_p,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Jo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),X2);let Ls=!1,P0=null,eN=!1;const UE="studio:lp-distinct-id",k4="mesh:lp-distinct-id",px="/api/_reports/link-token/",ede=1440*60*1e3;function E4(t){const e="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(t),a=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(px)&&n.pathname!==px&&(n.pathname=`${px}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function mx(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?E4(o):o]))}const tde=t=>t?(t.properties=mx(t.properties),t.$set&&(t.$set=mx(t.$set)),t.$set_once&&(t.$set_once=mx(t.$set_once)),t):null;function C4(){try{const t=window.localStorage.getItem(UE)??window.localStorage.getItem(k4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=ede?e:void 0}catch{return}}function ode(){try{window.localStorage.removeItem(UE),window.localStorage.removeItem(k4)}catch{}}function ade(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(UE,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??C4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function nde(t){const e=C4();if(e&&(ode(),e!==t))try{qs.alias(e)}catch{}}function rde(t,e){if(Ls||typeof window>"u")return;const o=ade();qs.init(t,{api_host:e,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:tde,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:E4(a.name)}:{}})},person_profiles:"identified_only"}),Ls=!0}function sde(t,e){Ls&&(qs.identify(t,e),nde(t))}function ide(){Ls&&(qs.reset(),P0=null)}function P4(t,e){Ls&&qs.capture(t,e)}function $Te(){return Ls}function VTe(){if(!Ls||eN||typeof performance>"u")return;eN=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};P4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:CJ(),org_cache_restored:PJ()})}function HTe(t,e){Ls&&t!==P0&&(qs.group("organization",t,e),P0=t)}function _4(t,e){if(Ls)try{qs.captureException(t,e)}catch{}}const lde=["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 cde(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:lde}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,y.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),e[1]=o,e[2]=n):n=e[2],n}function A4(t){const e=ye.c(20),{orgName:o}=t,a=Ua(),n=dde;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(Hj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a("common.archivedOrgScreen.orgUnavailable"),e[1]=a,e[2]=i):i=e[2];let c;e[3]!==i?(c=y.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),e[5]=o,e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=y.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=y.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==a?(h=a("common.goHome"),e[13]=a,e[14]=h):h=e[14];let f;e[15]!==h?(f=y.jsx(bn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let v;return e[17]!==m||e[18]!==f?(v=y.jsxs(cde,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function dde(){window.location.href="/"}function ude(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=rm(e);let a;return t[1]!==o?(a=y.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:y.jsx(Wl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),t[1]=o,t[2]=a):a=t[2],a}function pde(t){const e=ye.c(13),{area:o,description:a,action:n}=t,r=o?`No access to ${o}`:"No access",i=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(e3,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=y.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=y.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??y.jsx(ude,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=y.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]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const tN="__studio_chunk_reload_ts";function R4(t){return t?.message===tee}function mde(t){return!!t?.message?.includes("Access denied")}function oN(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class hde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o),_4(e,{boundary:"default",error_name:e.name,error_message:e.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:e,t:o}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:R4(this.state.error)?y.jsx(A4,{}):mde(this.state.error)?y.jsx(pde,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(EE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function gde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(hde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class fde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o);const a=oN(e);if(_4(e,{boundary:"chunk_root",is_chunk_load_error:a,error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(tN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(tN,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&oN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(t3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),y.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?R4(this.state.error)?y.jsx(A4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(EE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function vde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(fde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const bde=Zl("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function yde(t){const e=ye.c(14);let o,a,n,r,i;e[0]!==t?({className:o,size:r,interactive:a,asChild:i,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5]);const d=(i===void 0?!1:i)?ib:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Je(bde({size:r,interactive:a}),o),e[6]=o,e[7]=a,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=y.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function GTe(t){const e=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:i,children:c}=t;let d;e[0]!==i?(d=Je("flex flex-col gap-3",i),e[0]=i,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==o?(u=(o||a||n||r)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(Gj,{size:12})]})]})]}),r&&y.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=a,e[4]=n,e[5]=o,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=y.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function WTe(t){const e=ye.c(11),{className:o,children:a}=t;let n,r,i;if(e[0]!==a||e[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=yde,e[5]!==o?(r=Je("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],i=d.map(Sde),e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=i}else n=e[2],r=e[3],i=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==i?(c=y.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Sde(t,e){return y.jsxs("div",{children:[e>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function KTe(t){const e=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:i,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Je(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=i?"button":void 0,v=i?0:void 0;let b;e[4]!==i?(b=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,e[4]=i,e[5]=b):b=e[5];let S;e[6]!==o?(S=o&&y.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),e[6]=o,e[7]=S):S=e[7];let T;e[8]!==a?(T=y.jsx("div",{className:"text-sm font-medium",children:a}),e[8]=a,e[9]=T):T=e[9];let x;e[10]!==n?(x=n&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=x):x=e[11];let k;e[12]!==d||e[13]!==T||e[14]!==x?(k=y.jsxs("div",{className:"flex-1 min-w-0",children:[T,x,d]}),e[12]=d,e[13]=T,e[14]=x,e[15]=k):k=e[15];let C;e[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:wde,children:r}),e[16]=r,e[17]=C):C=e[17];let E;return e[18]!==i||e[19]!==k||e[20]!==C||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==b||e[25]!==S?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[S,k,C]}),e[18]=i,e[19]=k,e[20]=C,e[21]=h,e[22]=f,e[23]=v,e[24]=b,e[25]=S,e[26]=E):E=e[26],E}function wde(t){return t.stopPropagation()}function YTe(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Je("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function ZTe(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Je("flex items-center justify-end gap-2 px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=y.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function xde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Je("flex flex-col gap-10",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const wb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:r3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:a3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Yj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:o3,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:Jj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:Qj,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function QTe(t){const e=wb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function JTe(t){return wb[t].tabs.length>0}const Tde=new Set(["owner","admin"]);function D4(){const t=ye.c(11),{org:e,locator:o}=Yi();let a;t[0]!==o?(a=ca.myCapabilities(o),t[0]=o,t[1]=a):a=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},t[4]=a,t[5]=n,t[6]=r):r=t[6];const{data:i,isLoading:c,isError:d}=Gi(r);let u;return t[7]!==i||t[8]!==d||t[9]!==c?(u={data:i,loading:c,error:d},t[7]=i,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function XTe(t){const e=ye.c(8),{data:o,loading:a,error:n}=D4();if(a){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=o?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const i=o?.capabilities?.[t]===!0,c=i?"role":"denied";let d;return e[5]!==i||e[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},e[5]=i,e[6]=c,e[7]=d):d=e[7],d}function O4(){const t=ye.c(10),{data:e,loading:o,error:a}=D4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?Tde.has(n):!1,t[0]=n,t[1]=r):r=t[1];const i=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==a||t[5]!==i||t[6]!==o||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:i,roleSlug:n},t[4]=a,t[5]=i,t[6]=o,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function kde(){const t=ye.c(13),{org:e}=Yi(),o=Wk(),{capabilities:a,isPrivileged:n}=O4(),r=n||!!a["members:manage"];let i;t[0]!==e.id?(i=ca.infraBillingSites(e.id),t[0]=e.id,t[1]=i):i=t[1];const c=!!e.id&&r;let d;t[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==c||t[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},t[4]=i,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Gi(u);let f;t[8]!==m?.sites?(f=m?.sites.map(Ede)??[],t[8]=m?.sites,t[9]=f):f=t[9];let v;return t[10]!==h||t[11]!==f?(v={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=v):v=t[12],v}function Ede(t){return t.slug}function e0e(){const t=ye.c(7),e=Wk(),o=Ua();let a;t[0]!==e?(a=i=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=i=>Id.error(o("settings.infraBilling.portalError",{message:i.message})),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={mutationFn:a,onSuccess:Cde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],vf(r)}function Cde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function t0e(t,e){const o=ye.c(14),{org:a}=Yi(),n=Wk();let r,i,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Gi,i=ca.infraBilling(a.id,r.join(","),e),o[0]=a.id,o[1]=e,o[2]=t,o[3]=r,o[4]=i,o[5]=c):(r=o[3],i=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==e||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),o[6]=e,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==i||o[11]!==d||o[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},o[10]=i,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function Pde(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=O4(),{sites:r,isLoading:i}=kde(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==o||t[3]!==a||t[4]!==c||t[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||e[m.requires]:!0;d=Object.fromEntries(Object.values(wb).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=o,t[3]=a,t[4]=c,t[5]=i,t[6]=d}else d=t[6];return d}function _de(t){const e=ye.c(16),{group:o}=t,a=Ua();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Ade},e[1]=i):i=e[1];const c=vk(i),d=Pde()[o],{titleKey:u}=wb[o];let m;e[2]!==a||e[3]!==u?(m=a(u),e[2]=a,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=y.jsx(Td.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==o||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==d?(f=d.length>1&&y.jsx(pn.Toolbar.Left.Portal,{children:y.jsx(Td.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const S=b.to.replace("$org",r),T=c===S||c.startsWith(`${S}/`);return y.jsx(Td.Tab,{active:T,asChild:!0,children:y.jsx(Wl,{to:b.to,params:{org:r},onClick:()=>P4("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),e[7]=o,e[8]=r,e[9]=c,e[10]=a,e[11]=d,e[12]=f):f=e[12];let v;return e[13]!==h||e[14]!==f?(v=y.jsxs(y.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function Ade(t){return t.location.pathname}function N4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(kO,{className:"h-32 w-full"}),y.jsx(kO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function Rde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=t;let c;e[0]!==o?(c=y.jsx(_de,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??y.jsx(N4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=y.jsx(A.Suspense,{fallback:d,children:i}),e[4]=i,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=y.jsx(gde,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=y.jsx(Td,{children:y.jsx(Td.Content,{children:y.jsx(Td.Container,{children:y.jsxs(xde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Us(t){return function(){return y.jsx(Rde,{group:t,children:y.jsx(N4,{})})}}function Dde(t){try{localStorage.setItem(Or.lastLocation(),JSON.stringify(t))}catch{}}function Ode(){try{const t=localStorage.getItem(Or.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function o0e(){try{localStorage.removeItem(Or.lastLocation())}catch{}}function Nde(t,e){const o=t&&e?TJ(e,t):null;return{queryKey:ca.activeOrganization(t),queryFn:async()=>{if(!t)return null;const a={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ga.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=Qk(n);return n&&!r&&localStorage.setItem(Or.lastOrgSlug(),t),e&&n&&kJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let aN;async function Mde(t){aN=t,await RB();const e=nee();if(!e)return;const o=await Yl.ensureQueryData(Nde(t,e)).catch(()=>null);o&&!Qk(o)&&aN===t&&Dde({org:t})}const Ct={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},Ze={root:Ct.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",blog:"/$org/projects/$agentId/blog",blogPost:"/$org/projects/$agentId/blog/posts/$postId",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",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function a0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Ide},t[0]=e):e=t[0],vk(e)}function Ide(t){return t.matches.at(-1)?.fullPath??""}function n0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Lde},t[0]=e):e=t[0],vk(e)}function Lde(t){return t.matches.findLast(Bde)?.staticData.mainView}function Bde(t){return t.staticData.mainView}function _f(t){return`agent-view:${encodeURIComponent(t)}`}function Fde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function M4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function jde(t){return`blog-post:${encodeURIComponent(t)}`}function zde(t){if(!t?.startsWith("blog-post:"))return null;const e=t.slice(10);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function $E(t,e){return`app:${t}:${e}`}function qde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),o=e.indexOf(":");if(o<=0)return null;const a=e.slice(0,o),n=e.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function I4(t){return`deck:${encodeURIComponent(t)}`}function Ude(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function L4(t){return`file:${encodeURIComponent(t)}`}function $de(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function B4(t){return`library-file:${encodeURIComponent(t)}`}function Vde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function F4(t){return`code:${encodeURIComponent(t)}`}function Hde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const j4=["overview","settings","automations","site-editor","code","content","blog","assets","hosting","e2e","analytics","cdn"],Gde=new Set(j4),z4=new Set(["hosting","e2e","analytics","cdn"]),Wde=new Set(["board","files","connect-sources","reports"]);function r0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Kde=new Map([["preview","site-editor"],["git","site-editor"]]);function xb(t){return Kde.get(t)??t}const VE=new Set(["instructions","connections","layout","settings"]);function Yde(t){return!!t&&VE.has(t)}const Zde=new Set(["overview","board","reports"]);function q4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=xb(e.type);if(VE.has(o))return"settings";if(Gde.has(o)||Zde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return $E(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?_f(e.id):n[0]?_f(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?_f(a):"settings"}function s0e(t){const e=t?.defaultMainView?.type;if(!e||e==="chat")return null;const o=q4(t);return o==="overview"?null:o}function i0e(t){const e=t.routeDefaultMain||q4(t.metadata),o=t.panelTabId&&VE.has(t.panelTabId)?"settings":t.panelTabId?xb(t.panelTabId):t.panelTabId,a=t.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:t.mainPanelParam??(!!o||!!t.routeDefaultMain||!n),activeTab:o??e}}function l0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function c0e(t){return t.mainOpen?t.activeTab==="automations"?!0:M4(t.activeTab)!==null:!1}const Qde=new Set([...j4.filter(t=>!z4.has(t)),...Wde,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Jde(t){return!!t&&Qde.has(t)}function Xde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?$E(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?L4(e.key):void 0;case"deck":return e.deck?I4(e.deck):void 0;case"library-file":return e.path?B4(e.path):void 0;case"code":return e.file?F4(e.file):"code";default:{const o=xb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function d0e(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?F4(o.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"blog-post":return e.postId?jde(e.postId):"blog";case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?$E(e.connectionId,e.toolName):void 0;case"view":return e.viewId?_f(e.viewId):void 0;case"file":return o.key?L4(o.key):void 0;case"deck":return o.path?I4(o.path):void 0;case"library-file":return o.path?B4(o.path):void 0;default:return t.mainView}}const eue={files:"library",discover:"discover"},tue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},oue={analytics:"audience",cdn:"performance"},aue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function U4(t){const e=Fde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=qde(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=M4(t);if(a)return{kind:"automations",automationId:a.id};const n=zde(t);if(n)return{kind:"blog",postId:n.id};const r=$de(t);if(r)return{kind:"output-file",key:r.key};const i=Ude(t);if(i)return{kind:"output-deck",path:i.path};const c=Vde(t);if(c)return{kind:"library-file",path:c.path};const d=Hde(t);if(d)return{kind:"site-editor",view:"code",...d.path?{file:d.path}:{}};if(Yde(t))return{kind:"agent-section",section:"settings"};const u=xb(t);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="blog")return{kind:"blog"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const m=tue[u];if(m){const v=oue[u];return{kind:"project-destination",destination:m,...v?{monitorView:v}:{}}}const h=eue[u];if(h)return{kind:"org-destination",destination:h};const f=aue[u];return f?{kind:"agent-section",section:f}:{kind:"agent-view",viewId:u}}function Ul(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=U4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:Ze.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:e},search:{}}:{to:Ze.reports,params:a,search:{}};case"plan":return r?{to:Ct.plan,params:{org:e},search:{}}:{to:Ze.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:e},search:i}:{to:Ze.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};case"library":return{to:Ct.library,params:{org:e},search:{}}}case"agent-overview":return{to:Ze.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:Ze.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:Ze.siteEditorCode,params:a,search:{file:n.file}}:{to:Ze.siteEditor,params:a,search:{}};case"agent-section":return{to:Ze[n.section],params:a,search:{}};case"blog":return n.postId?{to:Ze.blogPost,params:{...a,postId:n.postId},search:{}}:{to:Ze.blog,params:a,search:{}};case"automations":return n.automationId?{to:Ze.automation,params:{...a,automationId:n.automationId},search:{}}:{to:Ze.automations,params:a,search:{}};case"app":return{to:Ze.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:Ze.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:Ze.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:Ze.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:Ze.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:Ze.connectSources,params:a,search:{}}}}function u0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:Ct.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&U4(e).kind==="org-destination"?"overview":e;return Ul({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function nue(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case Ct.tasks:t({to:Ct.tasks,params:e.params,search:a,replace:n});return;case Ct.home:t({to:Ct.home,params:e.params,search:a,replace:n});return;case Ct.reports:t({to:Ct.reports,params:e.params,search:a,replace:n});return;case Ct.discover:t({to:Ct.discover,params:e.params,search:a,replace:n});return;case Ct.plan:t({to:Ct.plan,params:e.params,search:a,replace:n});return;case Ct.monitoring:t({to:Ct.monitoring,params:e.params,search:a,replace:n});return;case Ct.library:t({to:Ct.library,params:e.params,search:a,replace:n});return;case Ze.root:t({to:Ze.root,params:e.params,search:a,replace:n});return;case Ze.tasks:t({to:Ze.tasks,params:e.params,search:a,replace:n});return;case Ze.reports:t({to:Ze.reports,params:e.params,search:a,replace:n});return;case Ze.plan:t({to:Ze.plan,params:e.params,search:a,replace:n});return;case Ze.monitoring:t({to:Ze.monitoring,params:e.params,search:a,replace:n});return;case Ze.siteEditor:t({to:Ze.siteEditor,params:e.params,search:a,replace:n});return;case Ze.siteEditorContent:t({to:Ze.siteEditorContent,params:e.params,search:a,replace:n});return;case Ze.siteEditorCode:t({to:Ze.siteEditorCode,params:e.params,search:a,replace:n});return;case Ze.automations:t({to:Ze.automations,params:e.params,search:a,replace:n});return;case Ze.automation:t({to:Ze.automation,params:e.params,search:a,replace:n});return;case Ze.app:t({to:Ze.app,params:e.params,search:a,replace:n});return;case Ze.view:t({to:Ze.view,params:e.params,search:a,replace:n});return;case Ze.outputFile:t({to:Ze.outputFile,params:e.params,search:a,replace:n});return;case Ze.outputDeck:t({to:Ze.outputDeck,params:e.params,search:a,replace:n});return;case Ze.libraryFile:t({to:Ze.libraryFile,params:e.params,search:a,replace:n});return;case Ze.connectSources:t({to:Ze.connectSources,params:e.params,search:a,replace:n});return;case Ze.blog:t({to:Ze.blog,params:e.params,search:a,replace:n});return;case Ze.blogPost:t({to:Ze.blogPost,params:e.params,search:a,replace:n});return;case Ze.settings:case Ze.assets:case Ze.releases:case Ze.hosting:case Ze.e2e:case Ze.calendar:case Ze.experiments:t({to:e.to,params:e.params,search:a,replace:n});return;default:return rue(e)}}function rue(t){throw new Error(`Unhandled tab route target: ${JSON.stringify(t)}`)}function p0e(t,e){nue(t,Ul(e),e)}function sue(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function iue(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const lue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),$4=new Set(["main"]),cue=new Set(["virtualmcpid"]);function Tb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function Fl(t,e){return{...Tb(t,lue),...e.search}}function due(t){return Tb(t,cue)}function m0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===Ct.tasks?"board":t.routePath===Ct.reports?"reports":null;if(t.routePath===Ct.home||o){const a=o?Ul({org:t.org,agentId:e,tabId:o}):Vd(t.org,e);return{kind:"canonical",route:a,search:Fl(t.search,a)}}}return t.routePath===Ct.home||t.routePath===Ct.tasks||t.routePath===Ct.reports||t.routePath===Ct.library?{kind:"same-route",search:due(t.search)}:null}function kr(t){return t?.trim()||void 0}function V4(t){return Jde(t)||t!==void 0&&z4.has(t)}function H4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||ZL(e)!==null||KY(e)!==null||YY(e)!==null||JL(e)||XL(e):!1}function uue(t){const e=kr(t.agentIdParam),o=V4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function h0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=_0({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!e||iue(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!H4(e);if(!(V4(e)||o))return null;const n=uue({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=_0({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function pue(t,e,o,a){const n=kr(a);switch(t){case"board":return n?Ul({org:e,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Pi(o.path);return{to:Ct.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?Ul({org:e,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:e},search:{}};case"overview":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=pue(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:Ze.root,params:{org:t.org,agentId:o},search:{}}:Ul({org:t.org,agentId:o,tabId:t.tabId}):null}function Vd(t,e){const o=kr(e);return o?{to:Ze.root,params:{org:t,agentId:o},search:{}}:{to:Ct.home,params:{org:t},search:{}}}function mue(t){const{main:e}=t;if(e===void 0)return null;const o=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Tb(o,$4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...Fl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Jp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:Fl(o,a)}:null}function Pi(t){return typeof t=="string"&&t.length>0?t:void 0}function _0(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=_0({...t,search:Tb(e,$4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return mue({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const i=Vd(t.org,o);return{kind:"canonical",route:i,search:Fl(e,i)}}const n=Xde(a,{file:Pi(e.file),key:Pi(e.key),deck:Pi(e.deck),path:Pi(e.path),connection:Pi(e.connection),tool:Pi(e.tool),automation:Pi(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&o?Ul({org:t.org,agentId:o,tabId:n}):Jp({org:t.org,agentId:o,tabId:n,search:e}):Jp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...Fl(e,r),sidepanel:!0,mainpanel:!1}:Fl(e,r)}:null}function g0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=Jp({org:t.org,agentId:o,tabId:n,search:e}),c=!i&&n.trim().length>0&&a?Jp({org:t.org,agentId:a,tabId:n,search:e}):null;r=i??c??{to:Ct.home,params:{org:t.org},search:{}}}else r=Vd(t.org,o);return{route:r,search:{...Fl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function G4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const hue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},W4=hue,HE={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()},gue=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],_v={fileView:Wt(["all","documents","media"]).catch("all").optional(),modified:Wt(["any","today","week","month"]).catch("any").optional(),layout:Wt(["list","grid"]).catch("list").optional(),sort:Wt(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:uT().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:Wt(gue).catch("files").optional(),scope:Wt(["user"]).optional().catch(void 0),action:Wt(["create"]).optional().catch(void 0),tab:Wt(["all","connected"]).optional().catch(void 0)},fue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Qv().optional(),siteUrl:$().optional(),...W4},K4={...fue,task:$().optional(),project:$().optional(),...HE,skill:_v.skill,brand:_v.brand},wm=we(K4),Y4="blog-manager/posts/";function f0e(t){return t.startsWith(Y4)}function vue(t){return t.split("/").pop()??t}function v0e(t){return`${Y4}${t}`}function b0e(t){return`collections/blog/posts/${t}`}const bue=["context","posts","authors","categories","post-schedule"],Z4=Wt(bue),yue={blogCollection:Z4.optional(),blogItem:$().optional()};function y0e(t,e){return t==="context"&&!e?"posts":t}const Sue=Wt(["edit","preview"]),wue={blogView:Sue.optional()};function S0e(t){const e=Z4.safeParse(t.contentCollection);if(!e.success)return null;const o=e.data,a=t.contentItem;return o==="posts"?a?{collection:o,postId:vue(a)}:{collection:o}:a?{collection:o,item:a}:{collection:o}}function w0e(t){const e=t.blogCollection;return e==="authors"||e==="categories"?t.blogItem?{contentCollection:e,contentItem:t.blogItem}:{contentCollection:e}:{contentCollection:"posts"}}const Va=J$({component:()=>y.jsx(vde,{children:y.jsx(fk,{})})}),xue=De({getParentRoute:()=>Va,path:"/login",component:Be(()=>Fe(()=>import("./login-BQoCsEsr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),validateSearch:Jr(()=>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()}))}),Tue=De({getParentRoute:()=>Va,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-DupR1ypd.js"),__vite__mapDeps([8,4])))}),kue=De({getParentRoute:()=>Va,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-B8UgVD_T.js"),[])),validateSearch:Jr(()=>we({token:$().optional(),error:$().optional()}))}),Eue=De({getParentRoute:()=>Va,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-tnYz6mdY.js"),[]))}),Cue=De({getParentRoute:()=>Va,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-B5GC_Yyx.js"),__vite__mapDeps([9,10,11])))}),Pue=De({getParentRoute:()=>Va,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-BVAt6oz1.js"),__vite__mapDeps([12,4,1,2,3])))}),_ue=De({getParentRoute:()=>Va,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-Cn-Tp4BP.js"),[]))}),xm=De({getParentRoute:()=>Va,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-Byi_jW8h.js"),__vite__mapDeps([13,14,15])))}),Aue=De({getParentRoute:()=>xm,path:"/",beforeLoad:()=>{throw po({to:"/_admin/users"})}}),Rue=De({getParentRoute:()=>xm,path:"/users",component:Be(()=>Fe(()=>import("./users-BGI0PgLT.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25])))}),Due=De({getParentRoute:()=>xm,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-BAGB65GL.js"),__vite__mapDeps([26,17,18,19,20,21,22,27,24,28,29,30,31,32,33,23,34,35,25])))}),Oue=De({getParentRoute:()=>xm,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-CEf1e1i5.js"),__vite__mapDeps([36,20,27,33,25])))}),Nue=xm.addChildren([Aue,Rue,Due,Oue]),GE=De({getParentRoute:()=>Va,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-DHcyl3tS.js").then(t=>t.q),__vite__mapDeps([37,38,39,15,25,40,41,42,19,43,44,45,46,31,47,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,62,63,64,11,65,66,67,35,68,69,3,2,70,71,72,73,74,75,24,76,27,77,78,30,79,80,81,82,5,6,7,14,83,84])))}),Mue=De({getParentRoute:()=>GE,path:"/",beforeLoad:async()=>{const t=Ode();if(t)throw po({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Or.lastOrgSlug());if(e)throw po({to:"/$org",params:{org:e}});const{data:o}=await DB();if(!o)return;const a=o[0];throw po(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Iue=De({getParentRoute:()=>Va,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await DB();if(t&&t.length>0)throw po({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-fUXPiATA.js"),__vite__mapDeps([85,14,4,86,55,27,32,38,46,58])))}),Q4=Jr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),Lue=De({getParentRoute:()=>Va,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-RhfCcqej.js"),__vite__mapDeps([87,88,1,2,3,4,86,55,89,90,27,91,64,11,92,73,44,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,22,56,57,58,59,60,61,78,30,93,94,95,96,24,97,98,99,10,100,101,102,103,104,105]))),validateSearch:Q4}),Bue=De({getParentRoute:()=>Va,path:"/commerce-onboarding",validateSearch:Q4,beforeLoad:({search:t})=>{throw po({to:"/reports-onboarding",search:t})}}),Fue=De({getParentRoute:()=>Va,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-CMLPeKz2.js"),__vite__mapDeps([106,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,14]))),validateSearch:Jr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),WE=De({getParentRoute:()=>Va,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-C1i1Yk8D.js"),__vite__mapDeps([107,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,112,7,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,118,119,120,121,89,90,122,123,124,33,125,126,127,128,129,130,131,132,133,28,29,134,135,136,137,138,139,140,141,142,20,21,143,144,145,146,147,148,149,150,151,32,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,97,185,186,187,103,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,23,203,204,17,18,205,206,207,208,209,210,211,212,213,96,214,215,216,217,218,219,220,221,222,101,94,102,223,224,225,226,98,99,10,227,228,229,230,231,232,233,234,235])))}),jue=De({getParentRoute:()=>WE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-C1i1Yk8D.js"),__vite__mapDeps([107,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,112,7,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,118,119,120,121,89,90,122,123,124,33,125,126,127,128,129,130,131,132,133,28,29,134,135,136,137,138,139,140,141,142,20,21,143,144,145,146,147,148,149,150,151,32,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,97,185,186,187,103,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,23,203,204,17,18,205,206,207,208,209,210,211,212,213,96,214,215,216,217,218,219,220,221,222,101,94,102,223,224,225,226,98,99,10,227,228,229,230,231,232,233,234,235])),"SiteEditorPreview")}),zue=De({getParentRoute:()=>WE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-C1i1Yk8D.js"),__vite__mapDeps([107,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,112,7,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,118,119,120,121,89,90,122,123,124,33,125,126,127,128,129,130,131,132,133,28,29,134,135,136,137,138,139,140,141,142,20,21,143,144,145,146,147,148,149,150,151,32,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,97,185,186,187,103,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,23,203,204,17,18,205,206,207,208,209,210,211,212,213,96,214,215,216,217,218,219,220,221,222,101,94,102,223,224,225,226,98,99,10,227,228,229,230,231,232,233,234,235])),"SiteEditorContent")}),que=De({getParentRoute:()=>Va,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-D10gkSrT.js"),__vite__mapDeps([236,100,3,1,2,237])))}),kb=De({getParentRoute:()=>GE,path:"/$org",loader:({params:t})=>Mde(t.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-BmXq3cGb.js"),__vite__mapDeps([238,118,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,7,14,83,84,116,119,120,121,89,90,122,123,124,33,131,215,110,109,221,182,29,239,240,241,23,242,243,153,145,129,134,244,32,245,135,189,206,205,246,247,230,111,248,133,96,249,219])))}),Eb=De({getParentRoute:()=>kb,id:"org-shell",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./thread-route-hd8uqVKt.js"),__vite__mapDeps([250,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,88,251,93,94,95,44,91,92,73,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,90,27,96,24,97,98,99,10,100,101,102,103,252,104])))}),Uue=we({sidepanel:JB,mainpanel:XB,main:lo([$(),Qe(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>Eb,id:"agent-shell",validateSearch:Uue,search:{middlewares:[x$(["sidepanel"])]},pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-B8-5mDhW.js"),__vite__mapDeps([253,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,7,14,83,84,116,212,108,109,110,111,148,172,147,90,149,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,219,220,221,222,101,94,102,103,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,189,154,128,127,155,20,210,211,129,112,117,254,255,256,206,191,190,243,153,145,187,205,122,257,258,259,260,261,136,184,125])))}),$ue=wm.extend({virtualmcpid:$().optional()}),Vue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:$ue,component:()=>null}),It=Be(()=>Fe(()=>import("./index-CY0csw6V.js").then(t=>t.i),__vite__mapDeps([112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117])),"ChatLayoutPending"),Lt=Be(()=>Fe(()=>import("./index-CY0csw6V.js").then(t=>t.i),__vite__mapDeps([112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117])),"ChatLayoutError"),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-DrAlxwLg.js"),__vite__mapDeps([262,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,213,147,148,90,149,150,151,108,109,110,111,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,172,218,219,220,221,222,101,94,102,103,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,263,264,246,247,119,265,179,180,178,266,122,267,240,248,268,269,261,136,184,258,259,260,270,239,123])))}),Gue=De({getParentRoute:()=>en,path:"/projects",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=(e.project??e.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw po({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw po(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a,hash:!0,replace:!0})}});let nN;const Xt=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:wm,beforeLoad:({cause:t,params:e})=>{if(t==="preload")return{enteredProject:!1};const o=t==="enter"||e.agentId!==nN;return nN=e.agentId,{enteredProject:o}},component:fk}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-DGOr-pbZ.js"),__vite__mapDeps([271,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,108,109,110,111,213,147,148,90,149,150,151,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,172,218,219,220,221,222,101,94,102,103,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,263,264,246,247,119,265,179,180,178,266,122,267,240,248,268,239,257])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HE}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:o?.taskKey??t.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-C14eJRtf.js"),__vite__mapDeps([272,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,273,119,120,274,181,131,275,23,96,218,276,277,121,241,246,247,230,111,269,28,29,267,240,248,278,124,162,186,166,151,150,108,109,110,279,147,148,90,149,163,217,280,196,155,281,171,95,282,229,165,167,168,169,170,172,173,174,228,254,209,214,283,220,221])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-DTqtwUEL.js"),__vite__mapDeps([284,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,285,88,251,93,94,95,104,105,270,286])))}),Cb=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),...W4}),component:Be(()=>Fe(()=>import("./agent-site-editor-CqHVUUAC.js"),__vite__mapDeps([207,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,208,209,126,127,128,129,130,131,6,78,30,7,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,132,133,28,29,134,135,136,137,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,14,83,84,115,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,114,231,165,166,167,168,169,170,116,173,198,199,185,186,158,184,232,154,155,189,233,203,112,113,117,234,235])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/blog",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog"},validateSearch:we(yue),component:Be(()=>Fe(()=>import("./agent-blog-qw7eDyTJ.js"),__vite__mapDeps([287,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,283,182,193,140,141,21,145,146,194,164,195,196,200,201,202,203,183,288,289,290,255,256,206,191,190,243,153,234])))}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/blog/posts/$postId",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog-post"},validateSearch:we(wue),component:Be(()=>Fe(()=>import("./agent-blog-post-D5O_ItNv.js"),__vite__mapDeps([291,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,283,203,194,164,195,141,156,289,288,234])))}),Jue=De({getParentRoute:()=>Cb,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-OMqwm4vD.js"),__vite__mapDeps([292,290,255,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,256,169,149,189,212,108,109,110,111,148,78,30,6,82,7,172,147,90,27,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,80,81,219,220,221,222,101,94,102,103,223,224,73,33,225,226,98,99,10,227,23,228,229,230,231,165,166,37,15,25,71,72,74,75,24,76,77,79,5,14,83,84,167,168,170,116,173,128,127,206,191,190,243,153,145,129,187,283,138,139,140,126,136,137,141,142,20,21,146,32,154,155,156,115,157,158,159,160,161,162,163,119,120,164,175,176,177,178,179,180,181,182,183,184,97,125,117,185,186,188])))}),Xue=De({getParentRoute:()=>Cb,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-BkBXLnyf.js"),__vite__mapDeps([293,290,255,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,256,169,149,189,212,108,109,110,111,148,78,30,6,82,7,172,147,90,27,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,80,81,219,220,221,222,101,94,102,103,223,224,73,33,225,226,98,99,10,227,23,228,229,230,231,165,166,37,15,25,71,72,74,75,24,76,77,79,5,14,83,84,167,168,170,116,173,128,127,206,191,190,243,153,145,129,187,283,192,161,136,139,140,126,137,141,142,20,21,146,32,162,163,119,120,164,155,158,175,176,177,178,179,180,181,182,193,194,195,196,197,198,199,200,201,202,203,183,184,154,160,204,17,18])))}),epe=De({getParentRoute:()=>Cb,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-Cdro8saM.js"),__vite__mapDeps([294,290,255,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,256,169,149,189,212,108,109,110,111,148,78,30,6,82,7,172,147,90,27,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,80,81,219,220,221,222,101,94,102,103,223,224,73,33,225,226,98,99,10,227,23,228,229,230,231,165,166,37,15,25,71,72,74,75,24,76,77,79,5,14,83,84,167,168,170,116,173,128,127,206,191,190,243,153,145,129,187,283,20])))}),tpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw po({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-mWv09YVd.js"),__vite__mapDeps([295,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,21,20,276,296,23])))}),ope=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:we({automationView:Wt(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-DNgt345_.js"),__vite__mapDeps([297,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23,133,32,131,148,171,256,298,108,109,110,111,132,28,29,134,135,299,276,166,300,216,217,147,90,149,150,151,172,218,301,247,119,302,143,144,183,184,303,18,20,304,228,254,282,229,165,167,168,169,170,173,174,227])))}),ape=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-Dm19cEBP.js"),__vite__mapDeps([305,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,306,307,308,309,310,108,109,110,111,33,20,311,218,312,101,94,102,103,299,245,99,10,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,174,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,151,34,187,127,314,315,170,188,211])))}),npe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(_v),component:Be(()=>Fe(()=>import("./agent-library-CF4cgtSY.js"),__vite__mapDeps([316,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,317,21,108,109,110,111,218,318,33,150,151,306,307,308,309,310,20,311,260,131,258,259,96,261,136,184,174,319,203,18,312,101,94,102,103,299,245,99,10,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,313,169,133,256,172,149,32,182,189,243,153,145,129,242,34,187,127,314,315,170,188,211])))}),rpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-BnRemq1c.js"),__vite__mapDeps([320,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,290,255,171,256,169,149,189,212,108,109,110,111,148,172,147,90,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,219,220,221,222,101,94,102,103,223,224,33,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,170,173,128,127,206,191,190,243,153,145,129,187,21,146])))}),spe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-DJ49AvX3.js"),__vite__mapDeps([321,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,290,255,171,256,169,149,189,212,108,109,110,111,148,172,147,90,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,219,220,221,222,101,94,102,103,223,224,33,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,170,173,128,127,206,191,190,243,153,145,129,187,126,136,137,199])))}),ipe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-DPI1YzdW.js"),__vite__mapDeps([322,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23,203,96,18,166,28,29,323,312,101,94,102,103,108,109,110,111,299,20,245,99,10,33,171,300,222,223,224,90,225,226,98,227,228,229,174,218,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),lpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-BzjDB0Mp.js"),__vite__mapDeps([324,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23,28,29,18,203,166,143,144,323,312,101,94,102,103,108,109,110,111,299,20,245,99,10,33,171,300,222,223,224,90,225,226,98,227,228,229,174,218,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),cpe=De({getParentRoute:()=>Xt,path:"/analytics",validateSearch:we({view:$().optional()}),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:e.view==="experiments"?"experiments":"audience"},replace:!0})}}),dpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-Bc5gvPec.js"),__vite__mapDeps([325,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,227,23,274,326,131,182,29,162,327,265,179,180,178,266,18,152,144,247,119,328,267,240,248,181])))}),upe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-BbI7pAh_.js"),__vite__mapDeps([329,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,330,203,331,175,176,177,178,179,180,332,141,195,197,233])))}),ppe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-DFwq2V3Y.js"),__vite__mapDeps([333,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,182,197,331,175,176,177,178,179,180,332,141,195,202,233,203,323,312,299,245,300,313,256,32,243,153,145,242,310,34,314,315,188])))}),mpe=De({getParentRoute:()=>Xt,path:"/cdn",beforeLoad:({params:t})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:"performance"},replace:!0})}}),J4=we({args:$().optional()}),hpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/apps/$connectionId/$toolName",validateSearch:J4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-CTOrbTVN.js"),__vite__mapDeps([334,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,191,335,148,256,167,168,169,108,109,110,111,267,240,248,119,336,88,92,93,94,95,90,96,97,98,99,10,100,101,102,103])))}),gpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/views/$viewId",validateSearch:J4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-D6Nsllob.js"),__vite__mapDeps([337,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,335,148,256,167,168,169,108,109,110,111,267,240,248,119,336,88,92,93,94,95,90,96,97,98,99,10,100,101,102,103,323,312,299,20,245,33,171,300,222,223,224,28,29,225,226,227,23,228,229,174,218,313,133,172,149,32,131,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),fpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-G_Q7_eCe.js"),__vite__mapDeps([338,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,174,261,218,136,184,150,151,108,109,110,111,173,323,312,101,94,102,103,299,20,245,99,10,33,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,310,34,187,127,314,315,170,188,211])))}),vpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-DAVpyFYS.js"),__vite__mapDeps([339,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,260,218,131,323,312,101,94,102,103,108,109,110,111,299,20,245,99,10,33,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,174,313,169,133,256,172,149,32,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),bpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-D0_5aahe.js"),__vite__mapDeps([340,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,341,259,96,260,218,131,261,136,184,174,150,151,108,109,110,111,323,312,101,94,102,103,299,20,245,99,10,33,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,313,169,133,256,172,149,32,182,189,243,153,145,129,242,310,34,187,127,314,315,170,188,211])))}),ype=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-BaY-1hUg.js"),__vite__mapDeps([342,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,91,88,92,93,94,95,90,96,97,98,99,10,100,101,102,103,252,104])))}),Spe=De({getParentRoute:()=>Xt,path:"/$legacyView",component:()=>null}),wpe=De({getParentRoute:()=>en,path:"/agents",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw po(o?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:a=>a,hash:!0,replace:!0})}}),xpe=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:wm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!H4(o))return;const a=sue(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw po({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-CQX5HShD.js"),__vite__mapDeps([343,257,66])))}),Tpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HE}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-DmaKkQjL.js"),__vite__mapDeps([344,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,273,119,120,274,181,131,275,23,96,218,276,277,121,241,246,247,230,111,269,28,29,267,240,248,278,124,162,186,166,151,150,108,109,110,279,147,148,90,149,163,217,280,196,155,281,171,95,282,229,165,167,168,169,170,172,173,174,228,254,209,214,283,220,221])))}),kpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-Bc5gvPec.js"),__vite__mapDeps([325,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,227,23,274,326,131,182,29,162,327,265,179,180,178,266,18,152,144,247,119,328,267,240,248,181])))}),Epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-DrA1-9Im.js"),__vite__mapDeps([345,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,327,265,179,180,178,266,18,152,144,23,247,119,328,181,131,28,29,143,282,229,165,166,151,147,148,90,149,150,108,109,110,111,167,168,169,170,171,172,173,174,228,254])))}),Cpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-Dqx3LdYF.js"),__vite__mapDeps([346,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,285,88,251,93,94,95,104,105,270,286])))}),Ppe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(_v),component:Be(()=>Fe(()=>import("./library-DuCkVtdF.js"),__vite__mapDeps([347,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,7,112,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,306,307,308,309,310,33,20,311,218,341,259,96,260,131,261,136,184,174,150,151,317,21,318,258,319,203,18])))}),_pe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-D1utRlpJ.js"),__vite__mapDeps([348,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23])))}),X4=we({view:Wt(["metrics","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:dL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),Ape=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:X4,component:Be(()=>Fe(()=>import("./monitoring-s0QSQdK5.js"),__vite__mapDeps([349,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,203,131,350,265,179,180,178,266,23,162,97,328,268,108,109,110,111,130,132,133,28,29,134,135,311,327,18,152,144,247,119,336,88,92,93,94,95,90,96,98,99,10,100,101,102,103,171,181,176,177,143,129,240,330,331,142,126,127,128,136,137,20,175,332,141,195,197,233,351,33,277,281,21,32,304,228,352])))}),Rpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-D1utRlpJ.js"),__vite__mapDeps([348,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23])))}),Dpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:X4,component:Be(()=>Fe(()=>import("./monitoring-s0QSQdK5.js"),__vite__mapDeps([349,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,203,131,350,265,179,180,178,266,23,162,97,328,268,108,109,110,111,130,132,133,28,29,134,135,311,327,18,152,144,247,119,336,88,92,93,94,95,90,96,98,99,10,100,101,102,103,171,181,176,177,143,129,240,330,331,142,126,127,128,136,137,20,175,332,141,195,197,233,351,33,277,281,21,32,304,228,352])))}),Ope=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-CI_r8-3h.js"),__vite__mapDeps([353,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,171,145,153,187,103])))}),Npe=De({getParentRoute:()=>kb,path:"/members",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/members",params:{org:t.org}})}}),Mpe=we({main:lo([$(),Qe(0)]).optional(),virtualmcpid:$().optional(),...K4,sidepanel:JB,mainpanel:XB,thread:$().optional()}),Ipe=De({getParentRoute:()=>Eb,path:"/",validateSearch:Mpe,pendingComponent:Zd,component:Be(()=>Fe(()=>import("./index-wTvZKrHA.js"),__vite__mapDeps([354,257,66])))}),Lpe=De({getParentRoute:()=>Eb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),co=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>kb,path:"/settings",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-CDNrV6ea.js"),__vite__mapDeps([355,7,112,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,356,23,131,152,144,110,109,221])))}),Bpe=De({getParentRoute:()=>co,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-CYDCVRJ_.js"),__vite__mapDeps([357,309])))}),Fpe=De({getParentRoute:()=>co,path:"/connections",validateSearch:Jr(()=>we({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"connections",...e},replace:!0})}}),jpe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-B8RNsYKm.js"),__vite__mapDeps([358,101,94,102,103,20,226,55,57,359,64,11,256,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,22,56,58,59,60,61,171,28,29,30,180,360,177,72,131,78,63,7,75,69,3,2,70,68,35,225,313,23,169,10,99,73,116,90,27,172,361,362,265,179,178,266,328,143,144,224,168,82]))),validateSearch:Jr(()=>we({tab:$().optional()}))}),zpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-D7GPiaeW.js"),__vite__mapDeps([363,20,64,11,90,27,33,359,256,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,101,94,102,103,28,29,30,180,360,177,72,131,78,63,7,75,69,3,2,70,68,35,225,168,169,186,224,313,23,10,167,73,108,65,66,62,67,109,110,111,37,15,25,71,74,24,76,77,79,80,81,82,5,6,14,83,84,183,184,203]))),validateSearch:Jr(()=>we({replayId:$().optional()}))}),qpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Be(()=>Fe(()=>import("./index-ByeVWJ7k.js"),__vite__mapDeps([364,21,22,20,307,308,309,165,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,56,57,58,59,60,61,166,151,147,148,90,27,149,150,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,7,78,30,37,15,25,71,72,73,74,75,24,76,77,79,80,81,82,5,6,14,83,84,167,168,169,170,116,171,172,173,174,224,23,131,183,184,302,133,28,29,326,182,162,33,227,32,186,362,265,179,180,178,266,328,282,229,228,254,18,304,276,303,203,240,350,97,268,283,220,221]))),validateSearch:Jr(()=>we({tab:Wt(["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:Wt(["all","success","errors"]).default("all"),search:$().default(""),page:Mt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),Upe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Be(()=>Fe(()=>import("./general-CThohMer.js"),__vite__mapDeps([365,300,366,32,45,39,67,35,68,171,64,11,367,23,28,29,30,31,309])))}),$pe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./connect-CPk_XjVi.js"),__vite__mapDeps([368,186,23,28,29,30,31,143,144,151,40,41,42,19,43,44,45,38,46,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,264,369,203,27,360,64,11,256,133,21,73,370,228,229,81,82,102,103,171,307,308,309])))}),Vpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./ai-providers-CovrDI_x.js"),__vite__mapDeps([371,41,110,46,67,35,68,298,6,7,108,65,66,62,63,64,11,69,3,2,70,109,111,132,133,51,28,29,30,31,43,47,50,42,22,134,135,52,300,356,55,23,131,152,144,78,221,244,32,79,57,245,307,308,309])))}),Hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),Gpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./infra-billing-C-QVvoRz.js"),__vite__mapDeps([372,48,23,302,133,51,31,71,72,22,131,28,29,30,18,266,179,180,351,328,307,308,309])))}),Wpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-CpTgKWI_.js"),__vite__mapDeps([373,41,55,59,203,27,28,29,30,31,33,315,307,308,309])))}),Kpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./api-keys-s9GXv_s3.js"),__vite__mapDeps([374,369,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,203,27,23,360,28,29,30,64,11,256,133,21,73,370,228,229,81,82,102,103,171,307,308,309])))}),Ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./buckets-QdgXdcXC.js"),__vite__mapDeps([375,41,55,57,23,203,27,28,29,30,31,32,33,145,307,308,309])))}),Zpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,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:Us("repositories"),component:Be(()=>Fe(()=>import("./repositories-CDGzat4Q.js"),__vite__mapDeps([376,377,77,43,55,78,30,27,79,80,81,82,22,45,56,24,67,35,68,44,133,51,59,203,23,186,96,166,28,29,31,33,57,314,315,307,308,309])))}),Qpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./synced-repos-MVTThVIT.js"),__vite__mapDeps([378,55,203,77,43,78,30,27,79,80,81,82,22,45,56,24,67,35,68,318,307,308,309])))}),Jpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-CwTnwmgS.js"),__vite__mapDeps([379,133,51,33,47,54,55,181,71,72,22,131,302,23,31,28,29,30,32,301,366,45,39,67,35,68,171,64,11,24,276,275,60,61,96,78,116,218,80,81,62,63,70,2,307,308,309])))}),Xpe=De({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/task-board",params:{org:t.org}})}}),eme=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Be(()=>Fe(()=>import("./projects-CJc-98C_.js"),__vite__mapDeps([380,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,23,21,76,27,64,11,75,63,69,3,2,70,68,35,77,78,30,79,80,81,82,24,67,270,245,251,93,94,95,286,62,171])))}),tme=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./members-n8Lstn8K.js"),__vite__mapDeps([381,382,19,49,78,30,152,144,23,21,22,17,18,20,90,27,28,29,31,33,383,249,50,57,60,133,51,71,72,131,55,278,307,308,309])))}),ome=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./roles-BgQMqKxE.js"),__vite__mapDeps([384,383,23,49,55,57,17,18,19,20,21,22,134,370,73,44,40,41,42,43,45,38,46,31,47,39,48,50,51,52,53,54,56,58,59,60,61,228,133,229,81,64,11,82,102,103,171,63,110,32,78,30,74,62,308,309]))),validateSearch:Jr(()=>we({role:$().optional()}))}),ame=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Be(()=>Fe(()=>import("./sso-Bc4JROTr.js"),__vite__mapDeps([385,367,23,28,29,30,31,32,83,57,307,308,309])))}),nme=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Be(()=>Fe(()=>import("./profile-BUCYaJ8H.js"),__vite__mapDeps([386,176,177,29,57,58,32,28,30,31,152,144,78,52,53,54,300,219])))}),rme=De({getParentRoute:()=>co,path:"/agents",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/projects",params:{org:t.org}})}}),sme=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Be(()=>Fe(()=>import("./automations-rbGBA3mS.js"),__vite__mapDeps([387,55,61,21,22,20,276,64,11,75,63,69,3,2,70,68,35,296,23,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,56,57,58,59,60,307,308,309])))}),ime=De({getParentRoute:()=>co,path:"/skills",beforeLoad:({params:t})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"skills"},replace:!0})}}),lme=De({getParentRoute:()=>co,path:"/memory",validateSearch:Jr(()=>we({scope:Wt(["user"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"memory",...e},replace:!0})}}),cme=co.addChildren([Bpe,Fpe,jpe,zpe,rme,sme,ime,lme,qpe,Upe,$pe,Vpe,Hpe,Gpe,Wpe,Kpe,Ype,Zpe,Qpe,Jpe,Xpe,eme,tme,ome,ame,nme]),dme=Cb.addChildren([Jue,Xue,epe]),ume=Xt.addChildren([Wue,Kue,Yue,dme,Zue,Que,tpe,ope,ape,npe,rpe,spe,ipe,lpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,vpe,bpe,ype,Spe,Rpe,Dpe]),pme=en.addChildren([Vue,Hue,Gue,ume,wpe,xpe,Tpe,kpe,Epe,Cpe,Ppe,Ope,_pe,Ape]),mme=Eb.addChildren([Ipe,Lpe,pme]),hme=kb.addChildren([mme,Npe,cme]),gme=GE.addChildren([Mue,hme]),fme=Va.addChildren([gme,Nue,Iue,Lue,Bue,Fue,WE.addChildren([jue,zue]),que,xue,Tue,kue,Eue,Cue,Pue,_ue]);function vme(){const t=ye.c(16),e=Ua();let o;t[0]!==e?(o=e("common.index.pageNotFound"),t[0]=e,t[1]=o):o=t[1];let a;t[2]!==o?(a=y.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),t[2]=o,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=y.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("common.goBack"),t[8]=e,t[9]=i):i=t[9];let c;t[10]!==i?(c=y.jsx("button",{type:"button",onClick:bme,className:"text-sm text-primary hover:underline",children:i}),t[10]=i,t[11]=c):c=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==c?(d=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),t[12]=a,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function bme(){return window.history.back()}const Pb=cV({routeTree:fme,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:vme});function _e(...t){return QB(eE(t))}function yme(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function Vo({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function Xl(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function A0(t,e){for(const o in t)if(t[o]===e)return o}function Xp(t,e){let o=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(o=o.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(o=o.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(o=o.regex(t.regex,{message:e?.INVALID_PASSWORD})),o}var Sme={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"},wme={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"},xme={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."},Tme={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."},kme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Eme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Cme={...kme,...Eme},Pme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},_me={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ame={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Rme={INVALID_SESSION_TOKEN:"Invalid session token"},Dme={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"},Ome={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"},Nme={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"},Mme={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"},Ime={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"},Lme={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"},Bme={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"},Fme={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",...Tme,...Sme,...wme,...xme,...Cme,...Pme,..._me,...Ame,...Rme,...Dme,...Ome,...Nme,...Mme,...Ime,...Lme,...Bme},jme={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"},rN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},sN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const e5=A.createContext({});function t5(){return A.useContext(e5)}var hx,iN;function zme(){if(iN)return hx;iN=1;var t=function(){};return hx=t,hx}var qme=zme();const Ume=Gl(qme);function $me({async:t,appendTo:e,defer:o,id:a,nonce:n,src:r}){const i=document.createElement("script");t!==void 0&&(i.async=t),o!==void 0&&(i.defer=o),a&&(i.id=a),n&&i.setAttribute("nonce",n),i.src=r,(e==="head"?document.head:document.body).appendChild(i)}var Vme=function(t,e){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(o[a[n]]=t[a[n]]);return o};let Rp=null,em=!1;const Av=new Set,Rv=new Set,Hme=typeof window<"u",Cd="___grecaptcha_cfg",o5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Gme(){if(!Hme)return;function t(o){if(em)o();else{window[Cd]||(window[Cd]={});const a=window[Cd];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const o of Rv)o();Rv.clear()}window[o5]=e}function Wme({language:t,onLoadCallbackName:e,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function Kme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=Wme({language:t,onLoadCallbackName:o5,render:e,useEnterprise:a,useRecaptchaNet:n});if(Rp){if(Rp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=i,$me(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function Yme(t){if(!window[Cd])return;const e=window[Cd];e.clients&&delete e.clients[t]}function Zme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=Vme(e,["onLoadCallback","onLoadCallbackName"]);if(Av.size===0&&Gme(),Kme(n),Av.add(t),o&&(em?o():Rv.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};em?r():Rv.add(r)}}function Qme(t){var e,o,a;Av.delete(t),Av.size===0&&(window.grecaptcha=void 0,window[Cd]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Rp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Rp=null,em=!1)}let lN=!1;function Jme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[S,T]=A.useState(null),[x,k]=A.useState(null),C=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(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(()=>{T(L)})}return Zme(b,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{Qme(b),T(null)}},[t?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!t?.element||!S?.render)return;const U={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:a,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=S.render(B,U);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(lN||(Ume(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),lN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),C.current=!0,()=>{k(null),C.current=!1,Yme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(v=t?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const E=!!t?.element,_=E?x:a,D=A.useMemo(()=>_!==null&&S?.execute?R=>{if(_===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):S.execute(_,{action:R})}:void 0,[_,S,E]);return y.jsx(e5.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var Xme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const o={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,o),this.notify(t)}setRefetching(t,e){const o=this.cache.get(t);o&&(o.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const o of e)this.notify(o)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const o=this.listeners.get(t);o&&(o.delete(e),o.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const o=Array.from(e);for(const a of o)a()}}},Qn=new Xme;function ehe(){return()=>{}}function $s(){return A.useSyncExternalStore(ehe,()=>!0,()=>!1)}function a5(){const[t,e]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:t}}function KE(){const[t,e]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:t}}function the({children:t}){const e=$s(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?t:y.jsxs(Jme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&y.jsx("style",{children:`
|
|
167
|
+
`)},sse=0,Kc=[];function ise(t){var e=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(sse++)[0],r=A.useState(KF)[0],i=A.useRef(t);A.useEffect(function(){i.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var S=_re([t.lockRef.current],(t.shards||[]).map(ZO),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var c=A.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!i.current.allowPinchZoom;var x=Kg(S),k=o.current,C="deltaX"in S?S.deltaX:k[0]-x[0],E="deltaY"in S?S.deltaY:k[1]-x[1],_,D=S.target,R=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in S&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,U=L?L===D||L.contains(D):!1;if(U)return!1;var B=KO(R,D);if(!B)return!0;if(B?_=R:(_=R==="v"?"h":"v",B=KO(R,D)),!B)return!1;if(!a.current&&"changedTouches"in S&&(C||E)&&(a.current=_),!_)return!0;var z=a.current||_;return ase(z,T,S,z==="h"?C:E)},[]),d=A.useCallback(function(S){var T=S;if(!(!Kc.length||Kc[Kc.length-1]!==r)){var x="deltaY"in T?YO(T):Kg(T),k=e.current.filter(function(_){return _.name===T.type&&(_.target===T.target||T.target===_.shadowParent)&&nse(_.delta,x)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var C=(i.current.shards||[]).map(ZO).filter(Boolean).filter(function(_){return _.contains(T.target)}),E=C.length>0?c(T,C[0]):!i.current.noIsolation;E&&T.cancelable&&T.preventDefault()}}},[]),u=A.useCallback(function(S,T,x,k){var C={name:S,delta:T,target:x,should:k,shadowParent:lse(x)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(E){return E!==C})},1)},[]),m=A.useCallback(function(S){o.current=Kg(S),a.current=void 0},[]),h=A.useCallback(function(S){u(S.type,YO(S),S.target,c(S,t.lockRef.current))},[]),f=A.useCallback(function(S){u(S.type,Kg(S),S.target,c(S,t.lockRef.current))},[]);A.useEffect(function(){return Kc.push(r),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Wc),document.addEventListener("touchmove",d,Wc),document.addEventListener("touchstart",m,Wc),function(){Kc=Kc.filter(function(S){return S!==r}),document.removeEventListener("wheel",d,Wc),document.removeEventListener("touchmove",d,Wc),document.removeEventListener("touchstart",m,Wc)}},[]);var v=t.removeScrollBar,b=t.inert;return A.createElement(A.Fragment,null,b?A.createElement(r,{styles:rse(n)}):null,v?A.createElement(Zre,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function lse(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const cse=Bre(WF,ise);var fE=A.forwardRef(function(t,e){return A.createElement(pb,Wr({},t,{ref:e,sideCar:cse}))});fE.classNames=pb.classNames;var qT=["Enter"," "],dse=["ArrowDown","PageUp","Home"],JF=["ArrowUp","PageDown","End"],use=[...dse,...JF],pse={ltr:[...qT,"ArrowRight"],rtl:[...qT,"ArrowLeft"]},mse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bm="Menu",[Hp,hse,gse]=rF(bm),[Jl,XF]=Ji(bm,[gse,PF,FF]),ym=PF(),ej=FF(),[tj,Xi]=Jl(bm),[fse,Sm]=Jl(bm),oj=t=>{const{__scopeMenu:e,open:o=!1,children:a,dir:n,onOpenChange:r,modal:i=!0}=t,c=ym(e),[d,u]=A.useState(null),m=A.useRef(!1),h=Cr(r),f=sF(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})}},[]),y.jsx(LF,{...c,children:y.jsx(tj,{scope:e,open:o,onOpenChange:h,content:d,onContentChange:u,children:y.jsx(fse,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:a})})})};oj.displayName=bm;var vse="MenuAnchor",vE=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return y.jsx(sre,{...n,...a,ref:e})});vE.displayName=vse;var bE="MenuPortal",[bse,aj]=Jl(bE,{forceMount:void 0}),nj=t=>{const{__scopeMenu:e,forceMount:o,children:a,container:n}=t,r=Xi(bE,e);return y.jsx(bse,{scope:e,forceMount:o,children:y.jsx(js,{present:o||r.open,children:y.jsx(gE,{asChild:!0,container:n,children:a})})})};nj.displayName=bE;var nr="MenuContent",[yse,yE]=Jl(nr),rj=A.forwardRef((t,e)=>{const o=aj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Sm(nr,t.__scopeMenu);return y.jsx(Hp.Provider,{scope:t.__scopeMenu,children:y.jsx(js,{present:a||r.open,children:y.jsx(Hp.Slot,{scope:t.__scopeMenu,children:i.modal?y.jsx(Sse,{...n,ref:e}):y.jsx(wse,{...n,ref:e})})})})}),Sse=A.forwardRef((t,e)=>{const o=Xi(nr,t.__scopeMenu),a=A.useRef(null),n=$o(e,a);return A.useEffect(()=>{const r=a.current;if(r)return VF(r)},[]),y.jsx(SE,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),wse=A.forwardRef((t,e)=>{const o=Xi(nr,t.__scopeMenu);return y.jsx(SE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),xse=$p("MenuContent.ScrollLock"),SE=A.forwardRef((t,e)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...S}=t,T=Xi(nr,o),x=Sm(nr,o),k=ym(o),C=ej(o),E=hse(o),[_,D]=A.useState(null),R=A.useRef(null),O=$o(e,R,T.onContentChange),L=A.useRef(0),U=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),oe=b?fE:A.Fragment,H=b?{as:xse,allowPinchZoom:!0}:void 0,K=se=>{const Q=U.current+se,M=E().filter(de=>!de.disabled),G=document.activeElement,V=M.find(de=>de.ref.current===G)?.textValue,I=M.map(de=>de.textValue),j=Mse(I,Q,V),X=M.find(de=>de.textValue===j)?.ref.current;(function de(ue){U.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),cF();const J=A.useCallback(se=>F.current===z.current?.side&&Lse(se,z.current?.area),[]);return y.jsx(yse,{scope:o,searchRef:U,onItemEnter:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),onItemLeave:A.useCallback(se=>{J(se)||(R.current?.focus(),D(null))},[J]),onTriggerLeave:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(se=>{z.current=se},[]),children:y.jsx(oe,{...H,children:y.jsx(rE,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(nE,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:y.jsx(Tre,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{x.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(ire,{role:"menu","aria-orientation":"vertical","data-state":xj(T.open),"data-radix-menu-content":"",dir:x.dir,...k,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,se=>{const M=se.target.closest("[data-radix-menu-content]")===se.currentTarget,G=se.ctrlKey||se.altKey||se.metaKey,V=se.key.length===1;M&&(se.key==="Tab"&&se.preventDefault(),!G&&V&&K(se.key));const I=R.current;if(se.target!==I||!use.includes(se.key))return;se.preventDefault();const X=E().filter(de=>!de.disabled).map(de=>de.ref.current);JF.includes(se.key)&&X.reverse(),Ose(X)}),onBlur:mt(t.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:mt(t.onPointerMove,Gp(se=>{const Q=se.target,M=W.current!==se.clientX;if(se.currentTarget.contains(Q)&&M){const G=se.clientX>W.current?"right":"left";F.current=G,W.current=se.clientX}}))})})})})})})});rj.displayName=nr;var Tse="MenuGroup",wE=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Do.div,{role:"group",...a,ref:e})});wE.displayName=Tse;var kse="MenuLabel",sj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Do.div,{...a,ref:e})});sj.displayName=kse;var sv="MenuItem",QO="menu.itemSelect",mb=A.forwardRef((t,e)=>{const{disabled:o=!1,onSelect:a,...n}=t,r=A.useRef(null),i=Sm(sv,t.__scopeMenu),c=yE(sv,t.__scopeMenu),d=$o(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!o&&h){const f=new CustomEvent(QO,{bubbles:!0,cancelable:!0});h.addEventListener(QO,v=>a?.(v),{once:!0}),nF(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return y.jsx(ij,{...n,ref:d,disabled:o,onClick:mt(t.onClick,m),onPointerDown:h=>{t.onPointerDown?.(h),u.current=!0},onPointerUp:mt(t.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(t.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||qT.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});mb.displayName=sv;var ij=A.forwardRef((t,e)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...r}=t,i=yE(sv,o),c=ej(o),d=A.useRef(null),u=$o(e,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[r.children]),y.jsx(Hp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:y.jsx(kre,{asChild:!0,...c,focusable:!a,children:y.jsx(Do.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:mt(t.onPointerMove,Gp(b=>{a?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(t.onPointerLeave,Gp(b=>i.onItemLeave(b))),onFocus:mt(t.onFocus,()=>h(!0)),onBlur:mt(t.onBlur,()=>h(!1))})})})}),Ese="MenuCheckboxItem",lj=A.forwardRef((t,e)=>{const{checked:o=!1,onCheckedChange:a,...n}=t;return y.jsx(mj,{scope:t.__scopeMenu,checked:o,children:y.jsx(mb,{role:"menuitemcheckbox","aria-checked":iv(o)?"mixed":o,...n,ref:e,"data-state":kE(o),onSelect:mt(n.onSelect,()=>a?.(iv(o)?!0:!o),{checkForDefaultPrevented:!1})})})});lj.displayName=Ese;var cj="MenuRadioGroup",[Cse,Pse]=Jl(cj,{value:void 0,onValueChange:()=>{}}),dj=A.forwardRef((t,e)=>{const{value:o,onValueChange:a,...n}=t,r=Cr(a);return y.jsx(Cse,{scope:t.__scopeMenu,value:o,onValueChange:r,children:y.jsx(wE,{...n,ref:e})})});dj.displayName=cj;var uj="MenuRadioItem",pj=A.forwardRef((t,e)=>{const{value:o,...a}=t,n=Pse(uj,t.__scopeMenu),r=o===n.value;return y.jsx(mj,{scope:t.__scopeMenu,checked:r,children:y.jsx(mb,{role:"menuitemradio","aria-checked":r,...a,ref:e,"data-state":kE(r),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});pj.displayName=uj;var xE="MenuItemIndicator",[mj,_se]=Jl(xE,{checked:!1}),hj=A.forwardRef((t,e)=>{const{__scopeMenu:o,forceMount:a,...n}=t,r=_se(xE,o);return y.jsx(js,{present:a||iv(r.checked)||r.checked===!0,children:y.jsx(Do.span,{...n,ref:e,"data-state":kE(r.checked)})})});hj.displayName=xE;var Ase="MenuSeparator",gj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Do.div,{role:"separator","aria-orientation":"horizontal",...a,ref:e})});gj.displayName=Ase;var Rse="MenuArrow",fj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return y.jsx(lre,{...n,...a,ref:e})});fj.displayName=Rse;var TE="MenuSub",[Dse,vj]=Jl(TE),bj=t=>{const{__scopeMenu:e,children:o,open:a=!1,onOpenChange:n}=t,r=Xi(TE,e),i=ym(e),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Cr(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),y.jsx(LF,{...i,children:y.jsx(tj,{scope:e,open:a,onOpenChange:h,content:u,onContentChange:m,children:y.jsx(Dse,{scope:e,contentId:Fi(),triggerId:Fi(),trigger:c,onTriggerChange:d,children:o})})})};bj.displayName=TE;var gp="MenuSubTrigger",yj=A.forwardRef((t,e)=>{const o=Xi(gp,t.__scopeMenu),a=Sm(gp,t.__scopeMenu),n=vj(gp,t.__scopeMenu),r=yE(gp,t.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:t.__scopeMenu},m=A.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),y.jsx(vE,{asChild:!0,...u,children:y.jsx(ij,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":xj(o.open),...t,ref:hm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Gp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!o.open&&!i.current&&(r.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:mt(t.onPointerLeave,Gp(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,T=f[b?"left":"right"],x=f[b?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+S,y:h.clientY},{x:T,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:T,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(h),h.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:mt(t.onKeyDown,h=>{const f=r.searchRef.current!=="";t.disabled||f&&h.key===" "||pse[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});yj.displayName=gp;var Sj="MenuSubContent",wj=A.forwardRef((t,e)=>{const o=aj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Sm(nr,t.__scopeMenu),c=vj(Sj,t.__scopeMenu),d=A.useRef(null),u=$o(e,d);return y.jsx(Hp.Provider,{scope:t.__scopeMenu,children:y.jsx(js,{present:a||r.open,children:y.jsx(Hp.Slot,{scope:t.__scopeMenu,children:y.jsx(SE,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{i.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(t.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(t.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:mt(t.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=mse[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});wj.displayName=Sj;function xj(t){return t?"open":"closed"}function iv(t){return t==="indeterminate"}function kE(t){return iv(t)?"indeterminate":t?"checked":"unchecked"}function Ose(t){const e=document.activeElement;for(const o of t)if(o===e||(o.focus(),document.activeElement!==e))return}function Nse(t,e){return t.map((o,a)=>t[(e+a)%t.length])}function Mse(t,e,o){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,r=o?t.indexOf(o):-1;let i=Nse(t,Math.max(r,0));n.length===1&&(i=i.filter(u=>u!==o));const d=i.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==o?d:void 0}function Ise(t,e){const{x:o,y:a}=t;let n=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){const c=e[r],d=e[i],u=c.x,m=c.y,h=d.x,f=d.y;m>a!=f>a&&o<(h-u)*(a-m)/(f-m)+u&&(n=!n)}return n}function Lse(t,e){if(!e)return!1;const o={x:t.clientX,y:t.clientY};return Ise(o,e)}function Gp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Bse=oj,Fse=vE,jse=nj,zse=rj,qse=wE,Use=sj,$se=mb,Vse=lj,Hse=dj,Gse=pj,Wse=hj,Kse=gj,Yse=fj,Zse=bj,Qse=yj,Jse=wj,hb="DropdownMenu",[Xse]=Ji(hb,[XF]),$a=XF(),[eie,Tj]=Xse(hb),kj=t=>{const{__scopeDropdownMenu:e,children:o,dir:a,open:n,defaultOpen:r,onOpenChange:i,modal:c=!0}=t,d=$a(e),u=A.useRef(null),[m,h]=gm({prop:n,defaultProp:r??!1,onChange:i,caller:hb});return y.jsx(eie,{scope:e,triggerId:Fi(),triggerRef:u,contentId:Fi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:y.jsx(Bse,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};kj.displayName=hb;var Ej="DropdownMenuTrigger",Cj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=t,r=Tj(Ej,o),i=$a(o);return y.jsx(Fse,{asChild:!0,...i,children:y.jsx(Do.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:hm(e,r.triggerRef),onPointerDown:mt(t.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(t.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Cj.displayName=Ej;var tie="DropdownMenuPortal",Pj=t=>{const{__scopeDropdownMenu:e,...o}=t,a=$a(e);return y.jsx(jse,{...a,...o})};Pj.displayName=tie;var _j="DropdownMenuContent",Aj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=Tj(_j,o),r=$a(o),i=A.useRef(!1);return y.jsx(zse,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...a,ref:e,onCloseAutoFocus:mt(t.onCloseAutoFocus,c=>{i.current||n.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:mt(t.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!n.modal||m)&&(i.current=!0)}),style:{...t.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)"}})});Aj.displayName=_j;var oie="DropdownMenuGroup",aie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(qse,{...n,...a,ref:e})});aie.displayName=oie;var nie="DropdownMenuLabel",Rj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Use,{...n,...a,ref:e})});Rj.displayName=nie;var rie="DropdownMenuItem",Dj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx($se,{...n,...a,ref:e})});Dj.displayName=rie;var sie="DropdownMenuCheckboxItem",Oj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Vse,{...n,...a,ref:e})});Oj.displayName=sie;var iie="DropdownMenuRadioGroup",Nj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Hse,{...n,...a,ref:e})});Nj.displayName=iie;var lie="DropdownMenuRadioItem",Mj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Gse,{...n,...a,ref:e})});Mj.displayName=lie;var cie="DropdownMenuItemIndicator",Ij=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Wse,{...n,...a,ref:e})});Ij.displayName=cie;var die="DropdownMenuSeparator",Lj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Kse,{...n,...a,ref:e})});Lj.displayName=die;var uie="DropdownMenuArrow",pie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Yse,{...n,...a,ref:e})});pie.displayName=uie;var mie=t=>{const{__scopeDropdownMenu:e,children:o,open:a,onOpenChange:n,defaultOpen:r}=t,i=$a(e),[c,d]=gm({prop:a,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return y.jsx(Zse,{...i,open:c,onOpenChange:d,children:o})},hie="DropdownMenuSubTrigger",Bj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Qse,{...n,...a,ref:e})});Bj.displayName=hie;var gie="DropdownMenuSubContent",Fj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Jse,{...n,...a,ref:e,style:{...t.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)"}})});Fj.displayName=gie;var jj=kj,zj=Cj,qj=Pj,Uj=Aj,fie=Rj,$j=Dj,vie=Oj,bie=Nj,yie=Mj,Vj=Ij,Sie=Lj,wie=mie,xie=Bj,Tie=Fj;const EE=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));EE.displayName="AlertTriangle";const Hj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Hj.displayName="Archive";const Gj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Gj.displayName="ArrowUpRight";const Wj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 6 9 17l-5-5"}));Wj.displayName="Check";const CE=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));CE.displayName="ChevronRight";const Kj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Kj.displayName="Circle";const Yj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Yj.displayName="CpuChip01";const Zj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Zj.displayName="DotsHorizontal";const Qj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Qj.displayName="GitBranch01";const Jj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Jj.displayName="HardDrive";const Xj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Xj.displayName="LinkExternal01";const e3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));e3.displayName="Lock01";const t3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));t3.displayName="RefreshCw01";const o3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));o3.displayName="Server01";const a3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));a3.displayName="Shield01";const n3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));n3.displayName="User01";const r3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));r3.displayName="Users03";const s3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));s3.displayName="X";function kie(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(jj,{"data-slot":"dropdown-menu",...o}),e[2]=o,e[3]=a):a=e[3],a}function Eie(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(zj,{"data-slot":"dropdown-menu-trigger",...o}),e[2]=o,e[3]=a):a=e[3],a}function Cie(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,sideOffset:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?4:n;let i;e[4]!==o?(i=Je("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),e[4]=o,e[5]=i):i=e[5];let c;return e[6]!==a||e[7]!==r||e[8]!==i?(c=y.jsx(qj,{children:y.jsx(Uj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:i,...a})}),e[6]=a,e[7]=r,e[8]=i,e[9]=c):c=e[9],c}function Pie(t){const e=ye.c(12);let o,a,n,r;e[0]!==t?({className:o,inset:a,variant:r,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const i=r===void 0?"default":r;let c;e[5]!==o?(c=Je("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),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==n||e[9]!==c||e[10]!==i?(d=y.jsx($j,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":i,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=i,e[11]=d):d=e[11],d}function CTe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:n,children:a,checked:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let i;e[5]!==n?(i=Je("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),e[5]=n,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Vj,{children:y.jsx(Wj,{className:"size-4"})})}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==a||e[10]!==r||e[11]!==i?(d=y.jsxs(vie,{"data-slot":"dropdown-menu-checkbox-item",className:i,checked:o,...r,children:[c,a]}),e[8]=o,e[9]=a,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function PTe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(bie,{"data-slot":"dropdown-menu-radio-group",...o}),e[2]=o,e[3]=a):a=e[3],a}function _Te(t){const e=ye.c(11);let o,a,n;e[0]!==t?({className:a,children:o,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==a?(r=Je("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),e[4]=a,e[5]=r):r=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Vj,{children:y.jsx(Kj,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let c;return e[7]!==o||e[8]!==n||e[9]!==r?(c=y.jsxs(yie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[i,o]}),e[7]=o,e[8]=n,e[9]=r,e[10]=c):c=e[10],c}function ATe(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,inset:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o?(r=Je("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),e[4]=o,e[5]=r):r=e[5];let i;return e[6]!==a||e[7]!==n||e[8]!==r?(i=y.jsx(fie,{"data-slot":"dropdown-menu-label","data-inset":a,className:r,...n}),e[6]=a,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function RTe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("bg-border -mx-1 my-1 h-px",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(Sie,{"data-slot":"dropdown-menu-separator",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function DTe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(wie,{"data-slot":"dropdown-menu-sub",...o}),e[2]=o,e[3]=a):a=e[3],a}function OTe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:a,inset:n,children:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let i;e[5]!==a?(i=Je("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),e[5]=a,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx(CE,{className:"ml-auto size-4"}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==n||e[10]!==r||e[11]!==i?(d=y.jsxs(xie,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:i,...r,children:[o,c]}),e[8]=o,e[9]=n,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function NTe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("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),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(Tie,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function _ie(){const t=ye.c(3),[e,o]=A.useState(-1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=i=>{if(!i)return;const c=()=>o(i.clientWidth);c();const d=new ResizeObserver(c);return d.observe(i),()=>d.disconnect()},t[0]=a):a=t[0];const n=a;let r;return t[1]!==e?(r=[e,n],t[1]=e,t[2]=r):r=t[2],r}function Aie(){let t=new Map;const e=new Set,o=()=>e.forEach(a=>a());return{getSnapshot:()=>t,subscribe(a){return e.add(a),()=>{e.delete(a)}},register(a){if(t.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return t=new Map(t).set(a.after,a),o(),()=>{if(t.get(a.after)!==a)return;const n=new Map(t);n.delete(a.after),t=n,o()}}}}const PE=A.createContext(null);function Rie(t){const e=ye.c(3),{children:o}=t,[a]=A.useState(Aie);let n;return e[0]!==o||e[1]!==a?(n=y.jsx(PE,{value:a,children:o}),e[0]=o,e[1]=a,e[2]=n):n=e[2],n}function Die(t){const e=ye.c(2),{children:o}=t;let a;return e[0]!==o?(a=y.jsx(PE,{value:null,children:o}),e[0]=o,e[1]=a):a=e[1],a}function gb(){return A.use(PE)}function i3(t){const e=ye.c(3),o=gb();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return e[0]!==t||e[1]!==o?(a=y.jsx("span",{hidden:!0,ref:n=>n?o.register(t):void 0}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}function Oie(t,e){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const r=e.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(a)??[]]};return t.flatMap(a)}function Nie(t,e){const o=t.map(a=>a.label).filter(a=>typeof a=="string").reverse();return e&&o.push(e),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const l3=5;function Mie(t,e=!1,o=l3){const a=t.map(i=>({type:"item",item:i}));if(t.length<=(e?1:o))return a;const n=e?0:1,r=t.length-(e?1:2);return a.splice(n,r-n,{type:"menu",items:t.slice(n,r)}),a}const c3=W$(function(e){return y.jsx("a",{...e,"aria-current":void 0})});function Iie(t){const e=ye.c(12),{items:o}=t,a=Ua();let n;e[0]!==a?(n=a("page.breadcrumbMenu"),e[0]=a,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(Zj,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let i;e[3]!==n?(i=y.jsx(Eie,{asChild:!0,children:y.jsx(bn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),e[3]=n,e[4]=i):i=e[4];let c;e[5]!==o?(c=o.map(Lie),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=y.jsx(Cie,{align:"start",children:c}),e[7]=c,e[8]=d):d=e[8];let u;return e[9]!==i||e[10]!==d?(u=y.jsxs(kie,{children:[i,d]}),e[9]=i,e[10]=d,e[11]=u):u=e[11],u}function Lie(t){const e=y.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return y.jsx(Pie,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?y.jsx(c3,{...t.link,children:e}):e},t.key)}function Bie(t){const e=ye.c(14),{item:o,current:a}=t,n=typeof o.label=="string"?o.label:void 0;if(a){let i;return e[0]!==o.label||e[1]!==n?(i=y.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),e[0]=o.label,e[1]=n,e[2]=i):i=e[2],i}if(o.onSelect){let i;return e[3]!==o.label||e[4]!==o.onSelect||e[5]!==n?(i=y.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[3]=o.label,e[4]=o.onSelect,e[5]=n,e[6]=i):i=e[6],i}if(o.link){let i;return e[7]!==o.label||e[8]!==o.link||e[9]!==n?(i=y.jsx(c3,{...o.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[7]=o.label,e[8]=o.link,e[9]=n,e[10]=i):i=e[10],i}let r;return e[11]!==o.label||e[12]!==n?(r=y.jsx("span",{title:n,className:"block max-w-48 truncate",children:o.label}),e[11]=o.label,e[12]=n,e[13]=r):r=e[13],r}function d3(t){const e=ye.c(21),{items:o}=t,a=Ua(),[n,r]=_ie();let i,c,d,u,m,h;if(e[0]!==o||e[1]!==r||e[2]!==a||e[3]!==n){const b=Mie(o,n>=0&&n<320,l3);u=r,e[10]!==a?(m=a("page.breadcrumbs"),e[10]=a,e[11]=m):m=e[11],h='min-w-0 flex-1 first:pl-3 [&:has(~[data-slot="panel-topbar-left-target"]:not(:empty))]:flex-initial',i="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=b.map((S,T)=>y.jsxs("li",{className:Je("flex min-w-0 items-center gap-2",T>0&&"min-w-5",S.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[T>0&&y.jsx(CE,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?y.jsx(Bie,{item:S.item,current:T===b.length-1}):y.jsx(Iie,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),e[0]=o,e[1]=r,e[2]=a,e[3]=n,e[4]=i,e[5]=c,e[6]=d,e[7]=u,e[8]=m,e[9]=h}else i=e[4],c=e[5],d=e[6],u=e[7],m=e[8],h=e[9];let f;e[12]!==i||e[13]!==c||e[14]!==d?(f=y.jsx("ol",{"data-slot":i,className:c,children:d}),e[12]=i,e[13]=c,e[14]=d,e[15]=f):f=e[15];let v;return e[16]!==u||e[17]!==m||e[18]!==h||e[19]!==f?(v=y.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),e[16]=u,e[17]=m,e[18]=h,e[19]=f,e[20]=v):v=e[20],v}function Fie(t){const e=ye.c(12),{items:o,scope:a}=t,n=gb();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let i,c;e[0]!==r||e[1]!==o||e[2]!==a?(i=Oie(o,r),c=Nie(i,a),e[0]=r,e[1]=o,e[2]=a,e[3]=i,e[4]=c):(i=e[3],c=e[4]);const d=c;let u;e[5]!==d?(u=d&&y.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==i?(m=y.jsx(d3,{items:i}),e[7]=i,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=y.jsxs(y.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function jie(t){const e=ye.c(3),o=gb();let a;return e[0]!==t||e[1]!==o?(a=o?y.jsx(i3,{...t}):y.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:y.jsx(d3,{items:t.items??[]})}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const zie=Object.assign(jie,{Provider:Rie,Detached:Die});function qie(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx("div",{...a,"data-slot":"page",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Uie(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("min-h-0 min-w-0 flex-1 overflow-auto",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx("div",{...a,"data-slot":"page-content",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const $ie={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},Vie="px-4 md:pl-6 md:pr-8",u3=A.createContext(!1);function Hie(t){const e=ye.c(12);let o,a,n;e[0]!==t?({className:o,width:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?"wide":n,i=A.use(u3);let c;e[4]!==o||e[5]!==i||e[6]!==r?(c=Je("w-full",i?Je(Vie,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",$ie[r],o),e[4]=o,e[5]=i,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==c||e[10]!==r?(d=y.jsx("div",{...a,"data-slot":"page-container","data-width":r,className:c}),e[8]=a,e[9]=c,e[10]=r,e[11]=d):d=e[11],d}function Gie(t){const e=ye.c(9),{children:o,actions:a,className:n}=t,r=gb();let i;e[0]!==o||e[1]!==n||e[2]!==r?(i=r?y.jsx(i3,{after:"page",parent:{label:o}}):y.jsx("div",{"data-slot":"page-title",className:Je("flex flex-wrap items-center justify-between gap-3",n),children:y.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),e[0]=o,e[1]=n,e[2]=r,e[3]=i):i=e[3];let c;e[4]!==a?(c=a&&y.jsx(p3,{children:a}),e[4]=a,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==c?(d=y.jsxs(y.Fragment,{children:[i,c]}),e[6]=i,e[7]=c,e[8]=d):d=e[8],d}function p3(t){const e=ye.c(3),{children:o,secondary:a}=t;let n;if(e[0]!==o||e[1]!==a){const r=y.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=y.jsx(pn.Topbar.Right.Portal,{fallback:r,children:r}),e[0]=o,e[1]=a,e[2]=n}else n=e[2];return n}function Wie(t){const e=ye.c(28),{breadcrumbs:o,scope:a,leading:n,actions:r,navigation:i,trailingActions:c}=t;let d;e[0]!==o||e[1]!==a?(d=y.jsx(Fie,{items:o,scope:a}),e[0]=o,e[1]=a,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=y.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=y.jsxs(pn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),e[4]=n,e[5]=d,e[6]=m):m=e[6];let h;e[7]!==r?(h=y.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),e[7]=r,e[8]=h):h=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=y.jsx(pn.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"}),e[9]=f):f=e[9];let v;e[10]!==h||e[11]!==c?(v=y.jsxs(pn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),e[10]=h,e[11]=c,e[12]=v):v=e[12];let b;e[13]!==m||e[14]!==v?(b=y.jsxs(pn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),e[13]=m,e[14]=v,e[15]=b):b=e[15];let S;e[16]!==i?(S=y.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),e[16]=i,e[17]=S):S=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=y.jsx(pn.Toolbar.Left.Target,{}),e[18]=T):T=e[18];let x;e[19]!==S?(x=y.jsxs(pn.Toolbar.Left,{children:[S,T]}),e[19]=S,e[20]=x):x=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=y.jsx(pn.Toolbar.Center,{className:"max-md:@max-xl/panel-toolbar:order-last max-md:@max-xl/panel-toolbar:basis-full md:min-w-48 md:@max-[22rem]/panel-toolbar:order-last md:@max-[22rem]/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:y.jsx(pn.Toolbar.Center.Target,{})}),e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=y.jsx(pn.Toolbar.Right,{children:y.jsx(pn.Toolbar.Right.Target,{})}),e[22]=C):C=e[22];let E;e[23]!==x?(E=y.jsxs(pn.Toolbar,{children:[x,k,C]}),e[23]=x,e[24]=E):E=e[24];let _;return e[25]!==E||e[26]!==b?(_=y.jsxs(y.Fragment,{children:[b,E]}),e[25]=E,e[26]=b,e[27]=_):_=e[27],_}function Kie(t){const e=ye.c(11);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);const n=Ua();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let i;e[5]!==o?(i=Je("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),e[5]=o,e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==r||e[9]!==i?(c=y.jsx("nav",{"aria-label":r,...a,"data-slot":"page-tabs",className:i}),e[7]=a,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Yie(t){const e=ye.c(14);let o,a,n,r;e[0]!==t?({active:o,asChild:r,className:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const i=r===void 0?!1:r,c=i?void 0:"button",d=i&&o?"page":void 0,u=i?void 0:o;let m;e[5]!==a?(m=Je("shrink-0",a),e[5]=a,e[6]=m):m=e[6];let h;return e[7]!==i||e[8]!==n||e[9]!==c||e[10]!==d||e[11]!==u||e[12]!==m?(h=y.jsx(bn,{asChild:i,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),e[7]=i,e[8]=n,e[9]=c,e[10]=d,e[11]=u,e[12]=m,e[13]=h):h=e[13],h}const Td=Object.assign(qie,{Header:Wie,Tabs:Kie,Tab:Yie,Actions:p3,Content:Uie,Container:Object.assign(Hie,{Inset:u3}),Title:Gie,Breadcrumbs:zie});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 Mn=ia?.navigator,ze=ia?.document,ka=ia?.location,UT=ia?.fetch,$T=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,JO=ia?.AbortController,Zie=ia?.CompressionStream,mn=Mn?.userAgent,ot=ge??{},XO="1.372.3",Qa={DEBUG:!1,LIB_VERSION:XO,LIB_NAME:"web",JS_SDK_VERSION:XO};function e2(t,e,o,a,n,r,i){try{var c=t[r](i),d=c.value}catch(u){return void o(u)}c.done?e(d):Promise.resolve(d).then(a,n)}function er(t){return function(){var e=this,o=arguments;return new Promise((function(a,n){var r=t.apply(e,o);function i(d){e2(r,a,n,i,c,"next",d)}function c(d){e2(r,a,n,i,c,"throw",d)}i(void 0)}))}}function Me(){return Me=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},Me.apply(null,arguments)}function m3(t,e){if(t==null)return{};var o={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;o[a]=t[a]}return o}function VT(){return VT=er((function*(t,e,o){e===void 0&&(e=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),r=n.write(new TextEncoder().encode(t)).then((()=>n.close())).catch((function(){var d=er((function*(u){try{yield n.abort(u)}catch{}throw u}));return function(u){return d.apply(this,arguments)}})()),i=new Response(a.readable).blob(),[c]=yield Promise.all([i,r]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return e&&console.error("Failed to gzip compress data",d),null}})),VT.apply(this,arguments)}var Qie=["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"],t2=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var o=t.toLowerCase();return Qie.concat(e).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},Jie=["$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 Et(t,e){return t.indexOf(e)!==-1}var fb=function(t){return t.trim()},HT=function(t){return t.replace(/^\$/,"")},h3=Object.prototype,g3=h3.hasOwnProperty,vb=h3.toString,Bt=Array.isArray||function(t){return vb.call(t)==="[object Array]"},Rs=t=>typeof t=="function",Fo=t=>t===Object(t)&&!Bt(t),hd=t=>{if(Fo(t)){for(var e in t)if(g3.call(t,e))return!1;return!0}return!1},$e=t=>t===void 0,Po=t=>vb.call(t)=="[object String]",Tf=t=>Po(t)&&t.trim().length===0,zs=t=>t===null,Pt=t=>$e(t)||zs(t),sr=t=>vb.call(t)=="[object Number]"&&t==t,sd=t=>sr(t)&&t>0,Yr=t=>vb.call(t)==="[object Boolean]",Xie=t=>t instanceof FormData,ele=t=>Et(Jie,t);function f3(t){return t===null||typeof t!="object"}function lv(t,e){return{}.toString.call(t)==="[object "+e+"]"}function _E(t){return typeof Event<"u"&&(function(e,o){try{return e instanceof o}catch{return!1}})(t,Event)}var tle=[!0,"true",1,"1","yes"],Hw=t=>Et(tle,t),ole=[!1,"false",0,"0","no"];function Zr(t,e,o,a,n){return e>o&&(a.warn("min cannot be greater than max."),e=o),sr(t)?t>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):e>t?(a.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),Zr(n||o,e,o,a))}let ale=class{constructor(e){this.$t={},this.zt=e.zt,this.Ut=Zr(e.bucketSize,0,100,e.Gt),this.Wt=Zr(e.refillRate,0,this.Ut,e.Gt),this.Xt=Zr(e.refillInterval,0,864e5,e.Gt)}Jt(e,o){var a=Math.floor((o-e.lastAccess)/this.Xt);a>0&&(e.tokens=Math.min(e.tokens+a*this.Wt,this.Ut),e.lastAccess=e.lastAccess+a*this.Xt)}consumeRateLimit(e){var o,a=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,a):this.$t[n]=r={tokens:this.Ut,lastAccess:a},r.tokens===0||(r.tokens--,r.tokens===0&&((o=this.zt)==null||o.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Yg,o2,Gw,Ln="Mobile",cv="iOS",Ms="Android",jd="Tablet",v3=Ms+" "+jd,b3="iPad",y3="Apple",S3=y3+" Watch",Ep="Safari",zd="BlackBerry",w3="Samsung",x3=w3+"Browser",T3=w3+" Internet",Bl="Chrome",nle=Bl+" OS",k3=Bl+" "+cv,AE="Internet Explorer",E3=AE+" "+Ln,RE="Opera",rle=RE+" Mini",DE="Edge",C3="Microsoft "+DE,kd="Firefox",P3=kd+" "+cv,Wp="Nintendo",Kp="PlayStation",Ed="Xbox",_3=Ms+" "+Ln,A3=Ln+" "+Ep,fp="Windows",GT=fp+" Phone",a2="Nokia",WT="Ouya",R3="Generic",sle=R3+" "+Ln.toLowerCase(),D3=R3+" "+jd.toLowerCase(),KT="Konqueror",Za="(\\d+(\\.\\d+)?)",Ww=new RegExp("Version/"+Za),ile=new RegExp(Ed,"i"),lle=new RegExp(Kp+" \\w+","i"),cle=new RegExp(Wp+" \\w+","i"),OE=new RegExp(zd+"|PlayBook|BB10","i"),dle={"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"},O3=function(t,e){return e=e||"",Et(t," OPR/")&&Et(t,"Mini")?rle:Et(t," OPR/")?RE:OE.test(t)?zd:Et(t,"IE"+Ln)||Et(t,"WPDesktop")?E3:Et(t,x3)?T3:Et(t,DE)||Et(t,"Edg/")?C3:Et(t,"FBIOS")?"Facebook "+Ln:Et(t,"UCWEB")||Et(t,"UCBrowser")?"UC Browser":Et(t,"CriOS")?k3:Et(t,"CrMo")||Et(t,Bl)?Bl:Et(t,Ms)&&Et(t,Ep)?_3:Et(t,"FxiOS")?P3:Et(t.toLowerCase(),KT.toLowerCase())?KT:((o,a)=>a&&Et(a,y3)||(function(n){return Et(n,Ep)&&!Et(n,Bl)&&!Et(n,Ms)})(o))(t,e)?Et(t,Ln)?A3:Ep:Et(t,kd)?kd:Et(t,"MSIE")||Et(t,"Trident/")?AE:Et(t,"Gecko")?kd:""},ule={[E3]:[new RegExp("rv:"+Za)],[C3]:[new RegExp(DE+"?\\/"+Za)],[Bl]:[new RegExp("("+Bl+"|CrMo)\\/"+Za)],[k3]:[new RegExp("CriOS\\/"+Za)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Za)],[Ep]:[Ww],[A3]:[Ww],[RE]:[new RegExp("(Opera|OPR)\\/"+Za)],[kd]:[new RegExp(kd+"\\/"+Za)],[P3]:[new RegExp("FxiOS\\/"+Za)],[KT]:[new RegExp("Konqueror[:/]?"+Za,"i")],[zd]:[new RegExp(zd+" "+Za),Ww],[_3]:[new RegExp("android\\s"+Za,"i")],[T3]:[new RegExp(x3+"\\/"+Za)],[AE]:[new RegExp("(rv:|MSIE )"+Za)],Mozilla:[new RegExp("rv:"+Za)]},ple=function(t,e){var o=O3(t,e),a=ule[o];if($e(a))return null;for(var n=0;a.length>n;n++){var r=t.match(a[n]);if(r)return parseFloat(r[r.length-2])}return null},n2=[[new RegExp(Ed+"; "+Ed+" (.*?)[);]","i"),t=>[Ed,t&&t[1]||""]],[new RegExp(Wp,"i"),[Wp,""]],[new RegExp(Kp,"i"),[Kp,""]],[OE,[zd,""]],[new RegExp(fp,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[GT,""];if(new RegExp(Ln).test(e)&&!/IEMobile\b/.test(e))return[fp+" "+Ln,""];var o=/Windows NT ([0-9.]+)/i.exec(e);if(o&&o[1]){var a=dle[o[1]]||"";return/arm/i.test(e)&&(a="RT"),[fp,a]}return[fp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[cv,[t[3],t[4],t[5]||"0"].join(".")]:[cv,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=$e(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Ms+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ms+")","i"),t=>t&&t[2]?[Ms,[t[2],t[3],t[4]||"0"].join(".")]:[Ms,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[nle,""]],[/Linux|debian/i,["Linux",""]]],r2=function(t){return cle.test(t)?Wp:lle.test(t)?Kp:ile.test(t)?Ed:new RegExp(WT,"i").test(t)?WT:new RegExp("("+GT+"|WPDesktop)","i").test(t)?GT:/iPad/.test(t)?b3:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?S3:OE.test(t)?zd:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(a2,"i").test(t)?a2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Ln).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ms:v3:new RegExp("(pda|"+Ln+")","i").test(t)?sle:new RegExp(jd,"i").test(t)&&!new RegExp(jd+" pc","i").test(t)?D3:""},mle=t=>t instanceof Error,N3={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}},hle=N3.info;function M3(t){if(Yr(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Bt(t))return{arrayValue:{values:t.map((e=>M3(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function s2(t){var e=[];for(var o in t){var a=t[o];zs(a)||$e(a)||e.push({key:o,value:M3(a)})}return e}function gle(t){var e=globalThis._posthogChunkIds;if(e){var o=Object.keys(e);return Gw&&o.length===o2||(o2=o.length,Gw=o.reduce(((a,n)=>{Yg||(Yg={});var r=Yg[n];if(r)a[r[0]]=r[1];else for(var i=t(n),c=i.length-1;c>=0;c--){var d=i[c],u=d?.filename,m=e[n];if(u&&m){a[u]=m,Yg[n]=[u,m];break}}return a}),{})),Gw}}class fle{constructor(e,o,a){a===void 0&&(a=[]),this.coercers=e,this.stackParser=o,this.modifiers=a}buildFromUnknown(e,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(e),r=this.buildParsingContext(o),i=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(i,a),$exception_level:"error"}}modifyFrames(e){var o=this;return er((function*(){for(var a of e)a.stacktrace&&a.stacktrace.frames&&Bt(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return e}))()}coerceFallback(e){var o;return{type:"Error",value:"Unknown error",stack:(o=e.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(e,o){var a,n;return e.cause!=null&&(a=this.parseStacktrace(e.cause,o)),e.stack!=""&&e.stack!=null&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Me({},e,{cause:a,stack:n})}applyChunkIds(e,o){return e.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(e,o){for(var a of this.coercers)if(a.match(e))return a.coerce(e,o);return this.coerceFallback(o)}applyModifiers(e){var o=this;return er((function*(){var a=e;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(e,o){var a,n,r,i={type:e.type,value:e.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(r=e.synthetic)!==null&&r!==void 0&&r}};e.stack&&(i.stacktrace={type:"raw",frames:e.stack});var c=[i];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,Me({},o,{handled:!0}))),c}buildParsingContext(e){var o;return{chunkIdMap:gle(this.stackParser),skipFirstLines:(o=e.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(e,o,a){a===void 0&&(a=0);var n=(r,i)=>{if(4>=i){var c=this.buildCoercingContext(e,o,i);return this.applyCoercers(r,c)}};return Me({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:e,apply:r=>n(r,a),next:r=>n(r,a+1)})}}var qd="?";function YT(t,e,o,a,n){var r={platform:t,filename:e,function:o==="<anonymous>"?qd:o,in_app:!0};return $e(a)||(r.lineno=a),$e(n)||(r.colno=n),r}var I3=(t,e)=>{var o=t.indexOf("safari-extension")!==-1,a=t.indexOf("safari-web-extension")!==-1;return o||a?[t.indexOf("@")!==-1?t.split("@")[0]:qd,o?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},vle=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ble=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yle=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sle=(t,e)=>{var o=vle.exec(t);if(o){var[,a,n,r]=o;return YT(e,a,qd,+n,+r)}var i=ble.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=yle.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=I3(i[1]||qd,i[2]);return YT(e,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},wle=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Tle=(t,e)=>{var o=wle.exec(t);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=xle.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],r=o[1]||qd;return[r,n]=I3(r,n),YT(e,n,r,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},i2=/\(error: (.*)\)/;let kle=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,o){var a=Po(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:a?e.stack:void 0,cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var o=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?o+": "+e.message:o}isDOMException(e){return lv(e,"DOMException")}isDOMError(e){return lv(e,"DOMError")}};class Ele{match(e){return(o=>o instanceof Error)(e)}coerce(e,o){return{type:this.getType(e),value:this.getMessage(e,o),stack:this.getStack(e),cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,o){var a=e.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(e){return e.stacktrace||e.stack||void 0}}let Cle=class{constructor(){}match(e){return lv(e,"ErrorEvent")&&e.error!=null}coerce(e,o){var a;return o.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var Ple=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let _le=class{match(e){return typeof e=="string"}coerce(e,o){var a,[n,r]=this.getInfos(e);return{type:n??"Error",value:r??e,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(e){var o="Error",a=e,n=e.match(Ple);return n&&(o=n[1],a=n[2]),[o,a]}};var Ale=["fatal","error","warning","log","info","debug"];function L3(t,e){e===void 0&&(e=40);var o=Object.keys(t);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(e>=n.length)return a===o.length?n:n.length>e?n.slice(0,e)+"...":n}return""}let Rle=class{match(e){return typeof e=="object"&&e!==null}coerce(e,o){var a,n=this.getErrorPropertyFromObject(e);return n?o.apply(n):{type:this.getType(e),value:this.getValue(e),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return _E(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var o="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(o+=" with message: '"+e.message+"'"),o}if("message"in e&&typeof e.message=="string")return e.message;var a=this.getObjectClassName(e);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+L3(e)}isSeverityLevel(e){return Po(e)&&!Tf(e)&&Ale.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var o in e)if({}.hasOwnProperty.call(e,o)){var a=e[o];if(mle(a))return a}}getObjectClassName(e){try{var o=Object.getPrototypeOf(e);return o?o.constructor.name:void 0}catch{return}}},Dle=class{match(e){return _E(e)}coerce(e,o){var a,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+L3(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Ole=class{match(e){return f3(e)}coerce(e,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Nle=class{match(e){return lv(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!_E(e))return!1;try{var o=e.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(e,o){var a,n=this.getUnhandledRejectionReason(e);return f3(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(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}};var dv="$message",uv="$timestamp",Mle=new Set([dv,uv]),Kw={enabled:!0,max_bytes:32768};function pv(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:Kw.enabled,max_bytes:Lle(t.max_bytes,Kw.max_bytes)}:Me({},Kw)}let Ile=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=pv(e)}setConfig(e){this.Bt=pv(e),this.er()}add(e){var o=(function(n){var r=(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(r)try{var i=JSON.parse(r);if(!Fo(i))return;var c=i,d=c[dv],u=c[uv];return!Po(d)||d.trim().length===0||!Po(u)&&!sr(u)?void 0:{step:c,json:r}}catch{return}})(e);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var r=encodeURIComponent(n),i=0,c=0;r.length>c;c++)r[c]==="%"?(i+=1,c+=2):i+=1;return i})(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((e=>e.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 e=this.Kt.shift();e&&(this.Qt-=e.bytes)}}};function Lle(t,e){if(!sr(t)||t===1/0||t===-1/0)return e;var o=Math.floor(t);return 0>o?e:o}var B3=function(t,e){var{debugEnabled:o}=e===void 0?{}:e,a={C(n){if(ge&&(Qa.DEBUG||ot.POSTHOG_DEBUG||o)&&!$e(ge.console)&&ge.console){for(var r=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],i=arguments.length,c=new Array(i>1?i-1:0),d=1;i>d;d++)c[d-1]=arguments[d];r(t,...c)}},info(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("error",...r)},critical(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];console.error(t,...r)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>B3(t+" "+n,r)};return a},Ue=B3("[PostHog.js]"),To=Ue.createLogger,Ble=To("[ExternalScriptsLoader]"),Yw=(t,e,o)=>{if(t.config.disable_external_dependency_loading)return Ble.warn(e+" 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,r=function(){if(a[i].src===e){var d=a[i];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,o(void 0,u)})),d.onerror=u=>o(u),{v:void 0})}},i=0;a.length>i;i++)if(n=r())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=e,d.onload=h=>{d.__posthog_loading_callback_fired=!0,o(void 0,h)},d.onerror=h=>o(h),t.config.prepare_external_dependency_script&&(d=t.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var u,m=ze.querySelectorAll("body > script");m.length>0?(u=m[0].parentNode)==null||u.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};ot.__PosthogExtensions__=ot.__PosthogExtensions__||{},ot.__PosthogExtensions__.loadExternalDependency=(t,e,o)=>{if(e!=="remote-config"){var a;if(t.config.__preview_external_dependency_versioned_paths)a=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var n="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}a=t.requestRouter.endpointFor("assets",n)}Yw(t,a,o)}else{var i=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");Yw(t,i,o)}},ot.__PosthogExtensions__.loadSiteApp=(t,e,o)=>{var a=t.requestRouter.endpointFor("api",e);Yw(t,a,o)};var F3="$people_distinct_id",mv="$device_id",vp="__alias",bp="__timers",ZT="$autocapture_disabled_server_side",QT="$heatmaps_enabled_server_side",JT="$exception_capture_enabled_server_side",XT="$error_tracking_suppression_rules",e0="$error_tracking_capture_extension_exceptions",t0="$web_vitals_enabled_server_side",NE="$dead_clicks_enabled_server_side",o0="$product_tours_enabled_server_side",a0="$web_vitals_allowed_metrics",yp="$session_recording_remote_config",j3="$replay_override_sampling",z3="$replay_override_linked_flag",q3="$replay_override_url_trigger",U3="$replay_override_event_trigger",hv="$sesid",ME="$session_is_sampled",gd="$enabled_feature_flags",kf="$active_feature_flags",Sp="$early_access_features",n0="$feature_flag_details",r0="$feature_flag_payloads",s0="$feature_flag_request_id",As="$override_feature_flags",id="$override_feature_flag_payloads",wp="$stored_person_properties",_l="$stored_group_properties",i0="$surveys",l0="$surveys_activated",Ef="ph_product_tours",Cp="$flag_call_reported",c0="$flag_call_reported_session_id",d0="$feature_flag_errors",gv="$feature_flag_evaluated_at",br="$user_state",u0="$client_session_props",p0="$capture_rate_limit",m0="$initial_campaign_params",h0="$initial_referrer_info",fv="$initial_person_info",vv="$epp",$3="__POSTHOG_TOOLBAR__",Zg="$posthog_cookieless",V3="$sdk_debug_extensions_init_method",H3="$sdk_debug_extensions_init_time_ms",G3="$sdk_debug_recording_script_not_loaded",IE="PostHog loadExternalDependency extension not found.",Al="on_reject",Ds="always",Yc="anonymous",Zc="identified",g0="identified_only",bv="visibilitychange",yv="beforeunload",ld="$pageview",Zw="$pageleave",Qw="$identify",l2="$groupidentify";function Qg(t,e){Bt(t)&&t.forEach(e)}function bo(t,e){if(!Pt(t))if(Bt(t))t.forEach(e);else if(Xie(t))t.forEach(((a,n)=>e(a,n)));else for(var o in t)g3.call(t,o)&&e(t[o],o)}var Mo=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),a=1;e>a;a++)o[a-1]=arguments[a];for(var n of o)for(var r in n)n[r]!==void 0&&(t[r]=n[r]);return t};function Cf(t){for(var e=Object.keys(t),o=e.length,a=new Array(o);o--;)a[o]=[e[o],t[e[o]]];return a}var c2=function(t){try{return t()}catch{return}},Fle=function(t){return function(){try{for(var e=arguments.length,o=new Array(e),a=0;e>a;a++)o[a]=arguments[a];return t.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)}}},LE=function(t){var e={};return bo(t,(function(o,a){(Po(o)&&o.length>0||sr(o))&&(e[a]=o)})),e},jle=["herokuapp.com","vercel.app","netlify.app"];function zle(t){var e=t?.hostname;if(!Po(e))return!1;var o=e.split(".").slice(-2).join(".");for(var a of jle)if(o===a)return!1;return!0}function Jo(t,e,o,a){var{capture:n=!1,passive:r=!0}=a??{};t?.addEventListener(e,o,{capture:n,passive:r})}function W3(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return sr(t)&&isFinite(t)&&Math.floor(t)===t});class Sv{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,o,a,n){if(!Number.isInteger(e)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>e||0>o||0>a||0>n||e>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=e/Math.pow(2,40),r[1]=e/Math.pow(2,32),r[2]=e/Math.pow(2,24),r[3]=e/Math.pow(2,16),r[4]=e/Math.pow(2,8),r[5]=e,r[6]=112|o>>>8,r[7]=o,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new Sv(r)}toString(){for(var e="",o=0;this.bytes.length>o;o++)e=e+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Sv(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var o=0;16>o;o++){var a=this.bytes[o]-e.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class qle{constructor(){this.I=0,this.S=0,this.k=new Ule}generate(){var e=this.generateOrAbort();if($e(e)){this.I=0;var o=this.generateOrAbort();if($e(o))throw new Error("Could not generate UUID after timestamp reset");return o}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Sv.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 d2,K3=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(K3=t=>crypto.getRandomValues(t));class Ule{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(K3(this.T),this.N=0),this.T[this.N++]}}var Ri=()=>$le().toString(),$le=()=>(d2||(d2=new qle)).generate(),Xu="",Vle=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Kr={R:()=>!!ze,B(t){Ue.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",o=ze.cookie.split(";").filter((r=>r.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},Z(t){var e;try{e=JSON.parse(Kr.O(t))||{}}catch{}return e},M(t,e,o,a,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(b,S){if(S===void 0&&(S=ze),Xu)return Xu;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var T=b.split("."),x=Math.min(T.length,8),k="dmn_chk_"+Ri();!Xu&&x--;){var C=T.slice(x).join("."),E=k+"=1;domain=."+C+";path=/";S.cookie=E+";max-age=3",S.cookie.includes(k)&&(S.cookie=E+";max-age=0",Xu=C)}return Xu})(m);if(!f){var v=(b=>{var S=b.match(Vle);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),r="; expires="+d.toUTCString()}n&&(i="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+r+"; SameSite=Lax; path=/"+c+i;return u.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(t,e){if(ze!=null&&ze.cookie)try{Kr.M(t,"",-1,e)}catch{return}}},Jw=null,Co={R(){if(!zs(Jw))return Jw;var t=!0;if($e(ge))t=!1;else try{var e="__mplssupport__";Co.M(e,"xyz"),Co.O(e)!=='"xyz"'&&(t=!1),Co.F(e)}catch{t=!1}return t||Ue.error("localStorage unsupported; falling back to cookie store"),Jw=t,t},B(t){Ue.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){Co.B(e)}return null},Z(t){try{return JSON.parse(Co.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(o){Co.B(o)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){Co.B(e)}}},Hle=[mv,"distinct_id",hv,ME,vv,fv,br],Jg={},Gle={R:()=>!0,B(t){Ue.error("memoryStorage error: "+t)},O:t=>Jg[t]||null,Z:t=>Jg[t]||null,M(t,e){Jg[t]=e},F(t){delete Jg[t]}},Tl=null,Ea={R(){if(!zs(Tl))return Tl;if(Tl=!0,$e(ge))Tl=!1;else try{var t="__support__";Ea.M(t,"xyz"),Ea.O(t)!=='"xyz"'&&(Tl=!1),Ea.F(t)}catch{Tl=!1}return Tl},B(t){Ue.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){Ea.B(e)}return null},Z(t){try{return JSON.parse(Ea.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(o){Ea.B(o)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){Ea.B(e)}}};class Wle{constructor(e){this._instance=e}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ds||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Al}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(e){this.nr.M(this.sr,e?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:e,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.O(this.sr);return Hw(e)?1:Et(ole,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,o=e==="localStorage"?Co:Kr;if(!this.ar||this.ar!==o){this.ar=o;var a=e==="localStorage"?Kr:Co;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(Hw(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[Mn?.doNotTrack,Mn?.msDoNotTrack,ot.doNotTrack].some((e=>Hw(e)))}}var Xg=To("[Dead Clicks]"),Kle=()=>!0,Yle=t=>{var e,o=!((e=t.instance.persistence)==null||!e.get_property(NE)),a=t.instance.config.capture_dead_clicks;return Yr(a)?a:!!Fo(a)||o};class u2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,o,a){this.instance=e,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[NE]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&e(),(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Xg.error("failed to load script",n):e()}))}hr(){var e;if(ze){if(!this.lr&&(e=ot.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var o=Fo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=ot.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(ze),Xg.info("starting...")}}else Xg.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Xg.info("stopping..."))}}var Xw=To("[SegmentIntegration]"),Y3="posthog-js";function Z3(t,e){var{organization:o,projectId:a,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:i=!0}=e===void 0?{}:e;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!t.__loaded)return c;c.tags||(c.tags={});var v=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=v,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var b,S=((d=c.exception)==null?void 0:d.values)||[],T=S.map((k=>Me({},k,{stacktrace:k.stacktrace?Me({},k.stacktrace,{type:"raw",frames:(k.stacktrace.frames||[]).map((C=>Me({},C,{platform:"web:javascript"})))}):void 0}))),x={$exception_message:((u=S[0])==null?void 0:u.value)||c.message,$exception_type:(m=S[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:T,$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&&(x.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),i&&((b=t.exceptions)==null||b.sendExceptionEvent(x)),c}}class Zle{constructor(e,o,a,n,r,i){this.name=Y3,this.setupOnce=function(c){c(Z3(e,{organization:o,projectId:a,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class p2{constructor(e){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=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,o){var a,n=this.gr(e,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var o;return this.gr(e,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:c,maxScrollY:d,maxContentHeight:u,lastContentY:m,maxContentY:h}=r;if(!($e(i)||$e(c)||$e(d)||$e(u)||$e(m)||$e(h))){i=Math.ceil(i),c=Math.ceil(c),d=Math.ceil(d),u=Math.ceil(u),m=Math.ceil(m),h=Math.ceil(h);var f=i>1?Zr(c/i,0,1,Ue):1,v=i>1?Zr(d/i,0,1,Ue):1,b=u>1?Zr(m/u,0,1,Ue):1,S=u>1?Zr(h/u,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=(e.getTime()-a.timestamp.getTime())/1e3),n}}var Qle={[F3]:{exposure:"hidden"},[vp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[bp]:{exposure:"hidden"},[ZT]:{exposure:"event"},[QT]:{exposure:"hidden"},[JT]:{exposure:"event"},[XT]:{exposure:"hidden"},[e0]:{exposure:"event"},[t0]:{exposure:"event"},[NE]:{exposure:"event"},[o0]:{exposure:"hidden"},[a0]:{exposure:"event"},[yp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[hv]:{exposure:"hidden"},[ME]:{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"},[gd]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!Fo(t))return{};for(var e={},o=Object.keys(t),a=0;o.length>a;a++)e["$feature/"+o[a]]=t[o[a]];return e}},[kf]:{exposure:"event"},[Sp]:{exposure:"hidden"},[n0]:{exposure:"hidden"},[r0]:{exposure:"event"},[s0]:{exposure:"event"},[As]:{exposure:"event"},[id]:{exposure:"hidden"},[wp]:{exposure:"hidden"},[_l]:{exposure:"hidden"},[i0]:{exposure:"hidden"},[l0]:{exposure:"event"},[Ef]:{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"},[Cp]:{exposure:"hidden"},[c0]:{exposure:"hidden"},[d0]:{exposure:"hidden"},[gv]:{exposure:"hidden"},[br]:{exposure:"hidden"},[u0]:{exposure:"hidden"},[p0]:{exposure:"hidden"},[m0]:{exposure:"hidden"},[h0]:{exposure:"hidden"},[fv]:{exposure:"hidden"},[vv]:{exposure:"hidden"},[j3]:{exposure:"event"},[z3]:{exposure:"event"},[q3]:{exposure:"event"},[U3]:{exposure:"event"},[V3]:{exposure:"event"},[H3]:{exposure:"event"},[G3]:{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"}},Jle=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],wv=t=>{var e=ze?.createElement("a");return $e(e)?null:(e.href=t,e)},xv=function(t,e){for(var o,a=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var r=a[n].split("=");if(r[0]===e){o=r;break}}if(!Bt(o)||2>o.length)return"";var i=o[1];try{i=decodeURIComponent(i)}catch{Ue.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Yp=function(t,e,o){if(!t||!e||!e.length)return t;for(var a=t.split("#"),n=a[1],r=(a[0]||"").split("?"),i=r[1],c=r[0],d=(i||"").split("&"),u=[],m=0;d.length>m;m++){var h=d[m].split("=");Bt(h)&&(e.includes(h[0])?u.push(h[0]+"="+o):u.push(d[m]))}var f=c;return i!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Tv=function(t,e){var o=t.match(new RegExp(e+"=([^&]*)"));return o?o[1]:null},ef="https?://(.*)",Ud=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Xle=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ud],Zp="<masked>",ece=["li_fat_id"];function Q3(t,e,o){if(!ze)return{};var a,n=e?[...Ud,...o||[]]:[],r=J3(Yp(ze.URL,n,Zp),t),i=(a={},bo(ece,(function(c){var d=Kr.O(c);a[c]=d||null})),a);return Mo(i,r)}function J3(t,e){var o=Xle.concat(e||[]),a={};return bo(o,(function(n){var r=xv(t,n);a[n]=r||null})),a}function X3(t){var e=(function(r){return r?r.search(ef+"google.([^/?]*)")===0?"google":r.search(ef+"bing.com")===0?"bing":r.search(ef+"yahoo.com")===0?"yahoo":r.search(ef+"duckduckgo.com")===0?"duckduckgo":null:null})(t),o=e!="yahoo"?"q":"p",a={};if(!zs(e)){a.$search_engine=e;var n=ze?xv(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function m2(){return navigator.language||navigator.userLanguage}var kv="$direct";function e4(){return ze?.referrer||kv}function t4(t,e){var o=t?[...Ud,...e||[]]:[],a=ka?.href.substring(0,1e3);return{r:e4().substring(0,1e3),u:a?Yp(a,o,Zp):void 0}}function o4(t){var e,{r:o,u:a}=t,n={$referrer:o,$referring_domain:o==null?void 0:o==kv?kv:(e=wv(o))==null?void 0:e.host};if(a){n.$current_url=a;var r=wv(a);n.$host=r?.host,n.$pathname=r?.pathname;var i=J3(a);Mo(n,i)}if(o){var c=X3(o);Mo(n,c)}return n}function a4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function tce(){try{return new Date().getTimezoneOffset()}catch{return}}var oce=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class ex{constructor(e,o){this.Bt=e,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"})(e),this.nr=this.br(e),this.load(),e.debug&&Ue.info("Persistence loaded",e.persistence,Me({},this.props)),this.update_config(e,e,o),this.save()}isDisabled(){return!!this._r}br(e){oce.indexOf(e.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var r=[...Hle,...n];return Me({},Co,{Z(i){try{var c={};try{c=Kr.Z(i)||{}}catch{}var d=Mo(c,JSON.parse(Co.O(i)||"{}"));return Co.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{Co.M(i,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Kr.M(i,f,d,u,m,h)}catch(v){Co.B(v)}},F(i,c){try{ge?.localStorage.removeItem(i),Kr.F(i,c)}catch(d){Co.B(d)}}})})(e.cookie_persisted_properties||[]),a=e.persistence.toLowerCase();return a==="localstorage"&&Co.R()?Co:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ea.R()?Ea:a==="memory"?Gle:a==="cookie"?Kr:o.R()?o:Kr}wr(e){var o=e??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[gv];return!a||typeof a!="number"||Date.now()-a>o}properties(){var e={};return bo(this.props,((o,a)=>{var n=(r=>{var i=Qle[r];if(i)return i;for(var[c,d]of Jle)if(r.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===gd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Mo(e,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(e[a]=o)})),e}load(){if(!this._r){var e=this.nr.Z(this.yr);e&&(this.props=Mo({},e))}}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(e,o,a){if(Fo(e)){$e(o)&&(o="None"),this.Ir=$e(a)?this.kr:a;var n=!1;if(bo(e,((r,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==o||(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}register(e,o){if(Fo(e)){this.Ir=$e(o)?this.kr:o;var a=!1;if(bo(e,((n,r)=>{e.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),a=!0)})),a)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Ar(e),this.save())}update_campaign_params(){if(!this.mr){var e=Q3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);hd(LE(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=ze?.referrer)?X3(e):{})}update_referrer_info(){var e;this.register_once({$referrer:e4(),$referring_domain:ze!=null&&ze.referrer&&((e=wv(ze.referrer))==null?void 0:e.host)||kv},void 0)}set_initial_person_info(){this.props[m0]||this.props[h0]||this.register_once({[fv]:t4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};bo([h0,m0],(i=>{var c=this.props[i];c&&bo(c,(function(d,u){e["$initial_"+HT(u)]=d}))}));var o,a,n=this.props[fv];if(n){var r=(o=o4(n),a={},bo(o,(function(i,c){a["$initial_"+HT(c)]=i})),a);Mo(e,r)}return e}safe_merge(e){return bo(this.props,(function(o,a){a in e||(e[a]=o)})),e}update_config(e,o,a){if(this.kr=this.Ir=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!a),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==o.persistence||!((i,c)=>{if(i.length!==c.length)return!1;var d=[...i].sort(),u=[...c].sort();return d.every(((m,h)=>m===u[h]))})(e.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(e),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_secure(e){e!==this.Sr&&(this.Sr=e,this.remove(),this.save())}set_event_timer(e,o){var a=this.props[bp]||{};a[e]=o,this.Tr(bp,a),this.save()}remove_event_timer(e){var o=this.props[bp]||{},a=o[e];return $e(a)||(delete o[e],this.Tr(bp,o),this.save()),a}get_property(e){return this.props[e]}set_property(e,o){this.Tr(e,o),this.save()}Tr(e,o){this.props[e]=o}Ar(e){delete this.props[e]}}var ep={Activation:"events",Cancellation:"cancelEvents"},tx={Popover:"popover",API:"api",Widget:"widget"},xp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ox={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},f0={Popover:"popover",Inline:"inline"},ace={SHOWN:"product tour shown"},h2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},g2=To("[RateLimiter]");class nce{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{g2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void g2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var o,a,n;e===void 0&&(e=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:i}=this,c=new Date().getTime(),d=(o=(a=this.instance.persistence)==null?void 0:a.get_property(p0))!==null&&o!==void 0?o:{tokens:r,last:c};d.tokens+=(c-d.last)/1e3*i,d.last=c,d.tokens>r&&(d.tokens=r);var u=1>d.tokens;return u||e||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+i+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(n=this.instance.persistence)==null||n.set_property(p0,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(e){var o=this.serverLimits[e||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var tp=To("[RemoteConfig]");class n4{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=ot._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Er(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Rr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){e(o.json)}})}load(){try{if(this.remoteConfig)return tp.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void tp.warn("Remote config is disabled. Falling back to local config.");this.Er((e=>{if(!e)return tp.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(e),this.Mr()}))}catch(e){tp.error("Error loading remote config",e)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var e;if(!this.Or){var o=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(e){var o;e||tp.error("Failed to fetch remote config from PostHog."),this._instance.Nr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var $r={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,$d=Uint32Array,BE=new rr([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]),FE=new rr([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]),f2=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r4=function(t,e){for(var o=new fn(31),a=0;31>a;++a)o[a]=e+=1<<t[a-1];var n=new $d(o[30]);for(a=1;30>a;++a)for(var r=o[a];o[a+1]>r;++r)n[r]=r-o[a]<<5|a;return[o,n]},s4=r4(BE,2),v0=s4[1];s4[0][28]=258,v0[258]=28;for(var v2=r4(FE,0)[1],i4=new fn(32768),yo=0;32768>yo;++yo){var Qc=(43690&yo)>>>1|(21845&yo)<<1;i4[yo]=((65280&(Qc=(61680&(Qc=(52428&Qc)>>>2|(13107&Qc)<<2))>>>4|(3855&Qc)<<4))>>>8|(255&Qc)<<8)>>>1}var Pp=function(t,e,o){for(var a=t.length,n=0,r=new fn(e);a>n;++n)++r[t[n]-1];var i,c=new fn(e);for(n=0;e>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(i=new fn(a),n=0;a>n;++n)i[n]=i4[c[t[n]-1]++]>>>15-t[n];return i},ql=new rr(288);for(yo=0;144>yo;++yo)ql[yo]=8;for(yo=144;256>yo;++yo)ql[yo]=9;for(yo=256;280>yo;++yo)ql[yo]=7;for(yo=280;288>yo;++yo)ql[yo]=8;var Ev=new rr(32);for(yo=0;32>yo;++yo)Ev[yo]=5;var rce=Pp(ql,9),sce=Pp(Ev,5),l4=function(t){return(t/8>>0)+(7&t&&1)},c4=function(t,e,o){(o==null||o>t.length)&&(o=t.length);var a=new(t instanceof fn?fn:t instanceof $d?$d:rr)(o-e);return a.set(t.subarray(e,o)),a},Ps=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8},op=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8,t[a+2]|=o>>>16},ax=function(t,e){for(var o=[],a=0;t.length>a;++a)t[a]&&o.push({s:a,f:t[a]});var n=o.length,r=o.slice();if(!n)return[new rr(0),0];if(n==1){var i=new rr(o[0].s+1);return i[o[0].s]=1,[i,1]}o.sort((function(_,D){return _.f-D.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],u=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[u].f?u++:h++],d=o[u!=m&&o[h].f>o[u].f?u++:h++],o[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(a=1;n>a;++a)r[a].s>f&&(f=r[a].s);var v=new fn(f+1),b=b0(o[m-1],v,0);if(b>e){a=0;var S=0,T=b-e,x=1<<T;for(r.sort((function(_,D){return v[D.s]-v[_.s]||_.f-D.f}));n>a;++a){var k=r[a].s;if(e>=v[k])break;S+=x-(1<<b-v[k]),v[k]=e}for(S>>>=T;S>0;){var C=r[a].s;e>v[C]?S-=1<<e-v[C]++-1:++a}for(;a>=0&&S;--a){var E=r[a].s;v[E]==e&&(--v[E],++S)}b=e}return[new rr(v),b]},b0=function(t,e,o){return t.s==-1?Math.max(b0(t.l,e,o+1),b0(t.r,e,o+1)):e[t.s]=o},b2=function(t){for(var e=t.length;e&&!t[--e];);for(var o=new fn(++e),a=0,n=t[0],r=1,i=function(d){o[a++]=d},c=1;e>=c;++c)if(t[c]==n&&c!=e)++r;else{if(!n&&r>2){for(;r>138;r-=138)i(32754);r>2&&(i(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(i(n),--r;r>6;r-=6)i(8304);r>2&&(i(r-3<<5|8208),r=0)}for(;r--;)i(n);r=1,n=t[c]}return[o.subarray(0,a),e]},ap=function(t,e){for(var o=0,a=0;e.length>a;++a)o+=t[a]*e[a];return o},y0=function(t,e,o){var a=o.length,n=l4(e+2);t[n]=255&a,t[n+1]=a>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;a>r;++r)t[n+r+4]=o[r];return 8*(n+4+a)},y2=function(t,e,o,a,n,r,i,c,d,u,m){Ps(e,m++,o),++n[256];for(var h=ax(n,15),f=h[0],v=h[1],b=ax(r,15),S=b[0],T=b[1],x=b2(f),k=x[0],C=x[1],E=b2(S),_=E[0],D=E[1],R=new fn(19),O=0;k.length>O;++O)R[31&k[O]]++;for(O=0;_.length>O;++O)R[31&_[O]]++;for(var L=ax(R,7),U=L[0],B=L[1],z=19;z>4&&!U[f2[z-1]];--z);var F,W,oe,H,K=u+5<<3,J=ap(n,ql)+ap(r,Ev)+i,se=ap(n,f)+ap(r,S)+i+14+3*z+ap(R,U)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return y0(e,m,t.subarray(d,d+u));if(Ps(e,m,1+(J>se)),m+=2,J>se){F=Pp(f,v),W=f,oe=Pp(S,T),H=S;var Q=Pp(U,B);for(Ps(e,m,C-257),Ps(e,m+5,D-1),Ps(e,m+10,z-4),m+=14,O=0;z>O;++O)Ps(e,m+3*O,U[f2[O]]);m+=3*z;for(var M=[k,_],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)Ps(e,m,Q[I=31&V[O]]),m+=U[I],I>15&&(Ps(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=rce,W=ql,oe=sce,H=Ev;for(O=0;c>O;++O)if(a[O]>255){var I;op(e,m,F[257+(I=a[O]>>>18&31)]),m+=W[I+257],I>7&&(Ps(e,m,a[O]>>>23&31),m+=BE[I]);var j=31&a[O];op(e,m,oe[j]),m+=H[j],j>3&&(op(e,m,a[O]>>>5&8191),m+=FE[j])}else op(e,m,F[a[O]]),m+=W[a[O]];return op(e,m,F[256]),m+W[256]},ice=new $d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),lce=(function(){for(var t=new $d(256),e=0;256>e;++e){for(var o=e,a=9;--a;)o=(1&o&&3988292384)^o>>>1;t[e]=o}return t})(),nx=function(t,e,o){for(;o;++e)t[e]=o,o>>>=8};function cce(t,e){e===void 0&&(e={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=lce[255&v^f[b]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=t.length;o.p(t);var n,r,i,c,d,u=(c=10+((n=e).filename&&n.filename.length+1||0),d=8,(function(h,f,v,b,S,T){var x=h.length,k=new rr(b+x+5*(1+Math.floor(x/7e3))+S),C=k.subarray(b,k.length-S),E=0;if(!f||8>x)for(var _=0;x>=_;_+=65535){var D=_+65535;x>D?E=y0(C,E,h.subarray(_,D)):(C[_]=!0,E=y0(C,E,h.subarray(_,x)))}else{for(var R=ice[f-1],O=R>>>13,L=8191&R,U=(1<<v)-1,B=new fn(32768),z=new fn(U+1),F=Math.ceil(v/3),W=2*F,oe=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&U},H=new $d(25e3),K=new fn(288),J=new fn(32),se=0,Q=0,M=(_=0,0),G=0,V=0;x>_;++_){var I=oe(_),j=32767&_,X=z[I];if(B[j]=X,z[I]=j,_>=G){var de=x-_;if((se>7e3||M>24576)&&de>423){E=y2(h,C,0,H,K,J,Q,M,V,_-V,E),M=se=Q=0,V=_;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ee=2,qe=0,Z=L,ne=j-X&32767;if(de>2&&I==oe(_-ne))for(var ve=Math.min(O,de)-1,ie=Math.min(32767,_),Te=Math.min(258,de);ie>=ne&&--Z&&j!=X;){if(h[_+Ee]==h[_+Ee-ne]){for(var Pe=0;Te>Pe&&h[_+Pe]==h[_+Pe-ne];++Pe);if(Pe>Ee){if(Ee=Pe,qe=ne,Pe>ve)break;var it=Math.min(ne,Pe-2),ct=0;for(ue=0;it>ue;++ue){var Ge=_-ne+ue+32768&32767,at=Ge-B[Ge]+32768&32767;at>ct&&(ct=at,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(qe){H[M++]=268435456|v0[Ee]<<18|v2[qe];var Ne=31&v0[Ee],Oe=31&v2[qe];Q+=BE[Ne]+FE[Oe],++K[257+Ne],++J[Oe],G=_+Ee,++se}else H[M++]=h[_],++K[h[_]]}}E=y2(h,C,!0,H,K,J,Q,M,V,_-V,E)}return c4(k,0,b+l4(E)+S)})(r=t,(i=e).level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+i.mem,c,d)),m=u.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&&nx(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)}})(u,e),nx(u,m-8,o.d()),nx(u,m-4,a),u}var dce=!!$T||!!UT,d4="text/plain",S2=!1,bb=function(t,e,o){var a;o===void 0&&(o=!0);var[n,r]=t.split("?"),i=Me({},e),c=(a=r?.split("&").map((u=>{var m,[h,f]=u.split("="),v=o&&(m=i[h])!==null&&m!==void 0?m:f;return delete i[h],h+"="+v})))!==null&&a!==void 0?a:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var v=[];return bo(u,(function(b,S){$e(b)||$e(S)||S==="undefined"||(h=encodeURIComponent((T=>T instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},fd=(t,e)=>JSON.stringify(t,((o,a)=>typeof a=="bigint"?a.toString():a),e),rx=t=>{if(t.tr)return t.tr;var{data:e,compression:o}=t;if(e){if(o===$r.GZipJS){var a=cce((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new rr(c.length+(c.length>>>1)),h=0,f=function(T){m[h++]=T},v=0;u>v;++v){if(h+5>m.length){var b=new rr(h+8+(u-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 c4(m,0,h)})(fd(e)),{mtime:0});return{contentType:d4,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===$r.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(fd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:fd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=fd(e);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},uce=(function(){var t=er((function*(e){var o=fd(e.data),a=yield(function(r,i,c){return VT.apply(this,arguments)})(o,Qa.DEBUG,{rethrow:!0});if(!a)return e;var n=yield a.arrayBuffer();return Me({},e,{tr:{contentType:d4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),w2=(t,e)=>bb(t,{_:new Date().getTime().toString(),ver:Qa.JS_SDK_VERSION,compression:e}),Pf=[];UT&&Pf.push({transport:"fetch",method(t){var e,o,{contentType:a,body:n,estimatedSize:r}=(e=rx(t))!==null&&e!==void 0?e:{},i=new Headers;bo(t.headers,(function(m,h){i.append(h,m)})),a&&i.append("Content-Type",a);var c=t.url,d=null;if(JO){var u=new JO;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}UT(c,Me({method:t?.method||"GET",headers:i,keepalive:t.method==="POST"&&52428.8>(r||0),body:n,signal:(o=d)==null?void 0:o.signal},t.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)}t.callback==null||t.callback(f)})))).catch((m=>{Ue.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),$T&&Pf.push({transport:"XHR",method(t){var e,o=new $T;o.open(t.method||"GET",t.url,!0);var{contentType:a,body:n}=(e=rx(t))!==null&&e!==void 0?e:{};bo(t.headers,(function(r,i){o.setRequestHeader(i,r)})),a&&o.setRequestHeader("Content-Type",a),t.timeout&&(o.timeout=t.timeout),t.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var r={statusCode:o.status,text:o.responseText};if(o.status===200)try{r.json=JSON.parse(o.responseText)}catch{}t.callback==null||t.callback(r)}},o.send(n)}}),Mn!=null&&Mn.sendBeacon&&Pf.push({transport:"sendBeacon",method(t){var e=bb(t.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=rx(t))!==null&&o!==void 0?o:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:a});Mn.sendBeacon(e,r)}catch{}}});var S0=3e3;class pce{constructor(e,o){this.Pr=!0,this.Lr=[],this.Dr=Zr(o?.flush_interval_ms||S0,250,5e3,Ue.createLogger("flush interval"),S0),this.Br=e}enqueue(e){this.Lr.push(e),this.jr||this.$r()}unload(){this.qr();var e=this.Lr.length>0?this.Zr():{},o=Object.values(e);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Me({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var e=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var r=o[n],i=new Date().getTime();r.data&&Bt(r.data)&&bo(r.data,(c=>{c.offset=Math.abs(c.timestamp-i),delete c.timestamp})),e.Br(r)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var e={};return bo(this.Lr,(o=>{var a,n=o,r=(n?n.batchKey:null)||n.url;$e(e[r])&&(e[r]=Me({},n,{data:[]})),(a=e[r].data)==null||a.push(n.data)})),this.Lr=[],e}}var mce=["retriesPerformedSoFar"];class hce{constructor(e){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=e,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},Jo(ge,"online",this.Ur),Jo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:o}=e,a=m3(e,mce);sd(o)&&(a.url=bb(a.url,{retry_count:o})),this._instance._send_request(Me({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Me({retriesPerformedSoFar:o},a))}}))}Wr(e){var o=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=o+1;var a=(function(i){var c=3e3*Math.pow(2,i),d=c/2,u=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(u+m*(u-d))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:e});var r="Enqueued failed request for retry in "+a;navigator.onLine||(r+=" (Browser is offline)"),Ue.warn(r),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 e=Date.now(),o=[],a=this.Lr.filter((r=>e>r.retryAt||(o.push(r),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:e}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(Me({},e,{transport:"sendBeacon"}))}catch(o){Ue.error(o)}this.Lr=[]}}class gce{constructor(e){this.Kr=()=>{var o,a,n,r;this.Qr||(this.Qr={});var i=this.scrollElement(),c=this.scrollY(),d=i?Math.max(0,i.scrollHeight-i.clientHeight):0,u=c+(i?.clientHeight||0),m=i?.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=u,this.Qr.maxContentY=Math.max(u,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(r=this.Qr.maxContentHeight)!==null&&r!==void 0?r:0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var e=this.Qr;return setTimeout(this.Kr,0),e}startMeasuringScrollPosition(){Jo(ge,"scroll",this.Kr,{capture:!0}),Jo(ge,"scrollend",this.Kr,{capture:!0}),Jo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var e=Bt(this.ei)?this.ei:[this.ei];for(var o of e){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var fce=t=>t4(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class x2{constructor(e,o,a,n){this.ti=r=>{var i=this.ri();if(!i||i.sessionId!==r){var c={sessionId:r,props:this.ii(this._instance)};this.ni.register({[u0]:c})}},this._instance=e,this.si=o,this.ni=a,this.ii=n||fce,this.si.onSessionId(this.ti)}ri(){return this.ni.props[u0]}getSetOnceProps(){var e,o=(e=this.ri())==null?void 0:e.props;return o?"r"in o?o4(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 e={};return bo(LE(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),e["$session_entry_"+HT(a)]=o})),e}}class jE{constructor(){this.oi={}}on(e,o){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(o),()=>{this.oi[e]=this.oi[e].filter((a=>a!==o))}}emit(e,o){for(var a of this.oi[e]||[])a(o);for(var n of this.oi["*"]||[])n(e,o)}}var sx=To("[SessionId]");class T2{on(e,o){return this.ai.on(e,o)}constructor(e,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new jE,this.hi=(u,m)=>!(!sd(u)||!sd(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Ds)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||Ri,this.fi=a||Ri;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Zr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,sx.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+r+"_window_id",this.mi="ph_"+r+"_primary_window_exists",this.yi()){var i=Ea.Z(this.gi),c=Ea.Z(this.mi);i&&!c?this.ci=i:Ea.F(this.gi),Ea.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(u=>{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(u){sx.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return $e(this.li)&&(this.li=[]),this.li.push(e),this.di&&e(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==e))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Ea.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&Ea.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?Ea.Z(this.gi):null}bi(e,o,a){e===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=e,this.ni.register({[hv]:[o,e,a]}))}Si(){var e=this.ni.props[hv];return Bt(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(yv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ea.F(this.mi)},Jo(ge,yv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,o){if(e===void 0&&(e=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Ds)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,r,i]=this.Si(),c=this.Ci(),d=sd(i)&&Math.abs(a-i)>864e5,u=!1,m=!r,h=!m&&!e&&this.hi(a,n);m||h||d?(r=this.vi(),c=this.fi(),sx.info("new session ID generated",{sessionId:r,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),i=a,u=!0):c||(c=this.fi(),u=!0);var f=sd(n)&&e&&!d?n:a,v=sd(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,v),e||this.pi(),u&&this.li.forEach((b=>b(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:v,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[e]=this.Si();if(this.hi(new Date().getTime(),e)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var u4=function(t,e){if(!t)return!1;var o=t.userAgent;if(o&&t2(o,e))return!0;try{var a=t?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>t2(n?.brand,e))))return!0}catch{}return!!t.webdriver},Cv=function(t,e){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function k2(t,e,o){return fd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:o})}var p4={exact:(t,e)=>e.some((o=>t.some((a=>o===a)))),is_not:(t,e)=>e.every((o=>t.every((a=>o!==a)))),regex:(t,e)=>e.some((o=>t.some((a=>Cv(o,a))))),not_regex:(t,e)=>e.every((o=>t.every((a=>!Cv(o,a))))),icontains:(t,e)=>e.map(tf).some((o=>t.map(tf).some((a=>o.includes(a))))),not_icontains:(t,e)=>e.map(tf).every((o=>t.map(tf).every((a=>!o.includes(a))))),gt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a>parseFloat(n)))})),lt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a<parseFloat(n)))}))},tf=t=>t.toLowerCase();function m4(t,e){return!t||Object.entries(t).every((o=>{var[a,n]=o,r=e?.[a];if($e(r)||zs(r))return!1;var i=[String(r)],c=p4[n.operator];return!!c&&c(n.values,i)}))}var w0="custom",E2="i.posthog.com",vce=/^\/static\//;class bce{constructor(e){this.ki={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,o=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+E2,".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":w0),this.ki[this.apiHost]}Ti(e){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&vce.test(e))return o.trim().replace(/\/$/,"")||void 0}endpointFor(e,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),e==="ui")return this.uiHost+o;if(e==="flags")return this.flagsApiHost+o;if(e==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===w0)return this.apiHost+o;var n=E2+o;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var no=To("[Surveys]"),x0="seenSurvey_",yce=[tx.Popover,tx.Widget,tx.API],Sce={ignoreConditions:!1,ignoreDelay:!1,displayType:f0.Popover},wce=To("[PostHog ExternalIntegrations]"),xce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Tce{constructor(e){this._instance=e}ur(e,o){var a;(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,e,(n=>{if(n)return wce.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var e=this,o=function(i){var c,d,u;!n||(c=ot.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||e.ur(xce[i],(()=>{var m;(m=ot.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[i])==null||m.start(e._instance)})),!n&&(d=ot.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[i]&&((u=ot.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[i])==null||u.stop())};for(var[a,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;o(a)}}}var Jc,_p={},ix=0,T0=()=>{},C2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',np="Surveys module not available",P2="sanitize_properties is deprecated. Use before_send instead",h4="Invalid value for property_denylist config: ",cd="posthog",g4=!dce&&mn?.indexOf("MSIE")===-1&&mn?.indexOf("Mozilla")===-1,_2=t=>{var e;return Me({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:zle(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:T0,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:ka&&Po(ka?.search)&&ka.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||(e=ge.location)==null?void 0:e.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:g0,before_send:void 0,request_queue_config:{flush_interval_ms:S0},error_tracking:{},_onCapture:T0,__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}))(t))},kce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],A2=t=>{var e={};for(var[o,a]of kce)$e(t[o])||(e[a]=t[o]);var n=Mo({},e,t);return Bt(t.property_blacklist)&&($e(t.property_denylist)?n.property_denylist=t.property_blacklist:Bt(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:Ue.error(h4+t.property_denylist)),n};class Ece{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,o){if(e){var a=this.Ri.indexOf(e);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Ds||this.config.cookieless_mode===Al&&this.consent.isRejected()}get decideEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new Ece,this.Mi=!1,this.version=Qa.LIB_VERSION,this.Fi=new jE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=_2(),this.SentryIntegration=Zle,this.sentryIntegration=a=>(function(n,r){var i=Z3(n,r);return{name:Y3,processEvent:c=>i(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 gce(this),this.pageViewManager=new p2(this),this.rateLimiter=new nce(this),this.requestRouter=new bce(this),this.consent=new Wle(this),this.externalIntegrations=new Tce(this);var o=(e=tr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};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,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(i),r?.({})},set_once:(a,n,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(a=>Ue.info('send "'+a?.event+'"',a)))}init(e,o,a){if(a&&a!==cd){var n,r=(n=_p[a])!==null&&n!==void 0?n:new tr;return r._init(e,o,a),_p[a]=r,_p[cd][a]=r,r}return this._init(e,o,a)}_init(e,o,a){var n,r;if(o===void 0&&(o={}),$e(e)||Tf(e))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({},_2(o.defaults),A2(o),{name:a,token:e})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:$r.GZipJS;var i=this.qi();this.persistence=new ex(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ex(Me({},this.config,{persistence:"sessionStorage"}),i);var c=Me({},this.persistence.props),d=Me({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new pce((T=>this.Vi(T)),this.config.request_queue_config),this.Hi=new hce(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new T2(this),this.sessionPropsManager=new x2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(u)),Qa.DEBUG=Qa.DEBUG||this.config.debug,Qa.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:o,thisC:Me({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Me({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=o.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(br);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Yc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Zc)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(Ri()),b=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(br,o.bootstrap.isIdentifiedID?Zc:Yc),this.register({distinct_id:m,$device_id:b})}}if(u)this.register_once({distinct_id:Zg,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(Ri());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(br,Yc)}return Jo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(T,x){var k=T.config.segment;if(!k)return x();(function(C,E){var _=C.config.segment;if(!_)return E();var D=O=>{var L=()=>O.anonymousId()||Ri();C.config.get_device_id=L,O.id()&&(C.register({distinct_id:O.id(),$device_id:L()}),C.persistence.set_property(br,Zc)),E()},R=_.user();"then"in R&&Rs(R.then)?R.then(D):D(R)})(T,(()=>{k.register((C=>{Promise&&Promise.resolve||Xw.warn("This browser does not have Promise support, and can not use the segment integration");var E=(_,D)=>{if(!D)return _;_.event.userId||_.event.anonymousId===C.get_distinct_id()||(Xw.info("No userId set, resetting PostHog"),C.reset()),_.event.userId&&_.event.userId!==C.get_distinct_id()&&(Xw.info("UserId set, identifying with PostHog"),C.identify(_.event.userId));var R=C.calculateEventProperties(D,_.event.properties);return _.event.properties=Object.assign({},R,_.event.properties),_};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:_=>E(_,_.event.event),page:_=>E(_,ld),identify:_=>E(_,Qw),screen:_=>E(_,"$screen")}})(T)).then((()=>{x()}))}))})(this,(()=>this.Ui())):this.Ui(),Rs(this.config._onCapture)&&this.config._onCapture!==T0&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(T=>this.config._onCapture(T.event,T)))),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(e){var o,a,n,r,i,c,d,u=performance.now(),m=Me({},tr.__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&&!e&&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=(r=this.logs)!==null&&r!==void 0?r:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(i=this.conversations)!==null&&i!==void 0?i: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,Yle)),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,u)}Gi(e,o){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,o)}),0);var a=e.shift();if(a)try{a()}catch(r){Ue.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-o);this.register_for_session({[V3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[H3]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var o;if(!ze||!ze.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.Wi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Et(e.supportedCompression,$r.GZipJS)?$r.GZipJS:Et(e.supportedCompression,$r.Base64)?$r.Base64:void 0),(o=e.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:g0}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(a){Ue.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&ka!=null&&ka.hostname){var e=ka.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?e===o:o.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new n4(this),this.Ki.load()}Xi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Zi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Qg(this.__request_queue,(e=>this.Vi(e))),this.__request_queue=[],this.Xi()}_handle_unload(){var e,o,a,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(Zw),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(Zw,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(g4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=bb(e.url,{ip:this.config.ip?1:0}),e.headers=Me({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(o=>{var a,n,r,i=Me({},o);i.timeout=i.timeout||6e4,i.url=w2(i.url,i.compression);var c=(a=i.transport)!==null&&a!==void 0?a:"fetch",d=Pf.filter((m=>!i.disableTransport||!m.transport||!i.disableTransport.includes(m.transport))),u=(n=(r=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:r.method)!==null&&n!==void 0?n:d[0].method;if(!u)throw new Error("No available transport method");c!=="sendBeacon"&&i.data&&i.compression===$r.GZipJS&&Zie&&!S2?uce(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return S2=!0,void u(Me({},i,{compression:void 0,url:w2(o.url,void 0)}));u(i)})):u(i)})(Me({},e,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),e.callback==null||e.callback(o)}}))))}Vi(e){this.Hi?this.Hi.retriableRequest(e):this._send_request(e)}_execute_array(e){ix++;try{var o,a=[],n=[],r=[];Qg(e,(c=>{c&&(Bt(o=c[0])?r.push(c):Rs(c)?c.call(this):Bt(c)&&o==="alias"?a.push(c):Bt(c)&&o.indexOf("capture")!==-1&&Rs(this[o])?r.push(c):n.push(c))}));var i=function(c,d){Qg(c,(function(u){if(Bt(u[0])){var m=d;bo(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};i(a,this),i(n,this),i(r,this)}finally{ix--}}push(e){if(ix>0&&Bt(e)&&Po(e[0])){var o=tr.prototype[e[0]];Rs(o)&&o.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,o,a){var n,r,i,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(e)&&Po(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||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&&!Po(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),e!=="$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=Ri(),b={uuid:v,event:e,properties:this.calculateEventProperties(e,o||{},f,v)};e===ld&&this.config.__preview_capture_bot_pageviews&&u&&(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,T,x,k=this.tn(a?.$set_once,e!==l2,e===Qw);if(k&&(b.$set_once=k),a!=null&&a._noTruncate||(r=this.config.properties_string_max_length,i=b,c=L=>Po(L)?L.slice(0,r):L,d=new Set,b=(function L(U,B){return U!==Object(U)?c?c(U):U:d.has(U)?void 0:(d.add(U),Bt(U)?(z=[],Qg(U,(F=>{z.push(L(F))}))):(z={},bo(U,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(i)),b.timestamp=f,$e(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),e===xp.DISMISSED||e===xp.SENT){var C=o?.[ox.SURVEY_ID],E=o?.[ox.SURVEY_ITERATION];(L=>{try{var U=(B=>((z,F)=>{var W=""+x0+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+x0+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(B){no.error("Failed to persist survey seen state",B)}})({id:C,current_iteration:E}),b.$set=Me({},b.$set,{[(S={id:C,current_iteration:E},T=e===xp.SENT?"responded":"dismissed",x="$survey_"+T+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(x="$survey_"+T+"/"+S.id+"/"+S.current_iteration),x)]:!0})}else e===xp.SHOWN&&(b.$set=Me({},b.$set,{[ox.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===ace.SHOWN){var _=o?.[h2.TOUR_TYPE];_&&(b.$set=Me({},b.$set,{[h2.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var D=Me({},b.properties.$set,b.$set);if(hd(D)||this.setPersonPropertiesForFlags(D),!Pt(this.config.before_send)){var R=this.rn(b);if(!R)return;b=R}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(e){return this.on("eventCaptured",(o=>e(o.event,o)))}calculateEventProperties(e,o,a,n,r){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var i=r?void 0:this.persistence.remove_event_timer(e),c=Me({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),e==="$snapshot"){var d=Me({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Po(c.distinct_id)&&!sr(c.distinct_id)||Tf(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(x,k){var C,E,_,D;if(!mn)return{};var R,O,L,U,B,z,F,W,oe=x?[...Ud,...k||[]]:[],[H,K]=(function(J){for(var se=0;n2.length>se;se++){var[Q,M]=n2[se],G=Q.exec(J),V=G&&(Rs(M)?M(G,J):M);if(V)return V}return["",""]})(mn);return Mo(LE({$os:H,$os_version:K,$browser:O3(mn,navigator.vendor),$device:r2(mn),$device_type:(O=mn,L={userAgentDataPlatform:(C=navigator)==null||(C=C.userAgentData)==null?void 0:C.platform,maxTouchPoints:(E=navigator)==null?void 0:E.maxTouchPoints,screenWidth:ge==null||(_=ge.screen)==null?void 0:_.width,screenHeight:ge==null||(D=ge.screen)==null?void 0:D.height,devicePixelRatio:ge?.devicePixelRatio},W=r2(O),W===b3||W===v3||W==="Kobo"||W==="Kindle Fire"||W===D3?jd:W===Wp||W===Ed||W===Kp||W===WT?"Console":W===S3?"Wearable":W?Ln:L?.userAgentDataPlatform==="Android"&&((U=L?.maxTouchPoints)!==null&&U!==void 0?U:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(z=L?.screenHeight)!==null&&z!==void 0?z:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Ln:jd:"Desktop"),$timezone:a4(),$timezone_offset:tce()}),{$current_url:Yp(ka?.href,oe,Zp),$host:ka?.host,$pathname:ka?.pathname,$raw_user_agent:mn.length>1e3?mn.substring(0,997)+"...":mn,$browser_version:ple(mn,navigator.vendor),$browser_language:m2(),$browser_language_prefix:(R=m2(),typeof R=="string"?R.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Qa.LIB_NAME,$lib_version:Qa.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(r,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(x){c.$sdk_debug_error_capturing_properties=String(x)}if(this.requestRouter.region===w0&&(c.$lib_custom_api_host=this.config.api_host),u=e!==ld||r?e!==Zw||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Mo(c,u),e===ld&&ze&&(c.title=ze.title),!$e(i)){var b=a.getTime()-i;c.$duration=parseFloat((b/1e3).toFixed(3))}mn&&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(),Bt(this.config.property_denylist)?bo(this.config.property_denylist,(function(x){delete c[x]})):Ue.error(h4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Ue.error(P2),c=S(c,e));var T=this.nn();return c.$process_person_profile=T,T&&!r&&this.sn("_calculate_event_properties"),c}tn(e,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return e;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Mo({},r,i||{},e||{}),d=this.config.sanitize_properties;return d&&(Ue.error(P2),c=d(c,"$set_once")),o&&(this.Mi=!0),hd(c)?void 0:c}register(e,o){var a;(a=this.persistence)==null||a.register(e,o)}register_once(e,o,a){var n;(n=this.persistence)==null||n.register_once(e,o,a)}register_for_session(e){var o;(o=this.sessionPersistence)==null||o.register(e)}unregister(e){var o;(o=this.persistence)==null||o.unregister(e)}unregister_for_session(e){var o;(o=this.sessionPersistence)==null||o.unregister(e)}an(e,o){this.register({[e]:o})}getFeatureFlag(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(e,o)}getFeatureFlagPayload(e){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(e)}getFeatureFlagResult(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(e,o)}isFeatureEnabled(e,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(e,o)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(e,o,a)}updateEarlyAccessFeatureEnrollment(e,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,o,a)}getEarlyAccessFeatures(e,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,o,a)}on(e,o){return this.Fi.on(e,o)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:np}),()=>{})}onSessionId(e){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(e))!==null&&o!==void 0?o:()=>{}}getSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(e,o):e([],{isLoaded:!1,error:np})}getActiveMatchingSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,o):e([],{isLoaded:!1,error:np})}renderSurvey(e,o){var a;(a=this.surveys)==null||a.renderSurvey(e,o)}displaySurvey(e,o){var a;o===void 0&&(o=Sce),(a=this.surveys)==null||a.displaySurvey(e,o)}cancelPendingSurvey(e){var o;(o=this.surveys)==null||o.cancelPendingSurvey(e)}canRenderSurvey(e){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(e))!==null&&o!==void 0?o:{visible:!1,disabledReason:np}}canRenderSurveyAsync(e,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(e,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:np})}ln(e){return!e||Tf(e)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):e===Zg?(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,o,a){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(sr(e)&&(e=e.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(e)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(mv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(vp)&&(this.unregister(vp),this.register({distinct_id:e}));var r,i=(this.persistence.get_property(br)||Yc)===Yc;e!==n&&i?(this.persistence.set_property(br,Zc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(Qw,{distinct_id:e,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=k2(e,o,a),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),e!==n&&(this.reloadFeatureFlags(),this.unregister(Cp))}}setPersonProperties(e,o){if((e||o)&&this.sn("posthog.setPersonProperties")){var a=k2(this.get_distinct_id(),e,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:o||{}},!0),this.capture("$set",{$set:e||{},$set_once:o||{}}),this.Di=a):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,o,a){if(e&&o){var n=this.getGroups(),r=n[e]!==o;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Me({},n,{[e]:o})}),r||a){var i={$group_type:e,$group_key:o};a&&(i.$group_set=a),this.capture(l2,i)}a&&this.setGroupPropertiesForFlags({[e]:a}),r&&!a&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(e,o)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(e,o))}resetGroupPropertiesForFlags(e){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(e)}reset(e){var o,a,n,r,i,c,d,u;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var m=this.get_property(mv);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(r=this.Ki)==null||r.stop(),(i=this.featureFlags)==null||i.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(br,Yc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ds)this.register_once({distinct_id:Zg,$device_id:null},"");else{var h=this.config.get_device_id(Ri());this.register_once({distinct_id:h,$device_id:e?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(e,o){var a;this.config.identity_distinct_id=e,this.config.identity_hash=o,this.alias(e),(a=this.conversations)==null||a.un()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,o;return(e=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){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(e!=null&&e.withTimestamp&&a){var r,i=(r=e.timestampLookBack)!==null&&r!==void 0?r:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-i,0)}return n}alias(e,o){return e===this.get_property(F3)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(o)&&(o=this.get_distinct_id()),e!==o?(this.an(vp,e),this.capture("$create_alias",{alias:e,distinct_id:o})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var o=Me({},this.config);if(Fo(e)){var a,n,r,i,c,d,u,m,h,f;Mo(this.config,A2(e));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 ex(Me({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);Yr(b)&&(this.config.debug=b),Yr(this.config.debug)&&(this.config.debug?(Qa.DEBUG=!0,Co.R()&&Co.M("ph_debug",!0),Ue.info("set_config",{config:e,oldConfig:o,newConfig:Me({},this.config)})):(Qa.DEBUG=!1,Co.R()&&Co.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(r=this.exceptions)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,o){Qa.LIB_NAME=e,Qa.LIB_VERSION=o}startSessionRecording(e){var o,a,n,r,i,c=e===!0,d={sampling:c||!(e==null||!e.sampling),linked_flag:c||!(e==null||!e.linked_flag),url_trigger:c||!(e==null||!e.url_trigger),event_trigger:c||!(e==null||!e.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&&((r=this.sessionRecording)==null||r.overrideTrigger("url")),d.event_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Me({},n,o))}}addExceptionStep(e,o){var a;(a=this.exceptions)==null||a.addExceptionStep(e,o)}captureLog(e){var o;(o=this.logs)==null||o.captureLog(e)}get logger(){var e,o;return(e=(o=this.logs)==null?void 0:o.logger)!==null&&e!==void 0?e:tr.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(e))!==null&&o!==void 0&&o}get_property(e){var o;return(o=this.persistence)==null?void 0:o.props[e]}getSessionProperty(e){var o;return(o=this.sessionPersistence)==null?void 0:o.props[e]}toString(){var e,o=(e=this.config.name)!==null&&e!==void 0?e:cd;return o!==cd&&(o=cd+"."+o),o}_isIdentified(){var e,o;return((e=this.persistence)==null?void 0:e.get_property(br))===Zc||((o=this.sessionPersistence)==null?void 0:o.get_property(br))===Zc}nn(){var e,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===g0&&!this._isIdentified()&&hd(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[vp])&&((o=this.persistence)==null||(o=o.props)==null||!o[vv]))}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(e){return this.config.person_profiles==="never"?(Ue.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(vv,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Al)}cn(){var e,o,a,n,r=this.qi();return((e=this.persistence)==null?void 0:e._r)!==r&&((a=this.persistence)==null||a.set_disabled(r)),((o=this.sessionPersistence)==null?void 0:o._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(e){var o;if(this.config.cookieless_mode!==Ds){if(this.Ni()){var a,n,r,i,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new T2(this),this.pageViewManager=new p2(this),this.persistence&&(this.sessionPropsManager=new x2(this,this.sessionManager,this.persistence));var d,u=(r=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&r!==void 0?r:(c=tr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;u&&(this.sessionRecording=this.Ei(this.sessionRecording,new u(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==Al&&((m=this.surveys)==null||m.loadIfEnabled()),($e(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((h=e?.captureEventName)!==null&&h!==void 0?h:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(C2)}opt_out_capturing(){var e,o,a;this.config.cookieless_mode!==Ds?(this.config.cookieless_mode===Al&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Al&&(this.register({distinct_id:Zg,$device_id:null}),(e=this.sessionManager)==null||e.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(C2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ds||(this.config.cookieless_mode===Al?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Mn?u4(Mn,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(ld,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(bv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Jo(ze,bv,this.Pi)))}debug(e){e===!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 e,o,a,n,r,i,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,r=(o="advanced_disable_flags")in(e=c)&&!Pt(e[o]),i=a in e&&!Pt(e[a]),r?e[o]:!!i&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),e[a]))}rn(e){if(Pt(this.config.before_send))return e;var o=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=e;for(var n of o){if(a=n(a),Pt(a)){var r="Event '"+e.event+"' was rejected in beforeSend function";return ele(e.event)?Ue.warn(r+". This can cause unexpected behavior."):Ue.info(r),null}a.properties&&!hd(a.properties)||Ue.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,o){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:o})}captureTraceMetric(e,o,a){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(e){var o=Yr(e)&&!e,a=Co.R()&&Co.O("ph_debug")==="true";return!o&&(!!a||e)}}function R2(t){return t instanceof Element&&(t.id===$3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function yb(t){return!!t&&t.nodeType===1}function ji(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function f4(t){return!!t&&t.nodeType===3}function v4(t){return!!t&&t.nodeType===11}function zE(t){return t?fb(t).split(/\s+/):[]}function D2(t){var e=ge?.location.href;return!!(e&&t&&t.some((o=>e.match(o))))}function Pv(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return zE(e)}function b4(t){return Pt(t)?null:fb(t).split(/(\s+)/).filter((e=>Ap(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qp(t){var e="";return E0(t)&&!S4(t)&&t.childNodes&&t.childNodes.length&&bo(t.childNodes,(function(o){var a;f4(o)&&o.textContent&&(e+=(a=b4(o.textContent))!==null&&a!==void 0?a:"")})),fb(e)}function O2(t){return $e(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}tr.__defaultExtensionClasses={},tr.dn={trace:Jc=()=>{},debug:Jc,info:Jc,warn:Jc,error:Jc,fatal:Jc},(function(t,e){for(var o=0;e.length>o;o++)t.prototype[e[o]]=Fle(t.prototype[e[o]])})(tr,["identify"]);var qE=["a","button","form","input","select","textarea","label"];function N2(t,e){if($e(e))return!0;var o,a=function(r){if(e.some((i=>r.matches(i))))return{v:!0}};for(var n of t)if(o=a(n))return o.v;return!1}function y4(t){var e=t.parentNode;return!(!e||!yb(e))&&e}var Cce=["next","previous","prev",">","<"],M2=[".ph-no-rageclick",".ph-no-capture"],k0=t=>!t||ji(t,"html")||!yb(t),I2=(t,e)=>{if(!ge||k0(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[t],n=t;n.parentNode&&!ji(n,"body");)if(v4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=y4(n);if(!r)break;if(e||qE.indexOf(r.tagName.toLowerCase())>-1)o=!0;else{var i=ge.getComputedStyle(r);i&&i.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(r),n=r}return{parentIsUsefulElement:o,targetElementList:a}};function E0(t){for(var e=t;e.parentNode&&!ji(e,"body");e=e.parentNode){var o=Pv(e);if(Et(o,"ph-sensitive")||Et(o,"ph-no-capture"))return!1}if(Et(Pv(t),"ph-include"))return!0;var a=t.type||"";if(Po(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!Po(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 S4(t){return!!(ji(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||ji(t,"select")||ji(t,"textarea")||t.getAttribute("contenteditable")==="true")}var w4="(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})",Pce=new RegExp("^(?:"+w4+")$"),_ce=new RegExp(w4),x4="\\d{3}-?\\d{2}-?\\d{4}",Ace=new RegExp("^("+x4+")$"),Rce=new RegExp("("+x4+")");function Ap(t,e){return e===void 0&&(e=!0),!(Pt(t)||Po(t)&&(t=fb(t),(e?Pce:_ce).test((t||"").replace(/[- ]/g,""))||(e?Ace:Rce).test(t)))}function L2(t){var e=Qp(t);return Ap(e=(e+" "+T4(t)).trim())?e:""}function T4(t){var e="";return t&&t.childNodes&&t.childNodes.length&&bo(t.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Qp(o);e=(e+" "+n).trim(),o.childNodes&&o.childNodes.length&&(e=(e+" "+T4(o)).trim())}catch(r){Ue.error("[AutoCapture]",r)}})),e}function B2(t){return t.replace(/"|\\"/g,'\\"')}function Dce(t){var e=t.attr__class;return e?Bt(e)?e:zE(e):void 0}class F2{constructor(e){this.disabled=e===!1;var o=Fo(e)?e:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(e,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:e,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:o,timestamp:a}];return!1}}var lx="$copy_autocapture",j2=To("[AutoCapture]");function cx(t,e){return e.length>t?e.slice(0,t)+"...":e}function Oce(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!yb(e));return e}function Nce(t,e){for(var o,a,{e:n,maskAllElementAttributes:r,maskAllText:i,elementAttributeIgnoreList:c,elementsChainAsString:d}=e,u=[t],m=t;m.parentNode&&!ji(m,"body");)v4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},S=!1,T=!1;if(bo(u,(_=>{var D=E0(_);_.tagName.toLowerCase()==="a"&&(S=_.getAttribute("href"),S=D&&S&&Ap(S)&&S),Et(Pv(_),"ph-no-capture")&&(T=!0),v.push((function(O,L,U,B){var z=O.tagName.toLowerCase(),F={tag_name:z};qE.indexOf(z)>-1&&!U&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?cx(1024,L2(O)):cx(1024,Qp(O)));var W=Pv(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),bo(O.attributes,(function(J){var se;if((!S4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Ap(J.value)&&(!Po(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=zE(Q).join(" ")),F["attr__"+J.name]=cx(1024,Q)}}));for(var oe=1,H=1,K=O;K=Oce(K);)oe++,K.tagName===O.tagName&&H++;return F.nth_child=oe,F.nth_of_type=H,F})(_,r,i,c));var R=(function(O){if(!E0(O))return{};var L={};return bo(O.attributes,(function(U){if(U.name&&U.name.indexOf("data-ph-capture-attribute")===0){var B=U.name.replace("data-ph-capture-attribute-",""),z=U.value;B&&z&&Ap(z)&&(L[B]=z)}})),L})(_);Mo(b,R)})),T)return{props:{},explicitNoCapture:T};if(i||(v[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?L2(t):Qp(t)),S){var x,k;v[0].attr__href=S;var C=(x=wv(S))==null?void 0:x.host,E=ge==null||(k=ge.location)==null?void 0:k.host;C&&E&&C!==E&&(h=S)}return{props:Mo({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(_){return _.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var U of(D.attr_class.sort(),D.attr_class))L+="."+U.replace(/"/g,"");var B=Me({},D.text?{text:D.text}:{},{"nth-child":(R=D.nth_child)!==null&&R!==void 0?R:0,"nth-of-type":(O=D.nth_of_type)!==null&&O!==void 0?O:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),z={};return Cf(B).sort(((F,W)=>{var[oe]=F,[H]=W;return oe.localeCompare(H)})).forEach((F=>{var[W,oe]=F;return z[B2(W.toString())]=B2(oe.toString())})),(L+=":")+Cf(z).map((F=>{var[W,oe]=F;return W+'="'+oe+'"'})).join("")})).join(";")})((function(_){return _.map((D=>{var R,O,L={text:(R=D.$el_text)==null?void 0:R.slice(0,400),tag_name:D.tag_name,href:(O=D.attr__href)==null?void 0:O.slice(0,2048),attr_class:Dce(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return Cf(D).filter((U=>{var[B]=U;return B.indexOf("attr__")===0})).forEach((U=>{var[B,z]=U;return L.attributes[B]=z})),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 rp=To("[ExceptionAutocapture]");function z2(t,e,o){try{if(!(e in t))return()=>{};var a=t[e],n=o(a);return Rs(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=a}}catch{return()=>{}}}var Mce=To("[TracingHeaders]"),bi=To("[Web Vitals]"),q2=9e5,U2="disabled",$2="lazy_loading",sp="awaiting_config",of="missing_config";To("[SessionRecording]"),To("[SessionRecording]");var C0="[SessionRecording]",yi=To(C0),Ice=To("[Heatmaps]");function V2(t){return Fo(t)&&"clientX"in t&&"clientY"in t&&sr(t.clientX)&&sr(t.clientY)}var H2=To("[Product Tours]"),Lce=["$set_once","$set"],Si=To("[SiteApps]"),G2="Error while initializing PostHog app with config id ";function Xc(t,e,o){if(Pt(t))return!1;switch(o){case"exact":return t===e;case"contains":var a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class Bce{constructor(e){this.vn=new jE,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=e,this.bn=new Set,this._n=new Set}init(){var e,o;$e((e=this._instance)==null?void 0:e._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(e){var o,a;if(!$e((o=this._instance)==null?void 0:o._addCaptureHook)&&(e.forEach((i=>{var c,d;(c=this._n)==null||c.add(i),(d=i.steps)==null||d.forEach((u=>{var m;(m=this.bn)==null||m.add(u?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,r=new Set;e.forEach((i=>{var c;(c=i.steps)==null||c.forEach((d=>{d!=null&&d.selector&&r.add(d?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,o){var a;o!=null&&e.length!=0&&(this.bn.has(e)||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(e){this.onAction("actionCaptured",(o=>e(o)))}wn(e,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(e,a))return!0;return!1}onAction(e,o){return this.vn.on(e,o)}gn(e,o){if(o!=null&&o.url){var a,n=e==null||(a=e.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!Xc(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(e,o){return!!this.Cn(e,o)&&!!this.Sn(e,o)&&!!this.xn(e,o)}Cn(e,o){var a;if(o==null||!o.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>Xc(c.href,o.href,o.href_matching||"exact")));var r,i=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!i&&Xc((r=i.match(/(?::|")href="(.*?)"/))?r[1]:"",o.href,o.href_matching||"exact")}Sn(e,o){var a;if(o==null||!o.text)return!0;var n=this.kn(e);if(n.length>0)return n.some((u=>Xc(u.text,o.text,o.text_matching||"exact")||Xc(u.$el_text,o.text,o.text_matching||"exact")));var r,i,c,d=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!Pt(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),i=o.text,c=o.text_matching||"exact",r.some((u=>Xc(u,i,c))))}xn(e,o){var a,n;if(o==null||!o.selector)return!0;var r=e==null||(a=e.properties)==null?void 0:a.$element_selectors;if(r!=null&&r.includes(o.selector))return!0;var i=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&i)try{return new RegExp(o.selector_regex).test(i)}catch{return!1}return!1}kn(e){var o;return(e==null||(o=e.properties)==null?void 0:o.$elements)==null?[]:e?.properties.$elements}yn(e,o){return o==null||!o.properties||o.properties.length===0||m4(o.properties.reduce(((a,n)=>{var r=Bt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:r,operator:n.operator||"exact"},a}),{}),e?.properties)}}class Fce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,o){return!!e&&m4(e.propertyFilters,o?.properties)}Nn(e,o){var a=new Map;return e.forEach((n=>{var r;(r=n.conditions)==null||(r=r[o])==null||(r=r.values)==null||r.forEach((i=>{if(i!=null&&i.name){var c=a.get(i.name)||[];c.push(n.id),a.set(i.name,c)}}))})),a}Mn(e,o,a){var n=(a===ep.Activation?this.Tn:this.An).get(e),r=[];return this.Fn((i=>{r=i.filter((c=>n?.includes(c.id)))})),r.filter((i=>{var c,d=(c=i.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((u=>u.name===e));return this.Rn(d,o)}))}register(e){var o;$e((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(e),this.Pn(e))}Pn(e){var o=e.filter((a=>{var n,r;return((n=a.conditions)==null?void 0:n.actions)&&((r=a.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new Bce(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,r,i,c,d;a.conditions&&(n=a.conditions)!=null&&n.actions&&(r=a.conditions)!=null&&(r=r.actions)!=null&&r.values&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.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((u=>{if(u&&u.name){var m=this.En.get(u.name);m&&m.push(a.id),this.En.set(u.name,m||[a.id])}})))})))}On(e){var o,a=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.events)&&((c=r.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.cancelEvents)&&((c=r.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(((r,i)=>{this.onEvent(r,i)})),this.Tn=this.Nn(e,ep.Activation),this.An=this.Nn(e,ep.Cancellation))}onEvent(e,o){var a,n=this.le(),r=this.Dn(),i=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[r])||[];if(i===e&&o&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:e,eventPayload:o,existingActivatedItems:c});var m=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(u=o.properties)==null?void 0:u.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(e)){var f=this.Mn(e,o,ep.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,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(e)){n.info("event name matched",{event:e,eventPayload:o,items:this.Tn.get(e)});var v=this.Mn(e,o,ep.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(e){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(e)&&this.jn(n.concat(this.En.get(e)||[]))}jn(e){var o=this.le(),a=[...new Set(e)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var e,o=this.Dn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class jce extends Fce{constructor(e){super(e)}Dn(){return l0}Bn(){return xp.SHOWN}Fn(e){var o;(o=this._instance)==null||o.getSurveys(e)}$n(e){var o;(o=this._instance)==null||o.cancelPendingSurvey(e)}le(){return no}Zn(e){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[l0]:e})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var dx="SDK is not enabled or survey functionality is not yet loaded",W2="Disabled. Not loading surveys.",zce=ge!=null&&ge.location?Tv(ge.location.hash,"__posthog")||Tv(location.hash,"state"):null,K2="_postHogToolbarParams",Y2=To("[Toolbar]"),Ka=To("[FeatureFlags]"),kl=To("[FeatureFlags]",{debugEnabled:!0}),ux=`" failed. Feature flags didn't load in time.`,Z2=t=>{for(var e={},o=0;t.length>o;o++)e[t[o]]=!0;return e},Q2=t=>{var e={};for(var[o,a]of Cf(t||{}))a&&(e[o]=a);return e},_s=To("[Error tracking]"),J2="Refusing to render web experiment since the viewer is a likely bot",qce={icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!ge&&Cv(e.href,t),not_regex:(t,e)=>!!ge&&!Cv(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class La{get Bt(){return this._instance.config}constructor(e){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{La.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var i;o.zn&&(La.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(i=o.zn)==null||i.set(r.feature_flag_key,r));var c=o._instance.getFeatureFlag(r.feature_flag_key);Po(c)&&r.variants[c]&&o.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];La.Yn(u)&&o.Un(r.name,d,u.transforms)}}))}),a)},this._instance=e,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())La.Hn(J2);else if(!this.Bt.disable_web_experiments){if(Pt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();La.Hn("applying feature flags",e),e.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,r=this._instance.getFeatureFlag(o),i=(n=this.zn)==null?void 0:n.get(o);r&&i!=null&&i.variants[r]&&this.Un(i.name,r,i.variants[r].transforms)}}))}}previewWebExperiment(){var e=La.getWindowLocation();if(e!=null&&e.search){var o=xv(e?.search,"__experiment_id"),a=xv(e?.search,"__experiment_variant");o&&a&&(La.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(e,o,a){if(this.Bt.disable_web_experiments&&!a)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>e(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(e,o,a){var n=a.filter((r=>r.id===e));n&&n.length>0&&(La.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(e){return!Pt(e.conditions)&&La.Wn(e)&&La.Xn(e)}static Wn(e){var o;if(Pt(e.conditions)||Pt((o=e.conditions)==null?void 0:o.url))return!0;var a,n,r,i=La.getWindowLocation();return!!i&&((a=e.conditions)==null||!a.url||qce[(n=(r=e.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](e.conditions.url,i))}static getWindowLocation(){return ge?.location}static Xn(e){var o;if(Pt(e.conditions)||Pt((o=e.conditions)==null?void 0:o.utm))return!0;var a=Q3();if(a.utm_source){var n,r,i,c,d,u,m,h,f=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==a.utm_campaign,v=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,b=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==a.utm_medium,S=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==a.utm_term;return f&&b&&S&&v}return!1}static Hn(e){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] "+e,a)}Un(e,o,a){this._is_bot()?La.Hn(J2):o!=="control"?a.forEach((n=>{if(n.selector){var r;La.Hn("applying transform of variant "+o+" for experiment "+e+" ",n);var i=(r=document)==null?void 0:r.querySelectorAll(n.selector);i?.forEach((c=>{var d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):La.Hn("Control variants leave the page unmodified.")}_is_bot(){return Mn&&this._instance?u4(Mn,this.Bt.custom_blocked_useragents):void 0}}var Zn=To("[Conversations]"),El="Conversations not available yet.",Sb={featureFlags:class{constructor(t){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=t,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(t){return this._instance.get_property(t)}ls(){var t,e;return(t=(e=this.ni)==null?void 0:e.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ka.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var t,e=(t=this.Bt.evaluation_contexts)!==null&&t!==void 0?t:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ka.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),e!=null&&e.length?e.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||Ka.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:o}=this._instance,a=(t=(e=o.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(a).length){var n,r,i=(n=(r=o.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((u=>!!a[u])).reduce(((u,m)=>(u[m]=a[m]||!1,u)),{}),d=Object.keys(i).filter((u=>c[u])).reduce(((u,m)=>(i[m]&&(u[m]=i[m]),u)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(t,e,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},r=Me({},a,t),i=Me({},n,e),c={};for(var[d,u]of Object.entries(r)){var m=typeof u=="string";c[d]={key:d,enabled:!!m||!!u,variant:m?u:void 0,reason:void 0,metadata:$e(i?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:i[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.os(n0),e=this.os(As),o=this.os(id);if(!o&&!e)return t||{};var a=Mo({},t||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(e||{})])];for(var r of n){var i,c,d=a[r],u=e?.[r],m=$e(u)?(i=d?.enabled)!==null&&i!==void 0&&i:!!u,h=$e(u)?d.variant:typeof u=="string"?u:void 0,f=o?.[r],v=Me({},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=Me({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),a[r]=v}return this.Jn||(Ka.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var t=this.os(gd),e=this.os(As);if(!e)return t||{};for(var o=Mo({},t),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Ka.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var t=this.os(r0),e=this.os(id);if(!e)return t||{};for(var o=Mo({},t||{}),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Ka.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,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(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.es=t}vs(t){var e;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(mv),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Me({},((e=this.ni)==null?void 0:e.get_initial_props())||{},this.os(wp)||{}),group_properties:this.os(_l),timezone:a4()};zs(a)||$e(a)||(n.$device_id=a),(t!=null&&t.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var r=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:r,data:n,compression:this.Bt.disable_compression?void 0:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:i=>{var c,d,u,m=!0;if(i.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=[];i.error?i.error instanceof Error?h.push(i.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):i.statusCode!==200&&h.push("api_error_"+i.statusCode),(c=i.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((d=i.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(u=this.ni)==null||u.register({[d0]:h}),v?Ka.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=i.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(t,e){var o;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(t,e);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else Ka.warn('getFeatureFlag for key "'+t+ux)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=t in o,n=o[t],r=this.getFlagPayloads()[t],i=String(n),c=this.os(s0)||void 0,d=this.os(gv)||void 0,u=this.os(Cp)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(c0);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[Cp]:u,[c0]:h}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(i))){var v,b,S,T,x,k,C,E,_,D;Bt(u[t])?u[t].push(i):u[t]=[i],(v=this.ni)==null||v.register({[Cp]:u});var R=this.getFeatureFlagDetails(t),O=[...(b=this.os(d0))!==null&&b!==void 0?b:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:r||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[t])||null,$feature_flag_bootstrapped_payload:((T=this.Bt.bootstrap)==null||(T=T.featureFlagPayloads)==null?void 0:T[t])||null,$used_bootstrap_value:!this.rs};$e(R==null||(x=R.metadata)==null?void 0:x.version)||(L.$feature_flag_version=R.metadata.version);var U,B=(k=R==null||(C=R.reason)==null?void 0:C.description)!==null&&k!==void 0?k:R==null||(E=R.reason)==null?void 0:E.code;B&&(L.$feature_flag_reason=B),R!=null&&(_=R.metadata)!=null&&_.id&&(L.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(L.$feature_flag_original_response=$e(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(L.$feature_flag_original_payload=R==null||(U=R.metadata)==null?void 0:U.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var z=r;if(!$e(r))try{z=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Ka.warn('getFeatureFlagResult for key "'+t+ux)}getRemoteConfigPayload(t,e){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:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,i=(r=n.json)==null?void 0:r.featureFlagPayloads;e(i?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(t,e);return $e(o)?void 0:!!o}Ka.warn('isFeatureEnabled for key "'+t+ux)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(i,c,d,u,m,h){d===void 0&&(d={}),u===void 0&&(u={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map((U=>{var B;return[U,(B=L[U].variant)!==null&&B!==void 0?B:L[U].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((U=>L[U].enabled)).filter((U=>{var B;return(B=L[U].metadata)==null?void 0:B.payload})).map((U=>{var B;return[U,(B=L[U].metadata)==null?void 0:B.payload]})))):Ka.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(i),v=f.flags,b=f.featureFlags,S=f.featureFlagPayloads;if(b){var T=i.requestId,x=i.evaluatedAt;if(Bt(b)){Ka.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(b)for(var C=0;b.length>C;C++)k[b[C]]=!0;c&&c.register({[kf]:b,[gd]:k})}else{var E=b,_=S,D=v;if(h!=null&&h.partialResponse)E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));E=Me({},d,Object.fromEntries(Object.entries(E).filter((O=>{var[L]=O;return R.has(L)})))),_=Me({},u,Object.fromEntries(Object.entries(_||{}).filter((O=>{var[L]=O;return R.has(L)})))),D=Me({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[L]=O;return R.has(L)}))))}else E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);c&&c.register(Me({[kf]:Object.keys(Q2(E)),[gd]:E||{},[r0]:_||{},[n0]:D||{}},T?{[s0]:T}:{},x?{[gv]:x}:{}))}}})(t,this.ni,a,n,r,o),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Ka.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Ka.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(As),this.ni.unregister(id),this.ps(),kl.info("All overrides cleared");if(Bt(t)){var e=Z2(t);return this.ni.register({[As]:e}),this.ps(),kl.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var o,a=t;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(As),kl.info("Flag overrides cleared");else if(a.flags){if(Bt(a.flags)){var n=Z2(a.flags);this.ni.register({[As]:n})}else this.ni.register({[As]:a.flags});kl.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(id),kl.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[id]:a.payloads}),kl.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[As]:t}),this.ps(),kl.info("Flag overrides set",{flags:t});Ka.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Kn){var{flags:e,flagVariants:o}=this.gs();t(e,o)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,o){var a,n=(this.os(Sp)||[]).find((d=>d.flagKey===t)),r={["$feature_enrollment/"+t]:e},i={$feature_flag:t,$feature_enrollment:e,$set:r};n&&(i.$early_access_feature_name=n.name),o&&(i.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(r,!1);var c=Me({},this.getFlagVariants(),{[t]:e});(a=this.ni)==null||a.register({[kf]:Object.keys(Q2(c)),[gd]:c}),this.ps()}getEarlyAccessFeatures(t,e,o){e===void 0&&(e=!1);var a=this.os(Sp),n=o?"&"+o.map((r=>"stage="+r)).join("&"):"";if(a&&!e)return t(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:r=>{var i,c;if(r.json){var d=r.json.earlyAccessFeatures;return(i=this.ni)==null||i.unregister(Sp),(c=this.ni)==null||c.register({[Sp]:d}),t(d)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((o=>e[o])),flagVariants:Object.keys(e).filter((o=>e[o])).reduce(((o,a)=>(o[a]=e[a],o)),{})}}ps(t){var{flags:e,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(e,o,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(wp)||{},a=t?.$set||(t!=null&&t.$set_once?{}:t),n=t?.$set_once,r={};if(n)for(var i in n)({}).hasOwnProperty.call(n,i)&&(i in o||(r[i]=n[i]));this._instance.register({[wp]:Me({},o,r,a)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(wp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(_l)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Me({},o[a],t[a]),delete t[a]})),this._instance.register({[_l]:Me({},o,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(_l)||{};this._instance.register({[_l]:Me({},e,{[t]:{}})})}else this._instance.unregister(_l)}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}}},Uce={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===sp||this.bs===of?this.bs:(t=(e=this.ys)==null?void 0:e.status)!==null&&t!==void 0?t:this.bs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=U2,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw yi.error("started without valid sessionManager"),new Error(C0+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ds)throw new Error(C0+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(yp))==null||!t.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&e&&o&&!a}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var o=!$e(Object.assign)&&!$e(Array.from);this.ws&&o?(this.Is(t),yi.info("starting")):(this.bs=U2,this.stopRecording())}}Is(t){var e,o,a;this.ws&&(this.bs!==sp&&this.bs!==of&&(this.bs=$2),ot!=null&&(e=ot.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(o=ot.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(t):(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return yi.error("could not load recorder",n);this.Cs(t)})))}stopRecording(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.stop()}xs(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.discard()}ks(){var t;(t=this.ni)==null||t.unregister(ME)}Ts(t,e){if(Pt(t))return null;var o,a=sr(t)?t:parseFloat(t);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(yi.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):a}As(t){if(this.ni){var e,o,a=this.ni,n=()=>{var r,i=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.Ts((r=this.Bt.session_recording)==null?void 0:r.sampleRate,"session_recording.sampleRate"),d=this.Ts(i?.sampleRate,"remote config sampleRate"),u=c??d;Pt(u)&&this.ks();var m=i?.minimumDurationMilliseconds;a.register({[yp]:Me({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Me({capturePerformance:t.capturePerformance},i?.networkPayloadCapture),canvasRecording:{enabled:i?.recordCanvas,fps:i?.canvasFps,quality:i?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:$e(m)?null:m,endpoint:i?.endpoint,triggerMatchType:i?.triggerMatchType,masking:i?.masking,urlTriggers:i?.urlTriggers,version:i?.version,triggerGroups:i?.triggerGroups})})};n(),(e=this._s)==null||e.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.As(t),void this.xs()):(this.As(t),void this.startIfEnabledOrStop()):(this.bs===sp&&(this.bs=of,yi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var o;e===void 0&&(e="log"),(o=this.ys)!=null&&o.log?this.ys.log(t,e):yi.warn("log called before recorder was ready")}get Ss(){var t,e,o=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(yp);return(o==null||(e=o.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(yp);if(!e)return!1;var o=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-o}Cs(t){var e,o;if((e=ot.__PosthogExtensions__)==null||!e.initSessionRecording)return yi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[G3]:!0});if(this.ys||(this.ys=(o=ot.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===of||this.bs===sp?void 0:(this.bs=sp,yi.info("persisted remote config is stale, requesting fresh config before starting"),void new n4(this._instance).load());this.bs=$2,this.ys.start(t)}onRRwebEmit(t){var e;(e=this.ys)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.ys||(e=this.ni)==null||e.register({[z3]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[j3]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,o;this.ys||(o=this.ni)==null||o.register({[t==="url"?q3:U3]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(t,e))}}},$ce={autocapture:class{constructor(t){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=t,this.rageclicks=new F2(t.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var t,e,o=Fo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(t=o.url_allowlist)==null?void 0:t.map((a=>new RegExp(a))),o.url_ignorelist=(e=o.url_ignorelist)==null?void 0:e.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&ze){var t=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){j2.error("Failed to capture event",a)}};if(Jo(ze,"submit",t,{capture:!0}),Jo(ze,"change",t,{capture:!0}),Jo(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=o=>{this.Ps(o=o||ge?.event,lx)};Jo(ze,"copy",e,{capture:!0}),Jo(ze,"cut",e,{capture:!0})}}}else j2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Ms=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[ZT]:!!t.autocapture_opt_out}),this.Ns=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Fs=t}getElementSelectors(t){var e,o=[];return(e=this.Fs)==null||e.forEach((a=>{var n=ze?.querySelectorAll(a);n?.forEach((r=>{t===r&&o.push(a)}))})),o}get isEnabled(){var t,e,o=(t=this.instance.persistence)==null?void 0:t.props[ZT];if(zs(this.Ns)&&!Yr(o)&&!this.instance.Fr())return!1;var a=(e=this.Ns)!==null&&e!==void 0?e:!!o;return!!this.instance.config.autocapture&&!a}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var o,a=O2(t);f4(a)&&(a=a.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||k0(h))return!1;var v,b,S;if(Yr(f)?(v=!!f&&M2,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:M2,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:T}=I2(h,!1);return!(function(x,k){if(x===!1||$e(x))return!1;var C;if(x===!0)C=Cce;else{if(!Bt(x))return!1;if(x.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;C=x.map((E=>E.toLowerCase()))}return k.some((E=>{var{safeText:_,ariaLabel:D}=E;return C.some((R=>_.includes(R)||D.includes(R)))}))})(b,T.map((x=>{var k;return{safeText:Qp(x).toLowerCase(),ariaLabel:((k=x.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!N2(T,v)})(a,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===lx;if(a&&(function(h,f,v,b,S){var T,x,k,C;if(v===void 0&&(v=void 0),!ge||k0(h)||(T=v)!=null&&T.url_allowlist&&!D2(v.url_allowlist)||(x=v)!=null&&x.url_ignorelist&&D2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var E=v.dom_event_allowlist;if(E&&!E.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:_,targetElementList:D}=I2(h,b);if(!(function(L,U){var B=U?.element_allowlist;if($e(B))return!0;var z,F=function(oe){if(B.some((H=>oe.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,v)||!N2(D,(C=v)==null?void 0:C.css_selector_allowlist))return!1;var R=ge.getComputedStyle(h);if(R&&R.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 _?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(qE.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=Nce(a,{e:t,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(i)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(r.$element_selectors=c),e===lx){var d,u=b4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=t.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(e,r),!0}}}isBrowserSupported(){return Rs(ze?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ls=(ge==null||(e=ge.location)==null?void 0:e.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 t,e;if(ge&&ge.history){var o=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||z2(ge.history,"pushState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("pushState")})),(e=ge.history.replaceState)!=null&&e.__posthog_wrapped__||z2(ge.history,"replaceState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("replaceState")})),this.js()}}Bs(t){try{var e,o=ge==null||(e=ge.location)==null?void 0:e.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(ld,{navigation_type:t}),this.Ls=o}catch(a){Ue.error("Error capturing "+t+" pageview",a)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Jo(ge,"popstate",t),this.Ds=()=>{ge&&ge.removeEventListener("popstate",t)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(t){var e;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=t,this.$s=!((e=this.instance.persistence)==null||!e.props[QT]),this.rageclicks=new F2(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return Fo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Bt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Pt(this.Bt.capture_heatmaps)?Pt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Ice.info("starting..."),this.Zs(),this.Ft()}else{var t;clearInterval((t=this.qs)!==null&&t!==void 0?t:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[QT]:e}),this.$s=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.T;return this.T=void 0,t}Hs(t){this.Tt(t.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),Jo(ge,yv,this.zs),this.Us=t=>this.Tt(t||ge?.event),Jo(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Jo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new u2(this.instance,Kle,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Jo(ze,bv,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(yv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(bv,this.Xs),clearTimeout(this.Js),(t=this.Ws)==null||t.stop(),this.Rs=!1)}Ks(t,e){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(i,c,d){for(var u=i;u&&yb(u)&&!ji(u,"body");){if(u===d)return!1;if(Et(c,ge?.getComputedStyle(u).position))return!0;u=y4(u)}return!1})(O2(t),["fixed","sticky"],n);return{x:t.clientX+(r?0:a),y:t.clientY+(r?0:o),target_fixed:r,type:e}}Tt(t,e){var o;if(e===void 0&&(e="click"),!R2(t.target)&&V2(t)){var a=this.Ks(t,e);(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Qs(Me({},a,{type:"rageclick"})),this.Qs(a)}}Gs(t){!R2(t.target)&&V2(t)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(t,"mousemove"))}),500))}Qs(t){if(ge){var e=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...Ud,...o||[]]:[],n=Yp(e,a,Zp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(t)}}Yr(){this.T&&!hd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:u2,webVitalsAutocapture:class{constructor(t){var e;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)=>Me({},o,{["$web_vitals_"+a.name+"_event"]:Me({},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))bi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();$e(r)||(Pt(o?.name)||Pt(o?.value)?bi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=r),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(Me({},o,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):bi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,r,i=ot.__PosthogExtensions__;$e(i)||$e(i.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),o&&a&&n&&r?(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&&r(this.ht.bind(this)),this.Rs=!0):bi.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.$s=!((e=this._instance.persistence)==null||!e.props[t0]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,o=Fo(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Pt(o)?((e=this._instance.persistence)==null?void 0:e.props[a0])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Fo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=Fo(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=Fo(this.oo)&&sr(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:q2;return t>0&&6e4>=t?q2:t}get isEnabled(){var t=ka?.protocol;if(t!=="http:"&&t!=="https:")return bi.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Fo(this.oo)?this.oo.web_vitals:Yr(this.oo)?this.oo:void 0;return Yr(e)?e:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(bi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=Fo(t.capturePerformance)&&!!t.capturePerformance.web_vitals,o=Fo(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[t0]:e}),this._instance.persistence.register({[a0]:o})),this.$s=e,this.startIfEnabled()}}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?bi.error("failed to load script",a):t()}))}io(){var t=ge?ge.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...Ud,...e||[]]:[];return Yp(t,o,Zp)}bi.error("Could not determine current URL")}}},Vce={exceptionObserver:class{constructor(t){var e,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=ot.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=ot.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=ot.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=ot.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=r(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=i(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){rp.error("failed to start",d),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[JT]),this.do=new ale({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:rp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Fo(t)?e=Me({},e,t):($e(t)?this.co:t)&&(e=Me({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(rp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return rp.error("failed to load script",a);t()}))}ho(){var t,e,o;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.lo)==null||e.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[JT]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(t){var e,o,a,n=(e=t==null||(o=t.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(n)?rp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,o;this.fo=[],this.po=new fle([new kle,new Nle,new Cle,new Ele,new Dle,new Rle,new _le,new Ole],(function(a){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];return function(c,d){d===void 0&&(d=0);for(var u=[],m=c.split(`
|
|
168
|
+
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=i2.test(f)?f.replace(i2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var S=b(v,a);if(S){u.push(S);break}}if(u.length>=50)break}}}return(function(T){if(!T.length)return[];var x=Array.from(T);return x.reverse(),x.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(C=x,C[C.length-1]||{}).filename,function:k.function||qd});var C}))})(u)}})("web:javascript",Sle,Tle)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(XT))!==null&&e!==void 0?e:[],this.mo=pv(this.yo()),this.bo=new Ile(this.mo)}onConfigChange(){this.mo=pv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,o,a;if("errorTracking"in t){var n=(e=(o=t.errorTracking)==null?void 0:o.suppressionRules)!==null&&e!==void 0?e:[],r=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[XT]:this.fo,[e0]:r})}}get _o(){var t,e=!!this._instance.get_property(e0),o=this._instance.config.error_tracking.captureExtensionExceptions;return(t=o??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Po(t)||t.trim().length===0)return void _s.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(e),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>Mle.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&_s.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[dv]:t,[uv]:new Date().toISOString()},a))}catch(r){_s.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void _s.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void _s.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void _s.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(t.$exception_steps)?this.To(t):t;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return _s.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void _s.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Me({},t,{$exception_steps:e})}catch(o){return _s.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[dv]:t,[uv]:new Date().toISOString()})}wo(t){return Fo(t)?Me({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((o,a)=>{var{type:n,value:r}=a;return Po(n)&&n.length>0&&o.$exception_types.push(n),Po(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,i=p4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(t){return t.flatMap((e=>{var o,a;return(o=(a=e.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,o,a,n,r=(e=(o=t[0].stacktrace)==null?void 0:o.frames)!==null&&e!==void 0?e:[],i=r[r.length-1];return(a=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(t){return!Pt(t)&&Bt(t)}}},Hce=Me({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[o0]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(o0)||this.ur((()=>this.Ro()))}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?H2.error("Could not load product tours script",a):t()}))}Ro(){var t;!this.Ao&&(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var o=this.ni;if(o){var a=o.props[Ef];if(Bt(a)&&!e)return this.Eo=a,void t(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 r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return H2.error(i),void t([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[Ef]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){Pt(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(Ef)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},Sb),Gce={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var o=this.globalsForEvent(e);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,o,a,n,r,i,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:b}=t;return{event:Me({},m3(t,Lce),{properties:Me({},t.properties,b?{$set:Me({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},b)}:{},v?{$set_once:Me({},(a=(n=t.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],o=()=>{var i;!e.errored&&this.No.length&&(Si.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},a=!1,n=i=>{e.errored=!i,e.loaded=!0,Si.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),a&&o()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(i){n(i)}});r&&(e.processEvent=r),a=!0}catch(i){Si.error(G2+t.id,i),n(!1)}if(a&&e.loaded)try{o()}catch(i){Si.error("Error while processing buffered events PostHog app with config id "+t.id,i),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of t)this.setupSiteApp(o)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(e)}catch(a){Si.error("Error while processing event "+t.event+" for site app "+o.id,a)}}}onRemoteConfig(t){var e,o,a,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return Si.error(G2+d,m)}))};for(var{id:i,url:c}of t.siteApps)r(i)}else Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Wce={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,o,a=this.Bo()||[];$e(this.Lo)&&((e=ot.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Mce.error("failed to load script",a);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},Kce=Me({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(Pt(e))return no.warn("Flags not loaded yet. Not loading surveys.");var o=Bt(e);this.jo=o?e.length>0:e,no.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var o=localStorage.key(e);(o!=null&&o.startsWith(x0)||o!=null&&o.startsWith("inProgressSurvey_"))&&t.push(o)}t.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)no.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)no.info(W2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())no.info("Not loading surveys in cookieless mode without consent.");else{var t=ot?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=t.generateSurveys;if(o)return void this.Vo(o,e);var a=t.loadExternalDependency;if(!a)return void this.Ho(IE);a(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else no.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new jce(this._instance),no.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){no.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return no.info(W2),t([]);var o,a=this._instance.get_property(i0);if(a&&!e)return t(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return t(r,i)})):(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 r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;no.error(c);var d={isLoaded:!1,error:c};return t([],d),void(o==null||o({surveys:[],context:d}))}var u,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&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[i0]:m});var f={isLoaded:!0};t(m,f),o?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(o){no.error("Error in survey callback",o)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);no.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((o=>{var a;e=(a=o.find((n=>n.id===t)))!==null&&a!==void 0?a:null})),e}Yo(t){if(Pt(this._surveyManager))return{eligible:!1,reason:dx};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Pt(this._surveyManager))return no.warn("init was not called"),{visible:!1,disabledReason:dx};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return Pt(this._surveyManager)?(no.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:dx})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);o({visible:i.eligible,disabledReason:i.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,o){var a;if(Pt(this._surveyManager))no.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(yce.includes(n.type)){var r=ze?.querySelector(e);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(no.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;no.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),no.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);no.warn("Survey element not found")}else no.warn("Surveys of type "+n.type+" cannot be rendered in the app");else no.warn("Survey not found")}}displaySurvey(t,e){var o;if(Pt(this._surveyManager))no.warn("init was not called");else{var a=this.Uo(t);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Me({},a,{appearance:Me({},a.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==f0.Popover&&e.initialResponses&&no.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void no.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==f0.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else no.warn("Survey not found")}}cancelPendingSurvey(t){Pt(this._surveyManager)?no.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},Sb),Yce={toolbar:class{constructor(t){this.instance=t}Go(t){ot.ph_toolbar_state=t}Wo(){var t;return(t=ot.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,o){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),W3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,o=o??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var a,n=zce||Tv(t.hash,"__posthog")||Tv(t.hash,"state"),r=n?c2((()=>JSON.parse(atob(decodeURIComponent(n)))))||c2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?t.hash=r.desiredHash:o?o.replaceState(o.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(e.getItem(K2)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(t){var e=ot.ph_load_toolbar||ot.ph_load_editor;!Pt(e)&&Rs(e)?e(t,this.instance):Y2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById($3));if(!ge||e)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Me({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(K2,JSON.stringify(Me({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return Y2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Jo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,o){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(t,e,o)}}},Zce=Me({experiments:La},Sb),Qce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;Pt(e)||(Yr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||W3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=ot?.__PosthogExtensions__;if(t&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var o=t.loadExternalDependency;if(!o)return void this.ra(IE);o(this._instance,"conversations",(a=>{a||!t.initConversations?this.ra("Could not load conversations script",a):this.ta(t.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!zs(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,o){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(t,e,o):(Zn.warn(El),null)}))()}getMessages(t,e){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.getMessages(t,e):(Zn.warn(El),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(El),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(El),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(El),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(El),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(El),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Jce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=To("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,o=(e=t.logs)==null?void 0:e.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=ot?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(o=>{var a;o||(a=t.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(IE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,o,a,n,r,i;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,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}=N3[v]||hle,T=String(Date.now())+"000000",x={};f.distinctId&&(x.posthogDistinctId=f.distinctId),f.sessionId&&(x.sessionId=f.sessionId),f.currentUrl&&(x["url.full"]=f.currentUrl),f.screenName&&(x["screen.name"]=f.screenName),f.appState&&(x["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(x.feature_flags=f.activeFeatureFlags);var k=Me({},x,h.attributes||{}),C={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:s2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(t,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r: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:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var o=this._instance.config.logs,a=Me({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:s2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(e.map((i=>i.record)),a,Qa.LIB_NAME,Qa.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=o}if(ot!=null&&(t=ot.location)!=null&&t.href&&(e.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Xce=Me({},Sb,Uce,$ce,Vce,Hce,Gce,Kce,Wce,Yce,Zce,Qce,Jce);tr.__defaultExtensionClasses=Me({},Xce);var X2,qs=(X2=_p[cd]=new tr,(function(){function t(){t.done||(t.done=!0,g4=!1,bo(_p,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Jo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),X2);let Ls=!1,P0=null,eN=!1;const UE="studio:lp-distinct-id",k4="mesh:lp-distinct-id",px="/api/_reports/link-token/",ede=1440*60*1e3;function E4(t){const e="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(t),a=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(px)&&n.pathname!==px&&(n.pathname=`${px}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function mx(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?E4(o):o]))}const tde=t=>t?(t.properties=mx(t.properties),t.$set&&(t.$set=mx(t.$set)),t.$set_once&&(t.$set_once=mx(t.$set_once)),t):null;function C4(){try{const t=window.localStorage.getItem(UE)??window.localStorage.getItem(k4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=ede?e:void 0}catch{return}}function ode(){try{window.localStorage.removeItem(UE),window.localStorage.removeItem(k4)}catch{}}function ade(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(UE,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??C4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function nde(t){const e=C4();if(e&&(ode(),e!==t))try{qs.alias(e)}catch{}}function rde(t,e){if(Ls||typeof window>"u")return;const o=ade();qs.init(t,{api_host:e,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:tde,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:E4(a.name)}:{}})},person_profiles:"identified_only"}),Ls=!0}function sde(t,e){Ls&&(qs.identify(t,e),nde(t))}function ide(){Ls&&(qs.reset(),P0=null)}function P4(t,e){Ls&&qs.capture(t,e)}function $Te(){return Ls}function VTe(){if(!Ls||eN||typeof performance>"u")return;eN=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};P4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:CJ(),org_cache_restored:PJ()})}function HTe(t,e){Ls&&t!==P0&&(qs.group("organization",t,e),P0=t)}function _4(t,e){if(Ls)try{qs.captureException(t,e)}catch{}}const lde=["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 cde(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:lde}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,y.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),e[1]=o,e[2]=n):n=e[2],n}function A4(t){const e=ye.c(20),{orgName:o}=t,a=Ua(),n=dde;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(Hj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a("common.archivedOrgScreen.orgUnavailable"),e[1]=a,e[2]=i):i=e[2];let c;e[3]!==i?(c=y.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),e[5]=o,e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=y.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=y.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==a?(h=a("common.goHome"),e[13]=a,e[14]=h):h=e[14];let f;e[15]!==h?(f=y.jsx(bn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let v;return e[17]!==m||e[18]!==f?(v=y.jsxs(cde,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function dde(){window.location.href="/"}function ude(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=rm(e);let a;return t[1]!==o?(a=y.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:y.jsx(Wl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),t[1]=o,t[2]=a):a=t[2],a}function pde(t){const e=ye.c(13),{area:o,description:a,action:n}=t,r=o?`No access to ${o}`:"No access",i=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(e3,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=y.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=y.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??y.jsx(ude,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=y.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]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const tN="__studio_chunk_reload_ts";function R4(t){return t?.message===tee}function mde(t){return!!t?.message?.includes("Access denied")}function oN(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class hde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o),_4(e,{boundary:"default",error_name:e.name,error_message:e.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:e,t:o}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:R4(this.state.error)?y.jsx(A4,{}):mde(this.state.error)?y.jsx(pde,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(EE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function gde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(hde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class fde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o);const a=oN(e);if(_4(e,{boundary:"chunk_root",is_chunk_load_error:a,error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(tN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(tN,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&oN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(t3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),y.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?R4(this.state.error)?y.jsx(A4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(EE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function vde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(fde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const bde=Zl("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function yde(t){const e=ye.c(14);let o,a,n,r,i;e[0]!==t?({className:o,size:r,interactive:a,asChild:i,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5]);const d=(i===void 0?!1:i)?ib:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Je(bde({size:r,interactive:a}),o),e[6]=o,e[7]=a,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=y.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function GTe(t){const e=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:i,children:c}=t;let d;e[0]!==i?(d=Je("flex flex-col gap-3",i),e[0]=i,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==o?(u=(o||a||n||r)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(Gj,{size:12})]})]})]}),r&&y.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=a,e[4]=n,e[5]=o,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=y.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function WTe(t){const e=ye.c(11),{className:o,children:a}=t;let n,r,i;if(e[0]!==a||e[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=yde,e[5]!==o?(r=Je("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],i=d.map(Sde),e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=i}else n=e[2],r=e[3],i=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==i?(c=y.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Sde(t,e){return y.jsxs("div",{children:[e>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function KTe(t){const e=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:i,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Je(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=i?"button":void 0,v=i?0:void 0;let b;e[4]!==i?(b=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,e[4]=i,e[5]=b):b=e[5];let S;e[6]!==o?(S=o&&y.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),e[6]=o,e[7]=S):S=e[7];let T;e[8]!==a?(T=y.jsx("div",{className:"text-sm font-medium",children:a}),e[8]=a,e[9]=T):T=e[9];let x;e[10]!==n?(x=n&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=x):x=e[11];let k;e[12]!==d||e[13]!==T||e[14]!==x?(k=y.jsxs("div",{className:"flex-1 min-w-0",children:[T,x,d]}),e[12]=d,e[13]=T,e[14]=x,e[15]=k):k=e[15];let C;e[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:wde,children:r}),e[16]=r,e[17]=C):C=e[17];let E;return e[18]!==i||e[19]!==k||e[20]!==C||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==b||e[25]!==S?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[S,k,C]}),e[18]=i,e[19]=k,e[20]=C,e[21]=h,e[22]=f,e[23]=v,e[24]=b,e[25]=S,e[26]=E):E=e[26],E}function wde(t){return t.stopPropagation()}function YTe(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Je("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function ZTe(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Je("flex items-center justify-end gap-2 px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=y.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function xde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Je("flex flex-col gap-10",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const wb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:r3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:a3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Yj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:o3,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:Jj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:Qj,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function QTe(t){const e=wb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function JTe(t){return wb[t].tabs.length>0}const Tde=new Set(["owner","admin"]);function D4(){const t=ye.c(11),{org:e,locator:o}=Yi();let a;t[0]!==o?(a=ca.myCapabilities(o),t[0]=o,t[1]=a):a=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},t[4]=a,t[5]=n,t[6]=r):r=t[6];const{data:i,isLoading:c,isError:d}=Gi(r);let u;return t[7]!==i||t[8]!==d||t[9]!==c?(u={data:i,loading:c,error:d},t[7]=i,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function XTe(t){const e=ye.c(8),{data:o,loading:a,error:n}=D4();if(a){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=o?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const i=o?.capabilities?.[t]===!0,c=i?"role":"denied";let d;return e[5]!==i||e[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},e[5]=i,e[6]=c,e[7]=d):d=e[7],d}function O4(){const t=ye.c(10),{data:e,loading:o,error:a}=D4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?Tde.has(n):!1,t[0]=n,t[1]=r):r=t[1];const i=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==a||t[5]!==i||t[6]!==o||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:i,roleSlug:n},t[4]=a,t[5]=i,t[6]=o,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function kde(){const t=ye.c(13),{org:e}=Yi(),o=Wk(),{capabilities:a,isPrivileged:n}=O4(),r=n||!!a["members:manage"];let i;t[0]!==e.id?(i=ca.infraBillingSites(e.id),t[0]=e.id,t[1]=i):i=t[1];const c=!!e.id&&r;let d;t[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==c||t[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},t[4]=i,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Gi(u);let f;t[8]!==m?.sites?(f=m?.sites.map(Ede)??[],t[8]=m?.sites,t[9]=f):f=t[9];let v;return t[10]!==h||t[11]!==f?(v={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=v):v=t[12],v}function Ede(t){return t.slug}function e0e(){const t=ye.c(7),e=Wk(),o=Ua();let a;t[0]!==e?(a=i=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=i=>Id.error(o("settings.infraBilling.portalError",{message:i.message})),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={mutationFn:a,onSuccess:Cde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],vf(r)}function Cde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function t0e(t,e){const o=ye.c(14),{org:a}=Yi(),n=Wk();let r,i,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Gi,i=ca.infraBilling(a.id,r.join(","),e),o[0]=a.id,o[1]=e,o[2]=t,o[3]=r,o[4]=i,o[5]=c):(r=o[3],i=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==e||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),o[6]=e,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==i||o[11]!==d||o[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},o[10]=i,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function Pde(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=O4(),{sites:r,isLoading:i}=kde(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==o||t[3]!==a||t[4]!==c||t[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||e[m.requires]:!0;d=Object.fromEntries(Object.values(wb).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=o,t[3]=a,t[4]=c,t[5]=i,t[6]=d}else d=t[6];return d}function _de(t){const e=ye.c(16),{group:o}=t,a=Ua();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Ade},e[1]=i):i=e[1];const c=vk(i),d=Pde()[o],{titleKey:u}=wb[o];let m;e[2]!==a||e[3]!==u?(m=a(u),e[2]=a,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=y.jsx(Td.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==o||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==d?(f=d.length>1&&y.jsx(pn.Toolbar.Left.Portal,{children:y.jsx(Td.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const S=b.to.replace("$org",r),T=c===S||c.startsWith(`${S}/`);return y.jsx(Td.Tab,{active:T,asChild:!0,children:y.jsx(Wl,{to:b.to,params:{org:r},onClick:()=>P4("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),e[7]=o,e[8]=r,e[9]=c,e[10]=a,e[11]=d,e[12]=f):f=e[12];let v;return e[13]!==h||e[14]!==f?(v=y.jsxs(y.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function Ade(t){return t.location.pathname}function N4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(kO,{className:"h-32 w-full"}),y.jsx(kO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function Rde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=t;let c;e[0]!==o?(c=y.jsx(_de,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??y.jsx(N4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=y.jsx(A.Suspense,{fallback:d,children:i}),e[4]=i,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=y.jsx(gde,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=y.jsx(Td,{children:y.jsx(Td.Content,{children:y.jsx(Td.Container,{children:y.jsxs(xde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Us(t){return function(){return y.jsx(Rde,{group:t,children:y.jsx(N4,{})})}}function Dde(t){try{localStorage.setItem(Or.lastLocation(),JSON.stringify(t))}catch{}}function Ode(){try{const t=localStorage.getItem(Or.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function o0e(){try{localStorage.removeItem(Or.lastLocation())}catch{}}function Nde(t,e){const o=t&&e?TJ(e,t):null;return{queryKey:ca.activeOrganization(t),queryFn:async()=>{if(!t)return null;const a={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ga.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=Qk(n);return n&&!r&&localStorage.setItem(Or.lastOrgSlug(),t),e&&n&&kJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let aN;async function Mde(t){aN=t,await RB();const e=nee();if(!e)return;const o=await Yl.ensureQueryData(Nde(t,e)).catch(()=>null);o&&!Qk(o)&&aN===t&&Dde({org:t})}const Ct={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},Ze={root:Ct.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",blog:"/$org/projects/$agentId/blog",blogPost:"/$org/projects/$agentId/blog/posts/$postId",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",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function a0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Ide},t[0]=e):e=t[0],vk(e)}function Ide(t){return t.matches.at(-1)?.fullPath??""}function n0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Lde},t[0]=e):e=t[0],vk(e)}function Lde(t){return t.matches.findLast(Bde)?.staticData.mainView}function Bde(t){return t.staticData.mainView}function _f(t){return`agent-view:${encodeURIComponent(t)}`}function Fde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function M4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function jde(t){return`blog-post:${encodeURIComponent(t)}`}function zde(t){if(!t?.startsWith("blog-post:"))return null;const e=t.slice(10);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function $E(t,e){return`app:${t}:${e}`}function qde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),o=e.indexOf(":");if(o<=0)return null;const a=e.slice(0,o),n=e.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function I4(t){return`deck:${encodeURIComponent(t)}`}function Ude(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function L4(t){return`file:${encodeURIComponent(t)}`}function $de(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function B4(t){return`library-file:${encodeURIComponent(t)}`}function Vde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function F4(t){return`code:${encodeURIComponent(t)}`}function Hde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const j4=["overview","settings","automations","site-editor","code","content","blog","assets","hosting","e2e","analytics","cdn"],Gde=new Set(j4),z4=new Set(["hosting","e2e","analytics","cdn"]),Wde=new Set(["board","files","connect-sources","reports"]);function r0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Kde=new Map([["preview","site-editor"],["git","site-editor"]]);function xb(t){return Kde.get(t)??t}const VE=new Set(["instructions","connections","layout","settings"]);function Yde(t){return!!t&&VE.has(t)}const Zde=new Set(["overview","board","reports"]);function q4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=xb(e.type);if(VE.has(o))return"settings";if(Gde.has(o)||Zde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return $E(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?_f(e.id):n[0]?_f(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?_f(a):"settings"}function s0e(t){const e=t?.defaultMainView?.type;if(!e||e==="chat")return null;const o=q4(t);return o==="overview"?null:o}function i0e(t){const e=t.routeDefaultMain||q4(t.metadata),o=t.panelTabId&&VE.has(t.panelTabId)?"settings":t.panelTabId?xb(t.panelTabId):t.panelTabId,a=t.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:t.mainPanelParam??(!!o||!!t.routeDefaultMain||!n),activeTab:o??e}}function l0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function c0e(t){return t.mainOpen?t.activeTab==="automations"?!0:M4(t.activeTab)!==null:!1}const Qde=new Set([...j4.filter(t=>!z4.has(t)),...Wde,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Jde(t){return!!t&&Qde.has(t)}function Xde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?$E(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?L4(e.key):void 0;case"deck":return e.deck?I4(e.deck):void 0;case"library-file":return e.path?B4(e.path):void 0;case"code":return e.file?F4(e.file):"code";default:{const o=xb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function d0e(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?F4(o.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"blog-post":return e.postId?jde(e.postId):"blog";case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?$E(e.connectionId,e.toolName):void 0;case"view":return e.viewId?_f(e.viewId):void 0;case"file":return o.key?L4(o.key):void 0;case"deck":return o.path?I4(o.path):void 0;case"library-file":return o.path?B4(o.path):void 0;default:return t.mainView}}const eue={files:"library",discover:"discover"},tue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},oue={analytics:"audience",cdn:"performance"},aue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function U4(t){const e=Fde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=qde(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=M4(t);if(a)return{kind:"automations",automationId:a.id};const n=zde(t);if(n)return{kind:"blog",postId:n.id};const r=$de(t);if(r)return{kind:"output-file",key:r.key};const i=Ude(t);if(i)return{kind:"output-deck",path:i.path};const c=Vde(t);if(c)return{kind:"library-file",path:c.path};const d=Hde(t);if(d)return{kind:"site-editor",view:"code",...d.path?{file:d.path}:{}};if(Yde(t))return{kind:"agent-section",section:"settings"};const u=xb(t);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="blog")return{kind:"blog"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const m=tue[u];if(m){const v=oue[u];return{kind:"project-destination",destination:m,...v?{monitorView:v}:{}}}const h=eue[u];if(h)return{kind:"org-destination",destination:h};const f=aue[u];return f?{kind:"agent-section",section:f}:{kind:"agent-view",viewId:u}}function Ul(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=U4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:Ze.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:e},search:{}}:{to:Ze.reports,params:a,search:{}};case"plan":return r?{to:Ct.plan,params:{org:e},search:{}}:{to:Ze.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:e},search:i}:{to:Ze.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};case"library":return{to:Ct.library,params:{org:e},search:{}}}case"agent-overview":return{to:Ze.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:Ze.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:Ze.siteEditorCode,params:a,search:{file:n.file}}:{to:Ze.siteEditor,params:a,search:{}};case"agent-section":return{to:Ze[n.section],params:a,search:{}};case"blog":return n.postId?{to:Ze.blogPost,params:{...a,postId:n.postId},search:{}}:{to:Ze.blog,params:a,search:{}};case"automations":return n.automationId?{to:Ze.automation,params:{...a,automationId:n.automationId},search:{}}:{to:Ze.automations,params:a,search:{}};case"app":return{to:Ze.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:Ze.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:Ze.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:Ze.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:Ze.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:Ze.connectSources,params:a,search:{}}}}function u0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:Ct.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&U4(e).kind==="org-destination"?"overview":e;return Ul({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function nue(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case Ct.tasks:t({to:Ct.tasks,params:e.params,search:a,replace:n});return;case Ct.home:t({to:Ct.home,params:e.params,search:a,replace:n});return;case Ct.reports:t({to:Ct.reports,params:e.params,search:a,replace:n});return;case Ct.discover:t({to:Ct.discover,params:e.params,search:a,replace:n});return;case Ct.plan:t({to:Ct.plan,params:e.params,search:a,replace:n});return;case Ct.monitoring:t({to:Ct.monitoring,params:e.params,search:a,replace:n});return;case Ct.library:t({to:Ct.library,params:e.params,search:a,replace:n});return;case Ze.root:t({to:Ze.root,params:e.params,search:a,replace:n});return;case Ze.tasks:t({to:Ze.tasks,params:e.params,search:a,replace:n});return;case Ze.reports:t({to:Ze.reports,params:e.params,search:a,replace:n});return;case Ze.plan:t({to:Ze.plan,params:e.params,search:a,replace:n});return;case Ze.monitoring:t({to:Ze.monitoring,params:e.params,search:a,replace:n});return;case Ze.siteEditor:t({to:Ze.siteEditor,params:e.params,search:a,replace:n});return;case Ze.siteEditorContent:t({to:Ze.siteEditorContent,params:e.params,search:a,replace:n});return;case Ze.siteEditorCode:t({to:Ze.siteEditorCode,params:e.params,search:a,replace:n});return;case Ze.automations:t({to:Ze.automations,params:e.params,search:a,replace:n});return;case Ze.automation:t({to:Ze.automation,params:e.params,search:a,replace:n});return;case Ze.app:t({to:Ze.app,params:e.params,search:a,replace:n});return;case Ze.view:t({to:Ze.view,params:e.params,search:a,replace:n});return;case Ze.outputFile:t({to:Ze.outputFile,params:e.params,search:a,replace:n});return;case Ze.outputDeck:t({to:Ze.outputDeck,params:e.params,search:a,replace:n});return;case Ze.libraryFile:t({to:Ze.libraryFile,params:e.params,search:a,replace:n});return;case Ze.connectSources:t({to:Ze.connectSources,params:e.params,search:a,replace:n});return;case Ze.blog:t({to:Ze.blog,params:e.params,search:a,replace:n});return;case Ze.blogPost:t({to:Ze.blogPost,params:e.params,search:a,replace:n});return;case Ze.settings:case Ze.assets:case Ze.releases:case Ze.hosting:case Ze.e2e:case Ze.calendar:case Ze.experiments:t({to:e.to,params:e.params,search:a,replace:n});return;default:return rue(e)}}function rue(t){throw new Error(`Unhandled tab route target: ${JSON.stringify(t)}`)}function p0e(t,e){nue(t,Ul(e),e)}function sue(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function iue(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const lue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),$4=new Set(["main"]),cue=new Set(["virtualmcpid"]);function Tb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function Fl(t,e){return{...Tb(t,lue),...e.search}}function due(t){return Tb(t,cue)}function m0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===Ct.tasks?"board":t.routePath===Ct.reports?"reports":null;if(t.routePath===Ct.home||o){const a=o?Ul({org:t.org,agentId:e,tabId:o}):Vd(t.org,e);return{kind:"canonical",route:a,search:Fl(t.search,a)}}}return t.routePath===Ct.home||t.routePath===Ct.tasks||t.routePath===Ct.reports||t.routePath===Ct.library?{kind:"same-route",search:due(t.search)}:null}function kr(t){return t?.trim()||void 0}function V4(t){return Jde(t)||t!==void 0&&z4.has(t)}function H4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||ZL(e)!==null||KY(e)!==null||YY(e)!==null||JL(e)||XL(e):!1}function uue(t){const e=kr(t.agentIdParam),o=V4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function h0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=_0({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!e||iue(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!H4(e);if(!(V4(e)||o))return null;const n=uue({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=_0({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function pue(t,e,o,a){const n=kr(a);switch(t){case"board":return n?Ul({org:e,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Pi(o.path);return{to:Ct.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?Ul({org:e,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:e},search:{}};case"overview":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=pue(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:Ze.root,params:{org:t.org,agentId:o},search:{}}:Ul({org:t.org,agentId:o,tabId:t.tabId}):null}function Vd(t,e){const o=kr(e);return o?{to:Ze.root,params:{org:t,agentId:o},search:{}}:{to:Ct.home,params:{org:t},search:{}}}function mue(t){const{main:e}=t;if(e===void 0)return null;const o=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Tb(o,$4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...Fl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Jp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:Fl(o,a)}:null}function Pi(t){return typeof t=="string"&&t.length>0?t:void 0}function _0(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=_0({...t,search:Tb(e,$4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return mue({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const i=Vd(t.org,o);return{kind:"canonical",route:i,search:Fl(e,i)}}const n=Xde(a,{file:Pi(e.file),key:Pi(e.key),deck:Pi(e.deck),path:Pi(e.path),connection:Pi(e.connection),tool:Pi(e.tool),automation:Pi(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&o?Ul({org:t.org,agentId:o,tabId:n}):Jp({org:t.org,agentId:o,tabId:n,search:e}):Jp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...Fl(e,r),sidepanel:!0,mainpanel:!1}:Fl(e,r)}:null}function g0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=Jp({org:t.org,agentId:o,tabId:n,search:e}),c=!i&&n.trim().length>0&&a?Jp({org:t.org,agentId:a,tabId:n,search:e}):null;r=i??c??{to:Ct.home,params:{org:t.org},search:{}}}else r=Vd(t.org,o);return{route:r,search:{...Fl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function G4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const hue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},W4=hue,HE={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()},gue=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],_v={fileView:Wt(["all","documents","media"]).catch("all").optional(),modified:Wt(["any","today","week","month"]).catch("any").optional(),layout:Wt(["list","grid"]).catch("list").optional(),sort:Wt(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:uT().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:Wt(gue).catch("files").optional(),scope:Wt(["user"]).optional().catch(void 0),action:Wt(["create"]).optional().catch(void 0),tab:Wt(["all","connected"]).optional().catch(void 0)},fue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Qv().optional(),siteUrl:$().optional(),...W4},K4={...fue,task:$().optional(),project:$().optional(),...HE,skill:_v.skill,brand:_v.brand},wm=we(K4),Y4="blog-manager/posts/";function f0e(t){return t.startsWith(Y4)}function vue(t){return t.split("/").pop()??t}function v0e(t){return`${Y4}${t}`}function b0e(t){return`collections/blog/posts/${t}`}const bue=["context","posts","authors","categories","post-schedule"],Z4=Wt(bue),yue={blogCollection:Z4.optional(),blogItem:$().optional()};function y0e(t,e){return t==="context"&&!e?"posts":t}const Sue=Wt(["edit","preview"]),wue={blogView:Sue.optional()};function S0e(t){const e=Z4.safeParse(t.contentCollection);if(!e.success)return null;const o=e.data,a=t.contentItem;return o==="posts"?a?{collection:o,postId:vue(a)}:{collection:o}:a?{collection:o,item:a}:{collection:o}}function w0e(t){const e=t.blogCollection;return e==="authors"||e==="categories"?t.blogItem?{contentCollection:e,contentItem:t.blogItem}:{contentCollection:e}:{contentCollection:"posts"}}const Va=J$({component:()=>y.jsx(vde,{children:y.jsx(fk,{})})}),xue=De({getParentRoute:()=>Va,path:"/login",component:Be(()=>Fe(()=>import("./login-DgKeSKz2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),validateSearch:Jr(()=>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()}))}),Tue=De({getParentRoute:()=>Va,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-BWjEoABt.js"),__vite__mapDeps([8,4])))}),kue=De({getParentRoute:()=>Va,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-B672rI1V.js"),[])),validateSearch:Jr(()=>we({token:$().optional(),error:$().optional()}))}),Eue=De({getParentRoute:()=>Va,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-ChHXwieU.js"),[]))}),Cue=De({getParentRoute:()=>Va,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-Cg1KjIf_.js"),__vite__mapDeps([9,10,11])))}),Pue=De({getParentRoute:()=>Va,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-CzhJum4d.js"),__vite__mapDeps([12,4,1,2,3])))}),_ue=De({getParentRoute:()=>Va,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-hOquTBPU.js"),[]))}),xm=De({getParentRoute:()=>Va,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-QjOyVmz4.js"),__vite__mapDeps([13,14,15])))}),Aue=De({getParentRoute:()=>xm,path:"/",beforeLoad:()=>{throw po({to:"/_admin/users"})}}),Rue=De({getParentRoute:()=>xm,path:"/users",component:Be(()=>Fe(()=>import("./users-zlgoDQuW.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25])))}),Due=De({getParentRoute:()=>xm,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-DafOcWKJ.js"),__vite__mapDeps([26,17,18,19,20,21,22,27,24,28,29,30,31,32,33,23,34,35,25])))}),Oue=De({getParentRoute:()=>xm,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-TP7YCuz6.js"),__vite__mapDeps([36,20,27,33,25])))}),Nue=xm.addChildren([Aue,Rue,Due,Oue]),GE=De({getParentRoute:()=>Va,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-BHtZVBED.js").then(t=>t.q),__vite__mapDeps([37,38,39,15,25,40,41,42,19,43,44,45,46,31,47,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,62,63,64,11,65,66,67,35,68,69,3,2,70,71,72,73,74,75,24,76,27,77,78,30,79,80,81,82,5,6,7,14,83,84])))}),Mue=De({getParentRoute:()=>GE,path:"/",beforeLoad:async()=>{const t=Ode();if(t)throw po({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Or.lastOrgSlug());if(e)throw po({to:"/$org",params:{org:e}});const{data:o}=await DB();if(!o)return;const a=o[0];throw po(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Iue=De({getParentRoute:()=>Va,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await DB();if(t&&t.length>0)throw po({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-FLu6ztJj.js"),__vite__mapDeps([85,14,4,86,55,27,32,38,46,58])))}),Q4=Jr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),Lue=De({getParentRoute:()=>Va,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-BicRsxJF.js"),__vite__mapDeps([87,88,1,2,3,4,86,55,89,90,27,91,64,11,92,73,44,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,22,56,57,58,59,60,61,78,30,93,94,95,96,24,97,98,99,10,100,101,102,103,104,105]))),validateSearch:Q4}),Bue=De({getParentRoute:()=>Va,path:"/commerce-onboarding",validateSearch:Q4,beforeLoad:({search:t})=>{throw po({to:"/reports-onboarding",search:t})}}),Fue=De({getParentRoute:()=>Va,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-DFYfaLQ4.js"),__vite__mapDeps([106,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,14]))),validateSearch:Jr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),WE=De({getParentRoute:()=>Va,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-Bl3uFRW-.js"),__vite__mapDeps([107,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,112,7,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,118,119,120,121,89,90,122,123,124,33,125,126,127,128,129,130,131,132,133,28,29,134,135,136,137,138,139,140,141,142,20,21,143,144,145,146,147,148,149,150,151,32,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,97,185,186,187,103,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,23,203,204,17,18,205,206,207,208,209,210,211,212,213,96,214,215,216,217,218,219,220,221,222,101,94,102,223,224,225,226,98,99,10,227,228,229,230,231,232,233,234,235])))}),jue=De({getParentRoute:()=>WE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-Bl3uFRW-.js"),__vite__mapDeps([107,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,112,7,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,118,119,120,121,89,90,122,123,124,33,125,126,127,128,129,130,131,132,133,28,29,134,135,136,137,138,139,140,141,142,20,21,143,144,145,146,147,148,149,150,151,32,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,97,185,186,187,103,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,23,203,204,17,18,205,206,207,208,209,210,211,212,213,96,214,215,216,217,218,219,220,221,222,101,94,102,223,224,225,226,98,99,10,227,228,229,230,231,232,233,234,235])),"SiteEditorPreview")}),zue=De({getParentRoute:()=>WE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-Bl3uFRW-.js"),__vite__mapDeps([107,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,112,7,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,118,119,120,121,89,90,122,123,124,33,125,126,127,128,129,130,131,132,133,28,29,134,135,136,137,138,139,140,141,142,20,21,143,144,145,146,147,148,149,150,151,32,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,97,185,186,187,103,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,23,203,204,17,18,205,206,207,208,209,210,211,212,213,96,214,215,216,217,218,219,220,221,222,101,94,102,223,224,225,226,98,99,10,227,228,229,230,231,232,233,234,235])),"SiteEditorContent")}),que=De({getParentRoute:()=>Va,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-CvxegUiQ.js"),__vite__mapDeps([236,100,3,1,2,237])))}),kb=De({getParentRoute:()=>GE,path:"/$org",loader:({params:t})=>Mde(t.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-BXYvPulM.js"),__vite__mapDeps([238,118,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,7,14,83,84,116,119,120,121,89,90,122,123,124,33,131,215,110,109,221,182,29,239,240,241,23,242,243,153,145,129,134,244,32,245,135,189,206,205,246,247,230,111,248,133,96,249,219])))}),Eb=De({getParentRoute:()=>kb,id:"org-shell",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./thread-route-L_F2dRjs.js"),__vite__mapDeps([250,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,88,251,93,94,95,44,91,92,73,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,90,27,96,24,97,98,99,10,100,101,102,103,252,104])))}),Uue=we({sidepanel:JB,mainpanel:XB,main:lo([$(),Qe(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>Eb,id:"agent-shell",validateSearch:Uue,search:{middlewares:[x$(["sidepanel"])]},pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-a1KQq-lz.js"),__vite__mapDeps([253,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,7,14,83,84,116,212,108,109,110,111,148,172,147,90,149,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,219,220,221,222,101,94,102,103,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,189,154,128,127,155,20,210,211,129,112,117,254,255,256,206,191,190,243,153,145,187,205,122,257,258,259,260,261,136,184,125])))}),$ue=wm.extend({virtualmcpid:$().optional()}),Vue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:$ue,component:()=>null}),It=Be(()=>Fe(()=>import("./index-DuYneP0E.js").then(t=>t.i),__vite__mapDeps([112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117])),"ChatLayoutPending"),Lt=Be(()=>Fe(()=>import("./index-DuYneP0E.js").then(t=>t.i),__vite__mapDeps([112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117])),"ChatLayoutError"),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-CIpHO2ej.js"),__vite__mapDeps([262,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,213,147,148,90,149,150,151,108,109,110,111,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,172,218,219,220,221,222,101,94,102,103,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,263,264,246,247,119,265,179,180,178,266,122,267,240,248,268,269,261,136,184,258,259,260,270,239,123])))}),Gue=De({getParentRoute:()=>en,path:"/projects",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=(e.project??e.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw po({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw po(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a,hash:!0,replace:!0})}});let nN;const Xt=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:wm,beforeLoad:({cause:t,params:e})=>{if(t==="preload")return{enteredProject:!1};const o=t==="enter"||e.agentId!==nN;return nN=e.agentId,{enteredProject:o}},component:fk}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-IBMGymrh.js"),__vite__mapDeps([271,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,108,109,110,111,213,147,148,90,149,150,151,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,172,218,219,220,221,222,101,94,102,103,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,263,264,246,247,119,265,179,180,178,266,122,267,240,248,268,239,257])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HE}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:o?.taskKey??t.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-B88cPPXW.js"),__vite__mapDeps([272,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,273,119,120,274,181,131,275,23,96,218,276,277,121,241,246,247,230,111,269,28,29,267,240,248,278,124,162,186,166,151,150,108,109,110,279,147,148,90,149,163,217,280,196,155,281,171,95,282,229,165,167,168,169,170,172,173,174,228,254,209,214,283,220,221])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-CPvLPQcs.js"),__vite__mapDeps([284,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,285,88,251,93,94,95,104,105,270,286])))}),Cb=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),...W4}),component:Be(()=>Fe(()=>import("./agent-site-editor-CS9MMMbk.js"),__vite__mapDeps([207,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,208,209,126,127,128,129,130,131,6,78,30,7,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,132,133,28,29,134,135,136,137,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,14,83,84,115,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,114,231,165,166,167,168,169,170,116,173,198,199,185,186,158,184,232,154,155,189,233,203,112,113,117,234,235])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/blog",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog"},validateSearch:we(yue),component:Be(()=>Fe(()=>import("./agent-blog-DFA4iTY2.js"),__vite__mapDeps([287,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,283,182,193,140,141,21,145,146,194,164,195,196,200,201,202,203,153,183,288,289,290,255,256,206,191,190,243,234])))}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/blog/posts/$postId",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog-post"},validateSearch:we(wue),component:Be(()=>Fe(()=>import("./agent-blog-post-CJzR6SRp.js"),__vite__mapDeps([291,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,283,203,194,164,195,141,156,289,288,234])))}),Jue=De({getParentRoute:()=>Cb,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-CFg2FnqN.js"),__vite__mapDeps([292,290,255,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,256,169,149,189,212,108,109,110,111,148,78,30,6,82,7,172,147,90,27,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,80,81,219,220,221,222,101,94,102,103,223,224,73,33,225,226,98,99,10,227,23,228,229,230,231,165,166,37,15,25,71,72,74,75,24,76,77,79,5,14,83,84,167,168,170,116,173,128,127,206,191,190,243,153,145,129,187,283,138,139,140,126,136,137,141,142,20,21,146,32,154,155,156,115,157,158,159,160,161,162,163,119,120,164,175,176,177,178,179,180,181,182,183,184,97,125,117,185,186,188])))}),Xue=De({getParentRoute:()=>Cb,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-C07hh63_.js"),__vite__mapDeps([293,290,255,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,256,169,149,189,212,108,109,110,111,148,78,30,6,82,7,172,147,90,27,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,80,81,219,220,221,222,101,94,102,103,223,224,73,33,225,226,98,99,10,227,23,228,229,230,231,165,166,37,15,25,71,72,74,75,24,76,77,79,5,14,83,84,167,168,170,116,173,128,127,206,191,190,243,153,145,129,187,283,192,161,136,139,140,126,137,141,142,20,21,146,32,162,163,119,120,164,155,158,175,176,177,178,179,180,181,182,193,194,195,196,197,198,199,200,201,202,203,183,184,154,160,204,17,18])))}),epe=De({getParentRoute:()=>Cb,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-gfgfb7xF.js"),__vite__mapDeps([294,290,255,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,256,169,149,189,212,108,109,110,111,148,78,30,6,82,7,172,147,90,27,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,80,81,219,220,221,222,101,94,102,103,223,224,73,33,225,226,98,99,10,227,23,228,229,230,231,165,166,37,15,25,71,72,74,75,24,76,77,79,5,14,83,84,167,168,170,116,173,128,127,206,191,190,243,153,145,129,187,283,20])))}),tpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw po({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-BI5n1DEk.js"),__vite__mapDeps([295,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,21,20,276,296,23])))}),ope=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:we({automationView:Wt(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-B3znFoJv.js"),__vite__mapDeps([297,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23,133,32,131,148,171,256,298,108,109,110,111,132,28,29,134,135,299,276,166,300,216,217,147,90,149,150,151,172,218,301,247,119,302,143,144,183,184,303,18,20,304,228,254,282,229,165,167,168,169,170,173,174,227])))}),ape=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-DF71XJZP.js"),__vite__mapDeps([305,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,306,307,308,309,310,108,109,110,111,33,20,311,218,312,101,94,102,103,299,245,99,10,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,174,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,151,34,187,127,314,315,170,188,211])))}),npe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(_v),component:Be(()=>Fe(()=>import("./agent-library-Cs6jlCDK.js"),__vite__mapDeps([316,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,317,21,108,109,110,111,218,318,33,150,151,306,307,308,309,310,20,311,260,131,258,259,96,261,136,184,174,319,203,18,312,101,94,102,103,299,245,99,10,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,313,169,133,256,172,149,32,182,189,243,153,145,129,242,34,187,127,314,315,170,188,211])))}),rpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-BERkZgBg.js"),__vite__mapDeps([320,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,290,255,171,256,169,149,189,212,108,109,110,111,148,172,147,90,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,219,220,221,222,101,94,102,103,223,224,33,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,170,173,128,127,206,191,190,243,153,145,129,187,21,146])))}),spe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-k0DaB9LQ.js"),__vite__mapDeps([321,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,290,255,171,256,169,149,189,212,108,109,110,111,148,172,147,90,150,151,213,96,174,214,130,131,132,133,28,29,134,135,143,144,215,152,216,217,218,219,220,221,222,101,94,102,103,223,224,33,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,170,173,128,127,206,191,190,243,153,145,129,187,126,136,137,199])))}),ipe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-D0d8gHPR.js"),__vite__mapDeps([322,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23,203,96,18,166,28,29,323,312,101,94,102,103,108,109,110,111,299,20,245,99,10,33,171,300,222,223,224,90,225,226,98,227,228,229,174,218,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),lpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-B2FpHDAG.js"),__vite__mapDeps([324,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23,28,29,18,203,166,143,144,323,312,101,94,102,103,108,109,110,111,299,20,245,99,10,33,171,300,222,223,224,90,225,226,98,227,228,229,174,218,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),cpe=De({getParentRoute:()=>Xt,path:"/analytics",validateSearch:we({view:$().optional()}),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:e.view==="experiments"?"experiments":"audience"},replace:!0})}}),dpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-CRI_d1NW.js"),__vite__mapDeps([325,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,227,23,274,326,131,182,29,162,327,265,179,180,178,266,18,152,144,247,119,328,267,240,248,181])))}),upe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-BDFLMLOM.js"),__vite__mapDeps([329,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,330,203,331,175,176,177,178,179,180,332,141,195,197,233])))}),ppe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-DCBRCsam.js"),__vite__mapDeps([333,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,208,209,108,109,110,111,126,127,128,129,130,131,132,133,28,29,134,135,136,137,143,144,210,211,187,103,159,142,20,212,148,172,147,90,149,150,151,213,96,174,214,215,152,216,217,218,219,220,221,222,101,94,102,223,224,33,171,225,226,98,99,10,227,23,228,229,230,231,165,166,167,168,169,170,173,198,199,185,186,158,184,232,154,155,189,182,197,331,175,176,177,178,179,180,332,141,195,202,233,203,323,312,299,245,300,313,256,32,243,153,145,242,310,34,314,315,188])))}),mpe=De({getParentRoute:()=>Xt,path:"/cdn",beforeLoad:({params:t})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:"performance"},replace:!0})}}),J4=we({args:$().optional()}),hpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/apps/$connectionId/$toolName",validateSearch:J4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-qCE6mpox.js"),__vite__mapDeps([334,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,191,335,148,256,167,168,169,108,109,110,111,267,240,248,119,336,88,92,93,94,95,90,96,97,98,99,10,100,101,102,103])))}),gpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/views/$viewId",validateSearch:J4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-CzQtfKwQ.js"),__vite__mapDeps([337,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,335,148,256,167,168,169,108,109,110,111,267,240,248,119,336,88,92,93,94,95,90,96,97,98,99,10,100,101,102,103,323,312,299,20,245,33,171,300,222,223,224,28,29,225,226,227,23,228,229,174,218,313,133,172,149,32,131,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),fpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-CAkn0Q5x.js"),__vite__mapDeps([338,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,174,261,218,136,184,150,151,108,109,110,111,173,323,312,101,94,102,103,299,20,245,99,10,33,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,313,169,133,256,172,149,32,131,182,189,243,153,145,129,242,310,34,187,127,314,315,170,188,211])))}),vpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-C_9xRnWL.js"),__vite__mapDeps([339,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,260,218,131,323,312,101,94,102,103,108,109,110,111,299,20,245,99,10,33,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,174,313,169,133,256,172,149,32,182,189,243,153,145,129,242,310,151,34,187,127,314,315,170,188,211])))}),bpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-DV2qsJC9.js"),__vite__mapDeps([340,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,341,259,96,260,218,131,261,136,184,174,150,151,108,109,110,111,323,312,101,94,102,103,299,20,245,99,10,33,171,300,222,223,224,90,28,29,225,226,98,227,23,228,229,313,169,133,256,172,149,32,182,189,243,153,145,129,242,310,34,187,127,314,315,170,188,211])))}),ype=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-BvH_YwiD.js"),__vite__mapDeps([342,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,91,88,92,93,94,95,90,96,97,98,99,10,100,101,102,103,252,104])))}),Spe=De({getParentRoute:()=>Xt,path:"/$legacyView",component:()=>null}),wpe=De({getParentRoute:()=>en,path:"/agents",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw po(o?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:a=>a,hash:!0,replace:!0})}}),xpe=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:wm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!H4(o))return;const a=sue(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw po({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-COHFWDWb.js"),__vite__mapDeps([343,257,66])))}),Tpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HE}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-DGRURa32.js"),__vite__mapDeps([344,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,273,119,120,274,181,131,275,23,96,218,276,277,121,241,246,247,230,111,269,28,29,267,240,248,278,124,162,186,166,151,150,108,109,110,279,147,148,90,149,163,217,280,196,155,281,171,95,282,229,165,167,168,169,170,172,173,174,228,254,209,214,283,220,221])))}),kpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-CRI_d1NW.js"),__vite__mapDeps([325,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,227,23,274,326,131,182,29,162,327,265,179,180,178,266,18,152,144,247,119,328,267,240,248,181])))}),Epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-aoAc3KR6.js"),__vite__mapDeps([345,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,327,265,179,180,178,266,18,152,144,23,247,119,328,181,131,28,29,143,282,229,165,166,151,147,148,90,149,150,108,109,110,111,167,168,169,170,171,172,173,174,228,254])))}),Cpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-ODcJFAP-.js"),__vite__mapDeps([346,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,285,88,251,93,94,95,104,105,270,286])))}),Ppe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(_v),component:Be(()=>Fe(()=>import("./library-BMXElwFo.js"),__vite__mapDeps([347,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,7,112,113,114,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,306,307,308,309,310,33,20,311,218,341,259,96,260,131,261,136,184,174,150,151,317,21,318,258,319,203,18])))}),_pe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-5t2sCqh-.js"),__vite__mapDeps([348,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23])))}),X4=we({view:Wt(["metrics","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:dL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),Ape=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:X4,component:Be(()=>Fe(()=>import("./monitoring-CRmBvi8F.js"),__vite__mapDeps([349,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,203,131,350,265,179,180,178,266,23,162,97,328,268,108,109,110,111,130,132,133,28,29,134,135,311,327,18,152,144,247,119,336,88,92,93,94,95,90,96,98,99,10,100,101,102,103,171,181,176,177,143,129,240,330,331,142,126,127,128,136,137,20,175,332,141,195,197,233,351,33,277,281,21,32,304,228,352])))}),Rpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-5t2sCqh-.js"),__vite__mapDeps([348,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,23])))}),Dpe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>Xt,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:X4,component:Be(()=>Fe(()=>import("./monitoring-CRmBvi8F.js"),__vite__mapDeps([349,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,203,131,350,265,179,180,178,266,23,162,97,328,268,108,109,110,111,130,132,133,28,29,134,135,311,327,18,152,144,247,119,336,88,92,93,94,95,90,96,98,99,10,100,101,102,103,171,181,176,177,143,129,240,330,331,142,126,127,128,136,137,20,175,332,141,195,197,233,351,33,277,281,21,32,304,228,352])))}),Ope=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-DhvRjqxh.js"),__vite__mapDeps([353,112,7,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,171,145,153,187,103])))}),Npe=De({getParentRoute:()=>kb,path:"/members",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/members",params:{org:t.org}})}}),Mpe=we({main:lo([$(),Qe(0)]).optional(),virtualmcpid:$().optional(),...K4,sidepanel:JB,mainpanel:XB,thread:$().optional()}),Ipe=De({getParentRoute:()=>Eb,path:"/",validateSearch:Mpe,pendingComponent:Zd,component:Be(()=>Fe(()=>import("./index-Db96seLi.js"),__vite__mapDeps([354,257,66])))}),Lpe=De({getParentRoute:()=>Eb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),co=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>kb,path:"/settings",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-Bh9fCZXT.js"),__vite__mapDeps([355,7,112,113,114,66,65,62,63,64,11,67,35,68,69,3,2,70,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,78,30,115,37,15,25,71,72,73,74,75,24,76,27,77,79,80,81,82,5,6,14,83,84,116,117,356,23,131,152,144,110,109,221])))}),Bpe=De({getParentRoute:()=>co,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-QRKsjVCi.js"),__vite__mapDeps([357,309])))}),Fpe=De({getParentRoute:()=>co,path:"/connections",validateSearch:Jr(()=>we({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"connections",...e},replace:!0})}}),jpe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-Bm5pNgz3.js"),__vite__mapDeps([358,101,94,102,103,20,226,55,57,359,64,11,256,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,22,56,58,59,60,61,171,28,29,30,180,360,177,72,131,78,63,7,75,69,3,2,70,68,35,225,313,23,169,10,99,73,116,90,27,172,361,362,265,179,178,266,328,143,144,224,168,82]))),validateSearch:Jr(()=>we({tab:$().optional()}))}),zpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-BdQUzwBw.js"),__vite__mapDeps([363,20,64,11,90,27,33,359,256,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,171,101,94,102,103,28,29,30,180,360,177,72,131,78,63,7,75,69,3,2,70,68,35,225,168,169,186,224,313,23,10,167,73,108,65,66,62,67,109,110,111,37,15,25,71,74,24,76,77,79,80,81,82,5,6,14,83,84,183,184,203]))),validateSearch:Jr(()=>we({replayId:$().optional()}))}),qpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Be(()=>Fe(()=>import("./index-n1AjR0vt.js"),__vite__mapDeps([364,21,22,20,307,308,309,165,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,56,57,58,59,60,61,166,151,147,148,90,27,149,150,108,65,66,62,63,64,11,67,35,68,69,3,2,70,109,110,111,7,78,30,37,15,25,71,72,73,74,75,24,76,77,79,80,81,82,5,6,14,83,84,167,168,169,170,116,171,172,173,174,224,23,131,183,184,302,133,28,29,326,182,162,33,227,32,186,362,265,179,180,178,266,328,282,229,228,254,18,304,276,303,203,240,350,97,268,283,220,221]))),validateSearch:Jr(()=>we({tab:Wt(["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:Wt(["all","success","errors"]).default("all"),search:$().default(""),page:Mt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),Upe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Be(()=>Fe(()=>import("./general-Bt-teqGz.js"),__vite__mapDeps([365,300,366,32,45,39,67,35,68,171,64,11,367,23,28,29,30,31,309])))}),$pe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./connect-DwtFEmWa.js"),__vite__mapDeps([368,186,23,28,29,30,31,143,144,151,40,41,42,19,43,44,45,38,46,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,264,369,203,27,360,64,11,256,133,21,73,370,228,229,81,82,102,103,171,307,308,309])))}),Vpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./ai-providers-DoacYpUR.js"),__vite__mapDeps([371,41,110,46,67,35,68,298,6,7,108,65,66,62,63,64,11,69,3,2,70,109,111,132,133,51,28,29,30,31,43,47,50,42,22,134,135,52,300,356,55,23,131,152,144,78,221,244,32,79,57,245,307,308,309])))}),Hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),Gpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./infra-billing-C3ShZZOT.js"),__vite__mapDeps([372,48,23,302,133,51,31,71,72,22,131,28,29,30,18,266,179,180,351,328,307,308,309])))}),Wpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-DE59ARp-.js"),__vite__mapDeps([373,41,55,59,203,27,28,29,30,31,33,315,307,308,309])))}),Kpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./api-keys-CLzhmgUv.js"),__vite__mapDeps([374,369,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,203,27,23,360,28,29,30,64,11,256,133,21,73,370,228,229,81,82,102,103,171,307,308,309])))}),Ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./buckets-r-Vn310N.js"),__vite__mapDeps([375,41,55,57,23,203,27,28,29,30,31,32,33,145,307,308,309])))}),Zpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,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:Us("repositories"),component:Be(()=>Fe(()=>import("./repositories-C0edGPcS.js"),__vite__mapDeps([376,377,77,43,55,78,30,27,79,80,81,82,22,45,56,24,67,35,68,44,133,51,59,203,23,186,96,166,28,29,31,33,57,314,315,307,308,309])))}),Qpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./synced-repos-DfFbkdSN.js"),__vite__mapDeps([378,55,203,77,43,78,30,27,79,80,81,82,22,45,56,24,67,35,68,318,307,308,309])))}),Jpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-fWq-fqoJ.js"),__vite__mapDeps([379,133,51,33,47,54,55,181,71,72,22,131,302,23,31,28,29,30,32,301,366,45,39,67,35,68,171,64,11,24,276,275,60,61,96,78,116,218,80,81,62,63,70,2,307,308,309])))}),Xpe=De({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/task-board",params:{org:t.org}})}}),eme=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Be(()=>Fe(()=>import("./projects-FY3sblQl.js"),__vite__mapDeps([380,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,23,21,76,27,64,11,75,63,69,3,2,70,68,35,77,78,30,79,80,81,82,24,67,270,245,251,93,94,95,286,62,171])))}),tme=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./members-DQZtkBei.js"),__vite__mapDeps([381,382,19,49,78,30,152,144,23,21,22,17,18,20,90,27,28,29,31,33,383,249,50,57,60,133,51,71,72,131,55,278,307,308,309])))}),ome=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./roles-BYqU9-We.js"),__vite__mapDeps([384,383,23,49,55,57,17,18,19,20,21,22,134,370,73,44,40,41,42,43,45,38,46,31,47,39,48,50,51,52,53,54,56,58,59,60,61,228,133,229,81,64,11,82,102,103,171,63,110,32,78,30,74,62,308,309]))),validateSearch:Jr(()=>we({role:$().optional()}))}),ame=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Be(()=>Fe(()=>import("./sso-C4bCFgaT.js"),__vite__mapDeps([385,367,23,28,29,30,31,32,83,57,307,308,309])))}),nme=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Be(()=>Fe(()=>import("./profile-ItK6hTrx.js"),__vite__mapDeps([386,176,177,29,57,58,32,28,30,31,152,144,78,52,53,54,300,219])))}),rme=De({getParentRoute:()=>co,path:"/agents",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/projects",params:{org:t.org}})}}),sme=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Be(()=>Fe(()=>import("./automations-BvZ8wxJr.js"),__vite__mapDeps([387,55,61,21,22,20,276,64,11,75,63,69,3,2,70,68,35,296,23,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,56,57,58,59,60,307,308,309])))}),ime=De({getParentRoute:()=>co,path:"/skills",beforeLoad:({params:t})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"skills"},replace:!0})}}),lme=De({getParentRoute:()=>co,path:"/memory",validateSearch:Jr(()=>we({scope:Wt(["user"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"memory",...e},replace:!0})}}),cme=co.addChildren([Bpe,Fpe,jpe,zpe,rme,sme,ime,lme,qpe,Upe,$pe,Vpe,Hpe,Gpe,Wpe,Kpe,Ype,Zpe,Qpe,Jpe,Xpe,eme,tme,ome,ame,nme]),dme=Cb.addChildren([Jue,Xue,epe]),ume=Xt.addChildren([Wue,Kue,Yue,dme,Zue,Que,tpe,ope,ape,npe,rpe,spe,ipe,lpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,vpe,bpe,ype,Spe,Rpe,Dpe]),pme=en.addChildren([Vue,Hue,Gue,ume,wpe,xpe,Tpe,kpe,Epe,Cpe,Ppe,Ope,_pe,Ape]),mme=Eb.addChildren([Ipe,Lpe,pme]),hme=kb.addChildren([mme,Npe,cme]),gme=GE.addChildren([Mue,hme]),fme=Va.addChildren([gme,Nue,Iue,Lue,Bue,Fue,WE.addChildren([jue,zue]),que,xue,Tue,kue,Eue,Cue,Pue,_ue]);function vme(){const t=ye.c(16),e=Ua();let o;t[0]!==e?(o=e("common.index.pageNotFound"),t[0]=e,t[1]=o):o=t[1];let a;t[2]!==o?(a=y.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),t[2]=o,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=y.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("common.goBack"),t[8]=e,t[9]=i):i=t[9];let c;t[10]!==i?(c=y.jsx("button",{type:"button",onClick:bme,className:"text-sm text-primary hover:underline",children:i}),t[10]=i,t[11]=c):c=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==c?(d=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),t[12]=a,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function bme(){return window.history.back()}const Pb=cV({routeTree:fme,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:vme});function _e(...t){return QB(eE(t))}function yme(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function Vo({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function Xl(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function A0(t,e){for(const o in t)if(t[o]===e)return o}function Xp(t,e){let o=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(o=o.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(o=o.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(o=o.regex(t.regex,{message:e?.INVALID_PASSWORD})),o}var Sme={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"},wme={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"},xme={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."},Tme={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."},kme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Eme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Cme={...kme,...Eme},Pme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},_me={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ame={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Rme={INVALID_SESSION_TOKEN:"Invalid session token"},Dme={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"},Ome={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"},Nme={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"},Mme={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"},Ime={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"},Lme={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"},Bme={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"},Fme={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",...Tme,...Sme,...wme,...xme,...Cme,...Pme,..._me,...Ame,...Rme,...Dme,...Ome,...Nme,...Mme,...Ime,...Lme,...Bme},jme={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"},rN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},sN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const e5=A.createContext({});function t5(){return A.useContext(e5)}var hx,iN;function zme(){if(iN)return hx;iN=1;var t=function(){};return hx=t,hx}var qme=zme();const Ume=Gl(qme);function $me({async:t,appendTo:e,defer:o,id:a,nonce:n,src:r}){const i=document.createElement("script");t!==void 0&&(i.async=t),o!==void 0&&(i.defer=o),a&&(i.id=a),n&&i.setAttribute("nonce",n),i.src=r,(e==="head"?document.head:document.body).appendChild(i)}var Vme=function(t,e){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(o[a[n]]=t[a[n]]);return o};let Rp=null,em=!1;const Av=new Set,Rv=new Set,Hme=typeof window<"u",Cd="___grecaptcha_cfg",o5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Gme(){if(!Hme)return;function t(o){if(em)o();else{window[Cd]||(window[Cd]={});const a=window[Cd];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const o of Rv)o();Rv.clear()}window[o5]=e}function Wme({language:t,onLoadCallbackName:e,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function Kme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=Wme({language:t,onLoadCallbackName:o5,render:e,useEnterprise:a,useRecaptchaNet:n});if(Rp){if(Rp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=i,$me(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function Yme(t){if(!window[Cd])return;const e=window[Cd];e.clients&&delete e.clients[t]}function Zme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=Vme(e,["onLoadCallback","onLoadCallbackName"]);if(Av.size===0&&Gme(),Kme(n),Av.add(t),o&&(em?o():Rv.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};em?r():Rv.add(r)}}function Qme(t){var e,o,a;Av.delete(t),Av.size===0&&(window.grecaptcha=void 0,window[Cd]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Rp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Rp=null,em=!1)}let lN=!1;function Jme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[S,T]=A.useState(null),[x,k]=A.useState(null),C=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(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(()=>{T(L)})}return Zme(b,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{Qme(b),T(null)}},[t?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!t?.element||!S?.render)return;const U={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:a,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=S.render(B,U);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(lN||(Ume(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),lN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),C.current=!0,()=>{k(null),C.current=!1,Yme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(v=t?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const E=!!t?.element,_=E?x:a,D=A.useMemo(()=>_!==null&&S?.execute?R=>{if(_===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):S.execute(_,{action:R})}:void 0,[_,S,E]);return y.jsx(e5.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var Xme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const o={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,o),this.notify(t)}setRefetching(t,e){const o=this.cache.get(t);o&&(o.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const o of e)this.notify(o)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const o=this.listeners.get(t);o&&(o.delete(e),o.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const o=Array.from(e);for(const a of o)a()}}},Qn=new Xme;function ehe(){return()=>{}}function $s(){return A.useSyncExternalStore(ehe,()=>!0,()=>!1)}function a5(){const[t,e]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:t}}function KE(){const[t,e]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:t}}function the({children:t}){const e=$s(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?t:y.jsxs(Jme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&y.jsx("style",{children:`
|
|
169
169
|
.grecaptcha-badge {
|
|
170
170
|
visibility: hidden;
|
|
171
171
|
border-radius: var(--radius) !important;
|
|
@@ -249,4 +249,4 @@ Alternatively, you can use your own component as a description by assigning it a
|
|
|
249
249
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return A.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},Lye=ez,Bye=tz,Fye=oz,jye=az,zye=lz,qye=dz,Uye=rz,$ye=iz;function uz(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(Lye,{"data-slot":"alert-dialog",...o}),e[2]=o,e[3]=a):a=e[3],a}function Vye(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx(Bye,{"data-slot":"alert-dialog-portal",...o}),e[2]=o,e[3]=a):a=e[3],a}function Hye(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-scrim",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(Fye,{"data-slot":"alert-dialog-overlay",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function pz(t){const e=ye.c(13);let o,a,n;e[0]!==t?({className:o,onOpenAutoFocus:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(Hye,{}),e[4]=r):r=e[4];let i;e[5]!==a?(i=u=>{a?.(u),!u.defaultPrevented&&(u.preventDefault(),u.currentTarget?.focus())},e[5]=a,e[6]=i):i=e[6];let c;e[7]!==o?(c=Je("glass outline-none 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-[0.96] data-[state=open]:zoom-in-[0.96] fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-5 rounded-2xl p-6 duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] sm:max-w-lg",o),e[7]=o,e[8]=c):c=e[8];let d;return e[9]!==n||e[10]!==i||e[11]!==c?(d=y.jsxs(Vye,{children:[r,y.jsx(jye,{"data-slot":"alert-dialog-content",onOpenAutoFocus:i,className:c,...n})]}),e[9]=n,e[10]=i,e[11]=c,e[12]=d):d=e[12],d}function mz(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("flex flex-col gap-1 text-center sm:text-left",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx("div",{"data-slot":"alert-dialog-header",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Z0(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx("div",{"data-slot":"alert-dialog-footer",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function hz(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("text-[1.375rem] leading-tight font-medium tracking-[-0.02em]",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(Uye,{"data-slot":"alert-dialog-title",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function gz(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("text-muted-foreground text-xs",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx($ye,{"data-slot":"alert-dialog-description",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function I0e(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,variant:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=Je(aE({variant:n}),o),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;return e[7]!==a||e[8]!==r?(i=y.jsx(zye,{className:r,...a}),e[7]=a,e[8]=r,e[9]=i):i=e[9],i}function L0e(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je(aE({variant:"outline"}),o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(qye,{className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const B0e="website/loaders/secret.ts",F0e=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Gye=/^(?:[0-9a-f]{2})*$/i;function Wye(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function Kye(t){return typeof t=="string"&&Gye.test(t)}class Yye extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function Q0(t,e=""){if(Array.isArray(t))return t.map((a,n)=>Q0(a,`${e}/${n}`));if(!t||typeof t!="object")return t;const o=Object.entries(t);if(Wye(t)){const a=t.encrypted;if(a!==void 0&&!Kye(a))throw new Yye(e||"/");return Object.fromEntries(o.filter(([n])=>n!=="value"))}return Object.fromEntries(o.map(([a,n])=>[a,Q0(n,`${e}/${a}`)]))}function la(t){return JSON.stringify(t,(e,o)=>{if(!o||typeof o!="object"||Array.isArray(o))return o;const a={};for(const n of Object.keys(o).sort())a[n]=o[n];return a})}async function j0e(t){const e=la(Q0(t)),o=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(o),a=>a.toString(16).padStart(2,"0")).join("")}class uf extends Error{constructor(e){super(e),this.name="CanonicalJsonError"}}function J0(t,e,o,a){if(t===null){a.push("null");return}switch(typeof t){case"string":a.push(JSON.stringify(t));return;case"boolean":a.push(t?"true":"false");return;case"number":if(!Number.isFinite(t))throw new uf(`${e}: ${t} can't be represented in JSON`);a.push(Object.is(t,-0)?"0":JSON.stringify(t));return;case"object":break;default:throw new uf(`${e}: a ${typeof t} can't be represented in JSON`)}const n=t;if(o.has(n))throw new uf(`${e}: a cycle can't be represented in JSON`);if(o.add(n),Array.isArray(n))a.push("["),n.forEach((r,i)=>{i>0&&a.push(","),J0(r,`${e}/${i}`,o,a)}),a.push("]");else{const r=Object.getPrototypeOf(n);if(r!==Object.prototype&&r!==null)throw new uf(`${e}: only plain objects can be represented in JSON`);const i=Object.keys(n).sort();a.push("{"),i.forEach((c,d)=>{d>0&&a.push(","),a.push(JSON.stringify(c),":"),J0(n[c],`${e}/${c}`,o,a)}),a.push("}")}o.delete(n)}function Zye(t){const e=[];return J0(t,"",new Set,e),e.join("")}const X0=".json";[...Array.from({length:9},(t,e)=>`COM${e+1}`),...Array.from({length:9},(t,e)=>`LPT${e+1}`)];new TextEncoder;function Qye(t){return`${encodeURIComponent(t)}${X0}`}function fz(t){return t.endsWith(X0)?t.slice(0,-X0.length):t}function z0e(t){const e=fz(t);try{return decodeURIComponent(e)}catch{return e}}function Jye(t){let e=fz(t),o=0;for(;e.includes("%");){let a;try{a=decodeURIComponent(e)}catch{break}if(a===e)break;e=a,o++}return{name:e,passes:o}}function q0e(t){return Jye(Qye(t)).name}function vz(){const t=ye.c(32),{org:e}=Yi(),o=e.id;let a;t[0]!==o?(a=E=>(_=>ga.organization[E]({..._??{},organizationId:o})),t[0]=o,t[1]=a):a=t[1];const n=a;let r;t[2]!==o?(r=E=>(_=>{const D={..._??{}},R=D.query??{};return D.query={...R,organizationId:o},ga.organization[E](D)}),t[2]=o,t[3]=r):r=t[3];const i=r;let c,d;t[4]!==i?(c=i("listMembers"),d=i("listRoles"),t[4]=i,t[5]=c,t[6]=d):(c=t[5],d=t[6]);let u,m,h,f,v,b,S,T,x;t[7]!==n?(f=n("inviteMember"),v=n("removeMember"),b=n("updateMemberRole"),S=n("addMember"),T=n("createRole"),x=n("updateRole"),u=n("deleteRole"),m=n("cancelInvitation"),h=n("update"),t[7]=n,t[8]=u,t[9]=m,t[10]=h,t[11]=f,t[12]=v,t[13]=b,t[14]=S,t[15]=T,t[16]=x):(u=t[8],m=t[9],h=t[10],f=t[11],v=t[12],b=t[13],S=t[14],T=t[15],x=t[16]);let k;t[17]!==i?(k=i("getActiveMember"),t[17]=i,t[18]=k):k=t[18];let C;return t[19]!==u||t[20]!==m||t[21]!==h||t[22]!==k||t[23]!==c||t[24]!==d||t[25]!==f||t[26]!==v||t[27]!==b||t[28]!==S||t[29]!==T||t[30]!==x?(C={organization:{listMembers:c,listRoles:d,inviteMember:f,removeMember:v,updateMemberRole:b,addMember:S,createRole:T,updateRole:x,deleteRole:u,cancelInvitation:m,update:h,getActiveMember:k,acceptInvitation:ga.organization.acceptInvitation,rejectInvitation:ga.organization.rejectInvitation,getInvitation:ga.organization.getInvitation,list:ga.organization.list,create:ga.organization.create,getFullOrganization:ga.organization.getFullOrganization}},t[19]=u,t[20]=m,t[21]=h,t[22]=k,t[23]=c,t[24]=d,t[25]=f,t[26]=v,t[27]=b,t[28]=S,t[29]=T,t[30]=x,t[31]=C):C=t[31],C}const Xye=300*1e3;function U0e(){const t=ye.c(7),{locator:e}=Yi(),o=vz();let a;t[0]!==e?(a=ca.members(e),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=()=>o.organization.listMembers(),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],Wi(r)}function bz(t){const e=ye.c(10);let o;e[0]!==t?(o=t===void 0?{}:t,e[0]=t,e[1]=o):o=e[1];const{enabled:a}=o,n=a===void 0?!0:a,{locator:r}=Yi(),i=vz();let c;e[2]!==r?(c=ca.members(r),e[2]=r,e[3]=c):c=e[3];let d;e[4]!==i?(d=()=>i.organization.listMembers(),e[4]=i,e[5]=d):d=e[5];let u;return e[6]!==n||e[7]!==c||e[8]!==d?(u={queryKey:c,queryFn:d,staleTime:Xye,enabled:n},e[6]=n,e[7]=c,e[8]=d,e[9]=u):u=e[9],Gi(u)}function kC(t){let e=2166136261,o=0;for(let a=0;a<t.length;a++){const n=t.charCodeAt(a);e=Math.imul(e^n,16777619),o=Math.imul(o,31)+n|0}return`${(e>>>0).toString(36)}${(o>>>0).toString(36)}:${t.length}`}function $0e(t,e,o){const a=o.editor,n=a&&typeof a.userId=="string"&&typeof a.at=="number"&&Number.isFinite(a.at)?{userId:a.userId,at:new Date(a.at*1e3).toISOString()}:null;t.setQueryData(ca.conflictEditor(e,kC(la(o.block??null))),n)}function eSe(t,e){return!e||!t||!Object.hasOwn(t,e)?null:kC(la(t[e]??null))}function V0e(t,e){return t.kind==="protocol"&&t.source==="github"?e:null}const lM=t=>t.split(/\s+/)[0]??t;function yz(t,e,o){const a=e.find(d=>d.userId===t.userId),n=a?.user?.name?.trim(),r=a?.user?.image??void 0,i=n?lM(n):void 0,c=!!i&&e.some(d=>d.userId!==t.userId&&lM(d.user?.name?.trim()??"").toLocaleLowerCase()===i.toLocaleLowerCase());return{...n?{name:n,shortName:c?n:i}:{},...r?{avatarUrl:r}:{},at:t.at,you:!!o&&t.userId===o}}function H0e(t,e,o){const a=ye.c(8),{change:n,pending:r}=Sz(t,e,o),i=!!n;let c;a[0]!==i?(c={enabled:i},a[0]=i,a[1]=c):c=a[1];const d=bz(c);let u;a[2]!==d.data?(u=d.data?.data?.members??[],a[2]=d.data,a[3]=u):u=a[3];const m=u,{data:h}=ga.useSession();if(r)return;if(!n)return null;if(d.isLoading&&d.failureCount===0)return;const f=h?.user?.id??null;let v;return a[4]!==n||a[5]!==m||a[6]!==f?(v=yz(n,m,f),a[4]=n,a[5]=m,a[6]=f,a[7]=v):v=a[7],v}function tSe(t,e,o){const a=ye.c(7),{change:n}=Sz(t,e,o),r=Wd(),{data:i}=ga.useSession();let c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c={predicate:cM},a[0]=c):c=a[0];const d=t7(c)>0;if(!n)return null;let u,m;if(a[1]!==n||a[2]!==d||a[3]!==r||a[4]!==i?.user?.id){m=Symbol.for("react.early_return_sentinel");e:{const h=r.getQueriesData({predicate:cM}).flatMap(oSe);if(h.length===0&&d){m=void 0;break e}u=yz(n,h,i?.user?.id??null)}a[1]=n,a[2]=d,a[3]=r,a[4]=i?.user?.id,a[5]=u,a[6]=m}else u=a[5],m=a[6];return m!==Symbol.for("react.early_return_sentinel")?m:u}function oSe(t){const[,e]=t;return e?.data?.members??[]}const cM=t=>t.queryKey[1]==="members";function Sz(t,e,o){const a=!!t&&!!e&&o!==null,{data:n}=Gi({queryKey:ca.conflictEditor(e??"",o??""),queryFn:()=>null,enabled:!1,placeholderData:(r,i)=>i?.queryKey[1]===(e??"")?r:void 0,staleTime:Number.POSITIVE_INFINITY,gcTime:10*6e4});return a?{change:n??null,pending:!1}:{change:null,pending:!1}}function G0e(t){const e=ye.c(2);let o;e[0]!==t?(o={enabled:t},e[0]=t,e[1]=o):o=e[1],bz(o)}function aSe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("relative flex size-8 shrink-0 overflow-hidden rounded-full",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(H5,{"data-slot":"avatar",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function nSe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("aspect-square size-full",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(G5,{"data-slot":"avatar-image",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function rSe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Je("bg-muted flex size-full items-center justify-center rounded-full",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=y.jsx(W5,{"data-slot":"avatar-fallback",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const sSe={tint:["bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand","bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple","bg-brand-yellow-tint text-brand-yellow-dark dark:bg-brand-yellow/20 dark:text-brand-yellow","bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue"],solid:["bg-brand text-brand-green-dark","bg-brand-purple text-brand-purple-dark","bg-brand-yellow text-brand-yellow-dark","bg-brand-blue text-brand-blue-dark"]},iSe="bg-muted text-muted-foreground";function lSe(t,e){let o=0;for(let n=0;n<t.length;n++)o=t.charCodeAt(n)+((o<<5)-o);const a=sSe[e];return a[Math.abs(o)%a.length]}function cSe(t){const e=t.trim().split(/\s+/).filter(Boolean),o=e[0]?.charAt(0)??"",a=e.length>1?e.at(-1)?.charAt(0)??"":"";return(o+a).toUpperCase()||"?"}const wz=Zl("font-medium",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"size-3 text-[0.4375rem]","2xs":"size-4 text-[0.5625rem]",xs:"size-6 text-[0.625rem]",sm:"size-8 text-xs",md:"size-9 text-sm",base:"size-10 text-sm",lg:"size-12 text-lg",xl:"size-16 text-2xl","2xl":"size-20 text-3xl","3xl":"size-32 text-5xl"}},compoundVariants:[{shape:"square",size:"3xs",class:"rounded-[0.1875rem]"},{shape:"square",size:"2xs",class:"rounded-sm"},{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-[0.625rem]"},{shape:"square",size:"md",class:"rounded-[0.6875rem]"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-[0.875rem]"},{shape:"square",size:"xl",class:"rounded-[1.125rem]"},{shape:"square",size:"2xl",class:"rounded-[1.375rem]"},{shape:"square",size:"3xl",class:"rounded-[2.25rem]"}],defaultVariants:{shape:"square",size:"base"}}),dSe=Zl("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),uSe={"3xs":8,"2xs":8,xs:12,sm:16,md:18,base:20,lg:24,xl:32,"2xl":40,"3xl":64};function Of({shape:t="square",size:e="base",url:o,fallback:a,objectFit:n="cover",className:r,muted:i=!1,tone:c=t==="circle"?"solid":"tint",selected:d=!1,...u}){const m=i?iSe:lSe(typeof a=="string"?a:"",c),h=Je("flex size-full items-center justify-center",m);return y.jsx(aSe,{className:Je(wz({shape:t,size:e}),o&&"outline-1 -outline-offset-1 outline-hairline",d&&"outline-2 outline-offset-0 outline-foreground",r),...u,children:o?.startsWith("icon://")?y.jsx("div",{className:h,children:y.jsx(n3,{size:uSe[e??"base"]})}):y.jsxs(y.Fragment,{children:[o&&y.jsx(nSe,{src:o,loading:"lazy",alt:"Avatar",className:dSe({objectFit:n})}),y.jsx(rSe,{className:Je(h,"rounded-none"),delayMs:o?600:0,children:typeof a=="string"?cSe(a):a})]})})}Of.Skeleton=function({shape:e="square",size:o="base",className:a}){return y.jsx("div",{className:Je(wz({shape:e,size:o}),"bg-muted animate-pulse",a)})};const W0e=6048e5,K0e=864e5,Y0e=43200,Z0e=1440,dM=Symbol.for("constructDateFrom");function pSe(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&dM in t?t[dM](e):t instanceof Date?new t.constructor(e):new Date(e)}function uM(t,e){return pSe(e||t,t)}function mSe(t){return e=>{const a=(t?Math[t]:Math.trunc)(e);return a===0?0:a}}function hSe(t,e){return+uM(t)-+uM(e)}function gSe(t,e,o){const a=hSe(t,e)/1e3;return mSe(o?.roundingMethod)(a)}function Q0e(t){return new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function J0e(t){const e=new Date(t);if(Number.isNaN(e.getTime()))return"";const o=Date.now()-e.getTime(),a=Math.floor(o/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;const n=Math.floor(a/60);if(n<24)return`${n}h ago`;const r=Math.floor(n/24);return r<30?`${r}d ago`:e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function X0e(t){const e=gSe(new Date,t);return e<60?"<1m":e<3600?`${Math.floor(e/60)}m ago`:e<86400?`${Math.floor(e/3600)}h ago`:e<604800?`${Math.floor(e/86400)}d ago`:e<2592e3?`${Math.floor(e/604800)}w ago`:e<31536e3?`${Math.floor(e/2592e3)}mo ago`:`${Math.floor(e/31536e3)}y ago`}function fSe(t,e,o=Date.now()){const a=Math.round((o-t.getTime())/1e3),n=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),r=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]];for(const[i,c]of r)if(Math.abs(a)>=c)return n.format(-Math.floor(a/c),i);return n.format(0,"second")}function eke(t){if(t==null||t==="")return null;const e=t instanceof Date?t.getTime():Date.parse(t);return Number.isFinite(e)?e:null}function tke(t,e){const o=e-t;return o>0?o:0}function oke(t){if(t<60)return`${t.toFixed(1)}s`;const e=Math.round(t%60*10)/10,o=e>=60?1:0;return`${Math.floor(t/60)+o}m ${(o?0:e).toFixed(1)}s`}const xz=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ki=xz?"⌘":"Ctrl",Jn={commandPalette:{keys:[ki,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ki,"["],description:"Back to previous"},focusChatInput:{keys:[ki,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ki,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ki,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ki,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ki,"S"],description:"New task"},toggleDaemon:{keys:[ki,"D"],description:"Toggle daemon logs"}},ake=[{label:"General",shortcuts:[Jn.commandPalette,Jn.keyboardShortcuts,Jn.back,Jn.newTask,Jn.toggleDaemon]},{label:"Editor",shortcuts:[Jn.saveAndFormat]},{label:"Chat",shortcuts:[Jn.focusChatInput,Jn.togglePlanMode,Jn.sendMessage,Jn.newLine]},{label:"Questions",shortcuts:[Jn.selectOption]},{label:"Monitoring",shortcuts:[Jn.applyFilter]}];function nke(t){return xz?t.metaKey:t.ctrlKey}function vSe(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}const pM=3;function bSe(t,e,o=!1){let a=e;return t.split("/").slice(1).map(n=>n.replaceAll("~1","/").replaceAll("~0","~")).map(n=>{if(/^\d+$/.test(n)&&(!a||!a.properties?.[n]))return a=a?.items,String(Number(n)+1);const r=a?.properties?.[n];a=r;const i=r?.title?.trim();return i||(o?ySe(n):n)})}function ySe(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(new RegExp("^\\p{Ll}","u"),e=>e.toUpperCase())}function Tz(t,e,o=!1){const a=bSe(t,e,o);return a.length>0?a.join(" › "):"*"}function rke(t,e){const o=[...new Set(t.map(r=>Tz(r,e)))],a=o.slice(0,pM).join(", "),n=o.length-pM;return n>0?`${a} (+${n})`:a}const ske="oklch(0.7278 0.151 289)",kz="website/matchers/always.ts",Ez="website/matchers/never.ts",Cz="website/flags/multivariate.ts",EC="website/flags/multivariate/section.ts",SSe=new Set([kz,"$live/matchers/MatchAlways.ts"]);function wSe(t,e=!1){return typeof t=="string"&&(SSe.has(t)||e&&t==="always")}function xSe(t,e=!1){return typeof t=="string"&&(t===Ez||e&&t==="never")}function Pz(t,e){return KL(t)?Object.hasOwn(t?.manifest?.blocks?.matchers??{},e):!1}function TSe(t){return Pz(t,"always")?"always":kz}function kSe(t){return Pz(t,"never")?"never":Ez}function ESe(t){return{__resolveType:TSe(t)}}function Ei(t){const e=t.split("/");return(e[e.length-1]??t).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,a=>a.toUpperCase())||t}const CSe=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),PSe=5,_Se=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]);function ASe(t,e){if(!t||typeof t!="object"||Array.isArray(t))return!1;const o=t,a=typeof o.__resolveType=="string"?o.__resolveType:"";return!_Se.has(a)||!Array.isArray(o.matchers)||o.matchers.length<2?!1:(o.op==="OR"?"OR":"AND")!==e}const mM=new Map;function CC(t){const e=mM.get(t);if(e)return e;const o={dateTime:new Intl.DateTimeFormat(t,{dateStyle:"medium",timeStyle:"short"}),date:new Intl.DateTimeFormat(t,{dateStyle:"medium"}),day:new Intl.DateTimeFormat(t,{month:"short",day:"numeric"})};return mM.set(t,o),o}function _z(t){const e=t.getHours(),o=t.getMinutes();return e===0&&o===0||e===23&&o===59}const am=t=>{if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e};function Wx(t){const{start:e,end:o}=t,a=am(typeof e=="string"?e:""),n=am(typeof o=="string"?o:"");if(!a&&!n)return null;const i=[a,n].filter(m=>m!==null).every(_z),c=a!==null&&n!==null&&a.getFullYear()===n.getFullYear(),d=CC(sb()),u=(m,h)=>i?(h?d.day:d.date).format(m):d.dateTime.format(m);return a&&n?ar("sectionsEditor.formatMatcher.dateRange",{start:u(a,i&&c),end:u(n,!1)}):a?ar("sectionsEditor.formatMatcher.fromDate",{date:u(a,!1)}):ar("sectionsEditor.formatMatcher.untilDate",{date:u(n,!1)})}function RSe(t){const e=am(t.start??""),o=am(t.end??"");if(!e&&!o)return null;const a=[e,o].filter(m=>m!==null),n=a.every(_z),r=o&&n&&o.getHours()===0&&o.getMinutes()===0?new Date(o.getTime()-1):o,i=new Date().getFullYear(),c=a.every(m=>m.getFullYear()===i),d=CC(sb()),u=m=>n?(c?d.day:d.date).format(m):d.dateTime.format(m);return e&&r?ar("sectionsEditor.formatMatcher.windowRange",{start:u(e),end:u(r)}):e?ar("sectionsEditor.formatMatcher.windowFrom",{date:u(e)}):ar("sectionsEditor.formatMatcher.windowUntil",{date:u(r)})}function ike(t){if(typeof t!="string")return null;const e=am(t);return e?CC(sb()).dateTime.format(e):null}function DSe(t,e){const o=typeof t.name=="string"?t.name.trim():"";if(!o)return ar("sectionsEditor.formatMatcher.experiment");const a=e&&Object.hasOwn(e.experiments,o)?e.experiments[o]:void 0;return a===void 0?ar("sectionsEditor.formatMatcher.experimentNamed",{name:o}):ar("sectionsEditor.formatMatcher.experimentShare",{name:o,share:String(a)})}function OSe(t,e){const o=typeof t.name=="string"?t.name.trim():"";if(!o)return ar("sectionsEditor.formatMatcher.campaign");const a=e&&Object.hasOwn(e.campaigns,o)?RSe(e.campaigns[o]):null;return a===null?ar("sectionsEditor.formatMatcher.campaignNamed",{name:o}):ar("sectionsEditor.formatMatcher.campaignWindow",{name:o,window:a})}const NSe=new Set(["always","never","device","date","campaign","experiment"]),MSe="\0";function Az(t,e,o=!1){return Rz(t,0,e,o)}function lke(t){return(e,o)=>Az(e,o,t)}function Rz(t,e,o,a){if(!t)return"Default";if(e>PSe)return"...";const n=t.__resolveType??"";if(["website/matchers/always.ts","$live/matchers/MatchAlways.ts",...a?["always"]:[]].includes(n)||n==="")return"Default";switch(!a&&NSe.has(n)?MSe:n){case"website/matchers/never.ts":case"never":return"Hidden";case"website/matchers/device.ts":case"$live/matchers/MatchDevice.ts":case"device":{const{mobile:i,tablet:c,desktop:d,devices:u=[]}=t,m=[...u];return i&&m.push("Mobile"),c&&m.push("Tablet"),d&&m.push("Desktop"),m.length>0?m.map(CSe).join(" & "):Ei(n)}case"website/matchers/date.ts":case"$live/matchers/MatchDate.ts":return Wx(t)??Ei(n);case"campaign":return OSe(t,o);case"date":return Wx(t)??Ei(n);case"experiment":return DSe(t,o);case"website/matchers/random.ts":case"$live/matchers/MatchRandom.ts":{const{traffic:i}=t;return typeof i=="number"?`${Math.ceil(i*100)}% of sessions`:Ei(n)}case"website/matchers/host.ts":case"$live/matchers/MatchHost.ts":{const{includes:i,match:c}=t,d=[];return i&&d.push(i),c&&d.push(c),d.length>0?d.join(" - "):Ei(n)}case"website/matchers/pathname.ts":{const i=t.case,{type:c,pathname:d}=i??{};return c&&d?`Pathname ${c} ${d}`:Ei(n)}case"website/matchers/location.ts":case"$live/matchers/MatchLocation.ts":{const{includeLocations:i,excludeLocations:c}=t,d=h=>[h.city,h.regionCode,h.country].filter(Boolean).join(" - "),u=i?.[0];if(u){const h=(i?.length??0)-1;return`${d(u)}${h>0?` +${h}`:""}`}const m=c?.[0];if(m){const h=(c?.length??0)-1;return`Except ${d(m)}${h>0?` +${h}`:""}`}return"Any location"}case"website/matchers/multi.ts":case"$live/matchers/MatchMulti.ts":{const{matchers:i,op:c="AND"}=t;if(i&&i.length>0){const d=c==="OR"?"OR":"AND";return i.map(u=>{const m=Rz(u,e+1,o,a);return ASe(u,d)?`(${m})`:m}).join(` ${d} `)}return Ei(n)}default:{const i=Wx(t);return i||Ei(n)||"Default"}}}const ISe=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],hM="website/sections/Rendering/Lazy.tsx";function yn(t){return ISe.some(e=>t.endsWith(e))}const Dz="lazy";function PC(t){return!!t&&typeof t=="object"&&!Array.isArray(t)&&t.__resolveType===Dz&&"value"in t}function LSe(t){return PC(t)?t.value:t}function BSe(t){if(t!==void 0)return PC(t)?t:{__resolveType:Dz,value:t}}function cke(t){return t.lazy===!0&&!!t.properties?.value}const Vl="multivariate",Oz=new Set([Cz,EC]);function Nz(t){if(!KL(t))return!1;const e=t?.manifest?.blocks??{};return Object.values(e).some(o=>Object.hasOwn(o??{},Vl))}function Mz(t){return Nz(t)?Vl:EC}function dke(t){return Nz(t)?Vl:Cz}function FSe(t){return typeof t=="string"&&(t===Vl||Oz.has(t))}function jSe(t){return t===Vl}function ec(t){if(!(!t||typeof t!="object"))return LSe(t.value)}function Ib(t,e,o){return jSe(t)||PC(o)?BSe(e):e}function uke(t,e,o){return{...e,value:Ib(t,o,e.value)}}function Iz(t,e){return e?FSe(t):typeof t=="string"&&Oz.has(t)}function _C(t,e){if(e)return ec(t);if(!(!t||typeof t!="object"))return t.value}function Lz(t){const e=t.__resolveType??"";return yn(e)?t.section??t:t}function Lv(t,e){const r=(yn(t.__resolveType??"")?t.section:t)?.variants?.[0],i=r?.rule;return xSe(i?.__resolveType,e)?_C(r,e)??null:null}function pke(t,e){const o=Lz(t),a=Mz(e);return{__resolveType:a,variants:[{value:Ib(a,o),rule:{__resolveType:kSe(e)}}]}}function mke(t){const e=t.__resolveType??"";if(!e)return null;if(yn(e))return t.section??null;const o=Lv(t,!1);return o?yn(o.__resolveType??"")?o:{__resolveType:hM,section:Lz(o)}:{__resolveType:hM,section:t}}function pf(t){const e=t.__resolveType??"";if(!e)return null;if(yn(e)){const o=t.section,a=o?.__resolveType??"";return!a||!o?null:{resolveType:a,data:o}}return{resolveType:e,data:t}}function hke(t,e=!1){const o=Lv(t,e);if(o)return pf(o);if(yn(t.__resolveType??"")){const n=t.section;if(!n)return null;const r=Lv(n,e);return pf(r||n)}return pf(t)}function gke(t,e=!1){return Lv(t,e)}function Bz(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:wSe(e)||e.includes("always")}function Fz(t,e){if(!e)return t.length;const o=t[t.length-1];return o&&Bz(o.rule)?t.length-1:t.length}function zSe(t,e,o){return Math.min(e+1,Fz(t,o))}function qSe(t){const e=t.variants??[];if(e.length===0)return-1;const o=e.findIndex(a=>Bz(a.rule));return o!==-1?o:e.length-1}function fke(t,e,o){const a=o.variants??[];if(a.length===0)return null;const n=qSe(o),r=ec(a[n]);if(!r)return null;const i=structuredClone(r);return e.isLazy?{...t,section:i}:i}function AC(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function USe(t){const e=new Map;for(const a of t)e.set(a,(e.get(a)??0)+1);const o=new Map;return t.map(a=>{if((e.get(a)??0)<2)return a;const n=(o.get(a)??0)+1;return o.set(a,n),`${a} ${n}`})}function $Se(t,e,o=!1){if(!Array.isArray(t.variants))return[];const a=t.variants.map((r,i)=>({label:e(r.rule)||`Variant ${i+1}`,value:ec(r)??{},rule:r.rule}));if(!o)return a;const n=USe(a.map(r=>r.label));return a.map((r,i)=>({...r,label:n[i]}))}function VSe(t,e){const o=t.__resolveType??"";if(!o)return null;if(yn(o)){const a=t.section??t,n=a.__resolveType??o;if(!n.includes("/")&&n in e){const r=e[n]??{};return{data:{...r},resolveType:r.__resolveType??n}}return{data:{...a},resolveType:n}}if(!o.includes("/")&&o in e){const a=e[o]??{};return{data:{...a},resolveType:a.__resolveType??o}}return{data:{...t},resolveType:o}}function HSe(t,e){const o=t.__resolveType??"";return yn(o)?{...t,section:e}:e}function GSe(t,e,o){return e.isLazy?{...t,section:o}:o}function vke(t,e,o){const a=[...t.variants??[]],n=a[e];if(!n)return t;const r=ec(n)??{};return a[e]={...n,value:Ib(t.__resolveType,HSe(r,o),n.value)},{...t,variants:a}}function bke(t,e,o){const a=[...t.variants??[]];return a[e]?(a[e]={...a[e],rule:o},{...t,variants:a}):t}function yke(t,e,o=!1){const a=[...t.variants??[]],n=a[e];return n?(a.splice(zSe(a,e,o),0,structuredClone(n)),{...t,variants:a}):t}function Ske(t,e,o){const a=[...t.variants??[]];if(e===o||e<0||o<0||e>=a.length||o>=a.length)return t;const[n]=a.splice(e,1);return n?(a.splice(o,0,n),{...t,variants:a}):t}function wke(t,e){const o=[...t.variants??[]];return o.length<=1?null:(o.splice(e,1),{...t,variants:o})}function ek(t,e,o){return{rule:ESe(e),value:Ib(o,structuredClone(t))}}function jz(t,e){return t?t.__resolveType===Vl?Vl:EC:Mz(e)}function zz(t,e,o){return{...o,__resolveType:e,variants:t}}function xke(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function WSe(t,e){if(e.isHidden)return null;if(e.isMultivariate){const a=AC(t,e)?.variants??[],n=ec(a[a.length-1]);return n?structuredClone(n):null}if(e.isLazy){const o=t.section;return o?structuredClone(o):null}return structuredClone(t)}function KSe(t,e,o,a){if(e.isMultivariate||e.isHidden)return null;const n=WSe(t,e);if(!n)return null;const r=jz(void 0,a),i=zz([ek(n,a,r),ek(n,a,r)],r);return e.isLazy?{...t,section:i}:i}function Tke(t,e,o,a,n=!1){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=AC(t,e);if(!i)return null;const c=i.variants??[],d=ec(c[c.length-1]);if(!d)return null;const u=jz(i,a),m=Fz(c,n),h=[...c];h.splice(m,0,ek(d,a,u));const f=zz(h,u,i);return{section:GSe(t,e,f),newVariantIndex:m}}const r=KSe(t,e,o,a);return r?{section:r,newVariantIndex:n?0:1}:null}function kke(t){if(!t.startsWith("#")||!t.includes("@"))return null;const e=t.indexOf("@");return{moduleResolveType:t.slice(1,e),blockId:t.slice(e+1)}}function Eke(t){return t.includes("@")}function gM(t){const e=t.lastIndexOf("@");return e<0||e===t.length-1?null:t.slice(e+1)}function Cke(t,e){if(t===e)return!0;const o=gM(t);return o?e===o||gM(e)===o:!1}function Am(t,e){const o=t.manifest?.blocks??{};for(const[a,n]of Object.entries(o))if(e in n)return a;return null}function Pke(t,e){return Am(t,e)!==null}function _ke(t,e){const o=Am(t,e);return o!==null&&o.includes("sections")}function Ake(t,e){const o=Am(t,e);return o!==null&&o.includes("apps")}function Rke(t,e){const o=Am(t,e);return o!==null&&o.includes("matchers")}function qz(t,e){return!(!t||e&&Am(e,t)!==null||/\.\w+$/.test(t)||t==="__proto__"||t==="constructor")}function Dke(t){try{return decodeURIComponent(t).startsWith("Preview ")}catch{return t.startsWith("Preview ")}}function RC(t,e){if(!Object.hasOwn(e,t))return null;const o=e[t]??{},a=o.__resolveType??t;return{data:{...o},resolveType:a}}function Uz(t,e,o,a){if(!t)return null;if(Iz(t,a)){const n=_C(e.variants?.[0],a);return n?tk(n,o,a):null}return!qz(t)||!Object.hasOwn(o,t)?{data:{...e},resolveType:t}:RC(t,o)}function tk(t,e,o){const a=t.__resolveType??"";if(!a)return null;if(yn(a)){const n=t.section??{};return $z(n,e,o)}return Uz(a,t,e,o)}function $z(t,e,o){const a=t.__resolveType??"";return Uz(a,t,e,o)}function Oke(t,e){if(!t||typeof t!="object"||Array.isArray(t))return null;const a=t.__resolveType;if(typeof a!="string"||!qz(a)||!Object.hasOwn(e,a))return null;const n=RC(a,e);return n?{blockKey:a,...n}:null}function Nke(t,e){if(!e.isSavedBlock)return null;if(e.isHidden){const n=yn(t.__resolveType)?t.section:t,r=ec(n?.variants?.[0]);if(!r)return null;const i=r.__resolveType??"";return yn(i)?r.section?.__resolveType??i??null:i||null}return(e.isLazy?t.section?.__resolveType??t.__resolveType:t.__resolveType)||null}function YSe(t,e,o,a){if(e.isMultivariate)return null;if(e.isSavedBlock&&!e.isHidden){const n=e.isLazy?t.section?.__resolveType??t.__resolveType:t.__resolveType;return RC(n,o)}if(e.isHidden){const r=yn(t.__resolveType)?t.section:t,i=_C(r?.variants?.[0],a)??t,c=i.__resolveType??"",d=yn(c)?i.section?.__resolveType??c:c;return Iz(d,a)?null:tk(i,o,a)}if(e.isLazy||yn(t.__resolveType)){const n=t.section??{};return $z(n,o,a)}return tk(t,o,a)}const ZSe=6e4;function QSe(t,e=ZSe){const o=AbortSignal.timeout(e);return t?AbortSignal.any([t,o]):o}const JSe=/^[a-z0-9][a-z0-9-]{0,59}$/;function Vz(t){return JSe.test(t)}function XSe(t){const e=o=>typeof o=="string"?o.trim().toLowerCase():"";return e(t?.metadata?.siteSlug)||e(t?.title)||null}function Mke(t){const e=typeof t?.metadata?.analyticsSiteSlug=="string"?t.metadata.analyticsSiteSlug.trim().toLowerCase():"";return e&&Vz(e)?e:XSe(t)}function Ike(t){const e=t?.siteSlug;return typeof e=="string"&&Vz(e)?e:null}function Hz(t,e){return`/api/cms/${encodeURIComponent(t)}/${e}`}function Lke(t,e){return new URL(Hz(t,`drafts/${encodeURIComponent(e)}/rpc`),window.location.origin).href}class ok extends Error{constructor(e,o,a){super(e),this.status=o,this.code=a,this.name="CmsRequestError"}status;code}async function ewe(t){let e;try{e=await t.json()}catch{if(t.ok)throw new ok("The CMS returned invalid JSON",t.status,"invalid_response")}if(!t.ok){const o=e!==null&&typeof e=="object"?e:{},a="code"in o&&typeof o.code=="string"?o.code:null,n="error"in o&&typeof o.error=="string"?o.error:`HTTP ${t.status}`;throw new ok(n,t.status,a)}return e}async function twe(t,e,o){return ewe(await fetch(Hz(t,e),{cache:"no-store",credentials:"same-origin",...o,signal:QSe(o?.signal)}))}const owe=Ak("result",[we({result:Qe("published"),revision:$().min(1),previous:$().min(1).nullable()}),we({result:Qe("up-to-date"),revision:$().min(1).nullable()})]);function Bke(t){const e=owe.safeParse(t);if(!e.success)throw new ok("The CMS returned an invalid publication response",200,"invalid_response");return e.data}async function Fke(t,e){return twe(t,"drafts",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e})})}async function awe(t){const e=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(Zye(t))),o=new Uint8Array(e).subarray(0,16);let a="";for(const n of o)a+=String.fromCharCode(n);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const nwe="__indexStub",rwe="__indexRefs";function Gz(t){return!!t&&typeof t=="object"&&!Array.isArray(t)&&Object.hasOwn(t,nwe)}function jke(t){if(!Gz(t))return[];const e=t[rwe];return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}function zke(t){return Object.entries(t??{}).filter(([,e])=>Bv(e)).map(([e])=>e)}function Bv(t){return Gz(t)?!0:Array.isArray(t)?t.some(Bv):!!t&&typeof t=="object"&&Object.values(t).some(Bv)}function swe(t){return!!t&&typeof t=="object"&&!Array.isArray(t)&&!Bv(t)}function iwe(t){return awe(t)}async function fM(t,e,o){if(t===void 0||!swe(e))return t;if(t===null&&o===void 0)return null;const a=await iwe(e);return t===null&&a===o?null:a}function qke(t,e,o){const a=t.getQueryData(ca.contentIndex(e));if(!(!a||Object.hasOwn(a.draft,o)))return a.entries[o]?.version??null}function Uke(t,e,o,a,n){if(!t||!e)return null;if(!e.isMultivariate)return YSe(t,e,a,n)?.data??null;const r=AC(t,e),i=r?$Se(r,Az)[o]:void 0;return i?VSe(i.value,a)?.data??null:null}const lwe=50;function $ke(t,e){t.own.push(la(e)),t.own.length>lwe&&t.own.shift()}function Vke(t,e){return t.own.includes(la(e))}function Hke(t,e){const{sectionIndex:o,variantIndex:a,shown:n,next:r,sectionCount:i}=e;return t&&t.sectionIndex===o&&t.variantIndex===a&&t.emitted===n?(t.emitted=r,t):n?{sectionIndex:o,variantIndex:a,base:n,emitted:r,sectionCount:i,own:[la(n)]}:null}function Wz(t,e){return e!==null&&la(t)!==la(e)}function cwe(t,e){return t.__resolveType!==e.__resolveType}function Gke(t,e,o,a){if(e.length===a)return"here";const n=la(t),r=e.flatMap((i,c)=>c!==o&&i!==null&&la(i)===n?[c]:[]);return r.length===1?r[0]:"unknown"}function Wke({startedFrom:t,stored:e,rebased:o,refused:a}){return e&&(o||a&&Wz(t,e))?e:t}function Kke({formBase:t,rebased:e,versionOf:o,productionVersionOf:a,copy:n}){let r=null;const i=c=>c===void 0||r===null?void 0:{[r]:c};return n?{ifMatch:async c=>{if(r=c,t&&t.version!==void 0&&!e)return i(t.version===null?await fM(null,n.value,a?.(c)):t.version);const d=await fM(o(c),n.value,a?.(c));return t&&(t.version=d),i(d)},onApplied:c=>{t&&r!==null&&Object.hasOwn(c,r)&&(t.version=c[r])},reloadOnConflict:!0}:{ifMatch:c=>{r=c,t&&(t.version===void 0||e)&&(t.version=o(c));const d=t?t.version:o(c);return d===void 0?void 0:{[c]:d}},onApplied:c=>{t&&r!==null&&Object.hasOwn(c,r)&&(t.version=c[r])},reloadOnConflict:!0}}function Yke({merged:t,tracked:e,current:o,saved:a}){return!!t&&!!e&&o===e&&e.emitted===a}function Zke(t,e){return!!t&&!!e&&t.contains(e)}const dwe=1e3;function Qke(t,e){return e?{delay:0,immediate:!0}:{delay:dwe*2**t,immediate:!1}}function uwe(t,e,o,a){return e&&t.some(r=>r.formBase===e)?e:t.find(r=>r.formBase.sectionIndex===a&&r.target.pageKey===o.pageKey&&r.target.global===o.global&&r.target.pageVariantIndex===o.pageVariantIndex&&r.target.sectionVariantIndex===o.sectionVariantIndex)?.formBase??null}function Jke(t,e,o,a,n){if(!n)return{base:e,runNow:!1};const r=uwe(t,e,o,a);return{base:r,runNow:r!==null}}function pwe(t){const e=[],o=ak("",t.ancestor,t.mine,t.theirs,e);return{...t,merged:o,pointers:e}}function ak(t,e,o,a,n){const r=(i,c)=>la(i)===la(c);if(r(o,a)||r(e,a))return o;if(r(e,o))return a;if(Kx(o)&&Kx(a)){const i=Kx(e)?e:{},c={},d=[...Object.keys(o),...Object.keys(a).filter(u=>!(u in o))];for(const u of d){const m=ak(`${t}/${u.replaceAll("~","~0").replaceAll("/","~1")}`,i[u],o[u],a[u],n);m!==void 0&&(c[u]=m)}return c}return Array.isArray(e)&&Array.isArray(o)&&Array.isArray(a)&&o.length===e.length&&a.length===e.length?e.map((i,c)=>ak(`${t}/${c}`,i,o[c],a[c],n)):(n.push(t),a)}function Kx(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function mwe(t,e){let o=t.merged;for(const a of t.pointers)e[a]==="mine"&&(o=vwe(o,a,Hl(t.mine,a)));return o}function Xke(t,e){return t.pointers.length===0||t.pointers.some(o=>e[o]!=="theirs")?!1:la(mwe(t,e))===la(t.theirs)}function hwe(t,e){return Object.fromEntries(t.pointers.map(o=>[o,e]))}function Kz(t){return hwe(t,"mine")}function gwe(t,e,o){const a=Kz(o);for(const n of o.pointers){const r=e[n];if(!r||!t.pointers.includes(n))continue;["mine","theirs"].every(c=>la(Hl(t[c],n))===la(Hl(o[c],n)))&&(a[n]=r)}return a}function fwe(t,e,o={}){const a=e.pointers.filter(n=>!t.pointers.includes(n)||la(Hl(t.theirs,n))!==la(Hl(e.theirs,n)));return a.length===0?o:{...o,...Object.fromEntries(a.map(n=>[n,(o[n]??0)+1]))}}function eEe(t,e,o){if(!e||cwe(t.plan.ancestor,e)||!Wz(t.plan.theirs,e)||o(e))return null;const a=pwe({...t.plan,theirs:e});return a.pointers.length===0?null:{plan:a,choices:gwe(t.plan,t.choices,a),fresh:fwe(t.plan,a,t.fresh)}}function tEe(t,e,o=!1){return t.pointers.map(a=>({pointer:a,label:Tz(a,e,o),mine:Hl(t.mine,a),theirs:Hl(t.theirs,a),schema:bwe(e??null,a)}))}function DC(t){return t.split("/").slice(1).map(e=>e.replaceAll("~1","/").replaceAll("~0","~"))}function Hl(t,e){let o=t;for(const a of DC(e))if(Array.isArray(o))o=o[Number(a)];else if(o&&typeof o=="object")o=o[a];else return;return o}function vwe(t,e,o){const a=DC(e),n=(r,i)=>{if(i===a.length)return o;const c=a[i];if(Array.isArray(r)){const m=[...r];return m[Number(c)]=n(r[Number(c)],i+1),m}const d=r&&typeof r=="object"?{...r}:{},u=n(d[c],i+1);return u===void 0?delete d[c]:d[c]=u,d};return n(t,0)}function bwe(t,e){let o=t;for(const a of DC(e)){if(!o)return null;o=/^\d+$/.test(a)&&!o.properties?.[a]?o.items:o.properties?.[a]}return o??null}const ywe=/\.(png|jpe?g|gif|webp|avif|svg)(\?.*)?$/i,vM=60,Swe=3;function Yz(t,e){return e?.format==="image-uri"?!0:t.startsWith("data:image/")||/^(https?:)?\/\//.test(t)&&ywe.test(t)}function nk(t,e){if(!(e?.format==="rich-text"||e?.format==="rich-text-inline"||e?.format==="html"||/<\/?[a-z][^>]*>/i.test(t)))return t;const a=t.replace(/<br\s*\/?>/gi,`
|
|
250
250
|
`).replace(/<\/(p|div|li|h[1-6])>/gi,`
|
|
251
251
|
`);return xwe(a).replace(/\u00a0/g," ").replace(/\n{2,}/g,`
|
|
252
|
-
`).trim()}const wwe={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'"};function xwe(t){if(typeof DOMParser<"u")return new DOMParser().parseFromString(t,"text/html").body.textContent??"";let e=t;for(let o="";o!==e;)o=e,e=e.replace(/<[^<>]*>/g,"");return e.replace(/<|>/g,"").replace(/&(nbsp|amp|lt|gt|quot|#39);/g,o=>wwe[o]??o)}function Nf(t){const e=t.replace(/\s+/g," ").trim();return e.length>vM?`${e.slice(0,vM-1)}…`:e}function Twe(t){if(t.startsWith("data:"))return"image";const e=t.split(/[?#]/)[0]??t;return decodeURIComponent(e.split("/").pop()||t)}function Fv(t,e){if(t==null||t==="")return{kind:"empty"};if(typeof t=="string")return Yz(t,e)?{kind:"image",src:t}:{kind:"text",text:nk(t,e)};if(typeof t=="number"||typeof t=="bigint")return{kind:"text",text:String(t)};if(typeof t=="boolean")return{kind:"yesNo",value:t};if(Array.isArray(t)){const o=e?.items??null;return{kind:"list",count:t.length,items:t.slice(0,Swe).map(a=>kwe(a,o)??"")}}if(typeof t=="object"){const o=t;if("value"in o&&Object.keys(o).length<=2)return Fv(o.value,e?.properties?.value??e);const a=Object.entries(o).filter(([n,r])=>!n.startsWith("__")&&r!==void 0).flatMap(([n,r])=>{const i=e?.properties?.[n]??null,c=Fv(r,i);if(c.kind==="empty")return[];const d=c.kind==="text"?Nf(c.text):c.kind==="image"?Twe(c.src):c.kind==="yesNo"?c.value?"✓":"✗":c.kind==="list"?`${c.count}`:"…";return[{label:i?.title?.trim()||n,text:d}]}).slice(0,4);return a.length>0?{kind:"fields",entries:a}:{kind:"empty"}}return{kind:"text",text:String(t)}}function kwe(t,e){if(typeof t=="string")return Nf(nk(t,e));if(!t||typeof t!="object"||Array.isArray(t))return null;const o=t,a=e?.titleBy,n=a?o[a]:void 0;if(typeof n=="string"&&n.trim())return Nf(n);for(const[r,i]of Object.entries(o))if(!(r.startsWith("__")||typeof i!="string"||!i.trim())&&!Yz(i,e?.properties?.[r]??null))return Nf(nk(i,null));return null}const bM=1500;function Ewe(t,e){const o=t.split(/(\s+)/).filter(m=>m!==""),a=e.split(/(\s+)/).filter(m=>m!=="");if(o.length>bM||a.length>bM)return{mine:[{text:t,kind:"changed"}],theirs:[{text:e,kind:"changed"}]};const n=Array.from({length:o.length+1},()=>new Array(a.length+1).fill(0));for(let m=o.length-1;m>=0;m--)for(let h=a.length-1;h>=0;h--){const f=n[m];f[h]=o[m]===a[h]?n[m+1][h+1]+1:Math.max(n[m+1][h],f[h+1])}const r=[],i=[],c=(m,h,f)=>{const v=m.at(-1);v&&(v.kind===f||f==="same"&&!h.trim())?v.text+=h:m.push({text:h,kind:f})};let d=0,u=0;for(;d<o.length&&u<a.length;)o[d]===a[u]?(c(r,o[d],"same"),c(i,a[u],"same"),d++,u++):n[d+1][u]>=n[d][u+1]?(c(r,o[d],"changed"),d++):(c(i,a[u],"changed"),u++);for(;d<o.length;d++)c(r,o[d],"changed");for(;u<a.length;u++)c(i,a[u],"changed");return{mine:r,theirs:i}}const Cwe=700,Pwe=new Set(["text","search","url","tel",""]);function _we(t){if(!t)return!1;if(t.tagName==="TEXTAREA")return!t.readOnly;if(t.tagName!=="INPUT")return!1;const e=t;return Pwe.has(e.type.toLowerCase())&&!e.readOnly&&!e.disabled}function Awe(t,e){const o=t.value,a=t.selectionStart??o.length,n=t.selectionEnd??a;let r,i;if(e==="Backspace"){const d=a===n?Math.max(0,a-1):a;r=o.slice(0,d)+o.slice(n),i=d}else r=o.slice(0,a)+e+o.slice(n),i=a+e.length;const c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value")?.set;c?c.call(t,r):t.value=r,t.setSelectionRange?.(i,i),t.dispatchEvent(new Event("input",{bubbles:!0}))}const Rwe={now:()=>globalThis.performance.now(),typedAt:t=>t.timeStamp};function Dwe(t,e){const o=ye.c(12),a=Rwe,n=A.useRef(null),r=A.useRef(null);let i;o[0]!==a?(i=()=>{const h=globalThis.document;if(r.current||!h)return;const f=b=>{const S=n.current;if(!S||b.key==="Shift"||b.key==="CapsLock")return;const T=a.typedAt(b);if(!((b.key.length===1||b.key==="Backspace")&&!b.ctrlKey&&!b.metaKey&&!b.altKey&&!b.isComposing)||T-S.last>Cwe||!S.field.isConnected||b.target===S.field){n.current=null;return}b.preventDefault(),b.stopPropagation(),S.last=Math.max(S.last,T),Awe(S.field,b.key)},v=()=>{n.current=null};h.addEventListener("keydown",f,!0),h.addEventListener("pointerdown",v,!0),r.current=()=>{h.removeEventListener("keydown",f,!0),h.removeEventListener("pointerdown",v,!0),r.current=null,n.current=null}},o[0]=a,o[1]=i):i=o[1];const c=i;let d;o[2]!==c||o[3]!==t?(d=()=>{if(t)return c(),()=>r.current?.()},o[2]=c,o[3]=t,o[4]=d):d=o[4];let u;o[5]!==a||o[6]!==t?(u=[t,a],o[5]=a,o[6]=t,o[7]=u):u=o[7],A.useEffect(d,u);let m;return o[8]!==c||o[9]!==a||o[10]!==t?(m=()=>{const h=globalThis.document?.activeElement??null;if(!t||!_we(h)){n.current=null;return}c(),n.current={field:h,last:a.now()}},o[8]=c,o[9]=a,o[10]=t,o[11]=m):m=o[11],m}function Owe(t){const e=ye.c(20);let o,a,n,r,i;e[0]!==t?({open:o,authorPending:n,waitForAuthor:r,keepTyping:i,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5]);const c=n===void 0?!1:n,d=r===void 0?!1:r,u=i===void 0?!1:i,{data:m}=ga.useSession(),h=d&&c;let f;e[6]!==c||e[7]!==d?(f=()=>c&&!d,e[6]=c,e[7]=d,e[8]=f):f=e[8];const[v]=A.useState(f),b=Dwe(u&&o&&!h),S=o&&!h;let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=Je("max-h-[85vh] grid-rows-[auto_minmax(0,1fr)_auto] sm:max-w-lg"),e[9]=T):T=e[9];const x=a.anonymousTitle??v,k=m?.user??null;let C;e[10]!==a||e[11]!==x||e[12]!==k?(C=y.jsx(jwe,{...a,anonymousTitle:x,viewer:k,heading:Nwe}),e[10]=a,e[11]=x,e[12]=k,e[13]=C):C=e[13];let E;e[14]!==b||e[15]!==C?(E=y.jsx(pz,{className:T,"data-testid":"form-conflict-dialog",onOpenAutoFocus:b,onEscapeKeyDown:Mwe,children:C}),e[14]=b,e[15]=C,e[16]=E):E=e[16];let _;return e[17]!==E||e[18]!==S?(_=y.jsx(uz,{open:S,children:E}),e[17]=E,e[18]=S,e[19]=_):_=e[19],_}function Nwe(t,e){return y.jsxs(mz,{className:"text-left",children:[y.jsx(hz,{children:t}),y.jsx(gz,{children:e})]})}function Mwe(t){return t.preventDefault()}const Iwe={},Lwe=(t,e)=>y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("h2",{className:"text-lg font-semibold",children:t}),y.jsx("p",{className:"text-sm text-muted-foreground",children:e})]});function Bwe(t,e,o=0,a={},n=null,r,{anonymous:i=!1,asLabeled:c=!1}={}){const d=e[Math.min(o,e.length-1)],u=n?.you?void 0:n?.shortName??n?.name?.split(/\s+/)[0],m={field:d?r||c?d.label:Fwe(d.label):"",label:d?.label??"",name:u??"",block:r??""},h=i&&!n?.you&&!u,f=(S,T,x,k)=>t(h?k:n?.you?x:u?T:S,m),v=d?.phrase,b=(S,T,x,k)=>t(h?k:n?.you?x:u?T:S,{thing:v??"",Thing:v?v.charAt(0).toLocaleUpperCase()+v.slice(1):"",label:d?.label??"",name:u??""});return v?e.length<=1?{title:b("sectionsEditor.formConflict.titlePhraseOne","sectionsEditor.formConflict.titlePhraseOneNamed","sectionsEditor.formConflict.titlePhraseOneYou","sectionsEditor.formConflict.titlePhraseOneAnonymous"),description:t("sectionsEditor.formConflict.descriptionOne")}:{title:b("sectionsEditor.formConflict.titlePhraseStep","sectionsEditor.formConflict.titlePhraseStepNamed","sectionsEditor.formConflict.titlePhraseStepYou","sectionsEditor.formConflict.titlePhraseStepAnonymous"),description:o>=e.length-1?y.jsx(yM,{t,fields:e,choices:a,name:u}):t("sectionsEditor.formConflict.descriptionStep")}:e.length<=1?{title:r?f("sectionsEditor.formConflict.titleOneIn","sectionsEditor.formConflict.titleOneInNamed","sectionsEditor.formConflict.titleOneInYou","sectionsEditor.formConflict.titleOneInAnonymous"):f("sectionsEditor.formConflict.titleOne","sectionsEditor.formConflict.titleOneNamed","sectionsEditor.formConflict.titleOneYou","sectionsEditor.formConflict.titleOneAnonymous"),description:t("sectionsEditor.formConflict.descriptionOne")}:{title:r?f("sectionsEditor.formConflict.titleStepIn","sectionsEditor.formConflict.titleStepInNamed","sectionsEditor.formConflict.titleStepInYou","sectionsEditor.formConflict.titleStepInAnonymous"):f("sectionsEditor.formConflict.titleStep","sectionsEditor.formConflict.titleStepNamed","sectionsEditor.formConflict.titleStepYou","sectionsEditor.formConflict.titleStepAnonymous"),description:o>=e.length-1?y.jsx(yM,{t,fields:e,choices:a,name:u}):t("sectionsEditor.formConflict.descriptionStep")}}function yM(t){const e=ye.c(11),{t:o,fields:a,choices:n,name:r}=t;let i;if(e[0]!==n||e[1]!==a||e[2]!==r||e[3]!==o){let d;e[5]!==n||e[6]!==r||e[7]!==o?(d=(u,m)=>y.jsxs(A.Fragment,{children:[m>0&&" · ",`${u.label}: `,y.jsx("span",{className:"font-medium text-foreground",children:o((n[u.pointer]??"mine")==="mine"?"sectionsEditor.formConflict.summaryYours":r?"sectionsEditor.formConflict.summaryTheirsNamed":"sectionsEditor.formConflict.summaryTheirs",{name:r??""})})]},u.pointer),e[5]=n,e[6]=r,e[7]=o,e[8]=d):d=e[8],i=a.map(d),e[0]=n,e[1]=a,e[2]=r,e[3]=o,e[4]=i}else i=e[4];let c;return e[9]!==i?(c=y.jsx("span",{"data-testid":"form-conflict-summary",children:i}),e[9]=i,e[10]=c):c=e[10],c}function Fwe(t){return/^[A-Z][a-z]/.test(t)&&!t.includes("›")?t.charAt(0).toLowerCase()+t.slice(1):t}function jwe(t){const e=ye.c(68),o=Ua(),{fields:a,choices:n,changedAgain:r,fresh:i,heading:c}=t,d=r===void 0?!1:r,u=i===void 0?Iwe:i,m=c===void 0?Lwe:c,h=a.length>1,[f,v]=A.useState(0),[b,S]=A.useState(zwe);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T={},e[0]=T):T=e[0];const[x,k]=A.useState(T),C=Math.max(0,Math.min(f,a.length-1)),E=a[C],_=C===a.length-1;let D;e[1]!==C||e[2]!==a||e[3]!==u?(D=j=>{const X=a[C],de=a[j];!X||!de||j===C||(S(ue=>new Set(ue).add(X.pointer)),k(ue=>({...ue,[X.pointer]:u[X.pointer]??0,[de.pointer]:u[de.pointer]??0})),v(j))},e[1]=C,e[2]=a,e[3]=u,e[4]=D):D=e[4];const R=D;let O;e[5]!==C||e[6]!==R?(O=j=>{if(!j)return;const X=de=>{const ue={ArrowLeft:-1,ArrowRight:1}[de.key];!ue||de.defaultPrevented||de.altKey||de.ctrlKey||de.metaKey||de.shiftKey||vSe(de.target)||(de.preventDefault(),R(C+ue))};return j.ownerDocument.addEventListener("keydown",X),()=>j.ownerDocument.removeEventListener("keydown",X)},e[5]=C,e[6]=R,e[7]=O):O=e[7];const L=O;if(!E)return null;let U,B,z,F,W;if(e[8]!==b||e[9]!==C||e[10]!==n||e[11]!==a||e[12]!==u||e[13]!==R||e[14]!==m||e[15]!==L||e[16]!==h||e[17]!==t||e[18]!==x||e[19]!==o){const{title:j,description:X}=Bwe(o,a,C,n,t.author??null,t.block,{anonymous:t.anonymousTitle,asLabeled:t.fieldsAsLabeled});let de;e[25]!==t?(de=ue=>{ue.detail>1||t.onApply()},e[25]=t,e[26]=de):de=e[26],U=de,B=h?L:void 0,z="flex min-w-0 flex-col gap-3",e[27]!==b||e[28]!==C||e[29]!==a||e[30]!==u||e[31]!==R||e[32]!==h||e[33]!==x||e[34]!==o?(F=h&&y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsx("div",{role:"group","aria-label":o("sectionsEditor.formConflict.steps"),className:"-m-1 flex flex-wrap items-center",children:a.map((ue,Ee)=>{const qe=Ee!==C&&(u[ue.pointer]??0)>(x[ue.pointer]??0);return y.jsx("button",{type:"button","aria-label":qe?o("sectionsEditor.formConflict.stepChangedAgain",{label:ue.label}):ue.label,"aria-current":Ee===C?"step":void 0,"data-answered":Ee!==C&&b.has(ue.pointer)?"":void 0,"data-changed-again":qe?"":void 0,onClick:()=>R(Ee),className:"group cursor-pointer rounded-full p-1 focus-ring",children:y.jsx("span",{className:Je("block h-2 w-2 rounded-full bg-border transition-[width,background-color,box-shadow] motion-reduce:transition-none","group-hover:bg-muted-foreground/60","group-data-[answered]:bg-foreground/45","group-aria-[current=step]:w-5 group-aria-[current=step]:bg-foreground","group-data-[changed-again]:ring-2 group-data-[changed-again]:ring-warning group-data-[changed-again]:ring-offset-1 group-data-[changed-again]:ring-offset-background")})},ue.pointer)})}),y.jsx("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:o("sectionsEditor.formConflict.stepCount",{step:String(C+1),count:String(a.length)})})]}),e[27]=b,e[28]=C,e[29]=a,e[30]=u,e[31]=R,e[32]=h,e[33]=x,e[34]=o,e[35]=F):F=e[35],W=m(j,X),e[8]=b,e[9]=C,e[10]=n,e[11]=a,e[12]=u,e[13]=R,e[14]=m,e[15]=L,e[16]=h,e[17]=t,e[18]=x,e[19]=o,e[20]=U,e[21]=B,e[22]=z,e[23]=F,e[24]=W}else U=e[20],B=e[21],z=e[22],F=e[23],W=e[24];let oe;e[36]!==B||e[37]!==z||e[38]!==F||e[39]!==W?(oe=y.jsxs("div",{ref:B,className:z,children:[F,W]}),e[36]=B,e[37]=z,e[38]=F,e[39]=W,e[40]=oe):oe=e[40];const H=!d&&"sr-only";let K;e[41]!==H?(K=Je("text-sm text-muted-foreground",H),e[41]=H,e[42]=K):K=e[42];let J;e[43]!==d||e[44]!==h||e[45]!==o?(J=d?o(h?"sectionsEditor.formConflict.changedAgainSteps":"sectionsEditor.formConflict.changedAgain"):"",e[43]=d,e[44]=h,e[45]=o,e[46]=J):J=e[46];let se;e[47]!==K||e[48]!==J?(se=y.jsx("p",{role:"status",className:K,children:J}),e[47]=K,e[48]=J,e[49]=se):se=e[49];const Q=h?"vertical":"all";let M;e[50]!==E||e[51]!==t||e[52]!==Q?(M=y.jsx(Vwe,{field:E,...t,arrows:Q}),e[50]=E,e[51]=t,e[52]=Q,e[53]=M):M=e[53];let G;e[54]!==se||e[55]!==M?(G=y.jsxs("div",{className:"-mx-2 flex min-h-0 flex-col gap-3 overflow-y-auto px-2 py-1",children:[se,M]}),e[54]=se,e[55]=M,e[56]=G):G=e[56];let V;e[57]!==U||e[58]!==C||e[59]!==R||e[60]!==_||e[61]!==h||e[62]!==o?(V=h?y.jsxs(Z0,{className:"flex-row flex-wrap items-center justify-between gap-2 sm:justify-between",children:[y.jsx(bn,{type:"button",variant:"outline","aria-disabled":C===0,onClick:()=>R(C-1),className:"aria-disabled:cursor-default aria-disabled:opacity-45",children:o("sectionsEditor.formConflict.back")}),y.jsx(bn,{type:"button","data-testid":"form-conflict-primary",onClick:_?U:()=>R(C+1),children:o(_?"sectionsEditor.formConflict.ok":"sectionsEditor.formConflict.next")})]}):y.jsx(Z0,{className:"items-center gap-2",children:y.jsx(bn,{type:"button","data-testid":"form-conflict-primary",onClick:U,children:o("sectionsEditor.formConflict.ok")})}),e[57]=U,e[58]=C,e[59]=R,e[60]=_,e[61]=h,e[62]=o,e[63]=V):V=e[63];let I;return e[64]!==oe||e[65]!==G||e[66]!==V?(I=y.jsxs(y.Fragment,{children:[oe,G,V]}),e[64]=oe,e[65]=G,e[66]=V,e[67]=I):I=e[67],I}function zwe(){return new Set}function qwe(t){const e=Fv(t.mine,t.schema),o=Fv(t.theirs,t.schema),a=e.kind==="text"&&o.kind==="text"?Ewe(e.text,o.text):null;return n=>a?y.jsx(Gwe,{parts:a[n]}):y.jsx(Kwe,{preview:n==="mine"?e:o})}const Uwe={all:{ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1},vertical:{ArrowDown:1,ArrowUp:-1}};function $we(t,e){const o=Uwe[e][t.key];if(!o)return;const a=[...t.currentTarget.querySelectorAll('[role="radio"]')],n=a.indexOf(document.activeElement);if(n<0)return;t.preventDefault();const r=a[(n+o+a.length)%a.length];r?.focus(),r?.click()}function Vwe(t){const e=ye.c(67),{field:o,choices:a,viewer:n,author:r,anonymousTitle:i,onChoose:c,arrows:d}=t,u=r===void 0?null:r,m=i===void 0?!1:i,h=Ua(),[f]=Xk(),{language:v}=f;let b,S,T,x,k,C,E,_,D,R,O,L,U,B;if(e[0]!==m||e[1]!==d||e[2]!==u||e[3]!==a||e[4]!==o||e[5]!==v||e[6]!==c||e[7]!==h||e[8]!==n?.image||e[9]!==n?.name){const W=qwe(o),oe=a[o.pointer]??"mine",H=n?.image??void 0;let K;e[24]!==h||e[25]!==n?.name?(K=n?.name?.trim()||h("sectionsEditor.formConflict.you"),e[24]=h,e[25]=n?.name,e[26]=K):K=e[26];let J;e[27]!==H||e[28]!==K?(J=y.jsx(Of,{url:H,fallback:K,shape:"circle",size:"sm",className:"text-xs"}),e[27]=H,e[28]=K,e[29]=J):J=e[29];const se=J;let Q;e[30]!==u||e[31]!==se?(Q=u?.you?se:u?.name?y.jsx(Of,{url:u.avatarUrl,fallback:u.name,shape:"circle",size:"sm",className:"text-xs"}):y.jsx(Of,{url:"icon://user",fallback:"",muted:!0,shape:"circle",size:"sm"}),e[30]=u,e[31]=se,e[32]=Q):Q=e[32];const M=Q,G=u?new Date(u.at):null,V=m&&!u;x="radiogroup",k=o.label,C="flex flex-col gap-2",e[33]!==d?(E=de=>$we(de,d),e[33]=d,e[34]=E):E=e[34];let I;e[35]!==o.pointer||e[36]!==c?(I=()=>c(o.pointer,"mine"),e[35]=o.pointer,e[36]=c,e[37]=I):I=e[37];let j;e[38]!==h?(j=h("sectionsEditor.formConflict.you"),e[38]=h,e[39]=j):j=e[39];let X;e[40]!==h?(X=h("sectionsEditor.formConflict.yourVersionNotSaved"),e[40]=h,e[41]=X):X=e[41],_=y.jsx(SM,{side:"mine",checked:oe==="mine",onChoose:I,avatar:se,who:j,meta:X,children:W("mine")}),b=SM,D="theirs",R=oe==="theirs",e[42]!==o.pointer||e[43]!==c?(O=()=>c(o.pointer,"theirs"),e[42]=o.pointer,e[43]=c,e[44]=O):O=e[44],L=M,e[45]!==u?.name||e[46]!==u?.you||e[47]!==V||e[48]!==h?(U=V?h("sectionsEditor.formConflict.theirVersion"):u?.you?h("sectionsEditor.formConflict.youElsewhere"):u?.name||h("sectionsEditor.formConflict.someoneElse"),e[45]=u?.name,e[46]=u?.you,e[47]=V,e[48]=h,e[49]=U):U=e[49],B=V?h("sectionsEditor.formConflict.alreadySaved"):G?h("sectionsEditor.formConflict.savedAt",{when:fSe(G,v)}):h("sectionsEditor.formConflict.theirVersionSaved"),S=G?Hwe(G,v):void 0,T=W("theirs"),e[0]=m,e[1]=d,e[2]=u,e[3]=a,e[4]=o,e[5]=v,e[6]=c,e[7]=h,e[8]=n?.image,e[9]=n?.name,e[10]=b,e[11]=S,e[12]=T,e[13]=x,e[14]=k,e[15]=C,e[16]=E,e[17]=_,e[18]=D,e[19]=R,e[20]=O,e[21]=L,e[22]=U,e[23]=B}else b=e[10],S=e[11],T=e[12],x=e[13],k=e[14],C=e[15],E=e[16],_=e[17],D=e[18],R=e[19],O=e[20],L=e[21],U=e[22],B=e[23];let z;e[50]!==b||e[51]!==S||e[52]!==T||e[53]!==D||e[54]!==R||e[55]!==O||e[56]!==L||e[57]!==U||e[58]!==B?(z=y.jsx(b,{side:D,checked:R,onChoose:O,avatar:L,who:U,meta:B,metaTitle:S,children:T}),e[50]=b,e[51]=S,e[52]=T,e[53]=D,e[54]=R,e[55]=O,e[56]=L,e[57]=U,e[58]=B,e[59]=z):z=e[59];let F;return e[60]!==x||e[61]!==k||e[62]!==C||e[63]!==E||e[64]!==_||e[65]!==z?(F=y.jsxs("div",{role:x,"aria-label":k,className:C,onKeyDown:E,children:[_,z]}),e[60]=x,e[61]=k,e[62]=C,e[63]=E,e[64]=_,e[65]=z,e[66]=F):F=e[66],F}const Hwe=(t,e)=>t.toLocaleString(e,{dateStyle:"medium",timeStyle:"short"});function SM(t){const e=ye.c(28),{side:o,checked:a,onChoose:n,avatar:r,who:i,meta:c,metaTitle:d,children:u}=t,m=A.useId(),h=`${m}-who`,f=`${m}-meta ${m}-value`,v=a?0:-1,b=a?"border-primary bg-primary/5 ring-1 ring-primary":"hover:bg-accent";let S;e[0]!==b?(S=Je("grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)] items-start gap-3 rounded-xl border bg-background p-3 text-left transition-[border-color,box-shadow,background-color] focus-ring",b),e[0]=b,e[1]=S):S=e[1];const T=`${m}-who`;let x;e[2]!==T||e[3]!==i?(x=y.jsx("span",{id:T,className:"text-sm font-medium text-foreground",children:i}),e[2]=T,e[3]=i,e[4]=x):x=e[4];const k=`${m}-meta`;let C;e[5]!==c||e[6]!==d||e[7]!==k?(C=y.jsx("span",{id:k,title:d,children:c}),e[5]=c,e[6]=d,e[7]=k,e[8]=C):C=e[8];let E;e[9]!==x||e[10]!==C?(E=y.jsxs("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-xs text-muted-foreground",children:[x,C]}),e[9]=x,e[10]=C,e[11]=E):E=e[11];const _=`${m}-value`,D=`conflict-${o}`;let R;e[12]!==u||e[13]!==_||e[14]!==D?(R=y.jsx("span",{id:_,"data-testid":D,className:"min-w-0 text-sm",children:u}),e[12]=u,e[13]=_,e[14]=D,e[15]=R):R=e[15];let O;e[16]!==E||e[17]!==R?(O=y.jsxs("span",{className:"flex min-w-0 flex-col gap-1",children:[E,R]}),e[16]=E,e[17]=R,e[18]=O):O=e[18];let L;return e[19]!==r||e[20]!==a||e[21]!==n||e[22]!==h||e[23]!==O||e[24]!==f||e[25]!==v||e[26]!==S?(L=y.jsxs("button",{type:"button",role:"radio","aria-checked":a,"aria-labelledby":h,"aria-describedby":f,tabIndex:v,onClick:n,className:S,children:[r,O]}),e[19]=r,e[20]=a,e[21]=n,e[22]=h,e[23]=O,e[24]=f,e[25]=v,e[26]=S,e[27]=L):L=e[27],L}function Gwe(t){const e=ye.c(4),{parts:o}=t;let a;e[0]!==o?(a=o.map(Wwe),e[0]=o,e[1]=a):a=e[1];let n;return e[2]!==a?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:a}),e[2]=a,e[3]=n):n=e[3],n}function Wwe(t,e){return t.kind==="changed"?y.jsx("mark",{className:"rounded-sm bg-warning/20 px-0.5 text-foreground",children:t.text},e):y.jsx("span",{children:t.text},e)}function Kwe(t){const e=ye.c(29),{preview:o}=t,a=Ua();switch(o.kind){case"empty":{let n;e[0]!==a?(n=a("sectionsEditor.formConflict.empty"),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==n?(r=y.jsx("span",{className:"italic text-muted-foreground",children:n}),e[2]=n,e[3]=r):r=e[3],r}case"text":{let n;return e[4]!==o.text?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:o.text}),e[4]=o.text,e[5]=n):n=e[5],n}case"image":{let n;return e[6]!==o.src?(n=y.jsx("img",{src:o.src,alt:"",className:"max-h-24 max-w-full rounded border object-contain"}),e[6]=o.src,e[7]=n):n=e[7],n}case"yesNo":{const n=o.value?"sectionsEditor.formConflict.yes":"sectionsEditor.formConflict.no";let r;e[8]!==a||e[9]!==n?(r=a(n),e[8]=a,e[9]=n,e[10]=r):r=e[10];let i;return e[11]!==r?(i=y.jsx("span",{children:r}),e[11]=r,e[12]=i):i=e[12],i}case"list":{const n=o.count===1?"sectionsEditor.formConflict.oneItem":"sectionsEditor.formConflict.items",r=String(o.count);let i;e[13]!==a||e[14]!==n||e[15]!==r?(i=a(n,{count:r}),e[13]=a,e[14]=n,e[15]=r,e[16]=i):i=e[16];let c;e[17]!==i?(c=y.jsx("span",{className:"text-muted-foreground",children:i}),e[17]=i,e[18]=c):c=e[18];let d;e[19]!==o.count||e[20]!==o.items?(d=o.items.some(Boolean)&&y.jsxs("span",{className:"flex flex-col",children:[o.items.map(Zwe),o.count>o.items.length&&y.jsx("span",{children:"…"})]}),e[19]=o.count,e[20]=o.items,e[21]=d):d=e[21];let u;return e[22]!==c||e[23]!==d?(u=y.jsxs("span",{className:"flex flex-col gap-1",children:[c,d]}),e[22]=c,e[23]=d,e[24]=u):u=e[24],u}case"fields":{let n;e[25]!==o.entries?(n=o.entries.map(Ywe),e[25]=o.entries,e[26]=n):n=e[26];let r;return e[27]!==n?(r=y.jsx("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-2 gap-y-0.5",children:n}),e[27]=n,e[28]=r):r=e[28],r}}}function Ywe(t){return y.jsxs("div",{className:"contents",children:[y.jsx("dt",{className:"text-muted-foreground",children:t.label}),y.jsx("dd",{className:"truncate",children:t.text})]},t.label)}function Zwe(t,e){return y.jsx("span",{className:"truncate",children:`${e+1}. ${t||"…"}`},e)}let nm=[],dd=[],Zz=0;const rk=new Set;function jv(){for(const t of rk)t()}function Qwe(t){return rk.add(t),()=>{rk.delete(t)}}function oEe(){return dd.length>0}function Qz(t){nm=[...nm,t],jv()}function Jz(t){nm=nm.filter(e=>e.id!==t),jv()}function aEe(t,e,o){return new Promise(a=>{const n=++Zz;Qz({id:n,kind:"values",plan:t,fields:e,about:o,answer:r=>{Jz(n),a(r)}})})}function nEe(t){return new Promise(e=>{const o=++Zz;Qz({id:o,kind:"deleted",conflict:t,answer:a=>{Jz(o),e(a)}})})}function Jwe(){const t=ye.c(9),[e]=A.useState(exe);let o,a;t[0]!==e?(o=()=>(dd=[...dd,e],jv(),()=>{dd=dd.filter(c=>c!==e),jv()}),a=[e],t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]),A.useEffect(o,a);let n;t[3]!==e?(n=()=>dd[0]===e?nm[0]??null:null,t[3]=e,t[4]=n):n=t[4];const r=A.useSyncExternalStore(Qwe,n,Xwe);if(!r)return null;if(r.kind==="deleted"){let c;return t[5]!==r?(c=y.jsx(txe,{question:r},r.id),t[5]=r,t[6]=c):c=t[6],c}let i;return t[7]!==r?(i=y.jsx(axe,{question:r},r.id),t[7]=r,t[8]=i):i=t[8],i}function Xwe(){return null}function exe(){return Symbol("named-rule-conflict-host")}function txe(t){const e=ye.c(36),{question:o}=t,a=Ua(),{kind:n,label:r}=o.conflict,i=n==="theyDeleted";let c;e[0]!==r||e[1]!==a||e[2]!==i?(c=i?a("sectionsEditor.deletedConflict.theyDeletedTitle",{name:r}):a("sectionsEditor.deletedConflict.youDeletedTitle",{name:r}),e[0]=r,e[1]=a,e[2]=i,e[3]=c):c=e[3];let d;e[4]!==c?(d=y.jsx(hz,{children:c}),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==a||e[7]!==i?(u=a(i?"sectionsEditor.deletedConflict.theyDeletedDescription":"sectionsEditor.deletedConflict.youDeletedDescription"),e[6]=a,e[7]=i,e[8]=u):u=e[8];let m;e[9]!==u?(m=y.jsx(gz,{children:u}),e[9]=u,e[10]=m):m=e[10];let h;e[11]!==d||e[12]!==m?(h=y.jsxs(mz,{className:"text-left",children:[d,m]}),e[11]=d,e[12]=m,e[13]=h):h=e[13];let f;e[14]!==o?(f=()=>o.answer("theirs"),e[14]=o,e[15]=f):f=e[15];let v;e[16]!==a||e[17]!==i?(v=a(i?"sectionsEditor.deletedConflict.leaveDeleted":"sectionsEditor.deletedConflict.keepTheirs"),e[16]=a,e[17]=i,e[18]=v):v=e[18];let b;e[19]!==f||e[20]!==v?(b=y.jsx(bn,{variant:"outline",onClick:f,children:v}),e[19]=f,e[20]=v,e[21]=b):b=e[21];let S;e[22]!==o?(S=()=>o.answer("mine"),e[22]=o,e[23]=S):S=e[23];let T;e[24]!==a||e[25]!==i?(T=a(i?"sectionsEditor.deletedConflict.keepMine":"sectionsEditor.deletedConflict.deleteAnyway"),e[24]=a,e[25]=i,e[26]=T):T=e[26];let x;e[27]!==T||e[28]!==S?(x=y.jsx(bn,{autoFocus:!0,onClick:S,children:T}),e[27]=T,e[28]=S,e[29]=x):x=e[29];let k;e[30]!==x||e[31]!==b?(k=y.jsxs(Z0,{children:[b,x]}),e[30]=x,e[31]=b,e[32]=k):k=e[32];let C;return e[33]!==k||e[34]!==h?(C=y.jsx(uz,{open:!0,children:y.jsxs(pz,{className:"sm:max-w-md","data-testid":"deleted-conflict-dialog",onEscapeKeyDown:oxe,children:[h,k]})}),e[33]=k,e[34]=h,e[35]=C):C=e[35],C}function oxe(t){return t.preventDefault()}function axe(t){const e=ye.c(16),{question:o}=t;let a;e[0]!==o.plan?(a=()=>Kz(o.plan),e[0]=o.plan,e[1]=a):a=e[1];const[n,r]=A.useState(a),i=o.about?.author??null;let c;e[2]!==i||e[3]!==o.plan.theirs?(c=i?.keyed?eSe(o.plan.theirs,i.blockKey):kC(la(o.plan.theirs)),e[2]=i,e[3]=o.plan.theirs,e[4]=c):c=e[4];const d=tSe(i?.draft??null,i?.blockKey??null,c),u=d??null,m=d===void 0,h=o.about?.block;let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=(S,T)=>r(x=>({...x,[S]:T})),e[5]=f):f=e[5];let v;e[6]!==n||e[7]!==o?(v=()=>o.answer(n),e[6]=n,e[7]=o,e[8]=v):v=e[8];let b;return e[9]!==n||e[10]!==o.fields||e[11]!==u||e[12]!==m||e[13]!==h||e[14]!==v?(b=y.jsx(Owe,{open:!0,fields:o.fields,author:u,authorPending:m,waitForAuthor:!0,block:h,choices:n,onChoose:f,onApply:v}),e[9]=n,e[10]=o.fields,e[11]=u,e[12]=m,e[13]=h,e[14]=v,e[15]=b):b=e[15],b}function nxe({children:t}){const e=Ua();return Xf.feature=e("settings.paywall.serverRefusedFeature"),Xf.budget=e("settings.paywall.serverRefusedBudget"),CZ({itemCreatedSuccessfully:e("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:e("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:e("collections.mutations.itemDeletedSuccessfully"),createItemFailed:e("collections.mutations.createItemFailed"),updateItemFailed:e("collections.mutations.updateItemFailed"),deleteItemFailed:e("collections.mutations.deleteItemFailed")}),y.jsx(y.Fragment,{children:t})}function rxe(t){const e=ye.c(8),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(EZ,{}),e[0]=a):a=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=y.jsx(cye,{}),e[1]=n):n=e[1];let r;e[2]!==o?(r=y.jsx(iye,{children:o}),e[2]=o,e[3]=r):r=e[3];let i,c;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(Eye,{}),c=y.jsx(Jwe,{}),e[4]=i,e[5]=c):(i=e[4],c=e[5]);let d;return e[6]!==r?(d=y.jsxs(HV,{client:Yl,children:[a,y.jsx(A.Suspense,{fallback:n,children:y.jsx(pye,{children:y.jsx(_J,{children:y.jsx(Ybe,{children:y.jsx(nye,{children:y.jsxs(nxe,{children:[r,i,c]})})})})})})]}),e[6]=r,e[7]=d):d=e[7],d}const sxe=[["mesh:","studio:"],["mesh-","studio-"]];function ixe(t){const e=Array.from({length:t.length},(o,a)=>t.key(a)).filter(o=>o!==null);for(const o of e){const a=sxe.find(([d])=>o.startsWith(d));if(!a)continue;const[n,r]=a,i=`${r}${o.slice(n.length)}`;if(t.getItem(i)!==null)continue;const c=t.getItem(o);c!==null&&t.setItem(i,c)}}const wM="from",xM="legacy-admin";function lxe(t){const e=new URLSearchParams(t);if(e.get(wM)===xM)return!0;const o=e.get("next");if(!o?.startsWith("/"))return!1;const a=o.indexOf("?");return a!==-1&&new URLSearchParams(o.slice(a)).get(wM)===xM}function cxe(t,e){if(lxe(t))try{(e??sessionStorage).setItem(Or.legacyAdminArrival(),"1")}catch{}}function rEe(t){try{return(t??sessionStorage).getItem(Or.legacyAdminArrival())==="1"}catch{return!1}}function sEe(t){try{(t??sessionStorage).removeItem(Or.legacyAdminArrival())}catch{}}ixe(window.localStorage);cxe(window.location.search);const dxe=document.getElementById("root");yU.createRoot(dxe).render(y.jsx(A.StrictMode,{children:y.jsx(rxe,{children:y.jsx(pV,{router:Pb})})}));export{Ze as $,k0e as A,bn as B,r3 as C,mye as D,P4 as E,Gj as F,$Te as G,vTe as H,xye as I,Xk as J,ca as K,Wl as L,bTe as M,pxe as N,fk as O,pn as P,yxe as Q,gde as R,E0e as S,qxe as T,Hxe as U,Wi as V,jxe as W,Eie as X,Pie as Y,Cie as Z,kie as _,ga as a,gk as a$,Zxe as a0,qs as a1,mxe as a2,fTe as a3,Yi as a4,EE as a5,Hi as a6,Xj as a7,a3 as a8,lbe as a9,QTe as aA,hxe as aB,Jn as aC,ts as aD,es as aE,we as aF,$ as aG,hz as aH,gz as aI,mz as aJ,L0e as aK,Z0 as aL,pz as aM,uz as aN,gye as aO,hye as aP,cC as aQ,xTe as aR,Vxe as aS,Sye as aT,Hj as aU,c0e as aV,h0e as aW,g0e as aX,u0e as aY,Zd as aZ,nke as a_,EJ as aa,X0e as ab,St as ac,a0e as ad,Ct as ae,e3 as af,$E as ag,o3 as ah,zde as ai,M4 as aj,Wk as ak,rJ as al,Zj as am,OTe as an,NTe as ao,DTe as ap,XTe as aq,cee as ar,CE as as,Or as at,RTe as au,O4 as av,Pde as aw,n3 as ax,Jj as ay,JTe as az,Ua as b,LF as b$,s0e as b0,Ul as b1,s3 as b2,t3 as b3,Fe as b4,I0e as b5,aE as b6,y0e as b7,vue as b8,f0e as b9,rEe as bA,sEe as bB,T0e as bC,GQ as bD,hT as bE,fT as bF,gT as bG,PT as bH,Oa as bI,ST as bJ,QQ as bK,rTe as bL,QW as bM,nTe as bN,lTe as bO,aTe as bP,iTe as bQ,cTe as bR,sTe as bS,N0e as bT,O0e as bU,D0e as bV,ib as bW,Zl as bX,sge as bY,sF as bZ,gm as b_,_ie as ba,b0e as bb,v0e as bc,G0e as bd,S0e as be,w0e as bf,Mt as bg,Iz as bh,xSe as bi,_C as bj,yn as bk,swe as bl,ske as bm,KL as bn,YSe as bo,q0e as bp,_Te as bq,ATe as br,PTe as bs,je as bt,Wj as bu,Ike as bv,Ei as bw,Dke as bx,qz as by,Gz as bz,ye as c,NL as c$,Fi as c0,$o as c1,sre as c2,Do as c3,mt as c4,Er as c5,gE as c6,sm as c7,PF as c8,rF as c9,_a as cA,Nde as cB,Qk as cC,A4 as cD,vSe as cE,Jxe as cF,d0e as cG,U4 as cH,p0e as cI,Kxe as cJ,n0e as cK,S7 as cL,_L as cM,OL as cN,DL as cO,IL as cP,eb as cQ,qp as cR,BL as cS,FL as cT,zL as cU,Dxe as cV,Oxe as cW,Axe as cX,Rxe as cY,JW as cZ,_xe as c_,Age as ca,Cr as cb,VF as cc,cF as cd,fE as ce,rE as cf,nE as cg,Ji as ch,$p as ci,ire as cj,lre as ck,EF as cl,Vt as cm,Wt as cn,cde as co,Ode as cp,o0e as cq,ake as cr,gxe as cs,nue as ct,Jk as cu,P0e as cv,HTe as cw,VTe as cx,qde as cy,r0e as cz,$v as d,pI as d$,LL as d0,jL as d1,Ixe as d2,ML as d3,Gl as d4,qQ as d5,oTe as d6,GL as d7,ZK as d8,$K as d9,So as dA,SW as dB,EW as dC,Pa as dD,Qe as dE,Cxe as dF,Ak as dG,WW as dH,Wxe as dI,Kj as dJ,Yj as dK,Qj as dL,aJ as dM,AZ as dN,eTe as dO,DZ as dP,Xxe as dQ,tTe as dR,vB as dS,Em as dT,rC as dU,iC as dV,lC as dW,hm as dX,kO as dY,js as dZ,Tae as d_,EK as da,uK as db,Pxe as dc,PL as dd,MY as de,UK as df,IK as dg,yK as dh,wK as di,kK as dj,WK as dk,Lxe as dl,CY as dm,AY as dn,lY as dp,dY as dq,cY as dr,Mxe as ds,Nxe as dt,Bxe as du,GG as dv,wxe as dw,Jr as dx,Ao as dy,lo as dz,vf as e,Kse as e$,nI as e0,vxe as e1,fxe as e2,Ahe as e3,Phe as e4,_he as e5,m5 as e6,QV as e7,ar as e8,Gd as e9,zke as eA,$0e as eB,awe as eC,gTe as eD,dC as eE,uC as eF,km as eG,ec as eH,kxe as eI,bz as eJ,PC as eK,FSe as eL,z0e as eM,Wye as eN,Qye as eO,fSe as eP,ee as eQ,$se as eR,XF as eS,Fse as eT,zse as eU,qse as eV,Use as eW,Vse as eX,Hse as eY,Gse as eZ,Wse as e_,ea,jf as eb,ZM as ec,GV as ed,WV as ee,JV as ef,KV as eg,YV as eh,na as ei,e7 as ej,vR as ek,ZV as el,M0e as em,HL as en,Vde as eo,I4 as ep,wTe as eq,Sk as er,QSe as es,rwe as et,nwe as eu,jl as ev,sJ as ew,Fxe as ex,Lke as ey,Fke as ez,rm as f,cge as f$,Yse as f0,Qse as f1,Jse as f2,jse as f3,Bse as f4,Zse as f5,Rke as f6,Cz as f7,Vl as f8,USe as f9,eE as fA,RSe as fB,Ake as fC,_ke as fD,jke as fE,twe as fF,ok as fG,Bke as fH,la as fI,Q0 as fJ,qke as fK,oEe as fL,nEe as fM,pwe as fN,aEe as fO,tEe as fP,mwe as fQ,rke as fR,j0e as fS,Vve as fT,fM as fU,iwe as fV,Z5 as fW,J5 as fX,kre as fY,Tre as fZ,FF as f_,Fz as fa,Ib as fb,ESe as fc,dke as fd,Bz as fe,EC as ff,uke as fg,zSe as fh,Ha as fi,kSe as fj,Cke as fk,kke as fl,gM as fm,Eke as fn,Az as fo,wSe as fp,Oke as fq,Pke as fr,lke as fs,TSe as ft,Kye as fu,F0e as fv,B0e as fw,cke as fx,BSe as fy,LSe as fz,C0e as g,uue as g$,L$ as g0,GM as g1,oke as g2,B4 as g3,uxe as g4,eke as g5,tke as g6,hL as g7,Yxe as g8,JL as g9,Hne as gA,Kne as gB,Gne as gC,yde as gD,mTe as gE,pTe as gF,xxe as gG,jK as gH,zK as gI,qk as gJ,Xv as gK,AL as gL,eY as gM,YK as gN,bK as gO,SK as gP,TK as gQ,MK as gR,XSe as gS,GTe as gT,HY as gU,uM as gV,pSe as gW,gSe as gX,Z0e as gY,Y0e as gZ,zxe as g_,L4 as ga,STe as gb,Che as gc,sb as gd,WTe as ge,KTe as gf,Vi as gg,sk as gh,tJ as gi,ZL as gj,lB as gk,Qxe as gl,zO as gm,$ne as gn,Ar as go,Vp as gp,uE as gq,Fd as gr,$i as gs,Fs as gt,Rr as gu,gF as gv,Mne as gw,Lne as gx,Nne as gy,zne as gz,aae as h,QB as h$,mue as h0,m0e as h1,due as h2,Uxe as h3,i0e as h4,q4 as h5,Hde as h6,$de as h7,Ude as h8,_f as h9,x0e as hA,OZ as hB,A0e as hC,J0e as hD,Xa as hE,Ni as hF,V0e as hG,ike as hH,Wde as hI,_0 as hJ,TTe as hK,xL as hL,yTe as hM,Mke as hN,Sxe as hO,ige as hP,uTe as hQ,xW as hR,_k as hS,pL as hT,Txe as hU,CW as hV,Rk as hW,fL as hX,bL as hY,Exe as hZ,yt as h_,l0e as ha,GY as hb,$xe as hc,U0e as hd,CTe as he,VV as hf,HV as hg,$Y as hh,vz as hi,Ine as hj,VO as hk,Bne as hl,kTe as hm,Fne as hn,ETe as ho,Gxe as hp,Vie as hq,xde as hr,K0e as hs,W0e as ht,dTe as hu,j4 as hv,Zde as hw,xb as hx,YTe as hy,Ehe as hz,Gi as i,hTe as i0,cB as i1,Rde as i2,kde as i3,t0e as i4,e0e as i5,N4 as i6,ZTe as i7,hke as i8,xke as i9,Wz as iA,cwe as iB,Gke as iC,Nke as iD,Kz as iE,Yke as iF,$ke as iG,Kke as iH,Wke as iI,vke as iJ,fwe as iK,Qke as iL,qSe as iM,H0e as ia,eSe as ib,Zke as ic,Uke as id,eEe as ie,AC as ig,$Se as ih,Owe as ii,VSe as ij,Vke as ik,Tke as il,Ske as im,GSe as io,fke as ip,wke as iq,yke as ir,bke as is,mke as it,gke as iu,pke as iv,Xke as iw,Hke as ix,Jke as iy,gwe as iz,y as j,pde as k,vk as l,Je as m,Td as n,Of as o,Q0e as p,Wd as q,A as r,_0e as s,Id as t,hk as u,vye as v,bye as w,yye as x,R0e as y,JSe as z};
|
|
252
|
+
`).trim()}const wwe={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'"};function xwe(t){if(typeof DOMParser<"u")return new DOMParser().parseFromString(t,"text/html").body.textContent??"";let e=t;for(let o="";o!==e;)o=e,e=e.replace(/<[^<>]*>/g,"");return e.replace(/<|>/g,"").replace(/&(nbsp|amp|lt|gt|quot|#39);/g,o=>wwe[o]??o)}function Nf(t){const e=t.replace(/\s+/g," ").trim();return e.length>vM?`${e.slice(0,vM-1)}…`:e}function Twe(t){if(t.startsWith("data:"))return"image";const e=t.split(/[?#]/)[0]??t;return decodeURIComponent(e.split("/").pop()||t)}function Fv(t,e){if(t==null||t==="")return{kind:"empty"};if(typeof t=="string")return Yz(t,e)?{kind:"image",src:t}:{kind:"text",text:nk(t,e)};if(typeof t=="number"||typeof t=="bigint")return{kind:"text",text:String(t)};if(typeof t=="boolean")return{kind:"yesNo",value:t};if(Array.isArray(t)){const o=e?.items??null;return{kind:"list",count:t.length,items:t.slice(0,Swe).map(a=>kwe(a,o)??"")}}if(typeof t=="object"){const o=t;if("value"in o&&Object.keys(o).length<=2)return Fv(o.value,e?.properties?.value??e);const a=Object.entries(o).filter(([n,r])=>!n.startsWith("__")&&r!==void 0).flatMap(([n,r])=>{const i=e?.properties?.[n]??null,c=Fv(r,i);if(c.kind==="empty")return[];const d=c.kind==="text"?Nf(c.text):c.kind==="image"?Twe(c.src):c.kind==="yesNo"?c.value?"✓":"✗":c.kind==="list"?`${c.count}`:"…";return[{label:i?.title?.trim()||n,text:d}]}).slice(0,4);return a.length>0?{kind:"fields",entries:a}:{kind:"empty"}}return{kind:"text",text:String(t)}}function kwe(t,e){if(typeof t=="string")return Nf(nk(t,e));if(!t||typeof t!="object"||Array.isArray(t))return null;const o=t,a=e?.titleBy,n=a?o[a]:void 0;if(typeof n=="string"&&n.trim())return Nf(n);for(const[r,i]of Object.entries(o))if(!(r.startsWith("__")||typeof i!="string"||!i.trim())&&!Yz(i,e?.properties?.[r]??null))return Nf(nk(i,null));return null}const bM=1500;function Ewe(t,e){const o=t.split(/(\s+)/).filter(m=>m!==""),a=e.split(/(\s+)/).filter(m=>m!=="");if(o.length>bM||a.length>bM)return{mine:[{text:t,kind:"changed"}],theirs:[{text:e,kind:"changed"}]};const n=Array.from({length:o.length+1},()=>new Array(a.length+1).fill(0));for(let m=o.length-1;m>=0;m--)for(let h=a.length-1;h>=0;h--){const f=n[m];f[h]=o[m]===a[h]?n[m+1][h+1]+1:Math.max(n[m+1][h],f[h+1])}const r=[],i=[],c=(m,h,f)=>{const v=m.at(-1);v&&(v.kind===f||f==="same"&&!h.trim())?v.text+=h:m.push({text:h,kind:f})};let d=0,u=0;for(;d<o.length&&u<a.length;)o[d]===a[u]?(c(r,o[d],"same"),c(i,a[u],"same"),d++,u++):n[d+1][u]>=n[d][u+1]?(c(r,o[d],"changed"),d++):(c(i,a[u],"changed"),u++);for(;d<o.length;d++)c(r,o[d],"changed");for(;u<a.length;u++)c(i,a[u],"changed");return{mine:r,theirs:i}}const Cwe=700,Pwe=new Set(["text","search","url","tel",""]);function _we(t){if(!t)return!1;if(t.tagName==="TEXTAREA")return!t.readOnly;if(t.tagName!=="INPUT")return!1;const e=t;return Pwe.has(e.type.toLowerCase())&&!e.readOnly&&!e.disabled}function Awe(t,e){const o=t.value,a=t.selectionStart??o.length,n=t.selectionEnd??a;let r,i;if(e==="Backspace"){const d=a===n?Math.max(0,a-1):a;r=o.slice(0,d)+o.slice(n),i=d}else r=o.slice(0,a)+e+o.slice(n),i=a+e.length;const c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value")?.set;c?c.call(t,r):t.value=r,t.setSelectionRange?.(i,i),t.dispatchEvent(new Event("input",{bubbles:!0}))}const Rwe={now:()=>globalThis.performance.now(),typedAt:t=>t.timeStamp};function Dwe(t,e){const o=ye.c(12),a=Rwe,n=A.useRef(null),r=A.useRef(null);let i;o[0]!==a?(i=()=>{const h=globalThis.document;if(r.current||!h)return;const f=b=>{const S=n.current;if(!S||b.key==="Shift"||b.key==="CapsLock")return;const T=a.typedAt(b);if(!((b.key.length===1||b.key==="Backspace")&&!b.ctrlKey&&!b.metaKey&&!b.altKey&&!b.isComposing)||T-S.last>Cwe||!S.field.isConnected||b.target===S.field){n.current=null;return}b.preventDefault(),b.stopPropagation(),S.last=Math.max(S.last,T),Awe(S.field,b.key)},v=()=>{n.current=null};h.addEventListener("keydown",f,!0),h.addEventListener("pointerdown",v,!0),r.current=()=>{h.removeEventListener("keydown",f,!0),h.removeEventListener("pointerdown",v,!0),r.current=null,n.current=null}},o[0]=a,o[1]=i):i=o[1];const c=i;let d;o[2]!==c||o[3]!==t?(d=()=>{if(t)return c(),()=>r.current?.()},o[2]=c,o[3]=t,o[4]=d):d=o[4];let u;o[5]!==a||o[6]!==t?(u=[t,a],o[5]=a,o[6]=t,o[7]=u):u=o[7],A.useEffect(d,u);let m;return o[8]!==c||o[9]!==a||o[10]!==t?(m=()=>{const h=globalThis.document?.activeElement??null;if(!t||!_we(h)){n.current=null;return}c(),n.current={field:h,last:a.now()}},o[8]=c,o[9]=a,o[10]=t,o[11]=m):m=o[11],m}function Owe(t){const e=ye.c(20);let o,a,n,r,i;e[0]!==t?({open:o,authorPending:n,waitForAuthor:r,keepTyping:i,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5]);const c=n===void 0?!1:n,d=r===void 0?!1:r,u=i===void 0?!1:i,{data:m}=ga.useSession(),h=d&&c;let f;e[6]!==c||e[7]!==d?(f=()=>c&&!d,e[6]=c,e[7]=d,e[8]=f):f=e[8];const[v]=A.useState(f),b=Dwe(u&&o&&!h),S=o&&!h;let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=Je("max-h-[85vh] grid-rows-[auto_minmax(0,1fr)_auto] sm:max-w-lg"),e[9]=T):T=e[9];const x=a.anonymousTitle??v,k=m?.user??null;let C;e[10]!==a||e[11]!==x||e[12]!==k?(C=y.jsx(jwe,{...a,anonymousTitle:x,viewer:k,heading:Nwe}),e[10]=a,e[11]=x,e[12]=k,e[13]=C):C=e[13];let E;e[14]!==b||e[15]!==C?(E=y.jsx(pz,{className:T,"data-testid":"form-conflict-dialog",onOpenAutoFocus:b,onEscapeKeyDown:Mwe,children:C}),e[14]=b,e[15]=C,e[16]=E):E=e[16];let _;return e[17]!==E||e[18]!==S?(_=y.jsx(uz,{open:S,children:E}),e[17]=E,e[18]=S,e[19]=_):_=e[19],_}function Nwe(t,e){return y.jsxs(mz,{className:"text-left",children:[y.jsx(hz,{children:t}),y.jsx(gz,{children:e})]})}function Mwe(t){return t.preventDefault()}const Iwe={},Lwe=(t,e)=>y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("h2",{className:"text-lg font-semibold",children:t}),y.jsx("p",{className:"text-sm text-muted-foreground",children:e})]});function Bwe(t,e,o=0,a={},n=null,r,{anonymous:i=!1,asLabeled:c=!1}={}){const d=e[Math.min(o,e.length-1)],u=n?.you?void 0:n?.shortName??n?.name?.split(/\s+/)[0],m={field:d?r||c?d.label:Fwe(d.label):"",label:d?.label??"",name:u??"",block:r??""},h=i&&!n?.you&&!u,f=(S,T,x,k)=>t(h?k:n?.you?x:u?T:S,m),v=d?.phrase,b=(S,T,x,k)=>t(h?k:n?.you?x:u?T:S,{thing:v??"",Thing:v?v.charAt(0).toLocaleUpperCase()+v.slice(1):"",label:d?.label??"",name:u??""});return v?e.length<=1?{title:b("sectionsEditor.formConflict.titlePhraseOne","sectionsEditor.formConflict.titlePhraseOneNamed","sectionsEditor.formConflict.titlePhraseOneYou","sectionsEditor.formConflict.titlePhraseOneAnonymous"),description:t("sectionsEditor.formConflict.descriptionOne")}:{title:b("sectionsEditor.formConflict.titlePhraseStep","sectionsEditor.formConflict.titlePhraseStepNamed","sectionsEditor.formConflict.titlePhraseStepYou","sectionsEditor.formConflict.titlePhraseStepAnonymous"),description:o>=e.length-1?y.jsx(yM,{t,fields:e,choices:a,name:u}):t("sectionsEditor.formConflict.descriptionStep")}:e.length<=1?{title:r?f("sectionsEditor.formConflict.titleOneIn","sectionsEditor.formConflict.titleOneInNamed","sectionsEditor.formConflict.titleOneInYou","sectionsEditor.formConflict.titleOneInAnonymous"):f("sectionsEditor.formConflict.titleOne","sectionsEditor.formConflict.titleOneNamed","sectionsEditor.formConflict.titleOneYou","sectionsEditor.formConflict.titleOneAnonymous"),description:t("sectionsEditor.formConflict.descriptionOne")}:{title:r?f("sectionsEditor.formConflict.titleStepIn","sectionsEditor.formConflict.titleStepInNamed","sectionsEditor.formConflict.titleStepInYou","sectionsEditor.formConflict.titleStepInAnonymous"):f("sectionsEditor.formConflict.titleStep","sectionsEditor.formConflict.titleStepNamed","sectionsEditor.formConflict.titleStepYou","sectionsEditor.formConflict.titleStepAnonymous"),description:o>=e.length-1?y.jsx(yM,{t,fields:e,choices:a,name:u}):t("sectionsEditor.formConflict.descriptionStep")}}function yM(t){const e=ye.c(11),{t:o,fields:a,choices:n,name:r}=t;let i;if(e[0]!==n||e[1]!==a||e[2]!==r||e[3]!==o){let d;e[5]!==n||e[6]!==r||e[7]!==o?(d=(u,m)=>y.jsxs(A.Fragment,{children:[m>0&&" · ",`${u.label}: `,y.jsx("span",{className:"font-medium text-foreground",children:o((n[u.pointer]??"mine")==="mine"?"sectionsEditor.formConflict.summaryYours":r?"sectionsEditor.formConflict.summaryTheirsNamed":"sectionsEditor.formConflict.summaryTheirs",{name:r??""})})]},u.pointer),e[5]=n,e[6]=r,e[7]=o,e[8]=d):d=e[8],i=a.map(d),e[0]=n,e[1]=a,e[2]=r,e[3]=o,e[4]=i}else i=e[4];let c;return e[9]!==i?(c=y.jsx("span",{"data-testid":"form-conflict-summary",children:i}),e[9]=i,e[10]=c):c=e[10],c}function Fwe(t){return/^[A-Z][a-z]/.test(t)&&!t.includes("›")?t.charAt(0).toLowerCase()+t.slice(1):t}function jwe(t){const e=ye.c(68),o=Ua(),{fields:a,choices:n,changedAgain:r,fresh:i,heading:c}=t,d=r===void 0?!1:r,u=i===void 0?Iwe:i,m=c===void 0?Lwe:c,h=a.length>1,[f,v]=A.useState(0),[b,S]=A.useState(zwe);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T={},e[0]=T):T=e[0];const[x,k]=A.useState(T),C=Math.max(0,Math.min(f,a.length-1)),E=a[C],_=C===a.length-1;let D;e[1]!==C||e[2]!==a||e[3]!==u?(D=j=>{const X=a[C],de=a[j];!X||!de||j===C||(S(ue=>new Set(ue).add(X.pointer)),k(ue=>({...ue,[X.pointer]:u[X.pointer]??0,[de.pointer]:u[de.pointer]??0})),v(j))},e[1]=C,e[2]=a,e[3]=u,e[4]=D):D=e[4];const R=D;let O;e[5]!==C||e[6]!==R?(O=j=>{if(!j)return;const X=de=>{const ue={ArrowLeft:-1,ArrowRight:1}[de.key];!ue||de.defaultPrevented||de.altKey||de.ctrlKey||de.metaKey||de.shiftKey||vSe(de.target)||(de.preventDefault(),R(C+ue))};return j.ownerDocument.addEventListener("keydown",X),()=>j.ownerDocument.removeEventListener("keydown",X)},e[5]=C,e[6]=R,e[7]=O):O=e[7];const L=O;if(!E)return null;let U,B,z,F,W;if(e[8]!==b||e[9]!==C||e[10]!==n||e[11]!==a||e[12]!==u||e[13]!==R||e[14]!==m||e[15]!==L||e[16]!==h||e[17]!==t||e[18]!==x||e[19]!==o){const{title:j,description:X}=Bwe(o,a,C,n,t.author??null,t.block,{anonymous:t.anonymousTitle,asLabeled:t.fieldsAsLabeled});let de;e[25]!==t?(de=ue=>{ue.detail>1||t.onApply()},e[25]=t,e[26]=de):de=e[26],U=de,B=h?L:void 0,z="flex min-w-0 flex-col gap-3",e[27]!==b||e[28]!==C||e[29]!==a||e[30]!==u||e[31]!==R||e[32]!==h||e[33]!==x||e[34]!==o?(F=h&&y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsx("div",{role:"group","aria-label":o("sectionsEditor.formConflict.steps"),className:"-m-1 flex flex-wrap items-center",children:a.map((ue,Ee)=>{const qe=Ee!==C&&(u[ue.pointer]??0)>(x[ue.pointer]??0);return y.jsx("button",{type:"button","aria-label":qe?o("sectionsEditor.formConflict.stepChangedAgain",{label:ue.label}):ue.label,"aria-current":Ee===C?"step":void 0,"data-answered":Ee!==C&&b.has(ue.pointer)?"":void 0,"data-changed-again":qe?"":void 0,onClick:()=>R(Ee),className:"group cursor-pointer rounded-full p-1 focus-ring",children:y.jsx("span",{className:Je("block h-2 w-2 rounded-full bg-border transition-[width,background-color,box-shadow] motion-reduce:transition-none","group-hover:bg-muted-foreground/60","group-data-[answered]:bg-foreground/45","group-aria-[current=step]:w-5 group-aria-[current=step]:bg-foreground","group-data-[changed-again]:ring-2 group-data-[changed-again]:ring-warning group-data-[changed-again]:ring-offset-1 group-data-[changed-again]:ring-offset-background")})},ue.pointer)})}),y.jsx("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:o("sectionsEditor.formConflict.stepCount",{step:String(C+1),count:String(a.length)})})]}),e[27]=b,e[28]=C,e[29]=a,e[30]=u,e[31]=R,e[32]=h,e[33]=x,e[34]=o,e[35]=F):F=e[35],W=m(j,X),e[8]=b,e[9]=C,e[10]=n,e[11]=a,e[12]=u,e[13]=R,e[14]=m,e[15]=L,e[16]=h,e[17]=t,e[18]=x,e[19]=o,e[20]=U,e[21]=B,e[22]=z,e[23]=F,e[24]=W}else U=e[20],B=e[21],z=e[22],F=e[23],W=e[24];let oe;e[36]!==B||e[37]!==z||e[38]!==F||e[39]!==W?(oe=y.jsxs("div",{ref:B,className:z,children:[F,W]}),e[36]=B,e[37]=z,e[38]=F,e[39]=W,e[40]=oe):oe=e[40];const H=!d&&"sr-only";let K;e[41]!==H?(K=Je("text-sm text-muted-foreground",H),e[41]=H,e[42]=K):K=e[42];let J;e[43]!==d||e[44]!==h||e[45]!==o?(J=d?o(h?"sectionsEditor.formConflict.changedAgainSteps":"sectionsEditor.formConflict.changedAgain"):"",e[43]=d,e[44]=h,e[45]=o,e[46]=J):J=e[46];let se;e[47]!==K||e[48]!==J?(se=y.jsx("p",{role:"status",className:K,children:J}),e[47]=K,e[48]=J,e[49]=se):se=e[49];const Q=h?"vertical":"all";let M;e[50]!==E||e[51]!==t||e[52]!==Q?(M=y.jsx(Vwe,{field:E,...t,arrows:Q}),e[50]=E,e[51]=t,e[52]=Q,e[53]=M):M=e[53];let G;e[54]!==se||e[55]!==M?(G=y.jsxs("div",{className:"-mx-2 flex min-h-0 flex-col gap-3 overflow-y-auto px-2 py-1",children:[se,M]}),e[54]=se,e[55]=M,e[56]=G):G=e[56];let V;e[57]!==U||e[58]!==C||e[59]!==R||e[60]!==_||e[61]!==h||e[62]!==o?(V=h?y.jsxs(Z0,{className:"flex-row flex-wrap items-center justify-between gap-2 sm:justify-between",children:[y.jsx(bn,{type:"button",variant:"outline","aria-disabled":C===0,onClick:()=>R(C-1),className:"aria-disabled:cursor-default aria-disabled:opacity-45",children:o("sectionsEditor.formConflict.back")}),y.jsx(bn,{type:"button","data-testid":"form-conflict-primary",onClick:_?U:()=>R(C+1),children:o(_?"sectionsEditor.formConflict.ok":"sectionsEditor.formConflict.next")})]}):y.jsx(Z0,{className:"items-center gap-2",children:y.jsx(bn,{type:"button","data-testid":"form-conflict-primary",onClick:U,children:o("sectionsEditor.formConflict.ok")})}),e[57]=U,e[58]=C,e[59]=R,e[60]=_,e[61]=h,e[62]=o,e[63]=V):V=e[63];let I;return e[64]!==oe||e[65]!==G||e[66]!==V?(I=y.jsxs(y.Fragment,{children:[oe,G,V]}),e[64]=oe,e[65]=G,e[66]=V,e[67]=I):I=e[67],I}function zwe(){return new Set}function qwe(t){const e=Fv(t.mine,t.schema),o=Fv(t.theirs,t.schema),a=e.kind==="text"&&o.kind==="text"?Ewe(e.text,o.text):null;return n=>a?y.jsx(Gwe,{parts:a[n]}):y.jsx(Kwe,{preview:n==="mine"?e:o})}const Uwe={all:{ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1},vertical:{ArrowDown:1,ArrowUp:-1}};function $we(t,e){const o=Uwe[e][t.key];if(!o)return;const a=[...t.currentTarget.querySelectorAll('[role="radio"]')],n=a.indexOf(document.activeElement);if(n<0)return;t.preventDefault();const r=a[(n+o+a.length)%a.length];r?.focus(),r?.click()}function Vwe(t){const e=ye.c(67),{field:o,choices:a,viewer:n,author:r,anonymousTitle:i,onChoose:c,arrows:d}=t,u=r===void 0?null:r,m=i===void 0?!1:i,h=Ua(),[f]=Xk(),{language:v}=f;let b,S,T,x,k,C,E,_,D,R,O,L,U,B;if(e[0]!==m||e[1]!==d||e[2]!==u||e[3]!==a||e[4]!==o||e[5]!==v||e[6]!==c||e[7]!==h||e[8]!==n?.image||e[9]!==n?.name){const W=qwe(o),oe=a[o.pointer]??"mine",H=n?.image??void 0;let K;e[24]!==h||e[25]!==n?.name?(K=n?.name?.trim()||h("sectionsEditor.formConflict.you"),e[24]=h,e[25]=n?.name,e[26]=K):K=e[26];let J;e[27]!==H||e[28]!==K?(J=y.jsx(Of,{url:H,fallback:K,shape:"circle",size:"sm",className:"text-xs"}),e[27]=H,e[28]=K,e[29]=J):J=e[29];const se=J;let Q;e[30]!==u||e[31]!==se?(Q=u?.you?se:u?.name?y.jsx(Of,{url:u.avatarUrl,fallback:u.name,shape:"circle",size:"sm",className:"text-xs"}):y.jsx(Of,{url:"icon://user",fallback:"",muted:!0,shape:"circle",size:"sm"}),e[30]=u,e[31]=se,e[32]=Q):Q=e[32];const M=Q,G=u?new Date(u.at):null,V=m&&!u;x="radiogroup",k=o.label,C="flex flex-col gap-2",e[33]!==d?(E=de=>$we(de,d),e[33]=d,e[34]=E):E=e[34];let I;e[35]!==o.pointer||e[36]!==c?(I=()=>c(o.pointer,"mine"),e[35]=o.pointer,e[36]=c,e[37]=I):I=e[37];let j;e[38]!==h?(j=h("sectionsEditor.formConflict.you"),e[38]=h,e[39]=j):j=e[39];let X;e[40]!==h?(X=h("sectionsEditor.formConflict.yourVersionNotSaved"),e[40]=h,e[41]=X):X=e[41],_=y.jsx(SM,{side:"mine",checked:oe==="mine",onChoose:I,avatar:se,who:j,meta:X,children:W("mine")}),b=SM,D="theirs",R=oe==="theirs",e[42]!==o.pointer||e[43]!==c?(O=()=>c(o.pointer,"theirs"),e[42]=o.pointer,e[43]=c,e[44]=O):O=e[44],L=M,e[45]!==u?.name||e[46]!==u?.you||e[47]!==V||e[48]!==h?(U=V?h("sectionsEditor.formConflict.theirVersion"):u?.you?h("sectionsEditor.formConflict.youElsewhere"):u?.name||h("sectionsEditor.formConflict.someoneElse"),e[45]=u?.name,e[46]=u?.you,e[47]=V,e[48]=h,e[49]=U):U=e[49],B=V?h("sectionsEditor.formConflict.alreadySaved"):G?h("sectionsEditor.formConflict.savedAt",{when:fSe(G,v)}):h("sectionsEditor.formConflict.theirVersionSaved"),S=G?Hwe(G,v):void 0,T=W("theirs"),e[0]=m,e[1]=d,e[2]=u,e[3]=a,e[4]=o,e[5]=v,e[6]=c,e[7]=h,e[8]=n?.image,e[9]=n?.name,e[10]=b,e[11]=S,e[12]=T,e[13]=x,e[14]=k,e[15]=C,e[16]=E,e[17]=_,e[18]=D,e[19]=R,e[20]=O,e[21]=L,e[22]=U,e[23]=B}else b=e[10],S=e[11],T=e[12],x=e[13],k=e[14],C=e[15],E=e[16],_=e[17],D=e[18],R=e[19],O=e[20],L=e[21],U=e[22],B=e[23];let z;e[50]!==b||e[51]!==S||e[52]!==T||e[53]!==D||e[54]!==R||e[55]!==O||e[56]!==L||e[57]!==U||e[58]!==B?(z=y.jsx(b,{side:D,checked:R,onChoose:O,avatar:L,who:U,meta:B,metaTitle:S,children:T}),e[50]=b,e[51]=S,e[52]=T,e[53]=D,e[54]=R,e[55]=O,e[56]=L,e[57]=U,e[58]=B,e[59]=z):z=e[59];let F;return e[60]!==x||e[61]!==k||e[62]!==C||e[63]!==E||e[64]!==_||e[65]!==z?(F=y.jsxs("div",{role:x,"aria-label":k,className:C,onKeyDown:E,children:[_,z]}),e[60]=x,e[61]=k,e[62]=C,e[63]=E,e[64]=_,e[65]=z,e[66]=F):F=e[66],F}const Hwe=(t,e)=>t.toLocaleString(e,{dateStyle:"medium",timeStyle:"short"});function SM(t){const e=ye.c(28),{side:o,checked:a,onChoose:n,avatar:r,who:i,meta:c,metaTitle:d,children:u}=t,m=A.useId(),h=`${m}-who`,f=`${m}-meta ${m}-value`,v=a?0:-1,b=a?"border-primary bg-primary/5 ring-1 ring-primary":"hover:bg-accent";let S;e[0]!==b?(S=Je("grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)] items-start gap-3 rounded-xl border bg-background p-3 text-left transition-[border-color,box-shadow,background-color] focus-ring",b),e[0]=b,e[1]=S):S=e[1];const T=`${m}-who`;let x;e[2]!==T||e[3]!==i?(x=y.jsx("span",{id:T,className:"text-sm font-medium text-foreground",children:i}),e[2]=T,e[3]=i,e[4]=x):x=e[4];const k=`${m}-meta`;let C;e[5]!==c||e[6]!==d||e[7]!==k?(C=y.jsx("span",{id:k,title:d,children:c}),e[5]=c,e[6]=d,e[7]=k,e[8]=C):C=e[8];let E;e[9]!==x||e[10]!==C?(E=y.jsxs("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-xs text-muted-foreground",children:[x,C]}),e[9]=x,e[10]=C,e[11]=E):E=e[11];const _=`${m}-value`,D=`conflict-${o}`;let R;e[12]!==u||e[13]!==_||e[14]!==D?(R=y.jsx("span",{id:_,"data-testid":D,className:"min-w-0 text-sm",children:u}),e[12]=u,e[13]=_,e[14]=D,e[15]=R):R=e[15];let O;e[16]!==E||e[17]!==R?(O=y.jsxs("span",{className:"flex min-w-0 flex-col gap-1",children:[E,R]}),e[16]=E,e[17]=R,e[18]=O):O=e[18];let L;return e[19]!==r||e[20]!==a||e[21]!==n||e[22]!==h||e[23]!==O||e[24]!==f||e[25]!==v||e[26]!==S?(L=y.jsxs("button",{type:"button",role:"radio","aria-checked":a,"aria-labelledby":h,"aria-describedby":f,tabIndex:v,onClick:n,className:S,children:[r,O]}),e[19]=r,e[20]=a,e[21]=n,e[22]=h,e[23]=O,e[24]=f,e[25]=v,e[26]=S,e[27]=L):L=e[27],L}function Gwe(t){const e=ye.c(4),{parts:o}=t;let a;e[0]!==o?(a=o.map(Wwe),e[0]=o,e[1]=a):a=e[1];let n;return e[2]!==a?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:a}),e[2]=a,e[3]=n):n=e[3],n}function Wwe(t,e){return t.kind==="changed"?y.jsx("mark",{className:"rounded-sm bg-warning/20 px-0.5 text-foreground",children:t.text},e):y.jsx("span",{children:t.text},e)}function Kwe(t){const e=ye.c(29),{preview:o}=t,a=Ua();switch(o.kind){case"empty":{let n;e[0]!==a?(n=a("sectionsEditor.formConflict.empty"),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==n?(r=y.jsx("span",{className:"italic text-muted-foreground",children:n}),e[2]=n,e[3]=r):r=e[3],r}case"text":{let n;return e[4]!==o.text?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:o.text}),e[4]=o.text,e[5]=n):n=e[5],n}case"image":{let n;return e[6]!==o.src?(n=y.jsx("img",{src:o.src,alt:"",className:"max-h-24 max-w-full rounded border object-contain"}),e[6]=o.src,e[7]=n):n=e[7],n}case"yesNo":{const n=o.value?"sectionsEditor.formConflict.yes":"sectionsEditor.formConflict.no";let r;e[8]!==a||e[9]!==n?(r=a(n),e[8]=a,e[9]=n,e[10]=r):r=e[10];let i;return e[11]!==r?(i=y.jsx("span",{children:r}),e[11]=r,e[12]=i):i=e[12],i}case"list":{const n=o.count===1?"sectionsEditor.formConflict.oneItem":"sectionsEditor.formConflict.items",r=String(o.count);let i;e[13]!==a||e[14]!==n||e[15]!==r?(i=a(n,{count:r}),e[13]=a,e[14]=n,e[15]=r,e[16]=i):i=e[16];let c;e[17]!==i?(c=y.jsx("span",{className:"text-muted-foreground",children:i}),e[17]=i,e[18]=c):c=e[18];let d;e[19]!==o.count||e[20]!==o.items?(d=o.items.some(Boolean)&&y.jsxs("span",{className:"flex flex-col",children:[o.items.map(Zwe),o.count>o.items.length&&y.jsx("span",{children:"…"})]}),e[19]=o.count,e[20]=o.items,e[21]=d):d=e[21];let u;return e[22]!==c||e[23]!==d?(u=y.jsxs("span",{className:"flex flex-col gap-1",children:[c,d]}),e[22]=c,e[23]=d,e[24]=u):u=e[24],u}case"fields":{let n;e[25]!==o.entries?(n=o.entries.map(Ywe),e[25]=o.entries,e[26]=n):n=e[26];let r;return e[27]!==n?(r=y.jsx("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-2 gap-y-0.5",children:n}),e[27]=n,e[28]=r):r=e[28],r}}}function Ywe(t){return y.jsxs("div",{className:"contents",children:[y.jsx("dt",{className:"text-muted-foreground",children:t.label}),y.jsx("dd",{className:"truncate",children:t.text})]},t.label)}function Zwe(t,e){return y.jsx("span",{className:"truncate",children:`${e+1}. ${t||"…"}`},e)}let nm=[],dd=[],Zz=0;const rk=new Set;function jv(){for(const t of rk)t()}function Qwe(t){return rk.add(t),()=>{rk.delete(t)}}function oEe(){return dd.length>0}function Qz(t){nm=[...nm,t],jv()}function Jz(t){nm=nm.filter(e=>e.id!==t),jv()}function aEe(t,e,o){return new Promise(a=>{const n=++Zz;Qz({id:n,kind:"values",plan:t,fields:e,about:o,answer:r=>{Jz(n),a(r)}})})}function nEe(t){return new Promise(e=>{const o=++Zz;Qz({id:o,kind:"deleted",conflict:t,answer:a=>{Jz(o),e(a)}})})}function Jwe(){const t=ye.c(9),[e]=A.useState(exe);let o,a;t[0]!==e?(o=()=>(dd=[...dd,e],jv(),()=>{dd=dd.filter(c=>c!==e),jv()}),a=[e],t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]),A.useEffect(o,a);let n;t[3]!==e?(n=()=>dd[0]===e?nm[0]??null:null,t[3]=e,t[4]=n):n=t[4];const r=A.useSyncExternalStore(Qwe,n,Xwe);if(!r)return null;if(r.kind==="deleted"){let c;return t[5]!==r?(c=y.jsx(txe,{question:r},r.id),t[5]=r,t[6]=c):c=t[6],c}let i;return t[7]!==r?(i=y.jsx(axe,{question:r},r.id),t[7]=r,t[8]=i):i=t[8],i}function Xwe(){return null}function exe(){return Symbol("named-rule-conflict-host")}function txe(t){const e=ye.c(36),{question:o}=t,a=Ua(),{kind:n,label:r}=o.conflict,i=n==="theyDeleted";let c;e[0]!==r||e[1]!==a||e[2]!==i?(c=i?a("sectionsEditor.deletedConflict.theyDeletedTitle",{name:r}):a("sectionsEditor.deletedConflict.youDeletedTitle",{name:r}),e[0]=r,e[1]=a,e[2]=i,e[3]=c):c=e[3];let d;e[4]!==c?(d=y.jsx(hz,{children:c}),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==a||e[7]!==i?(u=a(i?"sectionsEditor.deletedConflict.theyDeletedDescription":"sectionsEditor.deletedConflict.youDeletedDescription"),e[6]=a,e[7]=i,e[8]=u):u=e[8];let m;e[9]!==u?(m=y.jsx(gz,{children:u}),e[9]=u,e[10]=m):m=e[10];let h;e[11]!==d||e[12]!==m?(h=y.jsxs(mz,{className:"text-left",children:[d,m]}),e[11]=d,e[12]=m,e[13]=h):h=e[13];let f;e[14]!==o?(f=()=>o.answer("theirs"),e[14]=o,e[15]=f):f=e[15];let v;e[16]!==a||e[17]!==i?(v=a(i?"sectionsEditor.deletedConflict.leaveDeleted":"sectionsEditor.deletedConflict.keepTheirs"),e[16]=a,e[17]=i,e[18]=v):v=e[18];let b;e[19]!==f||e[20]!==v?(b=y.jsx(bn,{variant:"outline",onClick:f,children:v}),e[19]=f,e[20]=v,e[21]=b):b=e[21];let S;e[22]!==o?(S=()=>o.answer("mine"),e[22]=o,e[23]=S):S=e[23];let T;e[24]!==a||e[25]!==i?(T=a(i?"sectionsEditor.deletedConflict.keepMine":"sectionsEditor.deletedConflict.deleteAnyway"),e[24]=a,e[25]=i,e[26]=T):T=e[26];let x;e[27]!==T||e[28]!==S?(x=y.jsx(bn,{autoFocus:!0,onClick:S,children:T}),e[27]=T,e[28]=S,e[29]=x):x=e[29];let k;e[30]!==x||e[31]!==b?(k=y.jsxs(Z0,{children:[b,x]}),e[30]=x,e[31]=b,e[32]=k):k=e[32];let C;return e[33]!==k||e[34]!==h?(C=y.jsx(uz,{open:!0,children:y.jsxs(pz,{className:"sm:max-w-md","data-testid":"deleted-conflict-dialog",onEscapeKeyDown:oxe,children:[h,k]})}),e[33]=k,e[34]=h,e[35]=C):C=e[35],C}function oxe(t){return t.preventDefault()}function axe(t){const e=ye.c(16),{question:o}=t;let a;e[0]!==o.plan?(a=()=>Kz(o.plan),e[0]=o.plan,e[1]=a):a=e[1];const[n,r]=A.useState(a),i=o.about?.author??null;let c;e[2]!==i||e[3]!==o.plan.theirs?(c=i?.keyed?eSe(o.plan.theirs,i.blockKey):kC(la(o.plan.theirs)),e[2]=i,e[3]=o.plan.theirs,e[4]=c):c=e[4];const d=tSe(i?.draft??null,i?.blockKey??null,c),u=d??null,m=d===void 0,h=o.about?.block;let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=(S,T)=>r(x=>({...x,[S]:T})),e[5]=f):f=e[5];let v;e[6]!==n||e[7]!==o?(v=()=>o.answer(n),e[6]=n,e[7]=o,e[8]=v):v=e[8];let b;return e[9]!==n||e[10]!==o.fields||e[11]!==u||e[12]!==m||e[13]!==h||e[14]!==v?(b=y.jsx(Owe,{open:!0,fields:o.fields,author:u,authorPending:m,waitForAuthor:!0,block:h,choices:n,onChoose:f,onApply:v}),e[9]=n,e[10]=o.fields,e[11]=u,e[12]=m,e[13]=h,e[14]=v,e[15]=b):b=e[15],b}function nxe({children:t}){const e=Ua();return Xf.feature=e("settings.paywall.serverRefusedFeature"),Xf.budget=e("settings.paywall.serverRefusedBudget"),CZ({itemCreatedSuccessfully:e("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:e("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:e("collections.mutations.itemDeletedSuccessfully"),createItemFailed:e("collections.mutations.createItemFailed"),updateItemFailed:e("collections.mutations.updateItemFailed"),deleteItemFailed:e("collections.mutations.deleteItemFailed")}),y.jsx(y.Fragment,{children:t})}function rxe(t){const e=ye.c(8),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(EZ,{}),e[0]=a):a=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=y.jsx(cye,{}),e[1]=n):n=e[1];let r;e[2]!==o?(r=y.jsx(iye,{children:o}),e[2]=o,e[3]=r):r=e[3];let i,c;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(Eye,{}),c=y.jsx(Jwe,{}),e[4]=i,e[5]=c):(i=e[4],c=e[5]);let d;return e[6]!==r?(d=y.jsxs(HV,{client:Yl,children:[a,y.jsx(A.Suspense,{fallback:n,children:y.jsx(pye,{children:y.jsx(_J,{children:y.jsx(Ybe,{children:y.jsx(nye,{children:y.jsxs(nxe,{children:[r,i,c]})})})})})})]}),e[6]=r,e[7]=d):d=e[7],d}const sxe=[["mesh:","studio:"],["mesh-","studio-"]];function ixe(t){const e=Array.from({length:t.length},(o,a)=>t.key(a)).filter(o=>o!==null);for(const o of e){const a=sxe.find(([d])=>o.startsWith(d));if(!a)continue;const[n,r]=a,i=`${r}${o.slice(n.length)}`;if(t.getItem(i)!==null)continue;const c=t.getItem(o);c!==null&&t.setItem(i,c)}}const wM="from",xM="legacy-admin";function lxe(t){const e=new URLSearchParams(t);if(e.get(wM)===xM)return!0;const o=e.get("next");if(!o?.startsWith("/"))return!1;const a=o.indexOf("?");return a!==-1&&new URLSearchParams(o.slice(a)).get(wM)===xM}function cxe(t,e){if(lxe(t))try{(e??sessionStorage).setItem(Or.legacyAdminArrival(),"1")}catch{}}function rEe(t){try{return(t??sessionStorage).getItem(Or.legacyAdminArrival())==="1"}catch{return!1}}function sEe(t){try{(t??sessionStorage).removeItem(Or.legacyAdminArrival())}catch{}}ixe(window.localStorage);cxe(window.location.search);const dxe=document.getElementById("root");yU.createRoot(dxe).render(y.jsx(A.StrictMode,{children:y.jsx(rxe,{children:y.jsx(pV,{router:Pb})})}));export{Ze as $,k0e as A,bn as B,r3 as C,mye as D,P4 as E,Gj as F,$Te as G,vTe as H,xye as I,Xk as J,ca as K,Wl as L,bTe as M,pxe as N,fk as O,pn as P,yxe as Q,gde as R,E0e as S,qxe as T,Hxe as U,Wi as V,jxe as W,Eie as X,Pie as Y,Cie as Z,kie as _,ga as a,gk as a$,Zxe as a0,qs as a1,mxe as a2,fTe as a3,Yi as a4,EE as a5,Hi as a6,Xj as a7,a3 as a8,lbe as a9,QTe as aA,hxe as aB,Jn as aC,ts as aD,es as aE,we as aF,$ as aG,hz as aH,gz as aI,mz as aJ,L0e as aK,Z0 as aL,pz as aM,uz as aN,gye as aO,hye as aP,cC as aQ,xTe as aR,Vxe as aS,Sye as aT,Hj as aU,c0e as aV,h0e as aW,g0e as aX,u0e as aY,Zd as aZ,nke as a_,EJ as aa,X0e as ab,St as ac,a0e as ad,Ct as ae,e3 as af,$E as ag,o3 as ah,zde as ai,M4 as aj,Wk as ak,rJ as al,Zj as am,OTe as an,NTe as ao,DTe as ap,XTe as aq,cee as ar,CE as as,Or as at,RTe as au,O4 as av,Pde as aw,n3 as ax,Jj as ay,JTe as az,Ua as b,gm as b$,s0e as b0,Ul as b1,s3 as b2,t3 as b3,Fe as b4,I0e as b5,aE as b6,y0e as b7,vue as b8,f0e as b9,Gz as bA,rEe as bB,sEe as bC,T0e as bD,GQ as bE,hT as bF,fT as bG,gT as bH,PT as bI,Oa as bJ,ST as bK,QQ as bL,rTe as bM,QW as bN,nTe as bO,lTe as bP,aTe as bQ,iTe as bR,cTe as bS,sTe as bT,N0e as bU,O0e as bV,D0e as bW,ib as bX,Zl as bY,sge as bZ,sF as b_,_ie as ba,b0e as bb,v0e as bc,G0e as bd,S0e as be,w0e as bf,Mt as bg,Iz as bh,xSe as bi,_C as bj,yn as bk,swe as bl,ske as bm,KL as bn,YSe as bo,q0e as bp,XSe as bq,_Te as br,ATe as bs,PTe as bt,je as bu,Wj as bv,Ike as bw,Ei as bx,Dke as by,qz as bz,ye as c,_xe as c$,LF as c0,Fi as c1,$o as c2,sre as c3,Do as c4,mt as c5,Er as c6,gE as c7,sm as c8,PF as c9,r0e as cA,_a as cB,Nde as cC,Qk as cD,A4 as cE,vSe as cF,Jxe as cG,d0e as cH,U4 as cI,p0e as cJ,Kxe as cK,n0e as cL,S7 as cM,_L as cN,OL as cO,DL as cP,IL as cQ,eb as cR,qp as cS,BL as cT,FL as cU,zL as cV,Dxe as cW,Oxe as cX,Axe as cY,Rxe as cZ,JW as c_,rF as ca,Age as cb,Cr as cc,VF as cd,cF as ce,fE as cf,rE as cg,nE as ch,Ji as ci,$p as cj,ire as ck,lre as cl,EF as cm,Vt as cn,Wt as co,cde as cp,Ode as cq,o0e as cr,ake as cs,gxe as ct,nue as cu,Jk as cv,P0e as cw,HTe as cx,VTe as cy,qde as cz,$v as d,Tae as d$,NL as d0,LL as d1,jL as d2,Ixe as d3,ML as d4,Gl as d5,qQ as d6,oTe as d7,GL as d8,ZK as d9,lo as dA,So as dB,SW as dC,EW as dD,Pa as dE,Qe as dF,Cxe as dG,Ak as dH,WW as dI,Wxe as dJ,Kj as dK,Yj as dL,Qj as dM,aJ as dN,AZ as dO,eTe as dP,DZ as dQ,Xxe as dR,tTe as dS,vB as dT,Em as dU,rC as dV,iC as dW,lC as dX,hm as dY,kO as dZ,js as d_,$K as da,EK as db,uK as dc,Pxe as dd,PL as de,MY as df,UK as dg,IK as dh,yK as di,wK as dj,kK as dk,WK as dl,Lxe as dm,CY as dn,AY as dp,lY as dq,dY as dr,cY as ds,Mxe as dt,Nxe as du,Bxe as dv,GG as dw,wxe as dx,Jr as dy,Ao as dz,vf as e,Wse as e$,pI as e0,nI as e1,vxe as e2,fxe as e3,Ahe as e4,Phe as e5,_he as e6,m5 as e7,QV as e8,ar as e9,Fke as eA,zke as eB,$0e as eC,awe as eD,gTe as eE,dC as eF,uC as eG,km as eH,ec as eI,kxe as eJ,bz as eK,PC as eL,FSe as eM,z0e as eN,Wye as eO,Qye as eP,fSe as eQ,ee as eR,$se as eS,XF as eT,Fse as eU,zse as eV,qse as eW,Use as eX,Vse as eY,Hse as eZ,Gse as e_,Gd as ea,ea as eb,jf as ec,ZM as ed,GV as ee,WV as ef,JV as eg,KV as eh,YV as ei,na as ej,e7 as ek,vR as el,ZV as em,M0e as en,HL as eo,Vde as ep,I4 as eq,wTe as er,Sk as es,QSe as et,rwe as eu,nwe as ev,jl as ew,sJ as ex,Fxe as ey,Lke as ez,rm as f,FF as f$,Kse as f0,Yse as f1,Qse as f2,Jse as f3,jse as f4,Bse as f5,Zse as f6,Rke as f7,Cz as f8,Vl as f9,LSe as fA,eE as fB,RSe as fC,Ake as fD,_ke as fE,jke as fF,twe as fG,ok as fH,Bke as fI,la as fJ,Q0 as fK,qke as fL,oEe as fM,nEe as fN,pwe as fO,aEe as fP,tEe as fQ,mwe as fR,rke as fS,j0e as fT,Vve as fU,fM as fV,iwe as fW,Z5 as fX,J5 as fY,kre as fZ,Tre as f_,USe as fa,Fz as fb,Ib as fc,ESe as fd,dke as fe,Bz as ff,EC as fg,uke as fh,zSe as fi,Ha as fj,kSe as fk,Cke as fl,kke as fm,gM as fn,Eke as fo,Az as fp,wSe as fq,Oke as fr,Pke as fs,lke as ft,TSe as fu,Kye as fv,F0e as fw,B0e as fx,cke as fy,BSe as fz,C0e as g,uue as g$,cge as g0,L$ as g1,GM as g2,oke as g3,B4 as g4,uxe as g5,eke as g6,tke as g7,hL as g8,Yxe as g9,zne as gA,Hne as gB,Kne as gC,Gne as gD,yde as gE,mTe as gF,pTe as gG,xxe as gH,jK as gI,zK as gJ,qk as gK,Xv as gL,AL as gM,eY as gN,YK as gO,bK as gP,SK as gQ,TK as gR,MK as gS,GTe as gT,HY as gU,uM as gV,pSe as gW,gSe as gX,Z0e as gY,Y0e as gZ,zxe as g_,JL as ga,L4 as gb,STe as gc,Che as gd,sb as ge,WTe as gf,KTe as gg,Vi as gh,sk as gi,tJ as gj,ZL as gk,lB as gl,Qxe as gm,zO as gn,$ne as go,Ar as gp,Vp as gq,uE as gr,Fd as gs,$i as gt,Fs as gu,Rr as gv,gF as gw,Mne as gx,Lne as gy,Nne as gz,aae as h,QB as h$,mue as h0,m0e as h1,due as h2,Uxe as h3,i0e as h4,q4 as h5,Hde as h6,$de as h7,Ude as h8,_f as h9,x0e as hA,OZ as hB,A0e as hC,J0e as hD,Xa as hE,Ni as hF,V0e as hG,ike as hH,Wde as hI,_0 as hJ,TTe as hK,xL as hL,yTe as hM,Mke as hN,Sxe as hO,ige as hP,uTe as hQ,xW as hR,_k as hS,pL as hT,Txe as hU,CW as hV,Rk as hW,fL as hX,bL as hY,Exe as hZ,yt as h_,l0e as ha,GY as hb,$xe as hc,U0e as hd,CTe as he,VV as hf,HV as hg,$Y as hh,vz as hi,Ine as hj,VO as hk,Bne as hl,kTe as hm,Fne as hn,ETe as ho,Gxe as hp,Vie as hq,xde as hr,K0e as hs,W0e as ht,dTe as hu,j4 as hv,Zde as hw,xb as hx,YTe as hy,Ehe as hz,Gi as i,hTe as i0,cB as i1,Rde as i2,kde as i3,t0e as i4,e0e as i5,N4 as i6,ZTe as i7,hke as i8,xke as i9,Wz as iA,cwe as iB,Gke as iC,Nke as iD,Kz as iE,Yke as iF,$ke as iG,Kke as iH,Wke as iI,vke as iJ,fwe as iK,Qke as iL,qSe as iM,H0e as ia,eSe as ib,Zke as ic,Uke as id,eEe as ie,AC as ig,$Se as ih,Owe as ii,VSe as ij,Vke as ik,Tke as il,Ske as im,GSe as io,fke as ip,wke as iq,yke as ir,bke as is,mke as it,gke as iu,pke as iv,Xke as iw,Hke as ix,Jke as iy,gwe as iz,y as j,pde as k,vk as l,Je as m,Td as n,Of as o,Q0e as p,Wd as q,A as r,_0e as s,Id as t,hk as u,vye as v,bye as w,yye as x,R0e as y,JSe as z};
|