decocms 4.373.2 → 4.373.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D0XfIdP3.js → AlertCircle-NKpIdBKl.js} +1 -1
- package/dist/client/assets/{AreaChart-BahcMnDC.js → AreaChart-Bm-WOd7b.js} +1 -1
- package/dist/client/assets/{ArrowLeft-COesgQ7q.js → ArrowLeft-BKx_QTJr.js} +1 -1
- package/dist/client/assets/{ArrowRight-CnMpegh6.js → ArrowRight-8mLQGGMI.js} +1 -1
- package/dist/client/assets/{ArrowUp-17ZWJBkC.js → ArrowUp-BgjnqmUz.js} +1 -1
- package/dist/client/assets/{CartesianChart-DqSaDs52.js → CartesianChart-CyfhriNO.js} +1 -1
- package/dist/client/assets/{CheckCircle-GwUJIVVh.js → CheckCircle-DBlA9wkb.js} +1 -1
- package/dist/client/assets/{ChevronUp-CodzCI7T.js → ChevronUp-BAQXOf5D.js} +1 -1
- package/dist/client/assets/{Copy01-CrFZhFXo.js → Copy01-wurPIobv.js} +1 -1
- package/dist/client/assets/{CreditCard01-DDojC3kk.js → CreditCard01-DjPXzBq6.js} +1 -1
- package/dist/client/assets/{DotsVertical-DMzYFBsd.js → DotsVertical-Bx5qjzcz.js} +1 -1
- package/dist/client/assets/{Download01-B93GUT2-.js → Download01-BWFtS53v.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BUk8y7Bj.js → ErrorBarContext-DQtaxwUD.js} +1 -1
- package/dist/client/assets/{Eye-Bxxku7SE.js → Eye-BD0ZbSdl.js} +1 -1
- package/dist/client/assets/{Globe01-DjdW3vEO.js → Globe01-0DpEacUx.js} +1 -1
- package/dist/client/assets/{Globe04-1G-_QSZW.js → Globe04-D59f7pGB.js} +1 -1
- package/dist/client/assets/{Image01-DPvj49a-.js → Image01-BUYhMNkS.js} +1 -1
- package/dist/client/assets/{Key01-O_Ykzy8v.js → Key01-BvLdmCTc.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Cr5_A1QG.js → LayoutLeft-CyJFqp-6.js} +1 -1
- package/dist/client/assets/{Line-aFR7lShe.js → Line-BeN-bY3Y.js} +1 -1
- package/dist/client/assets/{Link01-D8T6mRIR.js → Link01-qIayyFAq.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CWPNoGQ_.js → LinkExternal01-hkxOMKQE.js} +1 -1
- package/dist/client/assets/{Monitor01-CQaKbr3c.js → Monitor01-DyfIXCt5.js} +1 -1
- package/dist/client/assets/{Package-Cd3aVeK8.js → Package-EQg-wMAD.js} +1 -1
- package/dist/client/assets/{Palette-HRmzWYeK.js → Palette-DI15yG1R.js} +1 -1
- package/dist/client/assets/{Play-CaxaoMwA.js → Play-Cg9yqLoQ.js} +1 -1
- package/dist/client/assets/{Plus-BjOenFFb.js → Plus-BKjrQCsd.js} +1 -1
- package/dist/client/assets/{SearchLg-CT-Vntfj.js → SearchLg-RqwylEUM.js} +1 -1
- package/dist/client/assets/{SearchMd-C6gkQ2l2.js → SearchMd-I-u-Ppkp.js} +1 -1
- package/dist/client/assets/{Sector-B-fHBulW.js → Sector-C46Vk0wT.js} +1 -1
- package/dist/client/assets/{Settings02-DH86cX_B.js → Settings02-DJVGKnwW.js} +1 -1
- package/dist/client/assets/{Share07-Bw4Wicv2.js → Share07-adzWfg3s.js} +1 -1
- package/dist/client/assets/{Stars01-B1kYoDFp.js → Stars01-BEbgNJbY.js} +1 -1
- package/dist/client/assets/{Sun-kycCorOO.js → Sun-YVYc7YRc.js} +1 -1
- package/dist/client/assets/{Tool01-iak9ZtFE.js → Tool01-DDTjazFm.js} +1 -1
- package/dist/client/assets/{Tool02-CFu103hl.js → Tool02-BLokvBBs.js} +1 -1
- package/dist/client/assets/{Trash01-CpN6r-a0.js → Trash01-VGFb49EH.js} +1 -1
- package/dist/client/assets/{TrendUp01-DlYmFZ7k.js → TrendUp01-BPu5TWOk.js} +1 -1
- package/dist/client/assets/{Upload01-DkDsqCWe.js → Upload01-Cv7tN2NN.js} +1 -1
- package/dist/client/assets/{User01-CmNzW4kH.js → User01-BI5R-4Xj.js} +1 -1
- package/dist/client/assets/{UserSquare-1_FC93GE.js → UserSquare-C_kKkH0n.js} +1 -1
- package/dist/client/assets/{Users01-CVhfgklM.js → Users01-DVg45Kv0.js} +1 -1
- package/dist/client/assets/{X-DTaqHNcB.js → X-CvjnZl5e.js} +1 -1
- package/dist/client/assets/{XCircle-BR8ZZHlj.js → XCircle-CB3Q-O1t.js} +1 -1
- package/dist/client/assets/{XClose-VLid_ZSM.js → XClose-l9OyLGUl.js} +1 -1
- package/dist/client/assets/{Zap-D3d1wpzw.js → Zap-UqD0_RZa.js} +1 -1
- package/dist/client/assets/{ZoomOut-B3S7N50e.js → ZoomOut-Cq1zMqoM.js} +1 -1
- package/dist/client/assets/{access-gate-DAO7tJ5A.js → access-gate-eZrCTx42.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CaHZ3eeK.js → add-connection-dialog-CCnr4x54.js} +1 -1
- package/dist/client/assets/{agent-analytics-CzbWclRj.js → agent-analytics-BHAmS_Vv.js} +1 -1
- package/dist/client/assets/agent-app-0Lj8xuLI.js +1 -0
- package/dist/client/assets/{agent-assets-Dfpjbzyj.js → agent-assets-Dl566Cx2.js} +1 -1
- package/dist/client/assets/{agent-automation-C8r5_lAR.js → agent-automation-ZRwCzRyz.js} +1 -1
- package/dist/client/assets/{agent-automations-BSaV8k3Y.js → agent-automations-CcGv--oW.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-AkHuiIU0.js → agent-connect-sources-DOCL0L4U.js} +1 -1
- package/dist/client/assets/agent-deck-EC_2q0-4.js +1 -0
- package/dist/client/assets/{agent-e2e-CjCqLXH1.js → agent-e2e-BheTu3sG.js} +1 -1
- package/dist/client/assets/{agent-experiments-4inK9Pvj.js → agent-experiments-DySEMnSa.js} +1 -1
- package/dist/client/assets/agent-file-CDMSSq77.js +1 -0
- package/dist/client/assets/{agent-git-BZmL1C91.js → agent-git-CGVI6Aq_.js} +1 -1
- package/dist/client/assets/{agent-hosting-CP9gImki.js → agent-hosting-CuK5vWln.js} +1 -1
- package/dist/client/assets/{agent-icon-D5Ih-I28.js → agent-icon-Du4foZ5w.js} +1 -1
- package/dist/client/assets/agent-library-file-CVu7KBHy.js +1 -0
- package/dist/client/assets/{agent-monitor-D7bE1AUL.js → agent-monitor-GtldlQaQ.js} +1 -1
- package/dist/client/assets/{agent-overview-C5zU0xJO.js → agent-overview-CV_KF9Yq.js} +1 -1
- package/dist/client/assets/agent-settings-S0BObv95.js +1 -0
- package/dist/client/assets/{agent-site-editor-BRzwUORk.js → agent-site-editor-DwI3mXwZ.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DHn9ldlr.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Da0JfE-w.js → agent-site-editor-content-B-s4vnUX.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-DqMQfEJz.js → agent-site-editor-preview-BUdForMN.js} +3 -3
- package/dist/client/assets/agent-view-CMVA1gTC.js +1 -0
- package/dist/client/assets/{agent-view-guard-CmXIeKCe.js → agent-view-guard-O3WyIY56.js} +1 -1
- package/dist/client/assets/{agents-list-wHHXJTl8.js → agents-list-Bb_RX3Ji.js} +1 -1
- package/dist/client/assets/{ai-providers-COexxMGY.js → ai-providers-DDzOPCjm.js} +1 -1
- package/dist/client/assets/{alert-C_EPjsLF.js → alert-CXDlDd5b.js} +1 -1
- package/dist/client/assets/{alert-dialog-D6rlFoy0.js → alert-dialog-D2J-kRAV.js} +1 -1
- package/dist/client/assets/api-keys-CKnoL6XY.js +1 -0
- package/dist/client/assets/{api-keys-o45lgGkw.js → api-keys-DOy--osE.js} +1 -1
- package/dist/client/assets/app-editor-BHGu8CuE.js +1 -0
- package/dist/client/assets/{asset-utils-BG24FUsq.js → asset-utils-Bl8mgxfa.js} +1 -1
- package/dist/client/assets/{auth-B_QE3yd2.js → auth-DoQ4Nalq.js} +1 -1
- package/dist/client/assets/{auth-catchall-BM8U6OhG.js → auth-catchall-D5w-ZyXF.js} +1 -1
- package/dist/client/assets/{auth-entry-CdieewWf.js → auth-entry-DBl5DaPH.js} +1 -1
- package/dist/client/assets/{auth-split-layout-rKTEf0Lh.js → auth-split-layout-BgPxcBcB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Cm242zr2.js → authenticate-and-persist-oauth-CMWIzBXQ.js} +1 -1
- package/dist/client/assets/{automation-list-row-DDeJYMHS.js → automation-list-row-CdHBSjU2.js} +1 -1
- package/dist/client/assets/{automation-runs-BGXJk3-4.js → automation-runs-DkQGSYfz.js} +1 -1
- package/dist/client/assets/{automations-BhhOtnrs.js → automations-rIGMTqYL.js} +1 -1
- package/dist/client/assets/{autosend-DtYV6o0l.js → autosend-Bln98kNi.js} +1 -1
- package/dist/client/assets/{avatar-Dwn9Bjsb.js → avatar-1Yn634Bu.js} +1 -1
- package/dist/client/assets/{badge-BSirYRuD.js → badge-BMrNoDQF.js} +1 -1
- package/dist/client/assets/{block-document-DjxI0Nln.js → block-document-B0bO5MdC.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BwjlsTrq.js → blocks-preview-workspace-context-okcOywiO.js} +1 -1
- package/dist/client/assets/{breadcrumb-BpbnoaV3.js → breadcrumb-CzmrQK1U.js} +1 -1
- package/dist/client/assets/{buckets-DdptE4Pj.js → buckets-D85bhcTG.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CIkgt5Ml.js → build-improve-prompt-doc-Jx4Nw8lc.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BUvAK76e.js → bulk-category-panel-Cpa3qfBq.js} +1 -1
- package/dist/client/assets/{calendar-Bhg3W8Dv.js → calendar-CDf47KON.js} +1 -1
- package/dist/client/assets/{capability-load-error-l-yxDu1W.js → capability-load-error-CG1OQua7.js} +1 -1
- package/dist/client/assets/category-editor-BzcQSv3B.js +1 -0
- package/dist/client/assets/{chart-B7hxFGKr.js → chart-Bcix-phJ.js} +1 -1
- package/dist/client/assets/{chat-context-CVZ1rNGo.js → chat-context-WkB72QDr.js} +1 -1
- package/dist/client/assets/{chat-draft-UIE-uNFd.js → chat-draft-anvjkrXf.js} +1 -1
- package/dist/client/assets/{checkbox-VSstjUSb.js → checkbox-Yo-_CoUr.js} +1 -1
- package/dist/client/assets/{choose-editor-DD3-fBUp.js → choose-editor-j32E7S6T.js} +1 -1
- package/dist/client/assets/{cli-auth-success-LIJhoLzG.js → cli-auth-success-Bz3RxiUp.js} +1 -1
- package/dist/client/assets/{client-icons-D8SzN11F.js → client-icons-BL2yc5kE.js} +1 -1
- package/dist/client/assets/{collapsible-BX137q_-.js → collapsible-Cz7g8j4s.js} +1 -1
- package/dist/client/assets/{collection-detail-Brbyx-hM.js → collection-detail-ChcpgbQd.js} +1 -1
- package/dist/client/assets/{collection-display-button-LAyYKy93.js → collection-display-button-Cqq95Rk5.js} +1 -1
- package/dist/client/assets/{collection-search-Dvf73igt.js → collection-search-DFM5AYUG.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-_ZnQA9Nx.js → collection-table-wrapper-DxZT2IDQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-BW0egx-_.js → collection-tabs-CU5BwvHd.js} +1 -1
- package/dist/client/assets/{combobox-D6GclaQ-.js → combobox-5QbF4j2b.js} +1 -1
- package/dist/client/assets/{command-Dsz0XoYc.js → command-CY_32gBM.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D7ntAaGF.js → companion-mcps-section-C5Ce-Ae8.js} +1 -1
- package/dist/client/assets/{connect-ChX83wmI.js → connect-VHpAEDVp.js} +1 -1
- package/dist/client/assets/{connect-layout-SP9zSVi3.js → connect-layout-DosY7Ren.js} +1 -1
- package/dist/client/assets/{connection-2MR1zroe.js → connection-BtAmcsWV.js} +1 -1
- package/dist/client/assets/{connection-card-B5yTdNvS.js → connection-card-DNLyrdBM.js} +1 -1
- package/dist/client/assets/{connection-detail-DKOxQWbq.js → connection-detail-ByWc2VaQ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-PrMbwr2L.js → connection-form-helpers-pqXyLS21.js} +1 -1
- package/dist/client/assets/{connections-lQVX-uGO.js → connections-BLrf_knq.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Ccojws8S.js → create-organization-dialog-DqGp97lF.js} +1 -1
- package/dist/client/assets/{decofile-api-DygXY02K.js → decofile-api-C6MVAHgF.js} +1 -1
- package/dist/client/assets/{decopilot-rj_BJ_Z1.js → decopilot-C2LtkKnC.js} +1 -1
- package/dist/client/assets/{dialog-BKhaq-Xf.js → dialog-uPTcsM6n.js} +1 -1
- package/dist/client/assets/{discover-C_imFiZx.js → discover-D15TnXT7.js} +1 -1
- package/dist/client/assets/{domain-settings-CUKpZjNV.js → domain-settings-C4iSYJi_.js} +1 -1
- package/dist/client/assets/{download-app-dialog-wNu8nmu1.js → download-app-dialog-CSAHR0v5.js} +1 -1
- package/dist/client/assets/{drawer-CCmZWflK.js → drawer-CJhbJSjB.js} +1 -1
- package/dist/client/assets/{editor-DMij_Pa1.js → editor-DhWDdB15.js} +1 -1
- package/dist/client/assets/{empty-state-BDpfsfUL.js → empty-state-CvynDoal.js} +1 -1
- package/dist/client/assets/{empty-state-DiRnF-wA.js → empty-state-DATmbbqz.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bdk8iF2q.js → extract-connection-data-C-_k_HrX.js} +1 -1
- package/dist/client/assets/{feature-gate-KPNWzkBp.js → feature-gate-NGY-PlEE.js} +1 -1
- package/dist/client/assets/{feature-paywall-B3_no1lb.js → feature-paywall-C-R3YJVm.js} +1 -1
- package/dist/client/assets/{file-explorer-oIhs2jyB.js → file-explorer-CBVvygyV.js} +1 -1
- package/dist/client/assets/{file-preview-BFDgPeRr.js → file-preview-BQWchARE.js} +1 -1
- package/dist/client/assets/{file-share-button-7xy_ju8b.js → file-share-button-D6ndnz7e.js} +1 -1
- package/dist/client/assets/{file-type-icon-Co9lETmZ.js → file-type-icon-x1wD28_F.js} +1 -1
- package/dist/client/assets/{folder-icon-CPH1Bszw.js → folder-icon-BsGi9z8O.js} +1 -1
- package/dist/client/assets/{form-CxKBX2E3.js → form-CzXfgfFr.js} +1 -1
- package/dist/client/assets/{gateway-client-B8HHtBA6.js → gateway-client-_lcPratN.js} +1 -1
- package/dist/client/assets/{general-BXQ_6idC.js → general-CLxa6dw_.js} +1 -1
- package/dist/client/assets/{github-icon-DSeg1rga.js → github-icon-DD7YJLb0.js} +1 -1
- package/dist/client/assets/{home-FAOklPf6.js → home-Cc_gG_k0.js} +1 -1
- package/dist/client/assets/{hooks-CFjlhRX0.js → hooks-BDNT0Adb.js} +1 -1
- package/dist/client/assets/{hooks-BFlZlUD7.js → hooks-DdW3hvoh.js} +1 -1
- package/dist/client/assets/{icon-button-_3vMPXZp.js → icon-button-B9TVjSua.js} +1 -1
- package/dist/client/assets/{index-B3clFfYi.js → index--5W-89Xn.js} +1 -1
- package/dist/client/assets/{index-Coo4IGyG.js → index-Bb2NSQTG.js} +1 -1
- package/dist/client/assets/{index-BwwpOrcS.js → index-C5oMfVw1.js} +1 -1
- package/dist/client/assets/{index-CV2G6XgT.js → index-CQcZAkPo.js} +1 -1
- package/dist/client/assets/{index-DZmKVVGY.js → index-CdCeTCag.js} +1 -1
- package/dist/client/assets/{index-CC7J7MsT.js → index-DXBmCj7V.js} +2 -2
- package/dist/client/assets/{index-BrLZxE6-.js → index-DlTwltzZ.js} +1 -1
- package/dist/client/assets/{index-DoCuIH7r.js → index-DuEn4YkZ.js} +1 -1
- package/dist/client/assets/{index-Ci8CqfCi.js → index-Dud89Ecl.js} +1 -1
- package/dist/client/assets/{index-zFkCX32V.js → index-Oih4fNwt.js} +1 -1
- package/dist/client/assets/{index-D2HOssRq.js → index-U6uQHeCm.js} +1 -1
- package/dist/client/assets/{index-BcfYNZk_.js → index-VAuix8Ds.js} +1 -1
- package/dist/client/assets/{index-WfTG300W.js → index-VD5I0PAu.js} +1 -1
- package/dist/client/assets/{index-CxsDd08k.js → index-_1eIUhNB.js} +1 -1
- package/dist/client/assets/{index-redirect-BV59ZcWQ.js → index-redirect-BhYkN3DP.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CKT-6XMq.js → infiniteQueryObserver-DhQG5Ba-.js} +1 -1
- package/dist/client/assets/{infra-billing-RcXbwjta.js → infra-billing-CIY_y-NM.js} +1 -1
- package/dist/client/assets/{input-DSV_9cOM.js → input-CA3NO5_t.js} +1 -1
- package/dist/client/assets/{input-QKe7l082.js → input-Cl33QWb6.js} +1 -1
- package/dist/client/assets/{input-X38P96BY.js → input-DJ90IYpm.js} +1 -1
- package/dist/client/assets/{integration-icon-BARnXRTY.js → integration-icon-CAyUCGPQ.js} +1 -1
- package/dist/client/assets/{label-YKssz_GS.js → label-C_cX51We.js} +1 -1
- package/dist/client/assets/{last-preview-page-D5EFEwR4.js → last-preview-page-DolafzDL.js} +1 -1
- package/dist/client/assets/{layout-UcqeKFE9.js → layout-BDvTf5Y1.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BYo-BuCs.js → legacy-agents-deep-CovYAG5o.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-NyVTUirL.js → legacy-main-redirect-DakI8WgO.js} +1 -1
- package/dist/client/assets/{library-FX2TKWir.js → library-CQOC6rOe.js} +1 -1
- package/dist/client/assets/{login-gigmbDXu.js → login-CzeMsg8T.js} +1 -1
- package/dist/client/assets/{markdown-tOSThun8.js → markdown-CqOP0_5N.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-c3JU3ROq.js → mcp-app-renderer-BrIoKm0G.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cr_ZflCp.js → mcp-oauth-ZZeDQKuh.js} +1 -1
- package/dist/client/assets/{members-Cd4baVfz.js → members-8jDg9Gt8.js} +1 -1
- package/dist/client/assets/{message-templates-Pr7m4Pgn.js → message-templates-D5TTMXdz.js} +1 -1
- package/dist/client/assets/{mini-report-page-0G8UQBMn.js → mini-report-page-VIPIzU0p.js} +1 -1
- package/dist/client/assets/{mock-board-Dw3AKqte.js → mock-board-DNOBo32D.js} +3 -3
- package/dist/client/assets/{monaco-editor-BhkNNN8A.js → monaco-editor-D3gyKeW5.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D3wuHD5K.js → monitoring-stats-row-B2mHnjHP.js} +1 -1
- package/dist/client/assets/{multi-select-Bw9uE0vh.js → multi-select-DWjNtzij.js} +1 -1
- package/dist/client/assets/{mustache-BMe4E-3i.js → mustache-ChbLhy-e.js} +1 -1
- package/dist/client/assets/{oauth-callback-Ckn9o5ws.js → oauth-callback-PixJQkgi.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B7dYzzRe.js → oauth-callback-ai-provider-Bo-B7c2F.js} +1 -1
- package/dist/client/assets/{onboarding-BtLLloCy.js → onboarding-Ci-02n6u.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-8yO8-q3h.js → optimistic-project-sidebar-views-DXHATWeY.js} +1 -1
- package/dist/client/assets/{org-file-open-context-k2zY7W2A.js → org-file-open-context-B3uxBbrN.js} +1 -1
- package/dist/client/assets/{organization-choice-oi5kPDHh.js → organization-choice-DTNV4OA3.js} +1 -1
- package/dist/client/assets/{orgs-C8VfgzyW.js → orgs-T1j1ZJVH.js} +1 -1
- package/dist/client/assets/{page-seo-form-D-yemID7.js → page-seo-form-CEP8eX1I.js} +1 -1
- package/dist/client/assets/{pair-CbUh0olY.js → pair-BFIjmC4W.js} +1 -1
- package/dist/client/assets/{plan-ladder-DR8Snnfh.js → plan-ladder-BGfca4Fl.js} +1 -1
- package/dist/client/assets/{popover-tYq49O5I.js → popover-B1-bCr3Y.js} +1 -1
- package/dist/client/assets/{post-calendar-n3g3NXQN.js → post-calendar-BJNEmWBL.js} +1 -1
- package/dist/client/assets/{post-editor-BCki1XwL.js → post-editor-CXDWBybn.js} +1 -1
- package/dist/client/assets/{preview-content-BEe_g5h_.js → preview-content-BJxZz0wL.js} +1 -1
- package/dist/client/assets/{preview-dialog-B88KWjD7.js → preview-dialog-tXexYYvy.js} +1 -1
- package/dist/client/assets/{primitives-DvNXO9ko.js → primitives-CVINQDcd.js} +1 -1
- package/dist/client/assets/{profile-Dn8W-1_J.js → profile-BDVO0CZL.js} +1 -1
- package/dist/client/assets/{project-app-view-CHIgEuQJ.js → project-app-view-D5WewSj0.js} +1 -1
- package/dist/client/assets/{project-feed-BeVLcst-.js → project-feed-BJK1cP5l.js} +1 -1
- package/dist/client/assets/{project-icon-BuTPt9Ec.js → project-icon-I77gr-pK.js} +1 -1
- package/dist/client/assets/project-reports-C-M11Ewx.js +1 -0
- package/dist/client/assets/project-tasks-DTM5l8Na.js +1 -0
- package/dist/client/assets/{prompts-BrLG0HnD.js → prompts-CMF-VFXI.js} +1 -1
- package/dist/client/assets/record-editor-D668-cnv.js +1 -0
- package/dist/client/assets/{redirect-editor-DQh1NXo4.js → redirect-editor-DIpeG6wi.js} +1 -1
- package/dist/client/assets/registry-BL1mut8w.js +2 -0
- package/dist/client/assets/{registry-layout-tLc7-FpU.js → registry-layout-BmUtYGzz.js} +1 -1
- package/dist/client/assets/{reports-Bgxd82xF.js → reports-B5M0xDyn.js} +1 -1
- package/dist/client/assets/reports-DZF0Eu6T.js +1 -0
- package/dist/client/assets/{reports-onboarding-BORIliYh.js → reports-onboarding-pRaIN0gW.js} +1 -1
- package/dist/client/assets/{reports-tab-3yvhtU-e.js → reports-tab-b87PNkNv.js} +2 -2
- package/dist/client/assets/{repositories-DnQQ93Vy.js → repositories-J4P1iWK3.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B1zE1wEx.js → repository-import-picker-CxfUH2IT.js} +1 -1
- package/dist/client/assets/{repository-picker-DMUsWfjy.js → repository-picker-C84r9pEi.js} +1 -1
- package/dist/client/assets/{require-capability-B9l2cjC7.js → require-capability-nXjtpUGm.js} +1 -1
- package/dist/client/assets/{required-auth-layout-qQ6V67AS.js → required-auth-layout-D6L2B3lC.js} +1 -1
- package/dist/client/assets/{reset-password-CzGwWM54.js → reset-password-CnmRONVL.js} +1 -1
- package/dist/client/assets/{resizable-c-JEmBrU.js → resizable-DGvuTNz4.js} +1 -1
- package/dist/client/assets/{review-settings-CBDmCs9f.js → review-settings-0gzJBFQk.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B4QybUls.js → rich-text-link-control-D1jkHV9n.js} +1 -1
- package/dist/client/assets/{roles-9Q5Zr1_l.js → roles-D0xiAKmZ.js} +1 -1
- package/dist/client/assets/{route-D9feMXoH.js → route-BXepAEc1.js} +1 -1
- package/dist/client/assets/{route-Cyp-PzpR.js → route-CRwg4ev7.js} +1 -1
- package/dist/client/assets/{route-DrZOVBG5.js → route-D4AIZCoB.js} +1 -1
- package/dist/client/assets/{route-page-header-BzWw0nja.js → route-page-header-DPnz1U8f.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-nQ69L6jb.js → runnable-block-editor-DPGvOiWb.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DLKr6QBG.js → sandbox-lifecycle-context-BrifGyM7.js} +1 -1
- package/dist/client/assets/{schema-CStbpjQf.js → schema-CQ48zDTU.js} +1 -1
- package/dist/client/assets/{scroll-area-BLDUQh9N.js → scroll-area-SUblEurA.js} +1 -1
- package/dist/client/assets/{search-input-MlNEh696.js → search-input-DN1HxMQM.js} +1 -1
- package/dist/client/assets/{search-toggle-SUy-5Oe0.js → search-toggle-0BP5lkY1.js} +1 -1
- package/dist/client/assets/{secrets-CEw0kB_t.js → secrets-BaKuwycc.js} +1 -1
- package/dist/client/assets/{sections-editor-l8Cc724N.js → sections-editor-AVazcTA0.js} +1 -1
- package/dist/client/assets/{select-C_C7jdl-.js → select-DOrOm388.js} +1 -1
- package/dist/client/assets/{select-model-FW_XGeEU.js → select-model-BYr7h8L7.js} +1 -1
- package/dist/client/assets/{seo-editor-BhZJvD6-.js → seo-editor-Byp247PA.js} +1 -1
- package/dist/client/assets/{separator-D-DaNCb-.js → separator-CId9iV2J.js} +1 -1
- package/dist/client/assets/{settings-tab-DhuuexRq.js → settings-tab-BG8Rq5w6.js} +1 -1
- package/dist/client/assets/{sheet-B5ncClVO.js → sheet-DlPfrw9X.js} +1 -1
- package/dist/client/assets/{shell-layout-p-WJ7uxl.js → shell-layout-BDka9RLc.js} +1 -1
- package/dist/client/assets/{sidebar-BlfpAzXY.js → sidebar-6rO43IUN.js} +1 -1
- package/dist/client/assets/{skill-preview-CeIBKDR2.js → skill-preview-Co5VzFcl.js} +1 -1
- package/dist/client/assets/{skills-Cpf0zAbB.js → skills-BjII2RGG.js} +1 -1
- package/dist/client/assets/{sso-CYe8kGWS.js → sso-DisHvnNZ.js} +1 -1
- package/dist/client/assets/{store-DDl3lPqK.js → store-CFvcGu_A.js} +1 -1
- package/dist/client/assets/store-registry-ap1IeTES.js +2 -0
- package/dist/client/assets/{switch-C_FmZ5Us.js → switch-BV-MyRQN.js} +1 -1
- package/dist/client/assets/{synced-repos-DHbM7OOb.js → synced-repos-DQ8WQsrQ.js} +1 -1
- package/dist/client/assets/{table-mH2G1tkg.js → table-zCmjz1mf.js} +1 -1
- package/dist/client/assets/{tabs-jjUOgDeE.js → tabs-tFCunu6d.js} +1 -1
- package/dist/client/assets/{task-board-BtEMyO1f.js → task-board-D3lC_1Th.js} +1 -1
- package/dist/client/assets/{task-route-BaALoopn.js → task-route-Bcy3o1uq.js} +1 -1
- package/dist/client/assets/{task-status-CCMsckzm.js → task-status-DZ2zcnv8.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CzQSxt8I.js → taskboard-analytics-DN3ZXOV0.js} +1 -1
- package/dist/client/assets/tasks-C6FPIHKX.js +1 -0
- package/dist/client/assets/{tasks-K4e2STZ0.js → tasks-fYEHHw5V.js} +1 -1
- package/dist/client/assets/{textarea-B7wqTmSc.js → textarea-D-6K9r19.js} +1 -1
- package/dist/client/assets/{thread-button-B9U3gqvP.js → thread-button-DD23ms1j.js} +1 -1
- package/dist/client/assets/{thread-intent-DZx7N_NL.js → thread-intent-vrMbWjYP.js} +1 -1
- package/dist/client/assets/{thread-route-B3hhxYHj.js → thread-route-BSTJ2qPY.js} +1 -1
- package/dist/client/assets/{thread-route-DnE31jZ2.js → thread-route-QtII8A2p.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D_py0jIP.js → thread-sheet-body-KQlmfRxf.js} +1 -1
- package/dist/client/assets/{toggle-group-C-J6fFSZ.js → toggle-group-XcXQjaHX.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DQAUOhdv.js → toolbar-icon-button-BIBFTsar.js} +1 -1
- package/dist/client/assets/{tooltip-DSCGYdw1.js → tooltip-rAdo_tRS.js} +1 -1
- package/dist/client/assets/{track-BWEjISsx.js → track-DmnUsSfo.js} +1 -1
- package/dist/client/assets/{types-BQYrCHfb.js → types-CzTQ99AX.js} +1 -1
- package/dist/client/assets/{usage-stats-CH100JwP.js → usage-stats-CYrj10jy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DPIPADTm.js → use-ai-providers-BwceVIHL.js} +1 -1
- package/dist/client/assets/{use-automations-Cm_whz3Q.js → use-automations-LlaDJlNA.js} +1 -1
- package/dist/client/assets/{use-autosave-C09DCahC.js → use-autosave-DVR2xqFT.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D45RJA2C.js → use-connect-companion-C-xpH0dL.js} +1 -1
- package/dist/client/assets/{use-connection-DAR6kA6F.js → use-connection-BN3cT5kd.js} +1 -1
- package/dist/client/assets/{use-copy-CLZ5Gmjm.js → use-copy-Dcx9tDN2.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DlDbTDWh.js → use-create-virtual-mcp-9-NMNx3_.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-4a1GuGUG.js → use-date-fns-locale-CDbheytD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-s6ooboiq.js → use-debounced-autosave-DvQCb6wJ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C7PP6GCc.js → use-debounced-value-CfEN0fzg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C78gqYYg.js → use-deco-credits-6yJRZ2JQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DDN9tgML.js → use-decopilot-events-R9ZDtZrh.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DT4K_5dd.js → use-delete-connection-BodmL1FQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-mukdSbJI.js → use-deployment-admin-C884vS-k.js} +1 -1
- package/dist/client/assets/{use-entitlements-CsT7-WMV.js → use-entitlements-Dx7XqEcC.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BofBOVEy.js → use-fast-preview-draft-url-CAOVYx78.js} +1 -1
- package/dist/client/assets/{use-file-configs-DT6Slpub.js → use-file-configs-BJjPt2Ut.js} +1 -1
- package/dist/client/assets/{use-in-settings-BuwNY17C.js → use-in-settings-Bx-OzfKC.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BEJH1fno.js → use-infinite-scroll-CWWIqkZ2.js} +1 -1
- package/dist/client/assets/{use-join-requests-CRlXrVsN.js → use-join-requests-gm28lnmh.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CHXW72tt.js → use-main-panel-tabs-Dcfn9hBK.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BUHt6LYh.js → use-mcp-auth-status-CwUBv4Hm.js} +1 -1
- package/dist/client/assets/{use-mcp-client-jmamuSRM.js → use-mcp-client-BtmoWWkf.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cb12ACl6.js → use-mcp-prompts-BkeLGKHx.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-U5kwqIN7.js → use-mcp-tools-B84418Zt.js} +1 -1
- package/dist/client/assets/{use-members-CZk_logh.js → use-members-DOLKWeYn.js} +1 -1
- package/dist/client/assets/{use-mobile-X_9uHXB5.js → use-mobile-CRuuooNM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-XZHI0vTx.js → use-navigate-to-agent-DIpRW39A.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BygdFnSn.js → use-open-billing-url-C5SPvsb8.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-6spdYft8.js → use-org-auth-client-TdQ8MWNM.js} +1 -1
- package/dist/client/assets/{use-org-fs-C4AEj3YR.js → use-org-fs-DnKhdb5t.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D5-YS2q1.js → use-org-repo-syncs-DJd41R4N.js} +1 -1
- package/dist/client/assets/{use-org-sso-CbtWg6df.js → use-org-sso-D6hDWGLC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B2NYy6qP.js → use-organization-roles-BXwewduE.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DiOLzOn-.js → use-organization-settings-yjdHHrMs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-YnjVvVnu.js → use-panel-navigate-DEBeb2CL.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-S2GuqygD.js → use-project-native-view-presence-CHdUtv7D.js} +1 -1
- package/dist/client/assets/{use-project-scope-azWGklpf.js → use-project-scope-DHl6lLqa.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dr6Tl0jy.js → use-registry-connections-B13lXSQz.js} +1 -1
- package/dist/client/assets/{use-releases-sRilJRv7.js → use-releases-CASa78Vi.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-b56ze7yP.js → use-reports-diagnostic-jdgV6F3e.js} +1 -1
- package/dist/client/assets/{use-route-default-main-DAXdKSA3.js → use-route-default-main-DSxGO_aw.js} +1 -1
- package/dist/client/assets/{use-secrets-BD25jCAi.js → use-secrets-B-9J9EkQ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CfKeOl7s.js → use-section-preview-base-Di3xgtD1.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D8PgcjtK.js → use-session-runtime-Dc42TY0X.js} +1 -1
- package/dist/client/assets/{use-tags-DMzy8m-k.js → use-tags-CCJJRf2p.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BXM0SDto.js → use-task-board-analytics-CK3_uAaU.js} +1 -1
- package/dist/client/assets/{use-task-metadata-IzJB5PVG.js → use-task-metadata-jNANkRmK.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BhhE_Gkc.js → use-thread-outputs-BoiojEnU.js} +1 -1
- package/dist/client/assets/{use-view-mode-CUHkIbeG.js → use-view-mode-D8IEchi6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bt7oX0ej.js → use-virtual-mcp-2UFz9K4W.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bvk6obSJ.js +1 -0
- package/dist/client/assets/{useQueries-D7ondynP.js → useQueries-thkmee8L.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-7JvmV8My.js +1 -0
- package/dist/client/assets/{users-CP4Dfulp.js → users-BGtd_KGY.js} +1 -1
- package/dist/client/assets/{utils-CcX7wgow.js → utils-1s66UjII.js} +1 -1
- package/dist/client/assets/{variant-calendar-BYxVe-PM.js → variant-calendar-Dg9C2UkW.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CgX58Kkx.js → variant-matcher-override-DquKUvoE.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CRnJAx40.js → view-mode-toggle-CJQ43vUA.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BWl8nlWy.js → virtual-mcp-Be7V69gW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +597 -597
- package/dist/server/server.js +392 -392
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DqzssWfL.js +0 -1
- package/dist/client/assets/agent-deck-BQOqb5JA.js +0 -1
- package/dist/client/assets/agent-file-CN4CJx4b.js +0 -1
- package/dist/client/assets/agent-library-file-CMtJlgeS.js +0 -1
- package/dist/client/assets/agent-settings-G7qQl7Yj.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +0 -2
- package/dist/client/assets/agent-view-BinIwia6.js +0 -1
- package/dist/client/assets/api-keys-CN-jy2XH.js +0 -1
- package/dist/client/assets/app-editor-BPKOcfIg.js +0 -1
- package/dist/client/assets/category-editor-Crlp5xLx.js +0 -1
- package/dist/client/assets/project-reports-EFWj1j4Z.js +0 -1
- package/dist/client/assets/project-tasks-DGYfz1Ev.js +0 -1
- package/dist/client/assets/record-editor-AST5wQoO.js +0 -1
- package/dist/client/assets/registry-FGkay0Wa.js +0 -2
- package/dist/client/assets/reports-CqtPOzss.js +0 -1
- package/dist/client/assets/store-registry-DUH5xq3l.js +0 -2
- package/dist/client/assets/tasks-CI20rxb_.js +0 -1
- package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,bo as o}from"./index-
|
|
1
|
+
import{r as i,j as t,bo as o}from"./index-DXBmCj7V.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as fo,r as F,b as cc,aq as Hf,j as R,h as Vf,B as cl,ap as ul,ao as jf,ar as Wf,e5 as uc,e6 as Kf,aO as Uf,e7 as Kt,e8 as _f,l as dc}from"./index-CC7J7MsT.js";import{d as qf,g as Jf}from"./gateway-client-B8HHtBA6.js";import{d as Gf,c as Yf,e as Xf,b as Qf,D as Zf}from"./dialog-BKhaq-Xf.js";import{a as eh,F as th,b as nh,c as rh,d as ih,f as sh}from"./form-CxKBX2E3.js";import{I as oh}from"./input-DSV_9cOM.js";import{t as dl}from"./utils-CVEq3hMx.js";import{a as lh}from"./org-file-open-context-k2zY7W2A.js";import{T as ah,a as ch,c as uh}from"./tooltip-DSCGYdw1.js";function dh(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?ul().min(1,e):ul();return jf(n)}function fh(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function yx(t){const e=fo.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:s}=t,o=F.useId(),l=cc();let a,c;if(e[0]!==n||e[1]!==l){const ie=dh(n,l("chat.dialogPromptArguments.required"));c=Wf,a=Hf(ie),e[0]=n,e[1]=l,e[2]=a,e[3]=c}else a=e[2],c=e[3];let u;e[4]!==s||e[5]!==n?(u=n?fh(n,s):{},e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;e[7]!==a||e[8]!==u?(d={resolver:a,defaultValues:u,mode:"onChange"},e[7]=a,e[8]=u,e[9]=d):d=e[9];const f=c(d);let h;e[10]!==n?.arguments?(h=n?.arguments??[],e[10]=n?.arguments,e[11]=h):h=e[11];const p=h;let g;e[12]!==f||e[13]!==i||e[14]!==r?(g=async ie=>{await i(ie),r(null),f.reset()},e[12]=f,e[13]=i,e[14]=r,e[15]=g):g=e[15];const m=g;let y;e[16]!==f||e[17]!==r?(y=ie=>{ie||(f.reset(),r(null))},e[16]=f,e[17]=r,e[18]=y):y=e[18];const b=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||qf(n.name,Jf(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let C;e[23]!==S?(C=R.jsx(Gf,{children:R.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=C):C=e[24];let T;e[25]!==n.description?(T=n.description&&R.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=T):T=e[26];let N;e[27]!==T||e[28]!==C?(N=R.jsxs(Yf,{children:[C,T]}),e[27]=T,e[28]=C,e[29]=N):N=e[29];let v;e[30]!==f||e[31]!==m?(v=ie=>{ie.stopPropagation(),f.handleSubmit(m)(ie)},e[30]=f,e[31]=m,e[32]=v):v=e[32];let O;if(e[33]!==p||e[34]!==f.control||e[35]!==f.formState.isSubmitting||e[36]!==l){let ie;e[38]!==f.control||e[39]!==f.formState.isSubmitting||e[40]!==l?(ie=Le=>R.jsx(th,{control:f.control,name:Le.name,render:En=>{const{field:We}=En;return R.jsxs(nh,{children:[R.jsxs(rh,{className:"text-xs",children:[Le.name,Le.required?null:R.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",l("chat.dialogPromptArguments.optional")]})]}),R.jsx(ih,{children:R.jsx(oh,{...We,value:We.value??"",required:Le.required,placeholder:Le.description??"",className:"h-9",disabled:f.formState.isSubmitting})}),R.jsx(sh,{})]})}},Le.name),e[38]=f.control,e[39]=f.formState.isSubmitting,e[40]=l,e[41]=ie):ie=e[41],O=p.map(ie),e[33]=p,e[34]=f.control,e[35]=f.formState.isSubmitting,e[36]=l,e[37]=O}else O=e[37];let P;e[42]!==b?(P=()=>b(!1),e[42]=b,e[43]=P):P=e[43];const _=f.formState.isSubmitting;let ne;e[44]!==l?(ne=l("chat.dialogPromptArguments.cancel"),e[44]=l,e[45]=ne):ne=e[45];let ce;e[46]!==f.formState.isSubmitting||e[47]!==P||e[48]!==ne?(ce=R.jsx(cl,{type:"button",variant:"ghost",onClick:P,disabled:_,children:ne}),e[46]=f.formState.isSubmitting,e[47]=P,e[48]=ne,e[49]=ce):ce=e[49];let H;e[50]!==f.formState.isSubmitting||e[51]!==l?(H=f.formState.isSubmitting?R.jsxs("span",{className:"flex items-center gap-2",children:[R.jsx(Vf,{size:"xs"}),l("chat.dialogPromptArguments.loading")]}):l("chat.dialogPromptArguments.usePrompt"),e[50]=f.formState.isSubmitting,e[51]=l,e[52]=H):H=e[52];let J;e[53]!==f.formState.isSubmitting||e[54]!==o||e[55]!==H?(J=R.jsx(cl,{type:"submit",form:o,disabled:f.formState.isSubmitting,children:H}),e[53]=f.formState.isSubmitting,e[54]=o,e[55]=H,e[56]=J):J=e[56];let V;e[57]!==ce||e[58]!==J?(V=R.jsxs(Xf,{children:[ce,J]}),e[57]=ce,e[58]=J,e[59]=V):V=e[59];let re;e[60]!==o||e[61]!==v||e[62]!==O||e[63]!==V?(re=R.jsxs("form",{id:o,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[O,V]}),e[60]=o,e[61]=v,e[62]=O,e[63]=V,e[64]=re):re=e[64];let Se;e[65]!==f||e[66]!==re?(Se=R.jsx(eh,{...f,children:re}),e[65]=f,e[66]=re,e[67]=Se):Se=e[67];let Pe;e[68]!==N||e[69]!==Se?(Pe=R.jsxs(Qf,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[N,Se]}),e[68]=N,e[69]=Se,e[70]=Pe):Pe=e[70];let ot;return e[71]!==b||e[72]!==Pe?(ot=R.jsx(Zf,{open:!0,onOpenChange:b,children:Pe}),e[71]=b,e[72]=Pe,e[73]=ot):ot=e[73],ot}var fl=Object.defineProperty,hh=(t,e)=>{let n={};for(var r in t)fl(n,r,{get:t[r],enumerable:!0});return fl(n,Symbol.toStringTag,{value:"Module"}),n};function se(t){this.content=t}se.prototype={constructor:se,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new se(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new se(n)},addToStart:function(t,e){return new se([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new se(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new se(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=se.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function fc(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)n++;return a&&a<o.length&&a<l.length&&mc(o.charCodeAt(a-1))&&pc(o.charCodeAt(a))&&n--,n}if(i.content.size||s.content.size){let o=fc(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function hc(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){n-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,n--,r--;return d&&f&&d<c.length&&mc(c.charCodeAt(d-1))&&pc(c.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||l.content.size){let c=hc(o.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}function pc(t){return t>=56320&&t<57344}function mc(t){return t>=55296&&t<56320}class k{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return fc(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return hc(this,e,n,r)}findIndex(e){if(e==0)return xr(0,e);if(e==this.size)return xr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?xr(n+1,s):xr(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const Ji={index:0,offset:0};function xr(t,e){return Ji.index=t,Ji.offset=e,Ji}function Hr(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hr(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hr(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $=class Es{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Es.none;if(e instanceof Es)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};$.none=[];class Qn extends Error{}class M{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=yc(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,n){return new M(gc(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return M.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new M(e,r,i)}}M.empty=new M(k.empty,0,0);function gc(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(gc(s.content,e-i-1,n-i-1)))}function yc(t,e,n,r,i,s){let{index:o,offset:l}=t.findIndex(e),a=t.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=yc(a.content,e-l-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,a);return c&&t.replaceChild(o,a.copy(c))}function ph(t,e,n){if(n.openStart>t.depth)throw new Qn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qn("Inconsistent open depths");return bc(t,e,n,0)}function bc(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=bc(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return zt(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mh(n,t);return zt(s,Sc(t,o,l,e,r))}else return zt(s,Vr(t,e,r))}function kc(t,e){if(!e.type.compatibleContent(t.type))throw new Qn("Cannot join "+e.type.name+" onto "+t.type.name)}function Ts(t,e,n){let r=t.node(n);return kc(r,e.node(n)),r}function $t(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function zn(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&($t(t.nodeAfter,r),s++));for(let l=s;l<o;l++)$t(i.child(l),r);e&&e.depth==n&&e.textOffset&&$t(e.nodeBefore,r)}function zt(t,e){if(!t.type.validContent(e))throw new Qn("Invalid content for node "+t.type.name);return t.copy(e)}function Sc(t,e,n,r,i){let s=t.depth>i&&Ts(t,e,i+1),o=r.depth>i&&Ts(n,r,i+1),l=[];return zn(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(kc(s,o),$t(zt(s,Sc(t,e,n,r,i+1)),l)):(s&&$t(zt(s,Vr(t,e,i+1)),l),zn(e,n,i,l),o&&$t(zt(o,Vr(n,r,i+1)),l)),zn(r,null,i,l),new k(l)}function Vr(t,e,n){let r=[];if(zn(null,t,n,r),t.depth>n){let i=Ts(t,e,n+1);$t(zt(i,Vr(t,e,n+1)),r)}return zn(e,null,n,r),new k(r)}function mh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Zn{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Zn(n,r,s)}static resolveCached(e,n){let r=hl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else hl.set(e,r=new gh);let i=r.elts[r.i]=Zn.resolve(e,n);return r.i=(r.i+1)%yh,i}}class gh{constructor(){this.elts=[],this.i=0}}const yh=12,hl=new WeakMap;class jr{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const bh=Object.create(null);let Bt=class ws{constructor(e,n,r,i=$.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hr(this.attrs,n||e.defaultAttrs||bh)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new ws(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ws(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return M.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new M(c,i.depth-o,s.depth-o)}replace(e,n,r){return ph(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Zn.resolveCached(this,e)}resolveNoCache(e){return Zn.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xc(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=k.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};Bt.prototype.text=void 0;class Wr extends Bt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Wr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Wr(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xc(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kh(e,n);if(r.next==null)return Ut.empty;let i=Cc(r);r.next&&r.err("Unexpected trailing text");let s=wh(Th(i));return vh(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!n||a.validEnd))return k.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
1
|
+
import{c as fo,r as F,b as cc,aq as Hf,j as R,h as Vf,B as cl,ap as ul,ao as jf,ar as Wf,e5 as uc,e6 as Kf,aO as Uf,e7 as Kt,e8 as _f,l as dc}from"./index-DXBmCj7V.js";import{d as qf,g as Jf}from"./gateway-client-_lcPratN.js";import{d as Gf,c as Yf,e as Xf,b as Qf,D as Zf}from"./dialog-uPTcsM6n.js";import{a as eh,F as th,b as nh,c as rh,d as ih,f as sh}from"./form-CzXfgfFr.js";import{I as oh}from"./input-CA3NO5_t.js";import{t as dl}from"./utils-CVEq3hMx.js";import{a as lh}from"./org-file-open-context-B3uxBbrN.js";import{T as ah,a as ch,c as uh}from"./tooltip-rAdo_tRS.js";function dh(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?ul().min(1,e):ul();return jf(n)}function fh(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function yx(t){const e=fo.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:s}=t,o=F.useId(),l=cc();let a,c;if(e[0]!==n||e[1]!==l){const ie=dh(n,l("chat.dialogPromptArguments.required"));c=Wf,a=Hf(ie),e[0]=n,e[1]=l,e[2]=a,e[3]=c}else a=e[2],c=e[3];let u;e[4]!==s||e[5]!==n?(u=n?fh(n,s):{},e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;e[7]!==a||e[8]!==u?(d={resolver:a,defaultValues:u,mode:"onChange"},e[7]=a,e[8]=u,e[9]=d):d=e[9];const f=c(d);let h;e[10]!==n?.arguments?(h=n?.arguments??[],e[10]=n?.arguments,e[11]=h):h=e[11];const p=h;let g;e[12]!==f||e[13]!==i||e[14]!==r?(g=async ie=>{await i(ie),r(null),f.reset()},e[12]=f,e[13]=i,e[14]=r,e[15]=g):g=e[15];const m=g;let y;e[16]!==f||e[17]!==r?(y=ie=>{ie||(f.reset(),r(null))},e[16]=f,e[17]=r,e[18]=y):y=e[18];const b=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||qf(n.name,Jf(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let C;e[23]!==S?(C=R.jsx(Gf,{children:R.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=C):C=e[24];let T;e[25]!==n.description?(T=n.description&&R.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=T):T=e[26];let N;e[27]!==T||e[28]!==C?(N=R.jsxs(Yf,{children:[C,T]}),e[27]=T,e[28]=C,e[29]=N):N=e[29];let v;e[30]!==f||e[31]!==m?(v=ie=>{ie.stopPropagation(),f.handleSubmit(m)(ie)},e[30]=f,e[31]=m,e[32]=v):v=e[32];let O;if(e[33]!==p||e[34]!==f.control||e[35]!==f.formState.isSubmitting||e[36]!==l){let ie;e[38]!==f.control||e[39]!==f.formState.isSubmitting||e[40]!==l?(ie=Le=>R.jsx(th,{control:f.control,name:Le.name,render:En=>{const{field:We}=En;return R.jsxs(nh,{children:[R.jsxs(rh,{className:"text-xs",children:[Le.name,Le.required?null:R.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",l("chat.dialogPromptArguments.optional")]})]}),R.jsx(ih,{children:R.jsx(oh,{...We,value:We.value??"",required:Le.required,placeholder:Le.description??"",className:"h-9",disabled:f.formState.isSubmitting})}),R.jsx(sh,{})]})}},Le.name),e[38]=f.control,e[39]=f.formState.isSubmitting,e[40]=l,e[41]=ie):ie=e[41],O=p.map(ie),e[33]=p,e[34]=f.control,e[35]=f.formState.isSubmitting,e[36]=l,e[37]=O}else O=e[37];let P;e[42]!==b?(P=()=>b(!1),e[42]=b,e[43]=P):P=e[43];const _=f.formState.isSubmitting;let ne;e[44]!==l?(ne=l("chat.dialogPromptArguments.cancel"),e[44]=l,e[45]=ne):ne=e[45];let ce;e[46]!==f.formState.isSubmitting||e[47]!==P||e[48]!==ne?(ce=R.jsx(cl,{type:"button",variant:"ghost",onClick:P,disabled:_,children:ne}),e[46]=f.formState.isSubmitting,e[47]=P,e[48]=ne,e[49]=ce):ce=e[49];let H;e[50]!==f.formState.isSubmitting||e[51]!==l?(H=f.formState.isSubmitting?R.jsxs("span",{className:"flex items-center gap-2",children:[R.jsx(Vf,{size:"xs"}),l("chat.dialogPromptArguments.loading")]}):l("chat.dialogPromptArguments.usePrompt"),e[50]=f.formState.isSubmitting,e[51]=l,e[52]=H):H=e[52];let J;e[53]!==f.formState.isSubmitting||e[54]!==o||e[55]!==H?(J=R.jsx(cl,{type:"submit",form:o,disabled:f.formState.isSubmitting,children:H}),e[53]=f.formState.isSubmitting,e[54]=o,e[55]=H,e[56]=J):J=e[56];let V;e[57]!==ce||e[58]!==J?(V=R.jsxs(Xf,{children:[ce,J]}),e[57]=ce,e[58]=J,e[59]=V):V=e[59];let re;e[60]!==o||e[61]!==v||e[62]!==O||e[63]!==V?(re=R.jsxs("form",{id:o,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[O,V]}),e[60]=o,e[61]=v,e[62]=O,e[63]=V,e[64]=re):re=e[64];let Se;e[65]!==f||e[66]!==re?(Se=R.jsx(eh,{...f,children:re}),e[65]=f,e[66]=re,e[67]=Se):Se=e[67];let Pe;e[68]!==N||e[69]!==Se?(Pe=R.jsxs(Qf,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[N,Se]}),e[68]=N,e[69]=Se,e[70]=Pe):Pe=e[70];let ot;return e[71]!==b||e[72]!==Pe?(ot=R.jsx(Zf,{open:!0,onOpenChange:b,children:Pe}),e[71]=b,e[72]=Pe,e[73]=ot):ot=e[73],ot}var fl=Object.defineProperty,hh=(t,e)=>{let n={};for(var r in t)fl(n,r,{get:t[r],enumerable:!0});return fl(n,Symbol.toStringTag,{value:"Module"}),n};function se(t){this.content=t}se.prototype={constructor:se,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new se(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new se(n)},addToStart:function(t,e){return new se([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new se(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new se(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=se.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function fc(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)n++;return a&&a<o.length&&a<l.length&&mc(o.charCodeAt(a-1))&&pc(o.charCodeAt(a))&&n--,n}if(i.content.size||s.content.size){let o=fc(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function hc(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){n-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,n--,r--;return d&&f&&d<c.length&&mc(c.charCodeAt(d-1))&&pc(c.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||l.content.size){let c=hc(o.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}function pc(t){return t>=56320&&t<57344}function mc(t){return t>=55296&&t<56320}class k{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return fc(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return hc(this,e,n,r)}findIndex(e){if(e==0)return xr(0,e);if(e==this.size)return xr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?xr(n+1,s):xr(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const Ji={index:0,offset:0};function xr(t,e){return Ji.index=t,Ji.offset=e,Ji}function Hr(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hr(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hr(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $=class Es{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Es.none;if(e instanceof Es)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};$.none=[];class Qn extends Error{}class M{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=yc(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,n){return new M(gc(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return M.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new M(e,r,i)}}M.empty=new M(k.empty,0,0);function gc(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(gc(s.content,e-i-1,n-i-1)))}function yc(t,e,n,r,i,s){let{index:o,offset:l}=t.findIndex(e),a=t.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=yc(a.content,e-l-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,a);return c&&t.replaceChild(o,a.copy(c))}function ph(t,e,n){if(n.openStart>t.depth)throw new Qn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qn("Inconsistent open depths");return bc(t,e,n,0)}function bc(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=bc(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return zt(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mh(n,t);return zt(s,Sc(t,o,l,e,r))}else return zt(s,Vr(t,e,r))}function kc(t,e){if(!e.type.compatibleContent(t.type))throw new Qn("Cannot join "+e.type.name+" onto "+t.type.name)}function Ts(t,e,n){let r=t.node(n);return kc(r,e.node(n)),r}function $t(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function zn(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&($t(t.nodeAfter,r),s++));for(let l=s;l<o;l++)$t(i.child(l),r);e&&e.depth==n&&e.textOffset&&$t(e.nodeBefore,r)}function zt(t,e){if(!t.type.validContent(e))throw new Qn("Invalid content for node "+t.type.name);return t.copy(e)}function Sc(t,e,n,r,i){let s=t.depth>i&&Ts(t,e,i+1),o=r.depth>i&&Ts(n,r,i+1),l=[];return zn(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(kc(s,o),$t(zt(s,Sc(t,e,n,r,i+1)),l)):(s&&$t(zt(s,Vr(t,e,i+1)),l),zn(e,n,i,l),o&&$t(zt(o,Vr(n,r,i+1)),l)),zn(r,null,i,l),new k(l)}function Vr(t,e,n){let r=[];if(zn(null,t,n,r),t.depth>n){let i=Ts(t,e,n+1);$t(zt(i,Vr(t,e,n+1)),r)}return zn(e,null,n,r),new k(r)}function mh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Zn{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Zn(n,r,s)}static resolveCached(e,n){let r=hl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else hl.set(e,r=new gh);let i=r.elts[r.i]=Zn.resolve(e,n);return r.i=(r.i+1)%yh,i}}class gh{constructor(){this.elts=[],this.i=0}}const yh=12,hl=new WeakMap;class jr{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const bh=Object.create(null);let Bt=class ws{constructor(e,n,r,i=$.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hr(this.attrs,n||e.defaultAttrs||bh)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new ws(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ws(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return M.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new M(c,i.depth-o,s.depth-o)}replace(e,n,r){return ph(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Zn.resolveCached(this,e)}resolveNoCache(e){return Zn.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xc(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=k.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};Bt.prototype.text=void 0;class Wr extends Bt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Wr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Wr(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xc(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kh(e,n);if(r.next==null)return Ut.empty;let i=Cc(r);r.next&&r.err("Unexpected trailing text");let s=wh(Th(i));return vh(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!n||a.validEnd))return k.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
2
2
|
`)}}Ut.empty=new Ut(!0);class kh{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Cc(t){let e=[];do e.push(Sh(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Sh(t){let e=[];do e.push(xh(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function xh(t){let e=Eh(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Ch(t,e);else break;return e}function pl(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Ch(t,e){let n=pl(t),r=n;return t.eat(",")&&(t.next!="}"?r=pl(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Mh(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let s in n){let o=n[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function Eh(t){if(t.eat("(")){let e=Cc(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Mh(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Th(t){let e=[[]];return i(s(t,0),n()),e;function n(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=s(o.exprs[a],l);if(a==o.exprs.length-1)return c;i(c,l=n())}else if(o.type=="star"){let a=n();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=n();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=n();i(s(o.expr,a),u),a=u}if(o.max==-1)i(s(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=n();r(a,u),i(s(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Mc(t,e){return e-t}function ml(t,e){let n=[];return r(e),n.sort(Mc);function r(i){let s=t[i];if(s.length==1&&!s[0].term)return r(s[0].to);n.push(i);for(let o=0;o<s.length;o++){let{term:l,to:a}=s[o];!l&&n.indexOf(a)==-1&&r(a)}}}function wh(t){let e=Object.create(null);return n(ml(t,0));function n(r){let i=[];r.forEach(o=>{t[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<i.length;u++)i[u][0]==l&&(c=i[u][1]);ml(t,a).forEach(u=>{c||i.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new Ut(r.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(Mc);s.next.push({type:i[o][0],next:e[l.join(",")]||n(l)})}return s}}function vh(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:a,next:c}=i.next[l];o.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Ec(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Tc(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let s=t[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function wc(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in t)t[i].validate&&t[i].validate(e[i])}function vc(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Nh(t,r,e[r]);return n}let gl=class Ac{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=vc(e,r.attrs),this.defaultAttrs=Ec(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ut.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Tc(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Bt(this,this.computeAttrs(e),k.from(n),$.setFrom(r))}createChecked(e=null,n,r){return n=k.from(n),this.checkContent(n),new Bt(this,this.computeAttrs(e),n,$.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=k.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),s=i&&i.fillBefore(k.empty,!0);return s?new Bt(this,e,n.append(s),$.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){wc(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:$.none:e}static compile(e,n){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Ac(s,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Ah(t,e,n){let r=n.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}class Nh{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Ah(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Ri{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=vc(e,i.attrs),this.excluded=null;let s=Ec(this.attrs);this.instance=s?new $(this,s):null}create(e=null){return!e&&this.instance?this.instance:new $(this,Tc(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Ri(s,i++,n,o)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){wc(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Nc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=se.from(e.nodes),n.marks=se.from(e.marks||{}),this.nodes=gl.compile(this.spec.nodes,this),this.marks=Ri.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=Ut.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?yl(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:yl(this,o.split(" "))}this.nodeFromJSON=i=>Bt.fromJSON(this,i),this.markFromJSON=i=>$.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof gl){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Wr(r,r.defaultAttrs,e,$.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function yl(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],s=t.marks[i],o=s;if(s)n.push(s);else for(let l in t.marks){let a=t.marks[l];(i=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function Oh(t){return t.tag!=null}function Dh(t){return t.style!=null}class He{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Oh(i))this.tags.push(i);else if(Dh(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let r=new kl(this,n,!1);return r.addAll(e,$.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new kl(this,n,!0);return r.addAll(e,$.none,n.from,n.to),M.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Ph(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,n,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(o.getAttrs){let a=o.getAttrs(n);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let l=n[o];if((l.priority==null?50:l.priority)<s)break}n.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Sl(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Sl(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new He(e,He.schemaRules(e)))}}const Oc={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Rh={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Dc={ol:!0,ul:!0},er=1,vs=2,Bn=4;function bl(t,e,n){return e!=null?(e?er:0)|(e==="full"?vs:0):t&&t.whitespace=="pre"?er|vs:n&~Bn}class Cr{constructor(e,n,r,i,s,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=$.none,this.match=s||(o&Bn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(k.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&er)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let n=k.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Oc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class kl{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,s,o=bl(null,n.preserveWhitespace,0)|(r?Bn:0);i?s=new Cr(i.type,i.attrs,$.none,!0,n.topMatch||i.type.contentMatch,o):r?s=new Cr(null,null,$.none,!0,null,o):s=new Cr(e.schema.topNodeType,null,$.none,!0,null,o),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,s=i.options&vs?"full":this.localPreserveWS||(i.options&er)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(o.linebreakReplacement.create(),n,!0),l[a]&&this.insertNode(o.text(l[a]),n,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=i.content[i.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;Dc.hasOwnProperty(o)&&this.parser.normalizeLists&&Ih(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Rh.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,u=this.needsBlock;if(Oc.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=a&&a.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(s,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(c=>!a.clearMark(c)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,r,i){let s,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,n.attrs||null,r,n.preserveWhitespace);a&&(s=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,n,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,n);this.findAtPoint(e,s)}findPlace(e,n,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,s=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(n=this.enterInner(s,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=$.none;for(let l of i.concat(e.marks))(s.type?s.type.allowsMarkType(l.type):xl(l.type,e.type))&&(o=l.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,n,r,i){let s=this.findPlace(e.create(n),r,!1);return s&&(s=this.enterInner(e,n,r,!0,i)),s}enterInner(e,n,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=bl(e,s,o.options);o.options&Bn&&o.content.length==0&&(l|=Bn);let a=$.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):xl(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Cr(e,n,a,i,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=er)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function Ih(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Dc.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Ph(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Sl(t){let e={};for(let n in t)e[n]=t[n];return e}function xl(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=l=>{s.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||s.indexOf(u)<0&&o(u))return!0}};if(o(i.contentMatch))return!0}}class nt{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Mr(n).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let l=0,a=0;for(;l<s.length&&a<o.marks.length;){let c=o.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(s[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<s.length;)i=s.pop()[1];for(;a<o.marks.length;){let c=o.marks[a++],u=this.serializeMark(c,o.isInline,n);u&&(s.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){if(e.isText)return Mr(n).createTextNode(e.text);let{dom:r,contentDOM:i}=Lr(Mr(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Lr(Mr(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:Lr(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new nt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Cl(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Cl(e.marks)}}function Cl(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Mr(t){return t.document||window.document}const Ml=new WeakMap;function Lh(t){let e=Ml.get(t);return e===void 0&&Ml.set(t,e=$h(t)),e}function $h(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function Lr(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=Lh(r))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let l,a=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(t.createTextNode(f));else{let{dom:h,contentDOM:p}=Lr(t,f,n,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const Rc=65535,Ic=Math.pow(2,16);function zh(t,e){return t+e*Ic}function El(t){return t&Rc}function Bh(t){return(t-(t&Rc))/Ic}const Pc=1,Lc=2,$r=4,$c=8;class As{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&$c)>0}get deletedBefore(){return(this.delInfo&(Pc|$r))>0}get deletedAfter(){return(this.delInfo&(Lc|$r))>0}get deletedAcross(){return(this.delInfo&$r)>0}}class xe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&xe.empty)return xe.empty}recover(e){let n=0,r=El(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+Bh(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?i:0);if(a>e)break;let c=this.ranges[l+s],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:n:n,h=a+i+(f<0?0:u);if(r)return h;let p=e==(n<0?a:d)?null:zh(l/3,e-a),g=e==a?Lc:e==d?Pc:$r;return(n<0?e!=a:e!=d)&&(g|=$c),new As(h,g,p)}i+=u-c}return r?e+i:new As(e+i,0,null)}touches(e,n){let r=0,i=El(n),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+s],u=a+c;if(e<=u&&l==i*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],l=o-(this.inverted?s:0),a=o+(this.inverted?0:s),c=this.ranges[i+n],u=this.ranges[i+r];e(l,l+c,a,a+u),s+=u-c}}invert(){return new xe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?xe.empty:new xe(e<0?[0,-e,0]:[0,0,e])}}xe.empty=new xe([]);class tr{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new tr(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new tr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],l=o.mapResult(e,n);if(l.recover!=null){let a=this.getMirror(s);if(a!=null&&a>s&&a<this.to){s=a,e=this._maps[a].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new As(e,i,null)}}const Gi=Object.create(null);class fe{getMap(){return xe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Gi[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Gi)throw new RangeError("Duplicate use of step JSON ID "+e);return Gi[e]=n,n.prototype.jsonID=e,n}}class G{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new G(e,null)}static fail(e){return new G(null,e)}static fromReplace(e,n,r,i){try{return G.ok(e.replace(n,r,i))}catch(s){if(s instanceof Qn)return G.fail(s.message);throw s}}}function ho(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let s=t.child(i);s.content.size&&(s=s.copy(ho(s.content,e,s))),s.isInline&&(s=e(s,n,i)),r.push(s)}return k.fromArray(r)}class mt extends fe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new M(ho(n.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return G.fromReplace(e,this.from,this.to,s)}invert(){return new De(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new mt(n.pos,r.pos,this.mark)}merge(e){return e instanceof mt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new mt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mt(n.from,n.to,e.markFromJSON(n.mark))}}fe.jsonID("addMark",mt);class De extends fe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new M(ho(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return G.fromReplace(e,this.from,this.to,r)}invert(){return new mt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new De(n.pos,r.pos,this.mark)}merge(e){return e instanceof De&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new De(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new De(n.from,n.to,e.markFromJSON(n.mark))}}fe.jsonID("removeMark",De);class gt extends fe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return G.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new gt(this.pos,n.marks[i]);return new gt(this.pos,this.mark)}}return new _t(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new gt(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new gt(n.pos,e.markFromJSON(n.mark))}}fe.jsonID("addNodeMark",gt);class _t extends fe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return G.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new gt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new _t(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new _t(n.pos,e.markFromJSON(n.mark))}}fe.jsonID("removeNodeMark",_t);class q extends fe{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Ns(e,this.from,this.to)?G.fail("Structure replace would overwrite content"):G.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new xe([this.from,this.to-this.from,this.slice.size])}invert(e){return new q(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&q.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new q(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof q)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?M.empty:new M(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new q(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?M.empty:new M(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new q(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new q(n.from,n.to,M.fromJSON(e,n.slice),!!n.structure)}}q.MAP_BIAS=1;fe.jsonID("replace",q);class ee extends fe{constructor(e,n,r,i,s,o,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=l}apply(e){if(this.structure&&(Ns(e,this.from,this.gapFrom)||Ns(e,this.gapTo,this.to)))return G.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return G.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?G.fromReplace(e,this.from,this.to,r):G.fail("Content does not fit in gap")}getMap(){return new xe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new ee(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||s>r.pos?null:new ee(n.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ee(n.from,n.to,n.gapFrom,n.gapTo,M.fromJSON(e,n.slice),n.insert,!!n.structure)}}fe.jsonID("replaceAround",ee);function Ns(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Fh(t,e,n,r){let i=[],s=[],o,l;t.doc.nodesBetween(e,n,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,n),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[g])?o.to=h:i.push(o=new De(f,h,d[g])));l&&l.to==f?l.to=h:s.push(l=new mt(f,h,r))}}),i.forEach(a=>t.step(a)),s.forEach(a=>t.step(a))}function Hh(t,e,n,r){let i=[],s=0;t.doc.nodesBetween(e,n,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof Ri){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,n);for(let u=0;u<a.length;u++){let d=a[u],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==s-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=c,f.step=s):i.push({style:d,from:Math.max(l,e),to:c,step:s})}}}),i.forEach(o=>t.step(new De(o.from,o.to,o.style)))}function po(t,e,n,r=n.contentMatch,i=!0){let s=t.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<s.childCount;a++){let c=s.child(a),u=l+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new q(l,u,M.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new De(l,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new M(k.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),o.push(new q(l+f.index,l+f.index+f[0].length,p))}}l=u}if(!r.validEnd){let a=r.fillBefore(k.empty,!0);t.replace(l,l,new M(a,0,0))}for(let a=o.length-1;a>=0;a--)t.step(o[a])}function Vh(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Mn(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,s=0;;--r){let o=t.$from.node(r),l=t.$from.index(r)+i,a=t.$to.indexAfter(r)-s;if(r<t.depth&&o.canReplace(l,a,n))return r;if(r==0||o.type.spec.isolating||!Vh(o,l,a))break;l&&(i=1),a<o.childCount&&(s=1)}return null}function jh(t,e,n){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),l=i.after(s+1),a=o,c=l,u=k.empty,d=0;for(let p=s,g=!1;p>n;p--)g||r.index(p)>0?(g=!0,u=k.from(r.node(p).copy(u)),d++):a--;let f=k.empty,h=0;for(let p=s,g=!1;p>n;p--)g||i.after(p+1)<i.end(p)?(g=!0,f=k.from(i.node(p).copy(f)),h++):c++;t.step(new ee(a,c,o,l,new M(u.append(f),d,h),u.size-d,!0))}function mo(t,e,n=null,r=t){let i=Wh(t,e),s=i&&Kh(r,e);return s?i.map(Tl).concat({type:e,attrs:n}).concat(s.map(Tl)):null}function Tl(t){return{type:t,attrs:null}}function Wh(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return n.canReplaceWith(r,i,o)?s:null}function Kh(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;a&&c<i;c++)a=a.matchType(n.child(c).type);return!a||!a.validEnd?null:o}function Uh(t,e,n){let r=k.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let l=n[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(n[o].type.create(n[o].attrs,r))}let i=e.start,s=e.end;t.step(new ee(i,s,i,s,new M(r,0,0),n.length,!0))}function _h(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(o,l)=>{let a=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,a)&&qh(t.doc,t.mapping.slice(s).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Bc(t,o,l,s),po(t,t.mapping.slice(s).map(l,1),r,void 0,c===null);let u=t.mapping.slice(s),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return t.step(new ee(d,f,d+1,f-1,new M(k.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&zc(t,o,l,s),!1}})}function zc(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let a=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Bc(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+s);t.replaceWith(o,o+1,e.type.schema.text(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,bt as L,bu as q,j as d,es as B,bo as x,bm as E,eq as K,bp as C,er as _,dj as T,bF as w,bE as U,bJ as V}from"./index-
|
|
1
|
+
import{r as s,bt as L,bu as q,j as d,es as B,bo as x,bm as E,eq as K,bp as C,er as _,dj as T,bF as w,bE as U,bJ as V}from"./index-DXBmCj7V.js";var I="Radio",[z,P]=w(I),[H,J]=z(I),k=s.forwardRef((t,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(c,h=>m(h)),u=s.useRef(!1),b=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:a,children:[d.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":j(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,h=>{e||f?.(),b&&(u.current=h.isPropagationStopped(),u.current||h.stopPropagation())})}),b&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,c)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=J(g,o);return d.jsx(T,{present:n||r.checked,children:d.jsx(x.span,{"data-state":j(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:c,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(c);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function j(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[_,P]),A=_(),N=P(),[Q,Z]=Y(y),D=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=A(o),u=L(R),[b,h]=q({prop:r,defaultProp:e??null,onChange:p,caller:y});return d.jsx(Q,{scope:o,name:n,required:a,disabled:l,value:b,onValueChange:h,children:d.jsx(B,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=y;var M="RadioGroupItem",F=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=A(o),f=N(o),R=s.useRef(null),v=E(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=b=>{X.includes(b.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:d.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});F.displayName=M;var $="RadioGroupIndicator",O=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return d.jsx(G,{...e,...n,ref:c})});O.displayName=$;var oe=D,re=F,te=O;export{re as I,oe as R,te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,a0 as j,dN as v,j as p,N as f,aa as d,X as x}from"./index-
|
|
1
|
+
import{c as h,a0 as j,dN as v,j as p,N as f,aa as d,X as x}from"./index-DXBmCj7V.js";import{L as N}from"./legacy-main-redirect-DakI8WgO.js";import"./thread-route-QtII8A2p.js";const E=x("/shell/$org/org-shell/");function O(){const e=h.c(24),{org:r}=j(),a=E.useSearch(),{main:n,virtualmcpid:o}=a;if(n!==void 0){let t;e[0]!==n||e[1]!==r.slug||e[2]!==a||e[3]!==o?(t=v({org:r.slug,agentId:o,main:n,search:a}),e[0]=n,e[1]=r.slug,e[2]=a,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let l;return e[5]!==s?(l=p.jsx(N,{target:s}),e[5]=s,e[6]=l):l=e[6],l}}let u;e[7]!==o?(u=o?.trim()||null,e[7]=o,e[8]=u):u=e[8];const g=u;if(g){let t;e[9]!==r.slug||e[10]!==g?(t={org:r.slug,agentId:g},e[9]=r.slug,e[10]=g,e[11]=t):t=e[11];let s;e[12]!==a?(s={...a,virtualmcpid:void 0},e[12]=a,e[13]=s):s=e[13];let l;return e[14]!==t||e[15]!==s?(l=p.jsx(f,{to:d.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=l):l=e[16],l}let i;e[17]!==r.slug?(i={org:r.slug},e[17]=r.slug,e[18]=i):i=e[18];let c;e[19]!==a?(c={...a,virtualmcpid:void 0},e[19]=a,e[20]=c):c=e[20];let m;return e[21]!==i||e[22]!==c?(m=p.jsx(f,{to:d.home,params:i,search:c,hash:!0,replace:!0}),e[21]=i,e[22]=c,e[23]=m):m=e[23],m}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,f as p,ah as u,j as s,aK as x,N as a}from"./index-
|
|
1
|
+
import{c,f as p,ah as u,j as s,aK as x,N as a}from"./index-DXBmCj7V.js";import{C as j}from"./capability-load-error-CG1OQua7.js";function d(){const t=c.c(21);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:f}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(f){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("registry:manage")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/store",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("monitoring:view")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}if(i("members:manage")){let e;return t[17]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[17]=r,t[18]=e):e=t[18],e}let n;return t[19]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[19]=r,t[20]=n):n=t[20],n}export{d as default};
|
package/dist/client/assets/{infiniteQueryObserver-CKT-6XMq.js → infiniteQueryObserver-DhQG5Ba-.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dp as g,dG as d,dH as v}from"./index-
|
|
1
|
+
import{dp as g,dG as d,dH as v}from"./index-DXBmCj7V.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eM as Ge,co as Gt,r as S,f7 as ie,aO as Yt,c as Q,j as o,fr as Ht,b as Rt,ft as Xt,fu as Jt,fv as $t,eL as K,dW as de,B as Lt,aP as ae}from"./index-CC7J7MsT.js";import{i as Qt}from"./CreditCard01-DDojC3kk.js";import{n as Ct}from"./LinkExternal01-CWPNoGQ_.js";import{B as ne}from"./badge-BSirYRuD.js";import{M as er}from"./multi-select-Bw9uE0vh.js";import{S as tr,d as rr,c as nr,a as ir,b as ar}from"./select-C_C7jdl-.js";import{e as sr,a as or,b as Ye,T as C,d as lr,c as ee}from"./table-mH2G1tkg.js";import{aw as cr,ax as _t,ay as ur,az as fr,aA as dr,aB as mr,aC as gr,aD as yr,P as pr,aE as ue,aF as br,J as D,aG as hr,W as vr,aa as fe,aH as kt,z as G,aI as jr,aJ as xr,j as He,aK as Sr,aL as Or,v as wr,x as Pr,at as Br,Z as Ar,D as se,_ as Tr,r as Dr,ac as Er,aM as Nr,aN as qr,aO as Mr,aP as Ir,aQ as Rr,aR as Lr,aS as _r,aT as kr,aU as Ur,aV as Fr,C as Wr,X as Kr,Y as zr,aW as Vr}from"./CartesianChart-DqSaDs52.js";import{R as Zr,S as Gr}from"./Sector-B-fHBulW.js";import{A as Yr,a as Hr}from"./AreaChart-BahcMnDC.js";import{R as Xr}from"./require-capability-B9l2cjC7.js";import"./checkbox-VSstjUSb.js";import"./ChevronUp-CodzCI7T.js";import"./command-Dsz0XoYc.js";import"./index-BrLZxE6-.js";import"./dialog-BKhaq-Xf.js";import"./X-DTaqHNcB.js";import"./SearchMd-C6gkQ2l2.js";import"./popover-tYq49O5I.js";import"./index-D2HOssRq.js";import"./index-BwwpOrcS.js";import"./access-gate-DAO7tJ5A.js";import"./capability-load-error-l-yxDu1W.js";var me={},ge={},Xe;function Jr(){return Xe||(Xe=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const a=new Map;for(let s=0;s<r.length;s++){const l=r[s],f=n(l,s,r);a.has(f)||a.set(f,l)}return Array.from(a.values())}e.uniqBy=t})(ge)),ge}var ye={},Je;function $r(){return Je||(Je=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...a){return r.apply(this,a.slice(0,n))}}e.ary=t})(ye)),ye}var pe={},$e;function Ut(){return $e||($e=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(pe)),pe}var be={},he={},Qe;function Qr(){return Qe||(Qe=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(he)),he}var Ce;function Cr(){return Ce||(Ce=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cr(),r=Qr();function n(a){return r.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=n})(be)),be}var ve={},je={},et;function en(){return et||(et=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_t();function r(n){return function(a){return t.get(a,n)}}e.property=r})(je)),je}var xe={},Se={},Oe={},we={},tt;function Ft(){return tt||(tt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(we)),we}var rt;function tn(){return rt||(rt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ur(),r=Ft(),n=fr();function a(u,i,d){return typeof d!="function"?a(u,i,()=>{}):s(u,i,function b(m,p,v,c,h,x){const w=d(m,p,v,c,h,x);return w!==void 0?!!w:s(m,p,b,x)},new Map)}function s(u,i,d,b){if(i===u)return!0;switch(typeof i){case"object":return l(u,i,d,b);case"function":return Object.keys(i).length>0?s(u,{...i},d,b):n.isEqualsSameValueZero(u,i);default:return t.isObject(u)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(u,i)}}function l(u,i,d,b){if(i==null)return!0;if(Array.isArray(i))return g(u,i,d,b);if(i instanceof Map)return f(u,i,d,b);if(i instanceof Set)return y(u,i,d,b);const m=Object.keys(i);if(u==null||r.isPrimitive(u))return m.length===0;if(m.length===0)return!0;if(b?.has(i))return b.get(i)===u;b?.set(i,u);try{for(let p=0;p<m.length;p++){const v=m[p];if(!r.isPrimitive(u)&&!(v in u)||i[v]===void 0&&u[v]!==void 0||i[v]===null&&u[v]!==null||!d(u[v],i[v],v,u,i,b))return!1}return!0}finally{b?.delete(i)}}function f(u,i,d,b){if(i.size===0)return!0;if(!(u instanceof Map))return!1;for(const[m,p]of i.entries()){const v=u.get(m);if(d(v,p,m,u,i,b)===!1)return!1}return!0}function g(u,i,d,b){if(i.length===0)return!0;if(!Array.isArray(u))return!1;const m=new Set;for(let p=0;p<i.length;p++){const v=i[p];let c=!1;for(let h=0;h<u.length;h++){if(m.has(h))continue;const x=u[h];let w=!1;if(d(x,v,p,u,i,b)&&(w=!0),w){m.add(h),c=!0;break}}if(!c)return!1}return!0}function y(u,i,d,b){return i.size===0?!0:u instanceof Set?g([...u],[...i],d,b):!1}e.isMatchWith=a,e.isSetMatch=y})(Oe)),Oe}var nt;function Wt(){return nt||(nt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tn();function r(n,a){return t.isMatchWith(n,a,()=>{})}e.isMatch=r})(Se)),Se}var Pe={},Be={},Ae={},it;function rn(){return it||(it=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(Ae)),Ae}var Te={},at;function Ve(){return at||(at=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(Te)),Te}var De={},st;function Kt(){return st||(st=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",s="[object Arguments]",l="[object Symbol]",f="[object Date]",g="[object Map]",y="[object Set]",u="[object Array]",i="[object Function]",d="[object ArrayBuffer]",b="[object Object]",m="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",h="[object Uint16Array]",x="[object Uint32Array]",w="[object BigUint64Array]",O="[object Int8Array]",P="[object Int16Array]",T="[object Int32Array]",A="[object BigInt64Array]",_="[object Float32Array]",U="[object Float64Array]";e.argumentsTag=s,e.arrayBufferTag=d,e.arrayTag=u,e.bigInt64ArrayTag=A,e.bigUint64ArrayTag=w,e.booleanTag=a,e.dataViewTag=p,e.dateTag=f,e.errorTag=m,e.float32ArrayTag=_,e.float64ArrayTag=U,e.functionTag=i,e.int16ArrayTag=P,e.int32ArrayTag=T,e.int8ArrayTag=O,e.mapTag=g,e.numberTag=n,e.objectTag=b,e.regexpTag=t,e.setTag=y,e.stringTag=r,e.symbolTag=l,e.uint16ArrayTag=h,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=c})(De)),De}var Ee={},Ne={},ot;function nn(){return ot||(ot=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof Ge=="object"&&Ge||(function(){return this})()||Function("return this")();e.globalThis=t})(Ne)),Ne}var lt;function an(){return lt||(lt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nn();function r(n){return typeof t.globalThis.Buffer<"u"&&t.globalThis.Buffer.isBuffer(n)}e.isBuffer=r})(Ee)),Ee}var qe={},ct;function sn(){return ct||(ct=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(qe)),qe}var ut;function zt(){return ut||(ut=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rn(),r=Ve(),n=Kt(),a=an(),s=Ft(),l=sn();function f(i,d){return g(i,void 0,i,new Map,d)}function g(i,d,b,m=new Map,p=void 0){const v=p?.(i,d,b,m);if(v!==void 0)return v;if(s.isPrimitive(i))return i;if(m.has(i))return m.get(i);if(Array.isArray(i)){const c=new Array(i.length);m.set(i,c);for(let h=0;h<i.length;h++)c[h]=g(i[h],h,b,m,p);return Object.hasOwn(i,"index")&&(c.index=i.index),Object.hasOwn(i,"input")&&(c.input=i.input),c}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const c=new RegExp(i.source,i.flags);return c.lastIndex=i.lastIndex,c}if(i instanceof Map){const c=new Map;m.set(i,c);for(const[h,x]of i)c.set(h,g(x,h,b,m,p));return c}if(i instanceof Set){const c=new Set;m.set(i,c);for(const h of i)c.add(g(h,void 0,b,m,p));return c}if(a.isBuffer(i))return i.subarray();if(l.isTypedArray(i)){const c=new(Object.getPrototypeOf(i)).constructor(i.length);m.set(i,c);for(let h=0;h<i.length;h++)c[h]=g(i[h],h,b,m,p);return c}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const c=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return m.set(i,c),y(c,i,b,m,p),c}if(typeof File<"u"&&i instanceof File){const c=new File([i],i.name,{type:i.type});return m.set(i,c),y(c,i,b,m,p),c}if(typeof Blob<"u"&&i instanceof Blob){const c=new Blob([i],{type:i.type});return m.set(i,c),y(c,i,b,m,p),c}if(i instanceof Error){const c=structuredClone(i);return m.set(i,c),c.message=i.message,c.name=i.name,c.stack=i.stack,c.cause=i.cause,c.constructor=i.constructor,y(c,i,b,m,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return m.set(i,c),y(c,i,b,m,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return m.set(i,c),y(c,i,b,m,p),c}if(i instanceof String){const c=new String(i.valueOf());return m.set(i,c),y(c,i,b,m,p),c}if(typeof i=="object"&&u(i)){const c=Object.create(Object.getPrototypeOf(i));return m.set(i,c),y(c,i,b,m,p),c}return i}function y(i,d,b=i,m,p){const v=[...Object.keys(d),...t.getSymbols(d)];for(let c=0;c<v.length;c++){const h=v[c],x=Object.getOwnPropertyDescriptor(i,h);(x==null||x.writable)&&(i[h]=g(d[h],h,b,m,p))}}function u(i){switch(r.getTag(i)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=f,e.cloneDeepWithImpl=g,e.copyProperties=y})(Be)),Be}var ft;function on(){return ft||(ft=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zt();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(Pe)),Pe}var dt;function ln(){return dt||(dt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wt(),r=on();function n(a){return a=r.cloneDeep(a),s=>t.isMatch(s,a)}e.matches=n})(xe)),xe}var Me={},Ie={},Re={},mt;function cn(){return mt||(mt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zt(),r=Ve(),n=Kt();function a(s,l){return t.cloneDeepWith(s,(f,g,y,u)=>{const i=l?.(f,g,y,u);if(i!==void 0)return i;if(typeof s=="object"){if(r.getTag(s)===n.objectTag&&typeof s.constructor!="function"){const d={};return u.set(s,d),t.copyProperties(d,s,y,u),d}switch(Object.prototype.toString.call(s)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new s.constructor(s?.valueOf());return t.copyProperties(d,s),d}case n.argumentsTag:{const d={};return t.copyProperties(d,s),d.length=s.length,d[Symbol.iterator]=s[Symbol.iterator],d}default:return}}})}e.cloneDeepWith=a})(Re)),Re}var gt;function un(){return gt||(gt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cn();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(Ie)),Ie}var Le={},_e={},yt;function fn(){return yt||(yt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ve();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(_e)),_e}var pt;function dn(){return pt||(pt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dr(),r=gr(),n=fn(),a=mr();function s(l,f){let g;if(Array.isArray(f)?g=f:typeof f=="string"&&t.isDeepKey(f)&&l?.[f]==null?g=a.toPath(f):g=[f],g.length===0)return!1;let y=l;for(let u=0;u<g.length;u++){const i=g[u];if((y==null||!Object.hasOwn(y,i))&&!((Array.isArray(y)||n.isArguments(y))&&r.isIndex(i)&&i<y.length))return!1;y=y[i]}return!0}e.has=s})(Le)),Le}var bt;function mn(){return bt||(bt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wt(),r=yr(),n=un(),a=_t(),s=dn();function l(f,g){switch(typeof f){case"object":{Object.is(f?.valueOf(),-0)&&(f="-0");break}case"number":{f=r.toKey(f);break}}return g=n.cloneDeep(g),function(y){const u=a.get(y,f);return u===void 0?s.has(y,f):g===void 0?u===void 0:t.isMatch(u,g)}}e.matchesProperty=l})(Me)),Me}var ht;function gn(){return ht||(ht=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ut(),r=en(),n=ln(),a=mn();function s(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?a.matchesProperty(l[0],l[1]):n.matches(l);case"string":case"symbol":case"number":return r.property(l)}}e.iteratee=s})(ve)),ve}var vt;function yn(){return vt||(vt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jr(),r=$r(),n=Ut(),a=Cr(),s=gn();function l(f,g=n.identity){return a.isArrayLikeObject(f)?t.uniqBy(Array.from(f),r.ary(s.iteratee(g),1)):[]}e.uniqBy=l})(me)),me}var ke,jt;function pn(){return jt||(jt=1,ke=yn().uniqBy),ke}var bn=pn();const xt=Gt(bn);function hn(e,t,r){return t===!0?xt(e,r):typeof t=="function"?xt(e,t):e}var oe=1;function vn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(a=>{if(a!=null){var s=a.getBoundingClientRect(),l={height:s.height,left:s.left,top:s.top,width:s.width};(Math.abs(l.height-t.height)>oe||Math.abs(l.left-t.left)>oe||Math.abs(l.top-t.top)>oe||Math.abs(l.width-t.width)>oe)&&r({height:l.height,left:l.left,top:l.top,width:l.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},We.apply(null,arguments)}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?St(Object(r),!0).forEach(function(n){jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jn(e,t,r){return(t=xn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xn(e){var t=Sn(e,"string");return typeof t=="symbol"?t:t+""}function Sn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function On(e){return Array.isArray(e)&&ue(e[0])&&ue(e[1])?e.join(" ~ "):e}var J={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function wn(e,t){return t==null?e:br(e,t)}var Pn=e=>{var{separator:t=J.separator,contentStyle:r,itemStyle:n,labelStyle:a=J.labelStyle,payload:s,formatter:l,itemSorter:f,wrapperClassName:g,labelClassName:y,label:u,labelFormatter:i,accessibilityLayer:d=J.accessibilityLayer}=e,b=()=>{if(s&&s.length){var O={padding:0,margin:0},P=wn(s,f),T=P.map((A,_)=>{if(!A||A.type==="none")return null;var U=A.formatter||l||On,{value:E,name:N}=A,R=E,q=N;if(U){var M=U(E,N,A,_,s);if(Array.isArray(M))[R,q]=M;else if(M!=null)R=M;else return null}var k=te(te({},J.itemStyle),{},{color:A.color||J.itemStyle.color},n);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:k},ue(q)?S.createElement("span",{className:"recharts-tooltip-item-name"},q):null,ue(q)?S.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,S.createElement("span",{className:"recharts-tooltip-item-value"},R),S.createElement("span",{className:"recharts-tooltip-item-unit"},A.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:O},T)}return null},m=te(te({},J.contentStyle),r),p=te({margin:0},a),v=!pr(u),c=v?u:"",h=ie("recharts-default-tooltip",g),x=ie("recharts-tooltip-label",y);v&&i&&s!==void 0&&s!==null&&(c=i(u,s));var w=d?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",We({className:h,style:m},w),S.createElement("p",{className:x,style:p},S.isValidElement(c)?c:"".concat(c)),b())},re="recharts-tooltip-wrapper",Bn={visibility:"hidden"};function An(e){var{coordinate:t,translateX:r,translateY:n}=e;return ie(re,{["".concat(re,"-right")]:D(r)&&t&&D(t.x)&&r>=t.x,["".concat(re,"-left")]:D(r)&&t&&D(t.x)&&r<t.x,["".concat(re,"-bottom")]:D(n)&&t&&D(t.y)&&n>=t.y,["".concat(re,"-top")]:D(n)&&t&&D(t.y)&&n<t.y})}function Ot(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:a,position:s,reverseDirection:l,tooltipDimension:f,viewBox:g,viewBoxDimension:y}=e;if(s&&D(s[n]))return s[n];var u=r[n]-f-(a>0?a:0),i=r[n]+a;if(t[n])return l[n]?u:i;var d=g[n];if(d==null)return 0;if(l[n]){var b=u,m=d;return b<m?Math.max(i,d):Math.max(u,d)}if(y==null)return 0;var p=i+f,v=d+y;return p>v?Math.max(u,d):Math.max(i,d)}function Tn(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Dn(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:a,position:s,reverseDirection:l,tooltipBox:f,useTranslate3d:g,viewBox:y}=e,u,i,d;return f.height>0&&f.width>0&&r?(i=Ot({allowEscapeViewBox:t,coordinate:r,key:"x",offset:a,position:s,reverseDirection:l,tooltipDimension:f.width,viewBox:y,viewBoxDimension:y.width}),d=Ot({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:s,reverseDirection:l,tooltipDimension:f.height,viewBox:y,viewBoxDimension:y.height}),u=Tn({translateX:i,translateY:d,useTranslate3d:g})):u=Bn,{cssProperties:u,cssClasses:An({translateX:i,translateY:d,coordinate:r})}}function wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wt(Object(r),!0).forEach(function(n){En(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function En(e,t,r){return(t=Nn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nn(e){var t=qn(e,"string");return typeof t=="symbol"?t:t+""}function qn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mn(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function In(e){var t,r,n,a,s,l,f=hr(),[g,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var m=p=>{if(p.key==="Escape"){var v,c,h,x;y({dismissed:!0,dismissedAtCoordinate:{x:(v=(c=e.coordinate)===null||c===void 0?void 0:c.x)!==null&&v!==void 0?v:0,y:(h=(x=e.coordinate)===null||x===void 0?void 0:x.y)!==null&&h!==void 0?h:0}})}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),g.dismissed&&(((n=(a=e.coordinate)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)!==g.dismissedAtCoordinate.x||((s=(l=e.coordinate)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)!==g.dismissedAtCoordinate.y)&&y($($({},g),{},{dismissed:!1}));var{cssClasses:u,cssProperties:i}=Dn({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:$($({transition:Mn({prefersReducedMotion:f,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},i),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),b=$($({},d),{},{visibility:!g.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:b,ref:e.innerRef},e.children)}var Rn=S.memo(In),Ln=["x","y","top","left","width","height","className"];function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(null,arguments)}function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pt(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kn(e,t,r){return(t=Un(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Un(e){var t=Fn(e,"string");return typeof t=="symbol"?t:t+""}function Fn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wn(e,t){if(e==null)return{};var r,n,a=Kn(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Kn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zn=(e,t,r,n,a,s)=>"M".concat(e,",").concat(a,"v").concat(n,"M").concat(s,",").concat(t,"h").concat(r),Vn=e=>{var{x:t=0,y:r=0,top:n=0,left:a=0,width:s=0,height:l=0,className:f}=e,g=Wn(e,Ln),y=_n({x:t,y:r,top:n,left:a,width:s,height:l},g);return!D(t)||!D(r)||!D(s)||!D(l)||!D(n)||!D(a)?null:S.createElement("path",Ke({},vr(y),{className:ie("recharts-cross",f),d:zn(t,r,s,l,n,a)}))};function Zn(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Vt(e){var{cx:t,cy:r,radius:n,startAngle:a,endAngle:s}=e,l=fe(t,r,n,a),f=fe(t,r,n,s);return{points:[l,f],cx:t,cy:r,radius:n,startAngle:a,endAngle:s}}function Gn(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(kt(t)){if(e==="centric"){var{cx:n,cy:a,innerRadius:s,outerRadius:l,angle:f}=t,g=fe(n,a,s,f),y=fe(n,a,l,f);return[{x:g.x,y:g.y},{x:y.x,y:y.y}]}return Vt(t)}}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bt(Object(r),!0).forEach(function(n){Yn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yn(e,t,r){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hn(e){var t=Xn(e,"string");return typeof t=="symbol"?t:t+""}function Xn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jn=()=>G(Sr),$n=()=>{var e=Jn(),t=G(jr),r=G(xr);return!e||!r?He(void 0,t):He(At(At({},e),{},{scale:r}),t)};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tt(Object(r),!0).forEach(function(n){Qn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qn(e,t,r){return(t=Cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cn(e){var t=ei(e,"string");return typeof t=="symbol"?t:t+""}function ei(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ti(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return S.isValidElement(t)?S.cloneElement(t,n):S.createElement(r,n)}function ri(e){var t,{coordinate:r,payload:n,index:a,offset:s,tooltipAxisBandSize:l,layout:f,cursor:g,tooltipEventType:y,chartName:u}=e,i=r,d=n,b=a;if(!g||!i||u!=="ScatterChart"&&y!=="axis")return null;var m,p,v;if(u==="ScatterChart")m=i,p=Vn,v=se.cursorLine;else if(u==="BarChart")m=Zn(f,i,s,l),p=Zr,v=se.cursorRectangle;else if(f==="radial"&&kt(i)){var{cx:c,cy:h,radius:x,startAngle:w,endAngle:O}=Vt(i);m={cx:c,cy:h,startAngle:w,endAngle:O,innerRadius:x,outerRadius:x},p=Gr,v=se.cursorLine}else m={points:Gn(f,i,s)},p=Tr,v=se.cursorLine;var P=typeof g=="object"&&"className"in g?g.className:void 0,T=le(le(le(le({stroke:"#ccc",pointerEvents:"none"},s),m),Br(g)),{},{payload:d,payloadIndex:b,className:ie("recharts-tooltip-cursor",P)});return S.createElement(Ar,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:v},S.createElement(ti,{cursor:g,cursorComp:p,cursorProps:T}))}function ni(e){var t=$n(),r=Or(),n=wr(),a=Pr();return t==null||r==null||n==null||a==null?null:S.createElement(ri,ze({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:a}))}function Dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dt(Object(r),!0).forEach(function(n){ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ii(e,t,r){return(t=ai(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ai(e){var t=si(e,"string");return typeof t=="symbol"?t:t+""}function si(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oi(e){return e.dataKey}function li(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(Pn,t)}var Nt=[],ci={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function ui(e){var t,r,n=Dr(e,ci),{active:a,allowEscapeViewBox:s,animationDuration:l,animationEasing:f,content:g,filterNull:y,isAnimationActive:u,offset:i,payloadUniqBy:d,position:b,reverseDirection:m,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:h,trigger:x,defaultIndex:w,portal:O,axisId:P}=n,T=Er(),A=typeof w=="number"?String(w):w;S.useEffect(()=>{T(Nr({shared:h,trigger:x,axisId:P,active:a,defaultIndex:A}))},[T,h,x,P,a,A]);var _=qr(),U=Mr(),E=Ir(h),{activeIndex:N,isActive:R}=(t=G(B=>Rr(B,E,x,A)))!==null&&t!==void 0?t:{},q=G(B=>Lr(B,E,x,A)),M=G(B=>_r(B,E,x,A)),k=G(B=>kr(B,E,x,A)),z=q,F=Ur(),I=(r=a??R)!==null&&r!==void 0?r:!1,[Y,W]=vn([z,I]),V=E==="axis"?M:void 0;Fr(E,x,k,V,N,I);var Z=O??F;if(Z==null||_==null||E==null)return null;var L=z??Nt;I||(L=Nt),y&&L.length&&(L=hn(L.filter(B=>B.value!=null&&(B.hide!==!0||n.includeHidden)),d,oi));var H=L.length>0,X=Et(Et({},n),{},{payload:L,label:V,active:I,activeIndex:N,coordinate:k,accessibilityLayer:U}),j=S.createElement(Rn,{allowEscapeViewBox:s,animationDuration:l,animationEasing:f,isAnimationActive:u,active:I,coordinate:k,hasPayload:H,offset:i,position:b,reverseDirection:m,useTranslate3d:p,viewBox:_,wrapperStyle:v,lastBoundingBox:Y,innerRef:W,hasPortalFromProps:!!O},li(g,X));return S.createElement(S.Fragment,null,Yt.createPortal(j,Z),I&&S.createElement(ni,{cursor:c,tooltipEventType:E,coordinate:k,payload:L,index:N}))}const Ze=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),qt=["B","KB","MB","GB","TB","PB"];function Zt(e){if(e<=0)return"0 B";const t=Math.min(qt.length-1,Math.floor(Math.log(e)/Math.log(1024))),r=e/1024**t;return`${r.toFixed(r>=100||t===0?0:1)} ${qt[t]}`}const Ue=50,fi="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",di=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Mt(e){return new Date(`${e.slice(0,10)}T00:00:00Z`)}function mi(){const e=new Date;return Array.from({length:12},(t,r)=>{const n=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()-r,1));return{value:n.toISOString().slice(0,10),label:n.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function gi(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function It(e){const t=Q.c(30),{usage:r,metric:n,colorNum:a,formatValue:s,height:l}=e,f=`var(--chart-${a})`,g=`infra-billing-${n}`;let y;t[0]!==r?(y=r.map(yi),t[0]=r,t[1]=y):y=t[1];const u=y;let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i={left:0,right:4,top:8,bottom:0},t[2]=i):i=t[2];let d,b;t[3]!==f?(d=o.jsx("stop",{offset:"0%",stopColor:f,stopOpacity:.25}),b=o.jsx("stop",{offset:"100%",stopColor:f,stopOpacity:0}),t[3]=f,t[4]=d,t[5]=b):(d=t[4],b=t[5]);let m;t[6]!==g||t[7]!==d||t[8]!==b?(m=o.jsx("defs",{children:o.jsxs("linearGradient",{id:g,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,b]})}),t[6]=g,t[7]=d,t[8]=b,t[9]=m):m=t[9];let p;t[10]!==s||t[11]!==l?(p=l>100&&o.jsxs(o.Fragment,{children:[o.jsx(Wr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),o.jsx(Kr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),o.jsx(zr,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:s,width:68})]}),t[10]=s,t[11]=l,t[12]=p):p=t[12];let v,c;t[13]===Symbol.for("react.memo_cache_sentinel")?(v={stroke:"var(--border)",strokeDasharray:"4 4"},c={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},t[13]=v,t[14]=c):(v=t[13],c=t[14]);let h;t[15]!==s?(h=o.jsx(ui,{cursor:v,contentStyle:c,formatter:T=>s(Number(T)||0)}),t[15]=s,t[16]=h):h=t[16];const x=`url(#${g})`;let w;t[17]!==f||t[18]!==n||t[19]!==x?(w=o.jsx(Yr,{type:"linear",dataKey:n,stroke:f,strokeWidth:2,fill:x,dot:!1}),t[17]=f,t[18]=n,t[19]=x,t[20]=w):w=t[20];let O;t[21]!==u||t[22]!==w||t[23]!==m||t[24]!==p||t[25]!==h?(O=o.jsxs(Hr,{data:u,margin:i,children:[m,p,h,w]}),t[21]=u,t[22]=w,t[23]=m,t[24]=p,t[25]=h,t[26]=O):O=t[26];let P;return t[27]!==l||t[28]!==O?(P=o.jsx(Vr,{width:"100%",height:l,children:O}),t[27]=l,t[28]=O,t[29]=P):P=t[29],P}function yi(e){return{...e,label:gi(e.date)}}function ce(e,t){return e.reduce((r,n)=>r+n[t],0)}function pi(){const e=Q.c(47),t=Rt(),{sites:r,isLoading:n}=Xt(),[a,s]=S.useState(null),l=mi(),[f,g]=S.useState(l[0].value);let y;e[0]!==a||e[1]!==r?(y=a??r.slice(0,Ue),e[0]=a,e[1]=r,e[2]=y):y=e[2];const u=y,i=!a&&r.length>Ue,{data:d,isLoading:b}=Jt(u,f),m=$t();if(n){let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(ae,{className:"h-64 w-full"}),e[3]=j):j=e[3],j}if(r.length===0){let j;e[4]!==t?(j=t("settings.infraBilling.noSites"),e[4]=t,e[5]=j):j=e[5];let B;return e[6]!==j?(B=o.jsx(K,{className:"p-6 text-sm text-muted-foreground",children:j}),e[6]=j,e[7]=B):B=e[7],B}const p=d?.usage??[],v=d?.pageviewsAvailable??!1,c=!!d&&!d.usageUnavailable,h=(j,B)=>c?B(ce(p,j)):"—",x=[{key:"pageviews",title:t("settings.infraBilling.pageviews"),description:t("settings.infraBilling.pageviewsDescription"),colorNum:1,total:v&&c?Ze.format(ce(p,"pageviews")):"—"},{key:"requests",title:t("settings.infraBilling.requests"),description:t("settings.infraBilling.requestsDescription"),colorNum:2,total:h("requests",Si)},{key:"dataTransferBytes",title:t("settings.infraBilling.dataTransfer"),description:t("settings.infraBilling.dataTransferDescription"),colorNum:3,total:h("dataTransferBytes",Zt)}],w=ji,O=d?.billing??null;let P;e[8]!==O?.invoices?(P=O?.invoices??[],e[8]=O?.invoices,e[9]=P):P=e[9];let T;e[10]!==P?(T=P.some(vi),e[10]=P,e[11]=T):T=e[11];const A=T,_=ce(p,"pageviews"),U=_>0?ce(p,"requests")/_:0,E=v&&c&&_>0?U.toFixed(U<10?1:0):"—";let N;e[12]!==t?(N=t("settings.infraBilling.multipleTeams"),e[12]=t,e[13]=N):N=e[13];let R;e[14]!==t?(R=t("settings.infraBilling.noTeam"),e[14]=t,e[15]=R):R=e[15];let q;e[16]!==t?(q=t("settings.infraBilling.partialTeam"),e[16]=t,e[17]=q):q=e[17];let M;e[18]!==t?(M=t("settings.infraBilling.billingUnavailable"),e[18]=t,e[19]=M):M=e[19];let k;e[20]!==N||e[21]!==R||e[22]!==q||e[23]!==M?(k={multiple_teams:N,no_team:R,partial_team:q,unavailable:M},e[20]=N,e[21]=R,e[22]=q,e[23]=M,e[24]=k):k=e[24];const z=k[d?.billingUnavailableReason??"multiple_teams"];let F;e[25]!==r?(F=r.map(hi),e[25]=r,e[26]=F):F=e[26];let I;e[27]!==t?(I=t("settings.infraBilling.siteLabel"),e[27]=t,e[28]=I):I=e[28];let Y;e[29]!==u||e[30]!==F||e[31]!==I?(Y=o.jsx(er,{className:"w-auto min-w-56 max-w-full",options:F,defaultValue:u,maxCount:2,placeholder:I,onValueChange:s}),e[29]=u,e[30]=F,e[31]=I,e[32]=Y):Y=e[32];let W;e[33]!==t?(W=t("settings.infraBilling.monthLabel"),e[33]=t,e[34]=W):W=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=o.jsx(ir,{}),e[35]=V):V=e[35];let Z;e[36]!==W?(Z=o.jsx(ar,{className:"w-48","aria-label":W,children:V}),e[36]=W,e[37]=Z):Z=e[37];let L;e[38]!==u.length||e[39]!==t?(L=u.length===0&&o.jsx(K,{className:"mx-4 p-4 text-sm text-muted-foreground",children:t("settings.infraBilling.pickASite")}),e[38]=u.length,e[39]=t,e[40]=L):L=e[40];let H;e[41]!==t||e[42]!==i?(H=i&&o.jsx(K,{className:"mx-4 p-4 text-sm text-muted-foreground",children:t("settings.infraBilling.tooManySites",{count:String(Ue)})}),e[41]=t,e[42]=i,e[43]=H):H=e[43];let X;return e[44]!==d?.usageUnavailable||e[45]!==t?(X=d?.usageUnavailable&&o.jsx(K,{className:"mx-4 p-4 text-sm text-muted-foreground",children:t("settings.infraBilling.warehouseUnavailable")}),e[44]=d?.usageUnavailable,e[45]=t,e[46]=X):X=e[46],o.jsxs("div",{className:"flex flex-col gap-8",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[Y,o.jsxs(tr,{value:f,onValueChange:g,children:[Z,o.jsx(rr,{children:l.map(bi)})]})]}),L,H,X,u.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(de,{title:t("settings.infraBilling.summaryTitle"),children:o.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[o.jsxs(K,{className:"flex-1 flex flex-col gap-4 p-4",children:[o.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Qt,{size:16,className:"text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:t("settings.infraBilling.detailsTitle")})]}),O?.canManageSubscription&&o.jsx(Lt,{variant:"outline",size:"sm",disabled:m.isPending,onClick:()=>m.mutate(u),children:t("settings.infraBilling.manageButton")})]}),o.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[O?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx("span",{className:"text-muted-foreground",children:t("settings.infraBilling.currentPlan")}),b?o.jsx(ae,{className:"h-5 w-16"}):o.jsx(ne,{variant:O.planType==="free"?"secondary":"success",children:t(`settings.infraBilling.plan.${O.planType}`)})]}),o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx("span",{className:"text-muted-foreground",children:t("settings.infraBilling.nextBilling")}),o.jsx("span",{className:"font-medium tabular-nums",children:O.nextBillingDate?new Date(`${O.nextBillingDate}T00:00:00Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}):"—"})]})]}):!b&&o.jsx("p",{className:"text-xs text-muted-foreground",children:z}),o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx("span",{className:"text-muted-foreground",children:t("settings.infraBilling.requestsPerPageview")}),o.jsx("span",{className:"font-medium tabular-nums",children:E})]})]})]}),x.map(j=>o.jsxs(K,{className:"flex-1 flex flex-col gap-2 p-4",children:[o.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[o.jsx("span",{className:"text-sm font-medium",children:j.title}),o.jsx("span",{className:"text-xs text-muted-foreground",children:l.find(B=>B.value===f)?.label})]}),b?o.jsx(ae,{className:"h-8 w-24"}):o.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:j.total}),o.jsx("div",{className:"-mx-2",children:o.jsx(It,{usage:p,metric:j.key,colorNum:j.colorNum,formatValue:w(j.key),height:64})})]},j.key))]})}),o.jsx(de,{title:t("settings.infraBilling.metricsTitle"),children:o.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:x.map(j=>o.jsxs(K,{className:"flex-1 flex flex-col gap-3 p-4",children:[o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("span",{className:"text-sm font-medium",children:j.title}),o.jsx("span",{className:"text-xs text-muted-foreground",children:j.description})]}),o.jsx(It,{usage:p,metric:j.key,colorNum:j.colorNum,formatValue:w(j.key),height:220})]},j.key))})}),o.jsx(de,{title:t("settings.infraBilling.invoicesTitle"),children:o.jsx(K,{className:"mx-4 overflow-x-auto",children:d?(O?.invoices.length??0)===0?o.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:O?t("settings.infraBilling.noInvoices"):z}):o.jsxs(sr,{children:[o.jsx(or,{children:o.jsxs(Ye,{children:[o.jsx(C,{children:t("settings.infraBilling.invoiceReference")}),o.jsx(C,{children:t("settings.infraBilling.invoiceDue")}),o.jsx(C,{children:t("settings.infraBilling.invoiceAmount")}),o.jsx(C,{children:t("settings.infraBilling.invoiceStatus")}),o.jsx(C,{children:t("settings.infraBilling.invoiceDocuments")})]})}),o.jsx(lr,{children:(O?.invoices??[]).map(j=>o.jsxs(Ye,{children:[o.jsx(ee,{children:j.referenceMonth?Mt(j.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),o.jsx(ee,{children:j.dueDate?Mt(j.dueDate).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}):"—"}),o.jsx(ee,{className:"tabular-nums",children:di.format(j.value)}),o.jsx(ee,{children:o.jsx(Oi,{status:j.status})}),o.jsxs(ee,{className:"flex gap-2",children:[j.nfUrl&&o.jsx(Fe,{href:j.nfUrl,label:t("settings.infraBilling.invoiceNf")}),j.bankSlipUrl&&o.jsx(Fe,{href:j.bankSlipUrl,label:t("settings.infraBilling.invoiceBankSlip")}),!j.bankSlipUrl&&!A&&j.nfUrl&&o.jsx(Fe,{href:fi,label:t("settings.infraBilling.invoiceBankTransfer")}),!j.nfUrl&&!j.bankSlipUrl&&"—"]})]},j.id))})]}):o.jsx(ae,{className:"m-4 h-24"})})})]})]})}function bi(e){return o.jsx(nr,{value:e.value,children:e.label},e.value)}function hi(e){return{label:e,value:e}}function vi(e){return!!e.bankSlipUrl}function ji(e){return e==="dataTransferBytes"?Zt:xi}function xi(e){return Ze.format(e)}function Si(e){return Ze.format(e)}function Fe(e){const t=Q.c(4),{href:r,label:n}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(Ct,{size:14}),t[0]=a):a=t[0];let s;return t[1]!==r||t[2]!==n?(s=o.jsx(Lt,{variant:"outline",size:"sm",asChild:!0,children:o.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",children:[a,n]})}),t[1]=r,t[2]=n,t[3]=s):s=t[3],s}function Oi(e){const t=Q.c(14),{status:r}=e,n=Rt(),a=r.toLowerCase();if(a==="paid"){let l;t[0]!==n?(l=n("settings.infraBilling.statusPaid"),t[0]=n,t[1]=l):l=t[1];let f;return t[2]!==l?(f=o.jsx(ne,{variant:"success",children:l}),t[2]=l,t[3]=f):f=t[3],f}if(a==="overdue"){let l;t[4]!==n?(l=n("settings.infraBilling.statusOverdue"),t[4]=n,t[5]=l):l=t[5];let f;return t[6]!==l?(f=o.jsx(ne,{variant:"destructive",children:l}),t[6]=l,t[7]=f):f=t[7],f}if(a==="registered"){let l;t[8]!==n?(l=n("settings.infraBilling.statusPending"),t[8]=n,t[9]=l):l=t[9];let f;return t[10]!==l?(f=o.jsx(ne,{variant:"warning",children:l}),t[10]=l,t[11]=f):f=t[11],f}let s;return t[12]!==r?(s=o.jsx(ne,{variant:"secondary",children:r}),t[12]=r,t[13]=s):s=t[13],s}function wi(){const e=Q.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(Ht,{group:"billing",children:o.jsx(pi,{})}),e[0]=t):t=e[0],t}function Hi(){const e=Q.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(Xr,{capability:"members:manage",area:"billing",children:o.jsx(wi,{})}),e[0]=t):t=e[0],t}export{Hi as default};
|
|
1
|
+
import{eM as Ge,co as Gt,r as S,f7 as ie,aO as Yt,c as Q,j as o,fr as Ht,b as Rt,ft as Xt,fu as Jt,fv as $t,eL as K,dW as de,B as Lt,aP as ae}from"./index-DXBmCj7V.js";import{i as Qt}from"./CreditCard01-DjPXzBq6.js";import{n as Ct}from"./LinkExternal01-hkxOMKQE.js";import{B as ne}from"./badge-BMrNoDQF.js";import{M as er}from"./multi-select-DWjNtzij.js";import{S as tr,d as rr,c as nr,a as ir,b as ar}from"./select-DOrOm388.js";import{e as sr,a as or,b as Ye,T as C,d as lr,c as ee}from"./table-zCmjz1mf.js";import{aw as cr,ax as _t,ay as ur,az as fr,aA as dr,aB as mr,aC as gr,aD as yr,P as pr,aE as ue,aF as br,J as D,aG as hr,W as vr,aa as fe,aH as kt,z as G,aI as jr,aJ as xr,j as He,aK as Sr,aL as Or,v as wr,x as Pr,at as Br,Z as Ar,D as se,_ as Tr,r as Dr,ac as Er,aM as Nr,aN as qr,aO as Mr,aP as Ir,aQ as Rr,aR as Lr,aS as _r,aT as kr,aU as Ur,aV as Fr,C as Wr,X as Kr,Y as zr,aW as Vr}from"./CartesianChart-CyfhriNO.js";import{R as Zr,S as Gr}from"./Sector-C46Vk0wT.js";import{A as Yr,a as Hr}from"./AreaChart-Bm-WOd7b.js";import{R as Xr}from"./require-capability-nXjtpUGm.js";import"./checkbox-Yo-_CoUr.js";import"./ChevronUp-BAQXOf5D.js";import"./command-CY_32gBM.js";import"./index-DlTwltzZ.js";import"./dialog-uPTcsM6n.js";import"./X-CvjnZl5e.js";import"./SearchMd-I-u-Ppkp.js";import"./popover-B1-bCr3Y.js";import"./index-U6uQHeCm.js";import"./index-C5oMfVw1.js";import"./access-gate-eZrCTx42.js";import"./capability-load-error-CG1OQua7.js";var me={},ge={},Xe;function Jr(){return Xe||(Xe=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const a=new Map;for(let s=0;s<r.length;s++){const l=r[s],f=n(l,s,r);a.has(f)||a.set(f,l)}return Array.from(a.values())}e.uniqBy=t})(ge)),ge}var ye={},Je;function $r(){return Je||(Je=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...a){return r.apply(this,a.slice(0,n))}}e.ary=t})(ye)),ye}var pe={},$e;function Ut(){return $e||($e=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(pe)),pe}var be={},he={},Qe;function Qr(){return Qe||(Qe=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(he)),he}var Ce;function Cr(){return Ce||(Ce=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cr(),r=Qr();function n(a){return r.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=n})(be)),be}var ve={},je={},et;function en(){return et||(et=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_t();function r(n){return function(a){return t.get(a,n)}}e.property=r})(je)),je}var xe={},Se={},Oe={},we={},tt;function Ft(){return tt||(tt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(we)),we}var rt;function tn(){return rt||(rt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ur(),r=Ft(),n=fr();function a(u,i,d){return typeof d!="function"?a(u,i,()=>{}):s(u,i,function b(m,p,v,c,h,x){const w=d(m,p,v,c,h,x);return w!==void 0?!!w:s(m,p,b,x)},new Map)}function s(u,i,d,b){if(i===u)return!0;switch(typeof i){case"object":return l(u,i,d,b);case"function":return Object.keys(i).length>0?s(u,{...i},d,b):n.isEqualsSameValueZero(u,i);default:return t.isObject(u)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(u,i)}}function l(u,i,d,b){if(i==null)return!0;if(Array.isArray(i))return g(u,i,d,b);if(i instanceof Map)return f(u,i,d,b);if(i instanceof Set)return y(u,i,d,b);const m=Object.keys(i);if(u==null||r.isPrimitive(u))return m.length===0;if(m.length===0)return!0;if(b?.has(i))return b.get(i)===u;b?.set(i,u);try{for(let p=0;p<m.length;p++){const v=m[p];if(!r.isPrimitive(u)&&!(v in u)||i[v]===void 0&&u[v]!==void 0||i[v]===null&&u[v]!==null||!d(u[v],i[v],v,u,i,b))return!1}return!0}finally{b?.delete(i)}}function f(u,i,d,b){if(i.size===0)return!0;if(!(u instanceof Map))return!1;for(const[m,p]of i.entries()){const v=u.get(m);if(d(v,p,m,u,i,b)===!1)return!1}return!0}function g(u,i,d,b){if(i.length===0)return!0;if(!Array.isArray(u))return!1;const m=new Set;for(let p=0;p<i.length;p++){const v=i[p];let c=!1;for(let h=0;h<u.length;h++){if(m.has(h))continue;const x=u[h];let w=!1;if(d(x,v,p,u,i,b)&&(w=!0),w){m.add(h),c=!0;break}}if(!c)return!1}return!0}function y(u,i,d,b){return i.size===0?!0:u instanceof Set?g([...u],[...i],d,b):!1}e.isMatchWith=a,e.isSetMatch=y})(Oe)),Oe}var nt;function Wt(){return nt||(nt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tn();function r(n,a){return t.isMatchWith(n,a,()=>{})}e.isMatch=r})(Se)),Se}var Pe={},Be={},Ae={},it;function rn(){return it||(it=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(Ae)),Ae}var Te={},at;function Ve(){return at||(at=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(Te)),Te}var De={},st;function Kt(){return st||(st=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",s="[object Arguments]",l="[object Symbol]",f="[object Date]",g="[object Map]",y="[object Set]",u="[object Array]",i="[object Function]",d="[object ArrayBuffer]",b="[object Object]",m="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",h="[object Uint16Array]",x="[object Uint32Array]",w="[object BigUint64Array]",O="[object Int8Array]",P="[object Int16Array]",T="[object Int32Array]",A="[object BigInt64Array]",_="[object Float32Array]",U="[object Float64Array]";e.argumentsTag=s,e.arrayBufferTag=d,e.arrayTag=u,e.bigInt64ArrayTag=A,e.bigUint64ArrayTag=w,e.booleanTag=a,e.dataViewTag=p,e.dateTag=f,e.errorTag=m,e.float32ArrayTag=_,e.float64ArrayTag=U,e.functionTag=i,e.int16ArrayTag=P,e.int32ArrayTag=T,e.int8ArrayTag=O,e.mapTag=g,e.numberTag=n,e.objectTag=b,e.regexpTag=t,e.setTag=y,e.stringTag=r,e.symbolTag=l,e.uint16ArrayTag=h,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=c})(De)),De}var Ee={},Ne={},ot;function nn(){return ot||(ot=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof Ge=="object"&&Ge||(function(){return this})()||Function("return this")();e.globalThis=t})(Ne)),Ne}var lt;function an(){return lt||(lt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nn();function r(n){return typeof t.globalThis.Buffer<"u"&&t.globalThis.Buffer.isBuffer(n)}e.isBuffer=r})(Ee)),Ee}var qe={},ct;function sn(){return ct||(ct=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(qe)),qe}var ut;function zt(){return ut||(ut=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rn(),r=Ve(),n=Kt(),a=an(),s=Ft(),l=sn();function f(i,d){return g(i,void 0,i,new Map,d)}function g(i,d,b,m=new Map,p=void 0){const v=p?.(i,d,b,m);if(v!==void 0)return v;if(s.isPrimitive(i))return i;if(m.has(i))return m.get(i);if(Array.isArray(i)){const c=new Array(i.length);m.set(i,c);for(let h=0;h<i.length;h++)c[h]=g(i[h],h,b,m,p);return Object.hasOwn(i,"index")&&(c.index=i.index),Object.hasOwn(i,"input")&&(c.input=i.input),c}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const c=new RegExp(i.source,i.flags);return c.lastIndex=i.lastIndex,c}if(i instanceof Map){const c=new Map;m.set(i,c);for(const[h,x]of i)c.set(h,g(x,h,b,m,p));return c}if(i instanceof Set){const c=new Set;m.set(i,c);for(const h of i)c.add(g(h,void 0,b,m,p));return c}if(a.isBuffer(i))return i.subarray();if(l.isTypedArray(i)){const c=new(Object.getPrototypeOf(i)).constructor(i.length);m.set(i,c);for(let h=0;h<i.length;h++)c[h]=g(i[h],h,b,m,p);return c}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const c=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return m.set(i,c),y(c,i,b,m,p),c}if(typeof File<"u"&&i instanceof File){const c=new File([i],i.name,{type:i.type});return m.set(i,c),y(c,i,b,m,p),c}if(typeof Blob<"u"&&i instanceof Blob){const c=new Blob([i],{type:i.type});return m.set(i,c),y(c,i,b,m,p),c}if(i instanceof Error){const c=structuredClone(i);return m.set(i,c),c.message=i.message,c.name=i.name,c.stack=i.stack,c.cause=i.cause,c.constructor=i.constructor,y(c,i,b,m,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return m.set(i,c),y(c,i,b,m,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return m.set(i,c),y(c,i,b,m,p),c}if(i instanceof String){const c=new String(i.valueOf());return m.set(i,c),y(c,i,b,m,p),c}if(typeof i=="object"&&u(i)){const c=Object.create(Object.getPrototypeOf(i));return m.set(i,c),y(c,i,b,m,p),c}return i}function y(i,d,b=i,m,p){const v=[...Object.keys(d),...t.getSymbols(d)];for(let c=0;c<v.length;c++){const h=v[c],x=Object.getOwnPropertyDescriptor(i,h);(x==null||x.writable)&&(i[h]=g(d[h],h,b,m,p))}}function u(i){switch(r.getTag(i)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=f,e.cloneDeepWithImpl=g,e.copyProperties=y})(Be)),Be}var ft;function on(){return ft||(ft=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zt();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(Pe)),Pe}var dt;function ln(){return dt||(dt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wt(),r=on();function n(a){return a=r.cloneDeep(a),s=>t.isMatch(s,a)}e.matches=n})(xe)),xe}var Me={},Ie={},Re={},mt;function cn(){return mt||(mt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zt(),r=Ve(),n=Kt();function a(s,l){return t.cloneDeepWith(s,(f,g,y,u)=>{const i=l?.(f,g,y,u);if(i!==void 0)return i;if(typeof s=="object"){if(r.getTag(s)===n.objectTag&&typeof s.constructor!="function"){const d={};return u.set(s,d),t.copyProperties(d,s,y,u),d}switch(Object.prototype.toString.call(s)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new s.constructor(s?.valueOf());return t.copyProperties(d,s),d}case n.argumentsTag:{const d={};return t.copyProperties(d,s),d.length=s.length,d[Symbol.iterator]=s[Symbol.iterator],d}default:return}}})}e.cloneDeepWith=a})(Re)),Re}var gt;function un(){return gt||(gt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cn();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(Ie)),Ie}var Le={},_e={},yt;function fn(){return yt||(yt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ve();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(_e)),_e}var pt;function dn(){return pt||(pt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dr(),r=gr(),n=fn(),a=mr();function s(l,f){let g;if(Array.isArray(f)?g=f:typeof f=="string"&&t.isDeepKey(f)&&l?.[f]==null?g=a.toPath(f):g=[f],g.length===0)return!1;let y=l;for(let u=0;u<g.length;u++){const i=g[u];if((y==null||!Object.hasOwn(y,i))&&!((Array.isArray(y)||n.isArguments(y))&&r.isIndex(i)&&i<y.length))return!1;y=y[i]}return!0}e.has=s})(Le)),Le}var bt;function mn(){return bt||(bt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wt(),r=yr(),n=un(),a=_t(),s=dn();function l(f,g){switch(typeof f){case"object":{Object.is(f?.valueOf(),-0)&&(f="-0");break}case"number":{f=r.toKey(f);break}}return g=n.cloneDeep(g),function(y){const u=a.get(y,f);return u===void 0?s.has(y,f):g===void 0?u===void 0:t.isMatch(u,g)}}e.matchesProperty=l})(Me)),Me}var ht;function gn(){return ht||(ht=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ut(),r=en(),n=ln(),a=mn();function s(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?a.matchesProperty(l[0],l[1]):n.matches(l);case"string":case"symbol":case"number":return r.property(l)}}e.iteratee=s})(ve)),ve}var vt;function yn(){return vt||(vt=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jr(),r=$r(),n=Ut(),a=Cr(),s=gn();function l(f,g=n.identity){return a.isArrayLikeObject(f)?t.uniqBy(Array.from(f),r.ary(s.iteratee(g),1)):[]}e.uniqBy=l})(me)),me}var ke,jt;function pn(){return jt||(jt=1,ke=yn().uniqBy),ke}var bn=pn();const xt=Gt(bn);function hn(e,t,r){return t===!0?xt(e,r):typeof t=="function"?xt(e,t):e}var oe=1;function vn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(a=>{if(a!=null){var s=a.getBoundingClientRect(),l={height:s.height,left:s.left,top:s.top,width:s.width};(Math.abs(l.height-t.height)>oe||Math.abs(l.left-t.left)>oe||Math.abs(l.top-t.top)>oe||Math.abs(l.width-t.width)>oe)&&r({height:l.height,left:l.left,top:l.top,width:l.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},We.apply(null,arguments)}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?St(Object(r),!0).forEach(function(n){jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jn(e,t,r){return(t=xn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xn(e){var t=Sn(e,"string");return typeof t=="symbol"?t:t+""}function Sn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function On(e){return Array.isArray(e)&&ue(e[0])&&ue(e[1])?e.join(" ~ "):e}var J={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function wn(e,t){return t==null?e:br(e,t)}var Pn=e=>{var{separator:t=J.separator,contentStyle:r,itemStyle:n,labelStyle:a=J.labelStyle,payload:s,formatter:l,itemSorter:f,wrapperClassName:g,labelClassName:y,label:u,labelFormatter:i,accessibilityLayer:d=J.accessibilityLayer}=e,b=()=>{if(s&&s.length){var O={padding:0,margin:0},P=wn(s,f),T=P.map((A,_)=>{if(!A||A.type==="none")return null;var U=A.formatter||l||On,{value:E,name:N}=A,R=E,q=N;if(U){var M=U(E,N,A,_,s);if(Array.isArray(M))[R,q]=M;else if(M!=null)R=M;else return null}var k=te(te({},J.itemStyle),{},{color:A.color||J.itemStyle.color},n);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:k},ue(q)?S.createElement("span",{className:"recharts-tooltip-item-name"},q):null,ue(q)?S.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,S.createElement("span",{className:"recharts-tooltip-item-value"},R),S.createElement("span",{className:"recharts-tooltip-item-unit"},A.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:O},T)}return null},m=te(te({},J.contentStyle),r),p=te({margin:0},a),v=!pr(u),c=v?u:"",h=ie("recharts-default-tooltip",g),x=ie("recharts-tooltip-label",y);v&&i&&s!==void 0&&s!==null&&(c=i(u,s));var w=d?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",We({className:h,style:m},w),S.createElement("p",{className:x,style:p},S.isValidElement(c)?c:"".concat(c)),b())},re="recharts-tooltip-wrapper",Bn={visibility:"hidden"};function An(e){var{coordinate:t,translateX:r,translateY:n}=e;return ie(re,{["".concat(re,"-right")]:D(r)&&t&&D(t.x)&&r>=t.x,["".concat(re,"-left")]:D(r)&&t&&D(t.x)&&r<t.x,["".concat(re,"-bottom")]:D(n)&&t&&D(t.y)&&n>=t.y,["".concat(re,"-top")]:D(n)&&t&&D(t.y)&&n<t.y})}function Ot(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:a,position:s,reverseDirection:l,tooltipDimension:f,viewBox:g,viewBoxDimension:y}=e;if(s&&D(s[n]))return s[n];var u=r[n]-f-(a>0?a:0),i=r[n]+a;if(t[n])return l[n]?u:i;var d=g[n];if(d==null)return 0;if(l[n]){var b=u,m=d;return b<m?Math.max(i,d):Math.max(u,d)}if(y==null)return 0;var p=i+f,v=d+y;return p>v?Math.max(u,d):Math.max(i,d)}function Tn(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Dn(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:a,position:s,reverseDirection:l,tooltipBox:f,useTranslate3d:g,viewBox:y}=e,u,i,d;return f.height>0&&f.width>0&&r?(i=Ot({allowEscapeViewBox:t,coordinate:r,key:"x",offset:a,position:s,reverseDirection:l,tooltipDimension:f.width,viewBox:y,viewBoxDimension:y.width}),d=Ot({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:s,reverseDirection:l,tooltipDimension:f.height,viewBox:y,viewBoxDimension:y.height}),u=Tn({translateX:i,translateY:d,useTranslate3d:g})):u=Bn,{cssProperties:u,cssClasses:An({translateX:i,translateY:d,coordinate:r})}}function wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wt(Object(r),!0).forEach(function(n){En(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function En(e,t,r){return(t=Nn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nn(e){var t=qn(e,"string");return typeof t=="symbol"?t:t+""}function qn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mn(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function In(e){var t,r,n,a,s,l,f=hr(),[g,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var m=p=>{if(p.key==="Escape"){var v,c,h,x;y({dismissed:!0,dismissedAtCoordinate:{x:(v=(c=e.coordinate)===null||c===void 0?void 0:c.x)!==null&&v!==void 0?v:0,y:(h=(x=e.coordinate)===null||x===void 0?void 0:x.y)!==null&&h!==void 0?h:0}})}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),g.dismissed&&(((n=(a=e.coordinate)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)!==g.dismissedAtCoordinate.x||((s=(l=e.coordinate)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)!==g.dismissedAtCoordinate.y)&&y($($({},g),{},{dismissed:!1}));var{cssClasses:u,cssProperties:i}=Dn({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:$($({transition:Mn({prefersReducedMotion:f,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},i),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),b=$($({},d),{},{visibility:!g.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:b,ref:e.innerRef},e.children)}var Rn=S.memo(In),Ln=["x","y","top","left","width","height","className"];function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(null,arguments)}function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pt(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kn(e,t,r){return(t=Un(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Un(e){var t=Fn(e,"string");return typeof t=="symbol"?t:t+""}function Fn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wn(e,t){if(e==null)return{};var r,n,a=Kn(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Kn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zn=(e,t,r,n,a,s)=>"M".concat(e,",").concat(a,"v").concat(n,"M").concat(s,",").concat(t,"h").concat(r),Vn=e=>{var{x:t=0,y:r=0,top:n=0,left:a=0,width:s=0,height:l=0,className:f}=e,g=Wn(e,Ln),y=_n({x:t,y:r,top:n,left:a,width:s,height:l},g);return!D(t)||!D(r)||!D(s)||!D(l)||!D(n)||!D(a)?null:S.createElement("path",Ke({},vr(y),{className:ie("recharts-cross",f),d:zn(t,r,s,l,n,a)}))};function Zn(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Vt(e){var{cx:t,cy:r,radius:n,startAngle:a,endAngle:s}=e,l=fe(t,r,n,a),f=fe(t,r,n,s);return{points:[l,f],cx:t,cy:r,radius:n,startAngle:a,endAngle:s}}function Gn(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(kt(t)){if(e==="centric"){var{cx:n,cy:a,innerRadius:s,outerRadius:l,angle:f}=t,g=fe(n,a,s,f),y=fe(n,a,l,f);return[{x:g.x,y:g.y},{x:y.x,y:y.y}]}return Vt(t)}}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bt(Object(r),!0).forEach(function(n){Yn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yn(e,t,r){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hn(e){var t=Xn(e,"string");return typeof t=="symbol"?t:t+""}function Xn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jn=()=>G(Sr),$n=()=>{var e=Jn(),t=G(jr),r=G(xr);return!e||!r?He(void 0,t):He(At(At({},e),{},{scale:r}),t)};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tt(Object(r),!0).forEach(function(n){Qn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qn(e,t,r){return(t=Cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cn(e){var t=ei(e,"string");return typeof t=="symbol"?t:t+""}function ei(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ti(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return S.isValidElement(t)?S.cloneElement(t,n):S.createElement(r,n)}function ri(e){var t,{coordinate:r,payload:n,index:a,offset:s,tooltipAxisBandSize:l,layout:f,cursor:g,tooltipEventType:y,chartName:u}=e,i=r,d=n,b=a;if(!g||!i||u!=="ScatterChart"&&y!=="axis")return null;var m,p,v;if(u==="ScatterChart")m=i,p=Vn,v=se.cursorLine;else if(u==="BarChart")m=Zn(f,i,s,l),p=Zr,v=se.cursorRectangle;else if(f==="radial"&&kt(i)){var{cx:c,cy:h,radius:x,startAngle:w,endAngle:O}=Vt(i);m={cx:c,cy:h,startAngle:w,endAngle:O,innerRadius:x,outerRadius:x},p=Gr,v=se.cursorLine}else m={points:Gn(f,i,s)},p=Tr,v=se.cursorLine;var P=typeof g=="object"&&"className"in g?g.className:void 0,T=le(le(le(le({stroke:"#ccc",pointerEvents:"none"},s),m),Br(g)),{},{payload:d,payloadIndex:b,className:ie("recharts-tooltip-cursor",P)});return S.createElement(Ar,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:v},S.createElement(ti,{cursor:g,cursorComp:p,cursorProps:T}))}function ni(e){var t=$n(),r=Or(),n=wr(),a=Pr();return t==null||r==null||n==null||a==null?null:S.createElement(ri,ze({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:a}))}function Dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dt(Object(r),!0).forEach(function(n){ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ii(e,t,r){return(t=ai(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ai(e){var t=si(e,"string");return typeof t=="symbol"?t:t+""}function si(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oi(e){return e.dataKey}function li(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(Pn,t)}var Nt=[],ci={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function ui(e){var t,r,n=Dr(e,ci),{active:a,allowEscapeViewBox:s,animationDuration:l,animationEasing:f,content:g,filterNull:y,isAnimationActive:u,offset:i,payloadUniqBy:d,position:b,reverseDirection:m,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:h,trigger:x,defaultIndex:w,portal:O,axisId:P}=n,T=Er(),A=typeof w=="number"?String(w):w;S.useEffect(()=>{T(Nr({shared:h,trigger:x,axisId:P,active:a,defaultIndex:A}))},[T,h,x,P,a,A]);var _=qr(),U=Mr(),E=Ir(h),{activeIndex:N,isActive:R}=(t=G(B=>Rr(B,E,x,A)))!==null&&t!==void 0?t:{},q=G(B=>Lr(B,E,x,A)),M=G(B=>_r(B,E,x,A)),k=G(B=>kr(B,E,x,A)),z=q,F=Ur(),I=(r=a??R)!==null&&r!==void 0?r:!1,[Y,W]=vn([z,I]),V=E==="axis"?M:void 0;Fr(E,x,k,V,N,I);var Z=O??F;if(Z==null||_==null||E==null)return null;var L=z??Nt;I||(L=Nt),y&&L.length&&(L=hn(L.filter(B=>B.value!=null&&(B.hide!==!0||n.includeHidden)),d,oi));var H=L.length>0,X=Et(Et({},n),{},{payload:L,label:V,active:I,activeIndex:N,coordinate:k,accessibilityLayer:U}),j=S.createElement(Rn,{allowEscapeViewBox:s,animationDuration:l,animationEasing:f,isAnimationActive:u,active:I,coordinate:k,hasPayload:H,offset:i,position:b,reverseDirection:m,useTranslate3d:p,viewBox:_,wrapperStyle:v,lastBoundingBox:Y,innerRef:W,hasPortalFromProps:!!O},li(g,X));return S.createElement(S.Fragment,null,Yt.createPortal(j,Z),I&&S.createElement(ni,{cursor:c,tooltipEventType:E,coordinate:k,payload:L,index:N}))}const Ze=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),qt=["B","KB","MB","GB","TB","PB"];function Zt(e){if(e<=0)return"0 B";const t=Math.min(qt.length-1,Math.floor(Math.log(e)/Math.log(1024))),r=e/1024**t;return`${r.toFixed(r>=100||t===0?0:1)} ${qt[t]}`}const Ue=50,fi="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",di=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Mt(e){return new Date(`${e.slice(0,10)}T00:00:00Z`)}function mi(){const e=new Date;return Array.from({length:12},(t,r)=>{const n=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()-r,1));return{value:n.toISOString().slice(0,10),label:n.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function gi(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function It(e){const t=Q.c(30),{usage:r,metric:n,colorNum:a,formatValue:s,height:l}=e,f=`var(--chart-${a})`,g=`infra-billing-${n}`;let y;t[0]!==r?(y=r.map(yi),t[0]=r,t[1]=y):y=t[1];const u=y;let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i={left:0,right:4,top:8,bottom:0},t[2]=i):i=t[2];let d,b;t[3]!==f?(d=o.jsx("stop",{offset:"0%",stopColor:f,stopOpacity:.25}),b=o.jsx("stop",{offset:"100%",stopColor:f,stopOpacity:0}),t[3]=f,t[4]=d,t[5]=b):(d=t[4],b=t[5]);let m;t[6]!==g||t[7]!==d||t[8]!==b?(m=o.jsx("defs",{children:o.jsxs("linearGradient",{id:g,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,b]})}),t[6]=g,t[7]=d,t[8]=b,t[9]=m):m=t[9];let p;t[10]!==s||t[11]!==l?(p=l>100&&o.jsxs(o.Fragment,{children:[o.jsx(Wr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),o.jsx(Kr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),o.jsx(zr,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:s,width:68})]}),t[10]=s,t[11]=l,t[12]=p):p=t[12];let v,c;t[13]===Symbol.for("react.memo_cache_sentinel")?(v={stroke:"var(--border)",strokeDasharray:"4 4"},c={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},t[13]=v,t[14]=c):(v=t[13],c=t[14]);let h;t[15]!==s?(h=o.jsx(ui,{cursor:v,contentStyle:c,formatter:T=>s(Number(T)||0)}),t[15]=s,t[16]=h):h=t[16];const x=`url(#${g})`;let w;t[17]!==f||t[18]!==n||t[19]!==x?(w=o.jsx(Yr,{type:"linear",dataKey:n,stroke:f,strokeWidth:2,fill:x,dot:!1}),t[17]=f,t[18]=n,t[19]=x,t[20]=w):w=t[20];let O;t[21]!==u||t[22]!==w||t[23]!==m||t[24]!==p||t[25]!==h?(O=o.jsxs(Hr,{data:u,margin:i,children:[m,p,h,w]}),t[21]=u,t[22]=w,t[23]=m,t[24]=p,t[25]=h,t[26]=O):O=t[26];let P;return t[27]!==l||t[28]!==O?(P=o.jsx(Vr,{width:"100%",height:l,children:O}),t[27]=l,t[28]=O,t[29]=P):P=t[29],P}function yi(e){return{...e,label:gi(e.date)}}function ce(e,t){return e.reduce((r,n)=>r+n[t],0)}function pi(){const e=Q.c(47),t=Rt(),{sites:r,isLoading:n}=Xt(),[a,s]=S.useState(null),l=mi(),[f,g]=S.useState(l[0].value);let y;e[0]!==a||e[1]!==r?(y=a??r.slice(0,Ue),e[0]=a,e[1]=r,e[2]=y):y=e[2];const u=y,i=!a&&r.length>Ue,{data:d,isLoading:b}=Jt(u,f),m=$t();if(n){let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(ae,{className:"h-64 w-full"}),e[3]=j):j=e[3],j}if(r.length===0){let j;e[4]!==t?(j=t("settings.infraBilling.noSites"),e[4]=t,e[5]=j):j=e[5];let B;return e[6]!==j?(B=o.jsx(K,{className:"p-6 text-sm text-muted-foreground",children:j}),e[6]=j,e[7]=B):B=e[7],B}const p=d?.usage??[],v=d?.pageviewsAvailable??!1,c=!!d&&!d.usageUnavailable,h=(j,B)=>c?B(ce(p,j)):"—",x=[{key:"pageviews",title:t("settings.infraBilling.pageviews"),description:t("settings.infraBilling.pageviewsDescription"),colorNum:1,total:v&&c?Ze.format(ce(p,"pageviews")):"—"},{key:"requests",title:t("settings.infraBilling.requests"),description:t("settings.infraBilling.requestsDescription"),colorNum:2,total:h("requests",Si)},{key:"dataTransferBytes",title:t("settings.infraBilling.dataTransfer"),description:t("settings.infraBilling.dataTransferDescription"),colorNum:3,total:h("dataTransferBytes",Zt)}],w=ji,O=d?.billing??null;let P;e[8]!==O?.invoices?(P=O?.invoices??[],e[8]=O?.invoices,e[9]=P):P=e[9];let T;e[10]!==P?(T=P.some(vi),e[10]=P,e[11]=T):T=e[11];const A=T,_=ce(p,"pageviews"),U=_>0?ce(p,"requests")/_:0,E=v&&c&&_>0?U.toFixed(U<10?1:0):"—";let N;e[12]!==t?(N=t("settings.infraBilling.multipleTeams"),e[12]=t,e[13]=N):N=e[13];let R;e[14]!==t?(R=t("settings.infraBilling.noTeam"),e[14]=t,e[15]=R):R=e[15];let q;e[16]!==t?(q=t("settings.infraBilling.partialTeam"),e[16]=t,e[17]=q):q=e[17];let M;e[18]!==t?(M=t("settings.infraBilling.billingUnavailable"),e[18]=t,e[19]=M):M=e[19];let k;e[20]!==N||e[21]!==R||e[22]!==q||e[23]!==M?(k={multiple_teams:N,no_team:R,partial_team:q,unavailable:M},e[20]=N,e[21]=R,e[22]=q,e[23]=M,e[24]=k):k=e[24];const z=k[d?.billingUnavailableReason??"multiple_teams"];let F;e[25]!==r?(F=r.map(hi),e[25]=r,e[26]=F):F=e[26];let I;e[27]!==t?(I=t("settings.infraBilling.siteLabel"),e[27]=t,e[28]=I):I=e[28];let Y;e[29]!==u||e[30]!==F||e[31]!==I?(Y=o.jsx(er,{className:"w-auto min-w-56 max-w-full",options:F,defaultValue:u,maxCount:2,placeholder:I,onValueChange:s}),e[29]=u,e[30]=F,e[31]=I,e[32]=Y):Y=e[32];let W;e[33]!==t?(W=t("settings.infraBilling.monthLabel"),e[33]=t,e[34]=W):W=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=o.jsx(ir,{}),e[35]=V):V=e[35];let Z;e[36]!==W?(Z=o.jsx(ar,{className:"w-48","aria-label":W,children:V}),e[36]=W,e[37]=Z):Z=e[37];let L;e[38]!==u.length||e[39]!==t?(L=u.length===0&&o.jsx(K,{className:"mx-4 p-4 text-sm text-muted-foreground",children:t("settings.infraBilling.pickASite")}),e[38]=u.length,e[39]=t,e[40]=L):L=e[40];let H;e[41]!==t||e[42]!==i?(H=i&&o.jsx(K,{className:"mx-4 p-4 text-sm text-muted-foreground",children:t("settings.infraBilling.tooManySites",{count:String(Ue)})}),e[41]=t,e[42]=i,e[43]=H):H=e[43];let X;return e[44]!==d?.usageUnavailable||e[45]!==t?(X=d?.usageUnavailable&&o.jsx(K,{className:"mx-4 p-4 text-sm text-muted-foreground",children:t("settings.infraBilling.warehouseUnavailable")}),e[44]=d?.usageUnavailable,e[45]=t,e[46]=X):X=e[46],o.jsxs("div",{className:"flex flex-col gap-8",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[Y,o.jsxs(tr,{value:f,onValueChange:g,children:[Z,o.jsx(rr,{children:l.map(bi)})]})]}),L,H,X,u.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(de,{title:t("settings.infraBilling.summaryTitle"),children:o.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[o.jsxs(K,{className:"flex-1 flex flex-col gap-4 p-4",children:[o.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Qt,{size:16,className:"text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:t("settings.infraBilling.detailsTitle")})]}),O?.canManageSubscription&&o.jsx(Lt,{variant:"outline",size:"sm",disabled:m.isPending,onClick:()=>m.mutate(u),children:t("settings.infraBilling.manageButton")})]}),o.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[O?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx("span",{className:"text-muted-foreground",children:t("settings.infraBilling.currentPlan")}),b?o.jsx(ae,{className:"h-5 w-16"}):o.jsx(ne,{variant:O.planType==="free"?"secondary":"success",children:t(`settings.infraBilling.plan.${O.planType}`)})]}),o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx("span",{className:"text-muted-foreground",children:t("settings.infraBilling.nextBilling")}),o.jsx("span",{className:"font-medium tabular-nums",children:O.nextBillingDate?new Date(`${O.nextBillingDate}T00:00:00Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}):"—"})]})]}):!b&&o.jsx("p",{className:"text-xs text-muted-foreground",children:z}),o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx("span",{className:"text-muted-foreground",children:t("settings.infraBilling.requestsPerPageview")}),o.jsx("span",{className:"font-medium tabular-nums",children:E})]})]})]}),x.map(j=>o.jsxs(K,{className:"flex-1 flex flex-col gap-2 p-4",children:[o.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[o.jsx("span",{className:"text-sm font-medium",children:j.title}),o.jsx("span",{className:"text-xs text-muted-foreground",children:l.find(B=>B.value===f)?.label})]}),b?o.jsx(ae,{className:"h-8 w-24"}):o.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:j.total}),o.jsx("div",{className:"-mx-2",children:o.jsx(It,{usage:p,metric:j.key,colorNum:j.colorNum,formatValue:w(j.key),height:64})})]},j.key))]})}),o.jsx(de,{title:t("settings.infraBilling.metricsTitle"),children:o.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:x.map(j=>o.jsxs(K,{className:"flex-1 flex flex-col gap-3 p-4",children:[o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("span",{className:"text-sm font-medium",children:j.title}),o.jsx("span",{className:"text-xs text-muted-foreground",children:j.description})]}),o.jsx(It,{usage:p,metric:j.key,colorNum:j.colorNum,formatValue:w(j.key),height:220})]},j.key))})}),o.jsx(de,{title:t("settings.infraBilling.invoicesTitle"),children:o.jsx(K,{className:"mx-4 overflow-x-auto",children:d?(O?.invoices.length??0)===0?o.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:O?t("settings.infraBilling.noInvoices"):z}):o.jsxs(sr,{children:[o.jsx(or,{children:o.jsxs(Ye,{children:[o.jsx(C,{children:t("settings.infraBilling.invoiceReference")}),o.jsx(C,{children:t("settings.infraBilling.invoiceDue")}),o.jsx(C,{children:t("settings.infraBilling.invoiceAmount")}),o.jsx(C,{children:t("settings.infraBilling.invoiceStatus")}),o.jsx(C,{children:t("settings.infraBilling.invoiceDocuments")})]})}),o.jsx(lr,{children:(O?.invoices??[]).map(j=>o.jsxs(Ye,{children:[o.jsx(ee,{children:j.referenceMonth?Mt(j.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),o.jsx(ee,{children:j.dueDate?Mt(j.dueDate).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}):"—"}),o.jsx(ee,{className:"tabular-nums",children:di.format(j.value)}),o.jsx(ee,{children:o.jsx(Oi,{status:j.status})}),o.jsxs(ee,{className:"flex gap-2",children:[j.nfUrl&&o.jsx(Fe,{href:j.nfUrl,label:t("settings.infraBilling.invoiceNf")}),j.bankSlipUrl&&o.jsx(Fe,{href:j.bankSlipUrl,label:t("settings.infraBilling.invoiceBankSlip")}),!j.bankSlipUrl&&!A&&j.nfUrl&&o.jsx(Fe,{href:fi,label:t("settings.infraBilling.invoiceBankTransfer")}),!j.nfUrl&&!j.bankSlipUrl&&"—"]})]},j.id))})]}):o.jsx(ae,{className:"m-4 h-24"})})})]})]})}function bi(e){return o.jsx(nr,{value:e.value,children:e.label},e.value)}function hi(e){return{label:e,value:e}}function vi(e){return!!e.bankSlipUrl}function ji(e){return e==="dataTransferBytes"?Zt:xi}function xi(e){return Ze.format(e)}function Si(e){return Ze.format(e)}function Fe(e){const t=Q.c(4),{href:r,label:n}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(Ct,{size:14}),t[0]=a):a=t[0];let s;return t[1]!==r||t[2]!==n?(s=o.jsx(Lt,{variant:"outline",size:"sm",asChild:!0,children:o.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",children:[a,n]})}),t[1]=r,t[2]=n,t[3]=s):s=t[3],s}function Oi(e){const t=Q.c(14),{status:r}=e,n=Rt(),a=r.toLowerCase();if(a==="paid"){let l;t[0]!==n?(l=n("settings.infraBilling.statusPaid"),t[0]=n,t[1]=l):l=t[1];let f;return t[2]!==l?(f=o.jsx(ne,{variant:"success",children:l}),t[2]=l,t[3]=f):f=t[3],f}if(a==="overdue"){let l;t[4]!==n?(l=n("settings.infraBilling.statusOverdue"),t[4]=n,t[5]=l):l=t[5];let f;return t[6]!==l?(f=o.jsx(ne,{variant:"destructive",children:l}),t[6]=l,t[7]=f):f=t[7],f}if(a==="registered"){let l;t[8]!==n?(l=n("settings.infraBilling.statusPending"),t[8]=n,t[9]=l):l=t[9];let f;return t[10]!==l?(f=o.jsx(ne,{variant:"warning",children:l}),t[10]=l,t[11]=f):f=t[11],f}let s;return t[12]!==r?(s=o.jsx(ne,{variant:"secondary",children:r}),t[12]=r,t[13]=s):s=t[13],s}function wi(){const e=Q.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(Ht,{group:"billing",children:o.jsx(pi,{})}),e[0]=t):t=e[0],t}function Hi(){const e=Q.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(Xr,{capability:"members:manage",area:"billing",children:o.jsx(wi,{})}),e[0]=t):t=e[0],t}export{Hi as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,l as a,j as d}from"./index-
|
|
1
|
+
import{c as s,l as a,j as d}from"./index-DXBmCj7V.js";function f(l){const e=s.c(10);let i,t,r;e[0]!==l?({className:i,type:r,...t}=l,e[0]=l,e[1]=i,e[2]=t,e[3]=r):(i=e[1],t=e[2],r=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg bg-[var(--studio-input-background)] px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==r?(o=d.jsx("input",{type:r,"data-slot":"input",className:n,...t}),e[6]=t,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}export{f as I};
|