decocms 4.186.2 → 4.186.4
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-CzHAhrr6.js → AlertCircle-BM2arXAG.js} +1 -1
- package/dist/client/assets/{AreaChart-DfvsG2lG.js → AreaChart-DAXzCJFT.js} +1 -1
- package/dist/client/assets/{ArrowUp-DBrHtvfE.js → ArrowUp-Boc-905Z.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Difm6SBR.js → ArrowUpRight-B3CxAPJj.js} +1 -1
- package/dist/client/assets/{Check-BMwhITGN.js → Check-D0s6wH1X.js} +1 -1
- package/dist/client/assets/{CheckCircle-CBXbZPqe.js → CheckCircle-BGu0rmUQ.js} +1 -1
- package/dist/client/assets/{ChevronDown-BLutYvIR.js → ChevronDown-CsqU07CB.js} +1 -1
- package/dist/client/assets/{ChevronRight-DcTM74Nx.js → ChevronRight-DzEO4WOO.js} +1 -1
- package/dist/client/assets/{ChevronUp-CnX0DUPn.js → ChevronUp-CLKFL_od.js} +1 -1
- package/dist/client/assets/{Copy01-0FQhJRTl.js → Copy01-Bu4T-_yj.js} +1 -1
- package/dist/client/assets/{CpuChip01-CQ_lGCKe.js → CpuChip01-C3l-ayM0.js} +1 -1
- package/dist/client/assets/{CreditCard01-CIVjejYO.js → CreditCard01-UMOdY0Uv.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bi2Pj2Rx.js → DotsVertical-C4U-eO1-.js} +1 -1
- package/dist/client/assets/{Eye-CNJVROK8.js → Eye-BtghZBaq.js} +1 -1
- package/dist/client/assets/{FilterLines-C-MayH4t.js → FilterLines-BMQz2giZ.js} +1 -1
- package/dist/client/assets/{HardDrive-fDvzj4Z4.js → HardDrive-CrMH19j9.js} +1 -1
- package/dist/client/assets/{Key01-DA8DOmXm.js → Key01-_U8PdKT-.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DwCyodVh.js → LayoutLeft-DhqFICkJ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-ZqumszDD.js → LinkExternal01-D1rq1_uq.js} +1 -1
- package/dist/client/assets/{LogOut01-oRQwceas.js → LogOut01--8dqoEbi.js} +1 -1
- package/dist/client/assets/{Monitor01-BRfBPH_W.js → Monitor01-Cjz_FTaX.js} +1 -1
- package/dist/client/assets/{Palette-R1zicu_8.js → Palette-dgaramLA.js} +1 -1
- package/dist/client/assets/{Play-CmYL2KsO.js → Play-CEjkQJmT.js} +1 -1
- package/dist/client/assets/{Plus-Ro_Rugpt.js → Plus-C-ooojQ-.js} +1 -1
- package/dist/client/assets/{SearchLg-CI4x084k.js → SearchLg-BsbCGElD.js} +1 -1
- package/dist/client/assets/{SearchMd-BbbEhgez.js → SearchMd-DJxFGUte.js} +1 -1
- package/dist/client/assets/{Settings02-BQ_6W_JU.js → Settings02-Dd6wiqD1.js} +1 -1
- package/dist/client/assets/{Shield01-C3qOqW-P.js → Shield01-C-gfca5T.js} +1 -1
- package/dist/client/assets/{Star01-DdMpc2WM.js → Star01-COab1bwH.js} +1 -1
- package/dist/client/assets/{Stars01-CJD9WdTJ.js → Stars01-CrqdYStA.js} +1 -1
- package/dist/client/assets/{Stars02-5ngV3USt.js → Stars02-6dK01kpk.js} +1 -1
- package/dist/client/assets/{Sun-DWxD9K8n.js → Sun-SP_cSydQ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DBQaK4CG.js → SwitchHorizontal01-ddUhxlHz.js} +1 -1
- package/dist/client/assets/{Tool01-CCM-RK9J.js → Tool01-n_pcUGI4.js} +1 -1
- package/dist/client/assets/{Tool02-DoDg-nMh.js → Tool02-CM2QQuSk.js} +1 -1
- package/dist/client/assets/{Trash01-Dv4YTeiI.js → Trash01-4ciIHO0v.js} +1 -1
- package/dist/client/assets/{TrendUp01-BR_L8L93.js → TrendUp01-ok3-xVRP.js} +1 -1
- package/dist/client/assets/{Upload01-BNGUctEI.js → Upload01-BN6NYqWG.js} +1 -1
- package/dist/client/assets/{User01-Dy3rZ0aR.js → User01-ZyVKonG8.js} +1 -1
- package/dist/client/assets/{Users01-Dv8D_P-8.js → Users01-Chm4EuVC.js} +1 -1
- package/dist/client/assets/{Users03-BFLEPfzp.js → Users03-CAfxXxrx.js} +1 -1
- package/dist/client/assets/{X-BfG7pUZd.js → X-C9CNUxMc.js} +1 -1
- package/dist/client/assets/{XCircle-BAGVWBr6.js → XCircle-CgmQaEpw.js} +1 -1
- package/dist/client/assets/{XClose-BGriJSCO.js → XClose-Ir2v6njF.js} +1 -1
- package/dist/client/assets/{Zap-CuquuuMb.js → Zap-DMOaYDez.js} +1 -1
- package/dist/client/assets/{ZapSquare-eoAx0e5s.js → ZapSquare-DJ6Cr-Gd.js} +1 -1
- package/dist/client/assets/{access-gate-D_qQ3O5w.js → access-gate-CJbiw1ui.js} +1 -1
- package/dist/client/assets/{add-section-modal-wxLjrdi1.js → add-section-modal-CPDfAg6v.js} +1 -1
- package/dist/client/assets/{agent-icon-5i6OCL5F.js → agent-icon-DZlxuF49.js} +1 -1
- package/dist/client/assets/{agents-list-CkVnW9_s.js → agents-list-yd5LMd0m.js} +1 -1
- package/dist/client/assets/{ai-providers-Di--d8ZD.js → ai-providers-BYQ_-U47.js} +1 -1
- package/dist/client/assets/{alert-w_ycSzvU.js → alert-BUeQIcZG.js} +1 -1
- package/dist/client/assets/{alert-dialog-WfWDyyhH.js → alert-dialog-xIkA8j5x.js} +2 -2
- package/dist/client/assets/app-editor-DOobewvH.js +1 -0
- package/dist/client/assets/{auth-B-H82oVn.js → auth-BS9hvljB.js} +1 -1
- package/dist/client/assets/{auth-catchall-__oUb7VD.js → auth-catchall-BQkJx0Q9.js} +1 -1
- package/dist/client/assets/{auth-entry-BjA_M-t_.js → auth-entry-COeA_b06.js} +1 -1
- package/dist/client/assets/{auth-split-layout-R7Cxbaqe.js → auth-split-layout-D3vaJt1T.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-j7JC5dgx.js → authenticate-and-persist-oauth-BpEFvvfk.js} +1 -1
- package/dist/client/assets/{automation-list-row-DYdMB6iS.js → automation-list-row-BeYIheNk.js} +1 -1
- package/dist/client/assets/automation-runs-DJDyx8Ab.js +281 -0
- package/dist/client/assets/{automations-Cm8WmhnT.js → automations-Dc8V9snr.js} +1 -1
- package/dist/client/assets/{avatar-B4WZZi9O.js → avatar-TMC1sUqM.js} +1 -1
- package/dist/client/assets/{badge-CO3kByaZ.js → badge-Cw8NAtiW.js} +1 -1
- package/dist/client/assets/{billing-Dc6_mmjP.js → billing-C0B7lv24.js} +1 -1
- package/dist/client/assets/{block-document-CVqPMrIE.js → block-document-BAeei5ic.js} +3 -3
- package/dist/client/assets/{brand-context-GAWNcchS.js → brand-context-B8Z3AOB1.js} +1 -1
- package/dist/client/assets/{buckets-DV19hkuZ.js → buckets-BUDz0wYB.js} +1 -1
- package/dist/client/assets/bulk-category-panel-Bp_iUjkm.js +1 -0
- package/dist/client/assets/{capability-load-error-CDL0nVSP.js → capability-load-error-DlPlQyTu.js} +1 -1
- package/dist/client/assets/{card-CdJSU8vr.js → card-f7IIAQow.js} +1 -1
- package/dist/client/assets/category-editor-Q4jhDglC.js +1 -0
- package/dist/client/assets/{chat-context-BRG2mTLS.js → chat-context-lZafrisH.js} +4 -4
- package/dist/client/assets/{checkbox-VRqoAnNP.js → checkbox-DRvNUH73.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DOj7bhhA.js → cli-auth-success-C8NhW6ZX.js} +1 -1
- package/dist/client/assets/{collection-detail-DOFmzk0Q.js → collection-detail-Cw8pxVYF.js} +1 -1
- package/dist/client/assets/{collection-display-button-DIwMt19t.js → collection-display-button-Bt8fcXAU.js} +1 -1
- package/dist/client/assets/{collection-search-Ttix_hvO.js → collection-search-BcJG8MRL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DatbUTtn.js → collection-table-wrapper-KcuXHMSk.js} +1 -1
- package/dist/client/assets/{collection-tabs-DCuuZvcU.js → collection-tabs-DdOwtj6b.js} +1 -1
- package/dist/client/assets/{command-DzYbwMY0.js → command-DGcauViI.js} +1 -1
- package/dist/client/assets/commerce-onboarding-CfDDDw6y.js +1 -0
- package/dist/client/assets/{connect-BlS6fDvq.js → connect-BOHbND-E.js} +1 -1
- package/dist/client/assets/{connection-DeKOyYCe.js → connection-D6HFEYzq.js} +1 -1
- package/dist/client/assets/{connection-card-D9ACpI6n.js → connection-card-BVHwhA2v.js} +1 -1
- package/dist/client/assets/{connection-detail-YoMnwCGB.js → connection-detail-DNk_cneF.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B2do0MQh.js → connection-form-helpers-4kXFEJvh.js} +1 -1
- package/dist/client/assets/{connections-54YkSDnq.js → connections-BtTLDoE9.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-B4lV_pkT.js → decopilot-sse-pool-DIaaeHkx.js} +1 -1
- package/dist/client/assets/{dialog-DQWMOcko.js → dialog-CM96GyMN.js} +1 -1
- package/dist/client/assets/{domain-settings-U4W1yTMA.js → domain-settings-B-8BrNH4.js} +1 -1
- package/dist/client/assets/{drawer-CaAWxgE_.js → drawer-Dn3JbFxM.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BrspSm3T.js → dropdown-menu-CuE5oWLS.js} +1 -1
- package/dist/client/assets/{empty-state-Di4I9IOD.js → empty-state-B-rbOsZt.js} +1 -1
- package/dist/client/assets/{extract-connection-data-hkN_mOmy.js → extract-connection-data-D78MPGm0.js} +1 -1
- package/dist/client/assets/file-explorer-BNEWK43O.js +2 -0
- package/dist/client/assets/{form-CyEJbmjQ.js → form-DJREymz4.js} +1 -1
- package/dist/client/assets/{general-Beu18HTM.js → general-Bvib2mwc.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CKJmsZJv.js → github-repo-picker-DnRkLuCY.js} +1 -1
- package/dist/client/assets/{hooks-DHFul8ca.js → hooks-DzdIDE_S.js} +5 -5
- package/dist/client/assets/{index-Cuug8jd7.js → index-B0fkC9lT.js} +27 -27
- package/dist/client/assets/{index-CYVUgbiC.js → index-BKQvMWY3.js} +2 -2
- package/dist/client/assets/index-BLe-kRg3.js +1 -0
- package/dist/client/assets/index-C9Hb4-0H.js +1 -0
- package/dist/client/assets/index-CFru9TWd.js +738 -0
- package/dist/client/assets/{index-CT5lSHsd.js → index-Cbb91-P4.js} +1 -1
- package/dist/client/assets/{index-hERXLT2s.js → index-Ccnv49_z.js} +1 -1
- package/dist/client/assets/{index-DL8v59CJ.js → index-ClVafn5Q.js} +1 -1
- package/dist/client/assets/{index-DjfX2K1C.js → index-D3hIc5HE.js} +1 -1
- package/dist/client/assets/index-DHCkR8xR.css +1 -0
- package/dist/client/assets/{index-C65_levZ.js → index-Dytal4UA.js} +1 -1
- package/dist/client/assets/{index-Cxhypuyo.js → index-Uyw3lO4W.js} +4 -4
- package/dist/client/assets/{index-redirect-BAqq5-dr.js → index-redirect-C63Ka-dC.js} +1 -1
- package/dist/client/assets/{input-DXhpVfJR.js → input-BLYKaojw.js} +1 -1
- package/dist/client/assets/{integration-icon-CDNH_447.js → integration-icon-y2a679m_.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C6UChNCn.js → invite-member-dialog-pvdnivHT.js} +1 -1
- package/dist/client/assets/{label-BQAPYpl9.js → label-CpR3NhLK.js} +1 -1
- package/dist/client/assets/{layout-DaqEbepG.js → layout-DkAn-olq.js} +1 -1
- package/dist/client/assets/{login-BUXngS89.js → login-uBznkVFV.js} +1 -1
- package/dist/client/assets/{mcp-oauth-YbTKUbfv.js → mcp-oauth-Cbz6v_pp.js} +1 -1
- package/dist/client/assets/{members-D6JCoUOa.js → members-CYoo4I8Y.js} +1 -1
- package/dist/client/assets/{monaco-editor-CkHuDiB4.js → monaco-editor-ChN-uCZ5.js} +4 -4
- package/dist/client/assets/{monitoring-stats-row-Bw2V65FM.js → monitoring-stats-row-CaWJELM4.js} +1 -1
- package/dist/client/assets/{multi-select-D4Z78k2n.js → multi-select-HsDIiU9u.js} +1 -1
- package/dist/client/assets/{oauth-callback-wYnJpAVM.js → oauth-callback-D4B9fvV3.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dn0DBncC.js → oauth-callback-ai-provider-D8wbGI6A.js} +1 -1
- package/dist/client/assets/{onboarding-BeWN2rdF.js → onboarding-Ds1l48aO.js} +1 -1
- package/dist/client/assets/{org-layout-BM4IxkKa.js → org-layout-D5C_xL5_.js} +1 -1
- package/dist/client/assets/{organization-choice-CIidmFuH.js → organization-choice-DAqtf8QJ.js} +1 -1
- package/dist/client/assets/{orgs-DeoWjAXr.js → orgs-D62MZerx.js} +1 -1
- package/dist/client/assets/{page-seo-form-D8dMsdHr.js → page-seo-form-C4SkFKsY.js} +1 -1
- package/dist/client/assets/{popover-DYdwyBTg.js → popover-BbhyOPS3.js} +1 -1
- package/dist/client/assets/post-editor-Bpk6It1u.js +1 -0
- package/dist/client/assets/{primitives-8LRj2IuU.js → primitives-Bt3tuGeo.js} +1 -1
- package/dist/client/assets/{profile-9Mx2DBRz.js → profile-BctbNEfJ.js} +1 -1
- package/dist/client/assets/project-app-view-BKQjXNca.js +1 -0
- package/dist/client/assets/{provision-repo-scoped-github-connection-B2s3ApVy.js → provision-repo-scoped-github-connection-ufuvpGD9.js} +1 -1
- package/dist/client/assets/record-editor-QqrTdXL4.js +1 -0
- package/dist/client/assets/redirect-editor-D8jJ6iR_.js +1 -0
- package/dist/client/assets/registry-DhILOcmJ.js +2 -0
- package/dist/client/assets/{registry-layout-CdR4k8dc.js → registry-layout-CQMbkd7b.js} +1 -1
- package/dist/client/assets/{reports-Dqghkvg0.js → reports-rEO41B-T.js} +1 -1
- package/dist/client/assets/{require-capability-B_1QWSj5.js → require-capability-CZ-yYBiA.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Do4z8fey.js → required-auth-layout-DtQVJg-L.js} +1 -1
- package/dist/client/assets/{reset-password-Bbz5yR7K.js → reset-password-xaU8NkAt.js} +1 -1
- package/dist/client/assets/{roles-CvBgQaaU.js → roles-CaPOmG9k.js} +1 -1
- package/dist/client/assets/{search-input-BQlH8Ixe.js → search-input-CZdp52yV.js} +1 -1
- package/dist/client/assets/{secrets-CGw3MbTg.js → secrets-DizdSJgN.js} +1 -1
- package/dist/client/assets/sections-editor-B4E9k2Dl.js +2 -0
- package/dist/client/assets/{select-B5znG0Y1.js → select-BudfwrnS.js} +1 -1
- package/dist/client/assets/{select-model-BkPkSQNk.js → select-model-C7aX0FnY.js} +1 -1
- package/dist/client/assets/self-tool-result-Cj3FZK_q.js +1 -0
- package/dist/client/assets/seo-editor-Dgknhqwj.js +1 -0
- package/dist/client/assets/{settings-layout-BNo2qt6b.js → settings-layout-CU-4TAUD.js} +1 -1
- package/dist/client/assets/{settings-section-BI76S-ZK.js → settings-section-BE7oCApW.js} +1 -1
- package/dist/client/assets/{shell-controls-DsJFVhA4.js → shell-controls-crL6wfUO.js} +1 -1
- package/dist/client/assets/{shell-layout-DZReMwJ6.js → shell-layout-GtI-8lBm.js} +1 -1
- package/dist/client/assets/sidebar-D3IIq4Vk.js +1 -0
- package/dist/client/assets/{skeleton-D0WX-Zws.js → skeleton-GgH9QFOh.js} +1 -1
- package/dist/client/assets/{spinner-pPCTrTnr.js → spinner-DFReXmvo.js} +1 -1
- package/dist/client/assets/{sso-ChAfsvMM.js → sso-BWPSV72o.js} +1 -1
- package/dist/client/assets/{store-bPz4hvdF.js → store-BhZZOuCy.js} +1 -1
- package/dist/client/assets/store-registry-DJSlp72K.js +2 -0
- package/dist/client/assets/{studio-tools-C08UjHsr.js → studio-tools-BaJrIiyZ.js} +1 -1
- package/dist/client/assets/{switch-DYWfZ4oI.js → switch-tQg0oUQP.js} +1 -1
- package/dist/client/assets/{tab-id-DFGnzFYn.js → tab-id-7eVkCyFd.js} +1 -1
- package/dist/client/assets/{table-CAhOdKdH.js → table-C1MCilFh.js} +1 -1
- package/dist/client/assets/{tabs-DsPtL2iD.js → tabs-DX3EM3Ee.js} +1 -1
- package/dist/client/assets/{textarea-9vzfIjDG.js → textarea-mkvWFVEl.js} +1 -1
- package/dist/client/assets/{toggle-group-DY0VwFSy.js → toggle-group-F8qf1aho.js} +1 -1
- package/dist/client/assets/{toolbar-BBy3sR0H.js → toolbar-Cf542s4U.js} +1 -1
- package/dist/client/assets/{tooltip-D09V-b-D.js → tooltip-CD1UqZ9B.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cg8eqOhK.js → use-ai-providers-D16FGHJt.js} +1 -1
- package/dist/client/assets/{use-automations-CjCcOCBs.js → use-automations-D8H19XtT.js} +1 -1
- package/dist/client/assets/{use-autosave-CzDpaxid.js → use-autosave-DL6SLVUG.js} +1 -1
- package/dist/client/assets/{use-capability-BZtV5fjq.js → use-capability-CE9es946.js} +1 -1
- package/dist/client/assets/{use-clock-tick-j7al6WgB.js → use-clock-tick-B_PZSxjQ.js} +1 -1
- package/dist/client/assets/{use-connection-DLCNMhT_.js → use-connection-C9xGzeZ0.js} +1 -1
- package/dist/client/assets/{use-copy-K8bJ1Pv1.js → use-copy-Biga7DQq.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-mSYhJKd_.js → use-create-virtual-mcp-C5b_hYeV.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DyyWFfWP.js → use-debounced-autosave-oSeifFUO.js} +1 -1
- package/dist/client/assets/{use-debounced-value-f6dEbPtS.js → use-debounced-value-B6d-EEaH.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B0sL3XCm.js → use-deco-credits-DEFWEFHy.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C2Oegu9x.js → use-decopilot-events-DPOdIyZW.js} +1 -1
- package/dist/client/assets/{use-delete-connection-V5PIhb7n.js → use-delete-connection-B83lgoSz.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-2G5IDOTX.js → use-deployment-admin-BQjxPpS5.js} +1 -1
- package/dist/client/assets/{use-file-configs-ZOIFLESr.js → use-file-configs-lWDULD1a.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BOup92L2.js → use-infinite-scroll-BuArBLl_.js} +1 -1
- package/dist/client/assets/{use-join-requests-DJLV4CSV.js → use-join-requests-CeBrzND0.js} +1 -1
- package/dist/client/assets/use-mcp-client-D8jVoojU.js +10 -0
- package/dist/client/assets/{use-mcp-tools-JePK22Oi.js → use-mcp-tools-CxNi4RsV.js} +1 -1
- package/dist/client/assets/{use-members-B28NMHu7.js → use-members-DYQSbhV-.js} +1 -1
- package/dist/client/assets/{use-mobile-DFoMyuD6.js → use-mobile-C76oZZ_y.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CP2_58b3.js → use-navigate-to-agent-B7ku0JC8.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DefE1f9-.js → use-open-billing-url-DquSLGrh.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BUZkHhRH.js → use-org-auth-client-CLw_zaJR.js} +1 -1
- package/dist/client/assets/{use-org-sso-B1fpUBuH.js → use-org-sso-DQRelBUr.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DwJh3T-9.js → use-organization-roles-B7ZCQVse.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DtUf52ZO.js → use-organization-settings-DAWGh7rb.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DTbTMRqC.js → use-registry-connections-4HrWpBE2.js} +1 -1
- package/dist/client/assets/{use-secrets-B8PKKgDf.js → use-secrets-CV1UNts7.js} +1 -1
- package/dist/client/assets/{use-status-sounds--E_CrJ-R.js → use-status-sounds-Dxu-GZwE.js} +1 -1
- package/dist/client/assets/{use-tags-y6Q0JJyB.js → use-tags-CF2jWoFP.js} +1 -1
- package/dist/client/assets/{use-view-mode-DRR58QSp.js → use-view-mode-8obytCVP.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-PtirDXqx.js → use-virtual-mcp-BRfZj2ng.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CuXI7a9b.js +1 -0
- package/dist/client/assets/{useRouterState-DwCLyiBJ.js → useRouterState-CIMkbMOV.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-FYAwQiAK.js +1 -0
- package/dist/client/assets/{users-B-7FmAt0.js → users-l3buiqkJ.js} +1 -1
- package/dist/client/assets/variant-calendar-CufrhFsD.js +1 -0
- package/dist/client/assets/{view-mode-toggle-lJepTQIW.js → view-mode-toggle-CErBMjrv.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/app-editor-mYQBEhVt.js +0 -1
- package/dist/client/assets/automation-runs-CQwGBeB-.js +0 -47
- package/dist/client/assets/bulk-category-panel-Dm0XLl8t.js +0 -1
- package/dist/client/assets/calendar-CoGJ_oVh.js +0 -235
- package/dist/client/assets/category-editor-W6tm7Ykr.js +0 -1
- package/dist/client/assets/commerce-onboarding-GT_73BPE.js +0 -1
- package/dist/client/assets/companions-core-PKrSbaze.js +0 -1
- package/dist/client/assets/file-explorer-Bk6wbb2K.js +0 -2
- package/dist/client/assets/index-B8kihcrU.js +0 -663
- package/dist/client/assets/index-CUIiLem4.css +0 -1
- package/dist/client/assets/index-CnssvP1E.js +0 -77
- package/dist/client/assets/index-CoapyGFA.js +0 -1
- package/dist/client/assets/index-KYX7LuWR.js +0 -1
- package/dist/client/assets/post-editor-BdDdpNQu.js +0 -1
- package/dist/client/assets/project-app-view-CGqpRmN-.js +0 -1
- package/dist/client/assets/record-editor-Kz5MxvVB.js +0 -1
- package/dist/client/assets/redirect-editor-oaFF-keF.js +0 -1
- package/dist/client/assets/registry-D41BL0Zp.js +0 -2
- package/dist/client/assets/sections-editor-BShs3A-H.js +0 -2
- package/dist/client/assets/self-tool-result-CR63nIK5.js +0 -1
- package/dist/client/assets/seo-editor-Cb0Y9AY1.js +0 -1
- package/dist/client/assets/sidebar-BIAbDN30.js +0 -1
- package/dist/client/assets/store-registry-D4rRXf4e.js +0 -2
- package/dist/client/assets/use-mcp-client-BDN-FEcc.js +0 -10
- package/dist/client/assets/useInfiniteQuery-DD0TdbWx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dx_jU7Uo.js +0 -1
- package/dist/client/assets/variant-calendar-CPb-l2DG.js +0 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import{r as U,c as W,b as fe,a2 as LO,j as m,B as nr,$ as DE,Z as DO,a1 as MO,bN as H_,bO as PO,ae as FO,aw as xt,bP as BO,m as ye,bx as pb,bQ as co,H as UO,d as la,f as jO,p as HO,aK as $O,aH as Cr,aO as zO,aN as Sr,bM as ds,aL as ua,bR as $_,aJ as z_,F as Pn,o as qO,e as GO,K as dn,t as Xm,n as ps,E as q_,av as G_,bS as fb,aM as WO,bT as Ur,U as ME}from"./index-B0fkC9lT.js";import{e as VO}from"./select-BudfwrnS.js";import{aO as YO,aP as KO,f as XO,aQ as ZO,aR as QO,a1 as JO,C as eL,aS as tL,ap as nL,i as PE,aA as rL,z as aL,j as iL,aT as sL,aM as W_,aU as oL,A as V_,aV as In,aW as lL,k as uL,u as cL}from"./agent-icon-DZlxuF49.js";import{i as Zm}from"./ChevronRight-DzEO4WOO.js";import{u as Y_}from"./useInfiniteQuery-CuXI7a9b.js";import{a as K_,u as dL}from"./use-connection-C9xGzeZ0.js";import{k as pL,u as hb,f as fL,i as hL,a as mL,S as gL}from"./use-mcp-client-D8jVoojU.js";import{a as bL}from"./use-virtual-mcp-BRfZj2ng.js";import{C as EL}from"./card-f7IIAQow.js";import{o as X_,m as Z_,p as mb,q as gb}from"./sidebar-D3IIq4Vk.js";import{c as Q_,e as J_,a as gl,d as an,b as eN,T as sn}from"./table-C1MCilFh.js";import{E as Qm}from"./empty-state-B-rbOsZt.js";import{u as bb}from"./use-infinite-scroll-BuArBLl_.js";import{u as yL}from"./use-members-DYQSbhV-.js";import{u as tN,S as Ma}from"./use-clock-tick-B_PZSxjQ.js";import{e as TL}from"./use-automations-D8H19XtT.js";import{u as nN}from"./studio-tools-BaJrIiyZ.js";import{u as SL}from"./useSuspenseInfiniteQuery-FYAwQiAK.js";import{A as rN}from"./avatar-TMC1sUqM.js";import{t as po}from"./ChevronDown-CsqU07CB.js";import{n as Jm}from"./ChevronUp-CLKFL_od.js";import{n as Eb,t as xL,c as aN,i as kL,a as yb}from"./Tool02-CM2QQuSk.js";import{t as bl}from"./Stars01-CrqdYStA.js";import{i as iN,b as Is}from"./XCircle-CgmQaEpw.js";import{i as fs}from"./Check-D0s6wH1X.js";import{a as El}from"./Copy01-Bu4T-_yj.js";import{b as Ar,t as Tb,c as FE}from"./format-time-BnbuEtat.js";import{u as sN}from"./use-copy-Biga7DQq.js";import{T as Zr,a as Qr,c as Jr}from"./tooltip-CD1UqZ9B.js";import{b as oN,a as vL,c as AL,d as _L,e as lN,g as NL,f as CL}from"./dialog-CM96GyMN.js";import{u as wL}from"./use-mobile-C76oZZ_y.js";import{h as IL,f as RL,o as OL,q as LL}from"./tab-id-7eVkCyFd.js";import{d as DL,c as ML,r as PL,e as FL}from"./hooks-DzdIDE_S.js";import{j as Ka,D as BL,k as Sb,b as uN,a as UL}from"./chat-context-lZafrisH.js";import{c as jL}from"./monaco-editor-ChN-uCZ5.js";import{g as cN,M as HL}from"./index-Uyw3lO4W.js";import{i as dN}from"./AlertCircle-BM2arXAG.js";import{s as $L}from"./Eye-BtghZBaq.js";import{s as fo,t as pN}from"./Star01-COab1bwH.js";import{s as zL}from"./XClose-Ir2v6njF.js";import{n as eg}from"./ZapSquare-DJ6Cr-Gd.js";import{d as qL,c as GL,a as Rs}from"./Tool01-n_pcUGI4.js";import{i as Ai}from"./Monitor01-Cjz_FTaX.js";import{i as WL}from"./SearchMd-DJxFGUte.js";import{i as VL}from"./Upload01-BN6NYqWG.js";import{u as YL,a as KL}from"./shell-layout-GtI-8lBm.js";import{n as fN}from"./LinkExternal01-D1rq1_uq.js";import{I as wr}from"./integration-icon-y2a679m_.js";import{i as XL}from"./ArrowUpRight-B3CxAPJj.js";import{a as xb}from"./Users03-CAfxXxrx.js";import{a as Rn}from"./Palette-dgaramLA.js";import{c as hN}from"./use-navigate-to-agent-B7ku0JC8.js";import{a as ZL}from"./Stars02-6dK01kpk.js";import{g as QL}from"./AreaChart-DAXzCJFT.js";import{F as JL,d as eD,a as tD,e as nD,b as rD,c as aD}from"./form-DJREymz4.js";import{I as iD}from"./input-BLYKaojw.js";import{S as sD}from"./spinner-DFReXmvo.js";const oD={openrouter:t=>{const e=t?.openrouter;return typeof e=="object"&&e!==null&&"usage"in e&&typeof e.usage=="object"&&e.usage!==null&&"cost"in e.usage&&typeof e.usage.cost=="number"?e.usage.cost:null}};function mN(t){if(!t?.providerMetadata)return 0;for(const e of Object.values(oD)){const n=e(t.providerMetadata);if(n!==null)return n}return 0}function gN(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function bN(t,e){if(!e)return t;const n=e.inputTokenDetails?.cacheReadTokens??e.cachedInputTokens??0,r=e.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:t.inputTokens+(e.inputTokens??0),outputTokens:t.outputTokens+(e.outputTokens??0),reasoningTokens:t.reasoningTokens+(e.reasoningTokens??0),totalTokens:t.totalTokens+(e.totalTokens??0),cost:t.cost+mN(e),cacheReadTokens:t.cacheReadTokens+n,cacheWriteTokens:t.cacheWriteTokens+r}}function kb(t){const e=Math.max(t.inputTokens,t.cacheReadTokens+t.cacheWriteTokens);return e>0?t.cacheReadTokens/e:0}function Hse(t){return t.reduce((e,n)=>bN(e,n.metadata?.usage),gN())}const lD={damping:.7,stiffness:.05,mass:1.25},uD=70,cD=1e3/60,dD=350;let yl=!1;globalThis.document?.addEventListener("mousedown",()=>{yl=!0});globalThis.document?.addEventListener("mouseup",()=>{yl=!1});globalThis.document?.addEventListener("click",()=>{yl=!1});const pD=(t={})=>{const[e,n]=U.useState(!1),[r,a]=U.useState(t.initial!==!1),[i,s]=U.useState(!1),o=U.useRef(null);o.current=t;const l=U.useCallback(()=>{if(!yl)return!1;const T=window.getSelection();if(!T||!T.rangeCount)return!1;const x=T.getRangeAt(0);return x.commonAncestorContainer.contains(b.current)||b.current?.contains(x.commonAncestorContainer)},[]),u=U.useCallback(T=>{d.isAtBottom=T,a(T)},[]),c=U.useCallback(T=>{d.escapedFromLock=T,n(T)},[]),d=U.useMemo(()=>{let T;return{escapedFromLock:e,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return b.current?.scrollTop??0},set scrollTop(x){if(b.current){const{scrollBehavior:k}=getComputedStyle(b.current);k!=="auto"&&(b.current.style.scrollBehavior="auto"),b.current.scrollTop=x,d.ignoreScrollToTop=b.current.scrollTop,k!=="auto"&&(b.current.style.scrollBehavior=k)}},get targetScrollTop(){return!b.current||!y.current?0:b.current.scrollHeight-1-b.current.clientHeight},get calculatedTargetScrollTop(){if(!b.current||!y.current)return 0;const{targetScrollTop:x}=this;if(!t.targetScrollTop)return x;if(T?.targetScrollTop===x)return T.calculatedScrollTop;const k=Math.max(Math.min(t.targetScrollTop(x,{scrollElement:b.current,contentElement:y.current}),x),0);return T={targetScrollTop:x,calculatedScrollTop:k},requestAnimationFrame(()=>{T=void 0}),k},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=uD}}},[]),p=U.useCallback((T={})=>{typeof T=="string"&&(T={animation:T}),T.preserveScrollPosition||u(!0);const x=Date.now()+(Number(T.wait)||0),k=uu(o.current,T.animation),{ignoreEscapes:A=!1}=T;let S,v=d.calculatedTargetScrollTop;T.duration instanceof Promise?T.duration.finally(()=>{S=Date.now()}):S=x+(T.duration??0);const N=async()=>{const _=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:C}=d,L=performance.now(),P=(L-(d.lastTick??L))/cD;if(d.animation||(d.animation={behavior:k,promise:_,ignoreEscapes:A}),d.animation.behavior===k&&(d.lastTick=L),l()||x>Date.now())return N();if(C<Math.min(v,d.calculatedTargetScrollTop)){if(d.animation?.behavior===k){if(k==="instant")return d.scrollTop=d.calculatedTargetScrollTop,N();d.velocity=(k.damping*d.velocity+k.stiffness*d.scrollDifference)/k.mass,d.accumulated+=d.velocity*P,d.scrollTop+=d.accumulated,d.scrollTop!==C&&(d.accumulated=0)}return N()}return S>Date.now()?(v=d.calculatedTargetScrollTop,N()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?p({animation:uu(o.current,o.current.resize),ignoreEscapes:A,duration:Math.max(0,S-Date.now())||void 0}):d.isAtBottom)});return _.then(C=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),C))};return T.wait!==!0&&(d.animation=void 0),d.animation?.behavior===k?d.animation.promise:N()},[u,l,d]),f=U.useCallback(()=>{c(!0),u(!1)},[c,u]),h=U.useCallback(({target:T})=>{if(T!==b.current)return;const{scrollTop:x,ignoreScrollToTop:k}=d;let{lastScrollTop:A=x}=d;d.lastScrollTop=x,d.ignoreScrollToTop=void 0,k&&k>x&&(A=k),s(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||x===k)return;if(l()){c(!0),u(!1);return}const S=x>A,v=x<A;if(d.animation?.ignoreEscapes){d.scrollTop=A;return}v&&(c(!0),u(!1)),S&&c(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[c,u,l,d]),g=U.useCallback(({target:T,deltaY:x})=>{let k=T;for(;!["scroll","auto"].includes(getComputedStyle(k).overflow);){if(!k.parentElement)return;k=k.parentElement}k===b.current&&x<0&&b.current.scrollHeight>b.current.clientHeight&&!d.animation?.ignoreEscapes&&(c(!0),u(!1))},[c,u,d]),b=BE(T=>{b.current?.removeEventListener("scroll",h),b.current?.removeEventListener("wheel",g),T?.addEventListener("scroll",h,{passive:!0}),T?.addEventListener("wheel",g,{passive:!0})},[]),y=BE(T=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!T)return;let x;d.resizeObserver=new ResizeObserver(([k])=>{const{height:A}=k.contentRect,S=A-(x??A);if(d.resizeDifference=S,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),s(d.isNearBottom),S>=0){const v=uu(o.current,x?o.current.resize:o.current.initial);p({animation:v,wait:!0,preserveScrollPosition:!0,duration:v==="instant"?void 0:dD})}else d.isNearBottom&&(c(!1),u(!0));x=A,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===S&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(T)},[]);return{contentRef:y,scrollRef:b,scrollToBottom:p,stopScroll:f,isAtBottom:r||i,isNearBottom:i,escapedFromLock:e,state:d}};function BE(t,e){const n=U.useCallback(r=>(n.current=r,t(r)),e);return n}const lu=new Map;function uu(...t){const e={...lD};let n=!1;for(const a of t){if(a==="instant"){n=!0;continue}typeof a=="object"&&(n=!1,e.damping=a.damping??e.damping,e.stiffness=a.stiffness??e.stiffness,e.mass=a.mass??e.mass)}const r=JSON.stringify(e);return lu.has(r)||lu.set(r,Object.freeze(e)),n?"instant":lu.get(r)}function fD(t){let e=2166136261;for(let n=0;n<t.length;n++)e=Math.imul(e^t.charCodeAt(n),16777619);return`a${(e>>>0).toString(36).padStart(6,"0").slice(-6)}`}function vb(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function Ab(t,e){if(!e)return t;const n=`${fD(e)}_`;return t.startsWith(n)?t.slice(n.length):t}function hD(t,e){return Ab(t,e).replace(/[_-]/g," ").toLowerCase()}function mD(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?DE().min(1,e):DE();return DO(n)}function gD(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function bD(t){const e=W.c(74),{prompt:n,setPrompt:r,onSubmit:a,defaultValues:i}=t,s=U.useId(),o=fe();let l,u;if(e[0]!==n||e[1]!==o){const w=mD(n,o("chat.dialogPromptArguments.required"));u=MO,l=LO(w),e[0]=n,e[1]=o,e[2]=l,e[3]=u}else l=e[2],u=e[3];let c;e[4]!==i||e[5]!==n?(c=n?gD(n,i):{},e[4]=i,e[5]=n,e[6]=c):c=e[6];let d;e[7]!==l||e[8]!==c?(d={resolver:l,defaultValues:c,mode:"onChange"},e[7]=l,e[8]=c,e[9]=d):d=e[9];const p=u(d);let f;e[10]!==n?.arguments?(f=n?.arguments??[],e[10]=n?.arguments,e[11]=f):f=e[11];const h=f;let g;e[12]!==p||e[13]!==a||e[14]!==r?(g=async w=>{await a(w),r(null),p.reset()},e[12]=p,e[13]=a,e[14]=r,e[15]=g):g=e[15];const b=g;let y;e[16]!==p||e[17]!==r?(y=w=>{w||(p.reset(),r(null))},e[16]=p,e[17]=r,e[18]=y):y=e[18];const T=y;if(!n)return null;let x;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(x=n.title||hD(n.name,vb(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=x):x=e[22];let k;e[23]!==x?(k=m.jsx(oN,{children:m.jsx("span",{className:"capitalize",children:x})}),e[23]=x,e[24]=k):k=e[24];let A;e[25]!==n.description?(A=n.description&&m.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=A):A=e[26];let S;e[27]!==A||e[28]!==k?(S=m.jsxs(vL,{children:[k,A]}),e[27]=A,e[28]=k,e[29]=S):S=e[29];let v;e[30]!==p||e[31]!==b?(v=w=>{w.stopPropagation(),p.handleSubmit(b)(w)},e[30]=p,e[31]=b,e[32]=v):v=e[32];let N;if(e[33]!==h||e[34]!==p.control||e[35]!==p.formState.isSubmitting||e[36]!==o){let w;e[38]!==p.control||e[39]!==p.formState.isSubmitting||e[40]!==o?(w=V=>m.jsx(eD,{control:p.control,name:V.name,render:ee=>{const{field:R}=ee;return m.jsxs(tD,{children:[m.jsxs(nD,{className:"text-xs",children:[V.name,V.required?null:m.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",o("chat.dialogPromptArguments.optional")]})]}),m.jsx(rD,{children:m.jsx(iD,{...R,value:R.value??"",required:V.required,placeholder:V.description??"",className:"h-9",disabled:p.formState.isSubmitting})}),m.jsx(aD,{})]})}},V.name),e[38]=p.control,e[39]=p.formState.isSubmitting,e[40]=o,e[41]=w):w=e[41],N=h.map(w),e[33]=h,e[34]=p.control,e[35]=p.formState.isSubmitting,e[36]=o,e[37]=N}else N=e[37];let _;e[42]!==T?(_=()=>T(!1),e[42]=T,e[43]=_):_=e[43];const C=p.formState.isSubmitting;let L;e[44]!==o?(L=o("chat.dialogPromptArguments.cancel"),e[44]=o,e[45]=L):L=e[45];let P;e[46]!==p.formState.isSubmitting||e[47]!==_||e[48]!==L?(P=m.jsx(nr,{type:"button",variant:"ghost",onClick:_,disabled:C,children:L}),e[46]=p.formState.isSubmitting,e[47]=_,e[48]=L,e[49]=P):P=e[49];let $;e[50]!==p.formState.isSubmitting||e[51]!==o?($=p.formState.isSubmitting?m.jsxs("span",{className:"flex items-center gap-2",children:[m.jsx(sD,{size:"xs"}),o("chat.dialogPromptArguments.loading")]}):o("chat.dialogPromptArguments.usePrompt"),e[50]=p.formState.isSubmitting,e[51]=o,e[52]=$):$=e[52];let F;e[53]!==p.formState.isSubmitting||e[54]!==s||e[55]!==$?(F=m.jsx(nr,{type:"submit",form:s,disabled:p.formState.isSubmitting,children:$}),e[53]=p.formState.isSubmitting,e[54]=s,e[55]=$,e[56]=F):F=e[56];let M;e[57]!==P||e[58]!==F?(M=m.jsxs(AL,{children:[P,F]}),e[57]=P,e[58]=F,e[59]=M):M=e[59];let H;e[60]!==s||e[61]!==v||e[62]!==N||e[63]!==M?(H=m.jsxs("form",{id:s,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[N,M]}),e[60]=s,e[61]=v,e[62]=N,e[63]=M,e[64]=H):H=e[64];let j;e[65]!==p||e[66]!==H?(j=m.jsx(JL,{...p,children:H}),e[65]=p,e[66]=H,e[67]=j):j=e[67];let B;e[68]!==S||e[69]!==j?(B=m.jsxs(_L,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[S,j]}),e[68]=S,e[69]=j,e[70]=B):B=e[70];let Y;return e[71]!==T||e[72]!==B?(Y=m.jsx(lN,{open:!0,onOpenChange:T,children:B}),e[71]=T,e[72]=B,e[73]=Y):Y=e[73],Y}function tg(t){return t?t.replace(/[_-]/g," ").toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""}function Sn(t,e){return t==="output-error"||t==="output-denied"?"error":t==="approval-requested"?"approval":t==="input-streaming"||t==="input-available"||t==="output-available"&&e===!0?"loading":"idle"}function Xa(t){if(t==null||typeof t!="object")return;const e=t;if(e.structuredContent&&typeof e.structuredContent=="object")return e.structuredContent;if(Array.isArray(e.content)){const n=e.content[0];if(n?.type==="text"&&typeof n.text=="string")try{return JSON.parse(n.text)}catch{return}return}return t}function ht(t){this.content=t}ht.prototype={constructor:ht,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,a=r.find(t),i=r.content.slice();return a==-1?i.push(n||t,e):(i[a+1]=e,n&&(i[a]=n)),new ht(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new ht(n)},addToStart:function(t,e){return new ht([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ht(n)},addBefore:function(t,e,n){var r=this.remove(e),a=r.content.slice(),i=r.find(t);return a.splice(i==-1?a.length:i,0,e,n),new ht(a)},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=ht.from(t),t.size?new ht(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ht.from(t),t.size?new ht(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ht.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}};ht.from=function(t){if(t instanceof ht)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ht(e)};function EN(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let a=t.child(r),i=e.child(r);if(a==i){n+=a.nodeSize;continue}if(!a.sameMarkup(i))return n;if(a.isText&&a.text!=i.text){for(let s=0;a.text[s]==i.text[s];s++)n++;return n}if(a.content.size||i.content.size){let s=EN(a.content,i.content,n+1);if(s!=null)return s}n+=a.nodeSize}}function yN(t,e,n,r){for(let a=t.childCount,i=e.childCount;;){if(a==0||i==0)return a==i?null:{a:n,b:r};let s=t.child(--a),o=e.child(--i),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let u=0,c=Math.min(s.text.length,o.text.length);for(;u<c&&s.text[s.text.length-u-1]==o.text[o.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||o.content.size){let u=yN(s.content,o.content,n-1,r-1);if(u)return u}n-=l,r-=l}}class X{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,a=0,i){for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;if(u>e&&r(l,a+o,i||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,a+c)}o=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,a){let i="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let u=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?a?typeof a=="function"?a(o):a:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&u||o.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,a=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)a.push(e.content[i]);return new X(a,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],a=0;if(n>e)for(let i=0,s=0;s<n;i++){let o=this.content[i],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),a+=o.nodeSize),s=l}return new X(r,a)}cutByIndex(e,n){return e==n?X.empty:e==0&&n==this.content.length?this:new X(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let a=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return a[e]=n,new X(a,i)}addToStart(e){return new X([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new X(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 a=this.content[n];e(a,r,n),r+=a.nodeSize}}findDiffStart(e,n=0){return EN(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return yN(this,e,n,r)}findIndex(e){if(e==0)return Os(0,e);if(e==this.size)return Os(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 a=this.child(n),i=r+a.nodeSize;if(i>=e)return i==e?Os(n+1,i):Os(n,r);r=i}}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 X.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new X(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return X.empty;let n,r=0;for(let a=0;a<e.length;a++){let i=e[a];r+=i.nodeSize,a&&i.isText&&e[a-1].sameMarkup(i)?(n||(n=e.slice(0,a)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new X(n||e,r)}static from(e){if(!e)return X.empty;if(e instanceof X)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new X([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}X.empty=new X([],0);const cu={index:0,offset:0};function Os(t,e){return cu.index=t,cu.offset=e,cu}function ho(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(!ho(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ho(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $e=class ng{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let a=0;a<e.length;a++){let i=e[a];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,a));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,a)),n.push(this),r=!0),n&&n.push(i)}}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&&ho(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 a=r.create(n.attrs);return r.checkAttrs(a.attrs),a}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 ng.none;if(e instanceof ng)return[e];let n=e.slice();return n.sort((r,a)=>r.type.rank-a.type.rank),n}};$e.none=[];class mo extends Error{}class ae{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=SN(this.content,e+this.openStart,n);return r&&new ae(r,this.openStart,this.openEnd)}removeBetween(e,n){return new ae(TN(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 ae.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ae(X.fromJSON(e,n.content),r,a)}static maxOpen(e,n=!0){let r=0,a=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)a++;return new ae(e,r,a)}}ae.empty=new ae(X.empty,0,0);function TN(t,e,n){let{index:r,offset:a}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(a==e||i.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(TN(i.content,e-a-1,n-a-1)))}function SN(t,e,n,r){let{index:a,offset:i}=t.findIndex(e),s=t.maybeChild(a);if(i==e||s.isText)return r&&!r.canReplace(a,a,n)?null:t.cut(0,e).append(n).append(t.cut(e));let o=SN(s.content,e-i-1,n,s);return o&&t.replaceChild(a,s.copy(o))}function ED(t,e,n){if(n.openStart>t.depth)throw new mo("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new mo("Inconsistent open depths");return xN(t,e,n,0)}function xN(t,e,n,r){let a=t.index(r),i=t.node(r);if(a==e.index(r)&&r<t.depth-n.openStart){let s=xN(t,e,n,r+1);return i.copy(i.content.replaceChild(a,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return Wr(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=yD(n,t);return Wr(i,vN(t,s,o,e,r))}else return Wr(i,go(t,e,r))}function kN(t,e){if(!e.type.compatibleContent(t.type))throw new mo("Cannot join "+e.type.name+" onto "+t.type.name)}function rg(t,e,n){let r=t.node(n);return kN(r,e.node(n)),r}function Gr(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 _i(t,e,n,r){let a=(e||t).node(n),i=0,s=e?e.index(n):a.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Gr(t.nodeAfter,r),i++));for(let o=i;o<s;o++)Gr(a.child(o),r);e&&e.depth==n&&e.textOffset&&Gr(e.nodeBefore,r)}function Wr(t,e){return t.type.checkContent(e),t.copy(e)}function vN(t,e,n,r,a){let i=t.depth>a&&rg(t,e,a+1),s=r.depth>a&&rg(n,r,a+1),o=[];return _i(null,t,a,o),i&&s&&e.index(a)==n.index(a)?(kN(i,s),Gr(Wr(i,vN(t,e,n,r,a+1)),o)):(i&&Gr(Wr(i,go(t,e,a+1)),o),_i(e,n,a,o),s&&Gr(Wr(s,go(n,r,a+1)),o)),_i(r,null,a,o),new X(o)}function go(t,e,n){let r=[];if(_i(null,t,n,r),t.depth>n){let a=rg(t,e,n+1);Gr(Wr(a,go(t,e,n+1)),r)}return _i(e,null,n,r),new X(r)}function yD(t,e){let n=e.depth-t.openStart,a=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)a=e.node(i).copy(X.from(a));return{start:a.resolveNoCache(t.openStart+n),end:a.resolveNoCache(a.content.size-t.openEnd-n)}}class Wi{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],a=e.child(n);return r?e.child(n).cut(r):a}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],a=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)a+=r.child(i).nodeSize;return a}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $e.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),a=e.maybeChild(n);if(!r){let o=r;r=a,a=o}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!a||!i[s].isInSet(a.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,a=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!a||!r[i].isInSet(a.marks))&&(r=r[i--].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 bo(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=[],a=0,i=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(i),u=i-l;if(r.push(s,o,a+l),!u||(s=s.child(o),s.isText))break;i=u-1,a+=l+1}return new Wi(n,r,i)}static resolveCached(e,n){let r=UE.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else UE.set(e,r=new TD);let a=r.elts[r.i]=Wi.resolve(e,n);return r.i=(r.i+1)%SD,a}}class TD{constructor(){this.elts=[],this.i=0}}const SD=12,UE=new WeakMap;class bo{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 xD=Object.create(null);class bn{constructor(e,n,r,a=$e.none){this.type=e,this.attrs=n,this.marks=a,this.content=r||X.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,a=0){this.content.nodesBetween(e,n,r,a,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,a){return this.content.textBetween(e,n,r,a)}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&&ho(this.attrs,n||e.defaultAttrs||xD)&&$e.sameSet(this.marks,r||$e.none)}copy(e=null){return e==this.content?this:new bn(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new bn(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 ae.empty;let a=this.resolve(e),i=this.resolve(n),s=r?0:a.sharedDepth(n),o=a.start(s),u=a.node(s).content.cut(a.pos-o,i.pos-o);return new ae(u,a.depth-s,i.depth-s)}replace(e,n,r){return ED(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:a}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(a==e||n.isText)return n;e-=a+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 a=this.content.child(n-1);return{node:a,index:n-1,offset:r-a.nodeSize}}resolve(e){return Wi.resolveCached(this,e)}resolveNoCache(e){return Wi.resolve(this,e)}rangeHasMark(e,n,r){let a=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(a=!0),!a)),a}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()+")"),AN(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=X.empty,a=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,a,i),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=a;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,a){if(a&&!this.type.allowsMarks(a))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.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=$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(!$e.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 a=X.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,a,r);return i.type.checkAttrs(i.attrs),i}}bn.prototype.text=void 0;class Eo extends bn{constructor(e,n,r,a){if(super(e,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):AN(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 Eo(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Eo(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 AN(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class ea{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kD(e,n);if(r.next==null)return ea.empty;let a=_N(r);r.next&&r.err("Unexpected trailing text");let i=ID(wD(a));return RD(i,r),i}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 a=this;for(let i=n;a&&i<r;i++)a=a.matchType(e.child(i).type);return a}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 a=[this];function i(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return X.from(o.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&a.indexOf(d)==-1){a.push(d);let p=i(d,o.concat(c));if(p)return p}}return null}return i(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 a=r.shift(),i=a.match;if(i.matchType(e)){let s=[];for(let o=a;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:o,next:l}=i.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!a.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:a}),n[o.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 a=0;a<r.next.length;a++)e.indexOf(r.next[a].next)==-1&&n(r.next[a].next)}return n(this),e.map((r,a)=>{let i=a+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
2
|
+
`)}}ea.empty=new ea(!0);class kD{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 _N(t){let e=[];do e.push(vD(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function vD(t){let e=[];do e.push(AD(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function AD(t){let e=CD(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=_D(t,e);else break;return e}function jE(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function _D(t,e){let n=jE(t),r=n;return t.eat(",")&&(t.next!="}"?r=jE(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function ND(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let a=[];for(let i in n){let s=n[i];s.isInGroup(e)&&a.push(s)}return a.length==0&&t.err("No node type or group '"+e+"' found"),a}function CD(t){if(t.eat("(")){let e=_N(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=ND(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 wD(t){let e=[[]];return a(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,o,l){let u={term:l,to:o};return e[s].push(u),u}function a(s,o){s.forEach(l=>l.to=o)}function i(s,o){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,o)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],o);if(l==s.exprs.length-1)return u;a(u,o=n())}else if(s.type=="star"){let l=n();return r(o,l),a(i(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return a(i(s.expr,o),l),a(i(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(o)].concat(i(s.expr,o));if(s.type=="range"){let l=o;for(let u=0;u<s.min;u++){let c=n();a(i(s.expr,l),c),l=c}if(s.max==-1)a(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();r(l,c),a(i(s.expr,l),c),l=c}return[r(l)]}else{if(s.type=="name")return[r(o,void 0,s.value)];throw new Error("Unknown expr type")}}}}function NN(t,e){return e-t}function HE(t,e){let n=[];return r(e),n.sort(NN);function r(a){let i=t[a];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(a);for(let s=0;s<i.length;s++){let{term:o,to:l}=i[s];!o&&n.indexOf(l)==-1&&r(l)}}}function ID(t){let e=Object.create(null);return n(HE(t,0));function n(r){let a=[];r.forEach(s=>{t[s].forEach(({term:o,to:l})=>{if(!o)return;let u;for(let c=0;c<a.length;c++)a[c][0]==o&&(u=a[c][1]);HE(t,l).forEach(c=>{u||a.push([o,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[r.join(",")]=new ea(r.indexOf(t.length-1)>-1);for(let s=0;s<a.length;s++){let o=a[s][1].sort(NN);i.next.push({type:a[s][0],next:e[o.join(",")]||n(o)})}return i}}function RD(t,e){for(let n=0,r=[t];n<r.length;n++){let a=r[n],i=!a.validEnd,s=[];for(let o=0;o<a.next.length;o++){let{type:l,next:u}=a.next[o];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function CN(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 wN(t,e){let n=Object.create(null);for(let r in t){let a=e&&e[r];if(a===void 0){let i=t[r];if(i.hasDefault)a=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=a}return n}function IN(t,e,n,r){for(let a in e)if(!(a in t))throw new RangeError(`Unsupported attribute ${a} for ${n} of type ${a}`);for(let a in t){let i=t[a];i.validate&&i.validate(e[a])}}function RN(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new LD(t,r,e[r]);return n}let $E=class ON{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=RN(e,r.attrs),this.defaultAttrs=CN(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==ea.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:wN(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new bn(this,this.computeAttrs(e),X.from(n),$e.setFrom(r))}createChecked(e=null,n,r){return n=X.from(n),this.checkContent(n),new bn(this,this.computeAttrs(e),n,$e.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=X.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let a=this.contentMatch.matchFragment(n),i=a&&a.fillBefore(X.empty,!0);return i?new bn(this,e,n.append(i),$e.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){IN(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:$e.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new ON(i,n,s));let a=n.spec.topNode||"doc";if(!r[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function OD(t,e,n){let r=n.split("|");return a=>{let i=a===null?"null":typeof a;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class LD{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?OD(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Tl{constructor(e,n,r,a){this.name=e,this.rank=n,this.schema=r,this.spec=a,this.attrs=RN(e,a.attrs),this.excluded=null;let i=CN(this.attrs);this.instance=i?new $e(this,i):null}create(e=null){return!e&&this.instance?this.instance:new $e(this,wN(this.attrs,e))}static compile(e,n){let r=Object.create(null),a=0;return e.forEach((i,s)=>r[i]=new Tl(i,a++,n,s)),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){IN(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let LN=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let a in e)n[a]=e[a];n.nodes=ht.from(e.nodes),n.marks=ht.from(e.marks||{}),this.nodes=$E.compile(this.spec.nodes,this),this.marks=Tl.compile(this.spec.marks,this);let r=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let i=this.nodes[a],s=i.spec.content||"",o=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=ea.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=o=="_"?null:o?zE(this,o.split(" ")):o==""||!i.inlineContent?[]:null}for(let a in this.marks){let i=this.marks[a],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:zE(this,s.split(" "))}this.nodeFromJSON=a=>bn.fromJSON(this,a),this.markFromJSON=a=>$e.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,a){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof $E){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,a)}text(e,n){let r=this.nodes.text;return new Eo(r,r.defaultAttrs,e,$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 zE(t,e){let n=[];for(let r=0;r<e.length;r++){let a=e[r],i=t.marks[a],s=i;if(i)n.push(i);else for(let o in t.marks){let l=t.marks[o];(a=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(a)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function DD(t){return t.tag!=null}function MD(t){return t.style!=null}class Jn{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(a=>{if(DD(a))this.tags.push(a);else if(MD(a)){let i=/[^=]*/.exec(a.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let i=e.nodes[a.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new GE(this,n,!1);return r.addAll(e,$e.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new GE(this,n,!0);return r.addAll(e,$e.none,n.from,n.to),ae.maxOpen(r.finish())}matchTag(e,n,r){for(let a=r?this.tags.indexOf(r)+1:0;a<this.tags.length;a++){let i=this.tags[a];if(BD(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,a){for(let i=a?this.styles.indexOf(a)+1:0;i<this.styles.length;i++){let s=this.styles[i],o=s.style;if(!(o.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||o.length>e.length&&(o.charCodeAt(e.length)!=61||o.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(a){let i=a.priority==null?50:a.priority,s=0;for(;s<n.length;s++){let o=n[s];if((o.priority==null?50:o.priority)<i)break}n.splice(s,0,a)}for(let a in e.marks){let i=e.marks[a].spec.parseDOM;i&&i.forEach(s=>{r(s=WE(s)),s.mark||s.ignore||s.clearMark||(s.mark=a)})}for(let a in e.nodes){let i=e.nodes[a].spec.parseDOM;i&&i.forEach(s=>{r(s=WE(s)),s.node||s.ignore||s.mark||(s.node=a)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Jn(e,Jn.schemaRules(e)))}}const DN={address:!0,article:!0,aside:!0,blockquote:!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},PD={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},MN={ol:!0,ul:!0},Vi=1,ag=2,Ni=4;function qE(t,e,n){return e!=null?(e?Vi:0)|(e==="full"?ag:0):t&&t.whitespace=="pre"?Vi|ag:n&~Ni}class Ls{constructor(e,n,r,a,i,s){this.type=e,this.attrs=n,this.marks=r,this.solid=a,this.options=s,this.content=[],this.activeMarks=$e.none,this.match=i||(s&Ni?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(X.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,a;return(a=r.findWrapping(e.type))?(this.match=r,a):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Vi)){let r=this.content[this.content.length-1],a;if(r&&r.isText&&(a=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-a[0].length))}}let n=X.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(X.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&&!DN.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class GE{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let a=n.topNode,i,s=qE(null,n.preserveWhitespace,0)|(r?Ni:0);a?i=new Ls(a.type,a.attrs,$e.none,!0,n.topMatch||a.type.contentMatch,s):r?i=new Ls(null,null,$e.none,!0,null,s):i=new Ls(e.schema.topNodeType,null,$e.none,!0,null,s),this.nodes=[i],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,a=this.top,i=a.options&ag?"full":this.localPreserveWS||(a.options&Vi)>0,{schema:s}=this.parser;if(i==="full"||a.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
|
|
3
|
+
`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let l=0;l<o.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),o[l]&&this.insertNode(s.text(o[l]),n,!/\S/.test(o[l]));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 o=a.content[a.content.length-1],l=e.previousSibling;(!o||l&&l.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let a=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;MN.hasOwnProperty(s)&&this.parser.normalizeLists&&FD(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));e:if(l?l.ignore:PD.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(DN.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?o:void 0)}this.localPreserveWS=a}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
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 a=0;a<this.parser.matchedStyles.length;a++){let i=this.parser.matchedStyles[a],s=r.getPropertyValue(i);if(s)for(let o=void 0;;){let l=this.parser.matchStyle(i,s,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return n}addElementByRule(e,n,r,a){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(i=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(a)this.addElement(e,r,a);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}i&&this.sync(o)&&this.open--}addAll(e,n,r,a){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=a==null?null:e.childNodes[a];s!=o;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let a,i;for(let s=this.open,o=0;s>=0;s--){let l=this.nodes[s],u=l.findWrapping(e);if(u&&(!a||a.length>u.length+o)&&(a=u,i=l,!u.length))break;if(l.solid){if(r)break;o+=2}}if(!a)return null;this.sync(i);for(let s=0;s<a.length;s++)n=this.enterInner(a[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let a=this.findPlace(e,n,r);if(a){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=$e.none;for(let o of a.concat(e.marks))(i.type?i.type.allowsMarkType(o.type):VE(o.type,e.type))&&(s=o.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,a){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,a)),i}enterInner(e,n,r,a=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=qE(e,i,s.options);s.options&Ni&&s.content.length==0&&(o|=Ni);let l=$e.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):VE(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new Ls(e,n,l,a,null,o)),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|=Vi)}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 a=r.length-1;a>=0;a--)e+=r[a].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 a=0;a<this.find.length;a++)this.find[a].pos==null&&e.nodeType==1&&e.contains(this.find[a].node)&&n.compareDocumentPosition(this.find[a].node)&(r?2:4)&&(this.find[a].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,a=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(a?0:1),s=(o,l)=>{for(;o>=0;o--){let u=n[o];if(u==""){if(o==n.length-1||o==0)continue;for(;l>=i;l--)if(s(o-1,l))return!0;return!1}else{let c=l>0||l==0&&a?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return s(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 FD(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&MN.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function BD(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function WE(t){let e={};for(let n in t)e[n]=t[n];return e}function VE(t,e){let n=e.schema.nodes;for(let r in n){let a=n[r];if(!a.allowsMarkType(t))continue;let i=[],s=o=>{i.push(o);for(let l=0;l<o.edgeCount;l++){let{type:u,next:c}=o.edge(l);if(u==e||i.indexOf(c)<0&&s(c))return!0}};if(s(a.contentMatch))return!0}}class ca{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=du(n).createDocumentFragment());let a=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let o=0,l=0;for(;o<i.length&&l<s.marks.length;){let u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[o][0])||u.type.spec.spanning===!1)break;o++,l++}for(;o<i.length;)a=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(i.push([u,a]),a.appendChild(c.dom),a=c.contentDOM||c.dom)}}a.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:a}=Js(du(n),this.nodes[e.type.name](e),null,e.attrs);if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,a)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let a=e.marks.length-1;a>=0;a--){let i=this.serializeMark(e.marks[a],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let a=this.marks[e.type.name];return a&&Js(du(r),a(e,n),null,e.attrs)}static renderSpec(e,n,r=null,a){return Js(e,n,r,a)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ca(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=YE(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return YE(e.marks)}}function YE(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function du(t){return t.document||window.document}const KE=new WeakMap;function UD(t){let e=KE.get(t);return e===void 0&&KE.set(t,e=jD(t)),e}function jD(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 a=0;a<r.length;a++)n(r[a]);else for(let a in r)n(r[a])}return n(t),e}function Js(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let a=e[0],i;if(typeof a!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=UD(r))&&i.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 s=a.indexOf(" ");s>0&&(n=a.slice(0,s),a=a.slice(s+1));let o,l=n?t.createElementNS(n,a):t.createElement(a),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),u[d]):d=="style"&&l.style?l.style.cssText=u[d]:l.setAttribute(d,u[d])}}for(let d=c;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:h}=Js(t,p,n,r);if(l.appendChild(f),h){if(o)throw new RangeError("Multiple content holes");o=h}}}return{dom:l,contentDOM:o}}const PN=65535,FN=Math.pow(2,16);function HD(t,e){return t+e*FN}function XE(t){return t&PN}function $D(t){return(t-(t&PN))/FN}const BN=1,UN=2,eo=4,jN=8;class ig{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&jN)>0}get deletedBefore(){return(this.delInfo&(BN|eo))>0}get deletedAfter(){return(this.delInfo&(UN|eo))>0}get deletedAcross(){return(this.delInfo&eo)>0}}class Xt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Xt.empty)return Xt.empty}recover(e){let n=0,r=XE(e);if(!this.inverted)for(let a=0;a<r;a++)n+=this.ranges[a*3+2]-this.ranges[a*3+1];return this.ranges[r*3]+n+$D(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 a=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?a:0);if(l>e)break;let u=this.ranges[o+i],c=this.ranges[o+s],d=l+u;if(e<=d){let p=u?e==l?-1:e==d?1:n:n,f=l+a+(p<0?0:c);if(r)return f;let h=e==(n<0?l:d)?null:HD(o/3,e-l),g=e==l?UN:e==d?BN:eo;return(n<0?e!=l:e!=d)&&(g|=jN),new ig(f,g,h)}a+=c-u}return r?e+a:new ig(e+a,0,null)}touches(e,n){let r=0,a=XE(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[o+i],c=l+u;if(e<=c&&o==a*3)return!0;r+=this.ranges[o+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let a=0,i=0;a<this.ranges.length;a+=3){let s=this.ranges[a],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),u=this.ranges[a+n],c=this.ranges[a+r];e(o,o+u,l,l+c),i+=c-u}}invert(){return new Xt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Xt.empty:new Xt(e<0?[0,-e,0]:[0,0,e])}}Xt.empty=new Xt([]);class Yi{constructor(e,n,r=0,a=e?e.length:0){this.mirror=n,this.from=r,this.to=a,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Yi(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 a=e.getMirror(n);this.appendMap(e._maps[n],a!=null&&a<n?r+a: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 a=e.getMirror(n);this.appendMap(e._maps[n].invert(),a!=null&&a>n?r-a-1:void 0)}}invert(){let e=new Yi;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 a=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],o=s.mapResult(e,n);if(o.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this._maps[l].recover(o.recover);continue}}a|=o.delInfo,e=o.pos}return r?e:new ig(e,a,null)}}const pu=Object.create(null);class At{getMap(){return Xt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=pu[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 pu)throw new RangeError("Duplicate use of step JSON ID "+e);return pu[e]=n,n.prototype.jsonID=e,n}}class it{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new it(e,null)}static fail(e){return new it(null,e)}static fromReplace(e,n,r,a){try{return it.ok(e.replace(n,r,a))}catch(i){if(i instanceof mo)return it.fail(i.message);throw i}}}function _b(t,e,n){let r=[];for(let a=0;a<t.childCount;a++){let i=t.child(a);i.content.size&&(i=i.copy(_b(i.content,e,i))),i.isInline&&(i=e(i,n,a)),r.push(i)}return X.fromArray(r)}class gr extends At{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),a=r.node(r.sharedDepth(this.to)),i=new ae(_b(n.content,(s,o)=>!s.isAtom||!o.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),a),n.openStart,n.openEnd);return it.fromReplace(e,this.from,this.to,i)}invert(){return new gn(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 gr(n.pos,r.pos,this.mark)}merge(e){return e instanceof gr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new gr(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 gr(n.from,n.to,e.markFromJSON(n.mark))}}At.jsonID("addMark",gr);class gn extends At{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 ae(_b(n.content,a=>a.mark(this.mark.removeFromSet(a.marks)),e),n.openStart,n.openEnd);return it.fromReplace(e,this.from,this.to,r)}invert(){return new gr(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 gn(n.pos,r.pos,this.mark)}merge(e){return e instanceof gn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new gn(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 gn(n.from,n.to,e.markFromJSON(n.mark))}}At.jsonID("removeMark",gn);class br extends At{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return it.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return it.fromReplace(e,this.pos,this.pos+1,new ae(X.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 a=0;a<n.marks.length;a++)if(!n.marks[a].isInSet(r))return new br(this.pos,n.marks[a]);return new br(this.pos,this.mark)}}return new ta(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new br(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 br(n.pos,e.markFromJSON(n.mark))}}At.jsonID("addNodeMark",br);class ta extends At{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return it.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return it.fromReplace(e,this.pos,this.pos+1,new ae(X.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new br(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ta(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 ta(n.pos,e.markFromJSON(n.mark))}}At.jsonID("removeNodeMark",ta);class at extends At{constructor(e,n,r,a=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=a}apply(e){return this.structure&&sg(e,this.from,this.to)?it.fail("Structure replace would overwrite content"):it.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Xt([this.from,this.to-this.from,this.slice.size])}invert(e){return new at(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&&at.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new at(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof at)||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?ae.empty:new ae(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new at(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?ae.empty:new ae(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new at(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 at(n.from,n.to,ae.fromJSON(e,n.slice),!!n.structure)}}at.MAP_BIAS=1;At.jsonID("replace",at);class dt extends At{constructor(e,n,r,a,i,s,o=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=a,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(sg(e,this.from,this.gapFrom)||sg(e,this.gapTo,this.to)))return it.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return it.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?it.fromReplace(e,this.from,this.to,r):it.fail("Content does not fit in gap")}getMap(){return new Xt([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 dt(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),a=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||a<n.pos||i>r.pos?null:new dt(n.pos,r.pos,a,i,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 dt(n.from,n.to,n.gapFrom,n.gapTo,ae.fromJSON(e,n.slice),n.insert,!!n.structure)}}At.jsonID("replaceAround",dt);function sg(t,e,n){let r=t.resolve(e),a=n-e,i=r.depth;for(;a>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,a--;if(a>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;a>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,a--}}return!1}function zD(t,e,n,r){let a=[],i=[],s,o;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let p=Math.max(u,e),f=Math.min(u+l.nodeSize,n),h=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(h)||(s&&s.to==p&&s.mark.eq(d[g])?s.to=f:a.push(s=new gn(p,f,d[g])));o&&o.to==p?o.to=f:i.push(o=new gr(p,f,r))}}),a.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function qD(t,e,n,r){let a=[],i=0;t.doc.nodesBetween(e,n,(s,o)=>{if(!s.isInline)return;i++;let l=null;if(r instanceof Tl){let u=s.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let u=Math.min(o+s.nodeSize,n);for(let c=0;c<l.length;c++){let d=l[c],p;for(let f=0;f<a.length;f++){let h=a[f];h.step==i-1&&d.eq(a[f].style)&&(p=h)}p?(p.to=u,p.step=i):a.push({style:d,from:Math.max(o,e),to:u,step:i})}}}),a.forEach(s=>t.step(new gn(s.from,s.to,s.style)))}function Nb(t,e,n,r=n.contentMatch,a=!0){let i=t.doc.nodeAt(e),s=[],o=e+1;for(let l=0;l<i.childCount;l++){let u=i.child(l),c=o+u.nodeSize,d=r.matchType(u.type);if(!d)s.push(new at(o,c,ae.empty));else{r=d;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||t.step(new gn(o,c,u.marks[p]));if(a&&u.isText&&n.whitespace!="pre"){let p,f=/\r?\n|\r/g,h;for(;p=f.exec(u.text);)h||(h=new ae(X.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new at(o+p.index,o+p.index+p[0].length,h))}}o=c}if(!r.validEnd){let l=r.fillBefore(X.empty,!0);t.replace(o,o,new ae(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function GD(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Za(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,a=0,i=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+a,l=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(o,l,n))return r;if(r==0||s.type.spec.isolating||!GD(s,o,l))break;o&&(a=1),l<s.childCount&&(i=1)}return null}function WD(t,e,n){let{$from:r,$to:a,depth:i}=e,s=r.before(i+1),o=a.after(i+1),l=s,u=o,c=X.empty,d=0;for(let h=i,g=!1;h>n;h--)g||r.index(h)>0?(g=!0,c=X.from(r.node(h).copy(c)),d++):l--;let p=X.empty,f=0;for(let h=i,g=!1;h>n;h--)g||a.after(h+1)<a.end(h)?(g=!0,p=X.from(a.node(h).copy(p)),f++):u++;t.step(new dt(l,u,s,o,new ae(c.append(p),d,f),c.size-d,!0))}function Cb(t,e,n=null,r=t){let a=VD(t,e),i=a&&YD(r,e);return i?a.map(ZE).concat({type:e,attrs:n}).concat(i.map(ZE)):null}function ZE(t){return{type:t,attrs:null}}function VD(t,e){let{parent:n,startIndex:r,endIndex:a}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,a,s)?i:null}function YD(t,e){let{parent:n,startIndex:r,endIndex:a}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;l&&u<a;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function KD(t,e,n){let r=X.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let o=n[s].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=X.from(n[s].type.create(n[s].attrs,r))}let a=e.start,i=e.end;t.step(new dt(a,i,a,i,new ae(r,0,0),n.length,!0))}function XD(t,e,n,r,a){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,o)=>{let l=typeof a=="function"?a(s):a;if(s.isTextblock&&!s.hasMarkup(r,l)&&ZD(t.doc,t.mapping.slice(i).map(o),r)){let u=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!h?u=!1:!f&&h&&(u=!0)}u===!1&&$N(t,s,o,i),Nb(t,t.mapping.slice(i).map(o,1),r,void 0,u===null);let c=t.mapping.slice(i),d=c.map(o,1),p=c.map(o+s.nodeSize,1);return t.step(new dt(d,p,d+1,p-1,new ae(X.from(r.create(l,null,s.marks)),0,0),1,!0)),u===!0&&HN(t,s,o,i),!1}})}function HN(t,e,n,r){e.forEach((a,i)=>{if(a.isText){let s,o=/\r?\n|\r/g;for(;s=o.exec(a.text);){let l=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function $N(t,e,n,r){e.forEach((a,i)=>{if(a.type==a.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
5
|
+
`))}})}function ZD(t,e,n){let r=t.resolve(e),a=r.index();return r.parent.canReplaceWith(a,a+1,n)}function QD(t,e,n,r,a){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,a||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new dt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ae(X.from(s),0,0),1,!0))}function er(t,e,n=1,r){let a=t.resolve(e),i=a.depth-n,s=r&&r[r.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!s.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let u=a.depth-1,c=n-2;u>i;u--,c--){let d=a.node(u),p=a.index(u);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(p,d.childCount),h=r&&r[c+1];h&&(f=f.replaceChild(0,h.type.create(h.attrs)));let g=r&&r[c]||d;if(!d.canReplace(p+1,d.childCount)||!g.type.validContent(f))return!1}let o=a.indexAfter(i),l=r&&r[0];return a.node(i).canReplaceWith(o,o,l?l.type:a.node(i+1).type)}function JD(t,e,n=1,r){let a=t.doc.resolve(e),i=X.empty,s=X.empty;for(let o=a.depth,l=a.depth-n,u=n-1;o>l;o--,u--){i=X.from(a.node(o).copy(i));let c=r&&r[u];s=X.from(c?c.type.create(c.attrs,s):a.node(o).copy(s))}t.step(new at(e,e,new ae(i.append(s),n,n),!0))}function Ir(t,e){let n=t.resolve(e),r=n.index();return zN(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function eM(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let a=0;a<e.childCount;a++){let i=e.child(a),s=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function zN(t,e){return!!(t&&e&&!t.isLeaf&&eM(t,e))}function Sl(t,e,n=-1){let r=t.resolve(e);for(let a=r.depth;;a--){let i,s,o=r.index(a);if(a==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(a+1),o++,s=r.node(a).maybeChild(o)):(i=r.node(a).maybeChild(o-1),s=r.node(a+1)),i&&!i.isTextblock&&zN(i,s)&&r.node(a).canReplace(o,o+1))return e;if(a==0)break;e=n<0?r.before(a):r.after(a)}}function tM(t,e,n){let r=null,{linebreakReplacement:a}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(a&&s.inlineContent){let c=s.whitespace=="pre",d=!!s.contentMatch.matchType(a);c&&!d?r=!1:!c&&d&&(r=!0)}let o=t.steps.length;if(r===!1){let c=t.doc.resolve(e+n);$N(t,c.node(),c.before(),o)}s.inlineContent&&Nb(t,e+n-1,s,i.node().contentMatchAt(i.index()),r==null);let l=t.mapping.slice(o),u=l.map(e-n);if(t.step(new at(u,l.map(e+n,-1),ae.empty,!0)),r===!0){let c=t.doc.resolve(u);HN(t,c.node(),c.before(),t.steps.length)}return t}function nM(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let a=r.depth-1;a>=0;a--){let i=r.index(a);if(r.node(a).canReplaceWith(i,i,n))return r.before(a+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let a=r.depth-1;a>=0;a--){let i=r.indexAfter(a);if(r.node(a).canReplaceWith(i,i,n))return r.after(a+1);if(i<r.node(a).childCount)return null}return null}function qN(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let a=n.content;for(let i=0;i<n.openStart;i++)a=a.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let o=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(o>0?1:0),u=r.node(s),c=!1;if(i==1)c=u.canReplace(l,l,a);else{let d=u.contentMatchAt(l).findWrapping(a.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return o==0?r.pos:o<0?r.before(s+1):r.after(s+1)}return null}function xl(t,e,n=e,r=ae.empty){if(e==n&&!r.size)return null;let a=t.resolve(e),i=t.resolve(n);return GN(a,i,r)?new at(e,n,r):new rM(a,i,r).fit()}function GN(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class rM{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=X.empty;for(let a=0;a<=e.depth;a++){let i=e.node(a);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(a))})}for(let a=e.depth;a>0;a--)this.placed=X.from(e.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,a=this.close(e<0?this.$to:r.doc.resolve(e));if(!a)return null;let i=this.placed,s=r.depth,o=a.depth;for(;s&&o&&i.childCount==1;)i=i.firstChild.content,s--,o--;let l=new ae(i,s,o);return e>-1?new dt(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new at(r.pos,a.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,a=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(a=0),i.type.spec.isolating&&a<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let a,i=null;r?(i=fu(this.unplaced.content,r-1).firstChild,a=i.content):a=this.unplaced.content;let s=a.firstChild;for(let o=this.depth;o>=0;o--){let{type:l,match:u}=this.frontier[o],c,d=null;if(n==1&&(s?u.matchType(s.type)||(d=u.fillBefore(X.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:o,parent:i,inject:d};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:o,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,a=fu(e,n);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new ae(e,n+1,Math.max(r,a.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,a=fu(e,n);if(a.childCount<=1&&n>0){let i=e.size-n<=n+a.size;this.unplaced=new ae(Ei(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new ae(Ei(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:a,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,o=r?r.content:s.content,l=s.openStart-e,u=0,c=[],{match:d,type:p}=this.frontier[n];if(a){for(let g=0;g<a.childCount;g++)c.push(a.child(g));d=d.matchFragment(a)}let f=o.size+e-(s.content.size-s.openEnd);for(;u<o.childCount;){let g=o.child(u),b=d.matchType(g.type);if(!b)break;u++,(u>1||l==0||g.content.size)&&(d=b,c.push(WN(g.mark(p.allowedMarks(g.marks)),u==1?l:0,u==o.childCount?f:-1)))}let h=u==o.childCount;h||(f=-1),this.placed=yi(this.placed,n,X.from(c)),this.frontier[n].match=d,h&&f<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,b=o;g<f;g++){let y=b.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),b=y.content}this.unplaced=h?e==0?ae.empty:new ae(Ei(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new ae(Ei(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!hu(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,a=this.$to.after(r);for(;r>1&&a==this.$to.end(--r);)++a;return a}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:a}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=hu(e,n,a,r,i);if(s){for(let o=n-1;o>=0;o--){let{match:l,type:u}=this.frontier[o],c=hu(e,o,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=yi(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let a=e.node(r),i=a.type.contentMatch.fillBefore(a.content,!0,e.index(r));this.openFrontierNode(a.type,a.attrs,i)}return e}openFrontierNode(e,n=null,r){let a=this.frontier[this.depth];a.match=a.match.matchType(e),this.placed=yi(this.placed,this.depth,X.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(X.empty,!0);n.childCount&&(this.placed=yi(this.placed,this.frontier.length,n))}}function Ei(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ei(t.firstChild.content,e-1,n)))}function yi(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(yi(t.lastChild.content,e-1,n)))}function fu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function WN(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,WN(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(X.empty,!0)))),t.copy(r)}function hu(t,e,n,r,a){let i=t.node(e),s=a?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let o=r.fillBefore(i.content,!0,s);return o&&!aM(n,i.content,s)?o:null}function aM(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function iM(t){return t.spec.defining||t.spec.definingForContent}function sM(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let a=t.doc.resolve(e),i=t.doc.resolve(n);if(GN(a,i,r))return t.step(new at(e,n,r));let s=YN(a,i);s[s.length-1]==0&&s.pop();let o=-(a.depth+1);s.unshift(o);for(let p=a.depth,f=a.pos-1;p>0;p--,f--){let h=a.node(p).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;s.indexOf(p)>-1?o=p:a.before(p)==f&&s.splice(1,0,-p)}let l=s.indexOf(o),u=[],c=r.openStart;for(let p=r.content,f=0;;f++){let h=p.firstChild;if(u.push(h),f==r.openStart)break;p=h.content}for(let p=c-1;p>=0;p--){let f=u[p],h=iM(f.type);if(h&&!f.sameMarkup(a.node(Math.abs(o)-1)))c=p;else if(h||!f.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let f=(p+c+1)%(r.openStart+1),h=u[f];if(h)for(let g=0;g<s.length;g++){let b=s[(g+l)%s.length],y=!0;b<0&&(y=!1,b=-b);let T=a.node(b-1),x=a.index(b-1);if(T.canReplaceWith(x,x,h.type,h.marks))return t.replace(a.before(b),y?i.after(b):n,new ae(VN(r.content,0,r.openStart,f),f,r.openEnd))}}let d=t.steps.length;for(let p=s.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>d));p--){let f=s[p];f<0||(e=a.before(f),n=i.after(f))}}function VN(t,e,n,r,a){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(VN(i.content,e+1,n,r,i)))}if(e>r){let i=a.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(X.empty,!0))}return t}function oM(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let a=nM(t.doc,e,r.type);a!=null&&(e=n=a)}t.replaceRange(e,n,new ae(X.from(r),0,0))}function lM(t,e,n){let r=t.doc.resolve(e),a=t.doc.resolve(n);if(r.parent.isTextblock&&a.parent.isTextblock&&r.start()!=a.start()&&r.parentOffset==0&&a.parentOffset==0){let s=r.sharedDepth(n),o=!1;for(let l=r.depth;l>s;l--)r.node(l).type.spec.isolating&&(o=!0);for(let l=a.depth;l>s;l--)a.node(l).type.spec.isolating&&(o=!0);if(!o){for(let l=r.depth;l>0&&e==r.start(l);l--)e=r.before(l);for(let l=a.depth;l>0&&n==a.start(l);l--)n=a.before(l);r=t.doc.resolve(e),a=t.doc.resolve(n)}}let i=YN(r,a);for(let s=0;s<i.length;s++){let o=i[s],l=s==i.length-1;if(l&&o==0||r.node(o).type.contentMatch.validEnd)return t.delete(r.start(o),a.end(o));if(o>0&&(l||r.node(o-1).canReplace(r.index(o-1),a.indexAfter(o-1))))return t.delete(r.before(o),a.after(o))}for(let s=1;s<=r.depth&&s<=a.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&a.end(s)-n!=a.depth-s&&r.start(s-1)==a.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),a.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function YN(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let a=r;a>=0;a--){let i=t.start(a);if(i<t.pos-(t.depth-a)||e.end(a)>e.pos+(e.depth-a)||t.node(a).type.spec.isolating||e.node(a).type.spec.isolating)break;(i==e.start(a)||a==t.depth&&a==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&a&&e.start(a-1)==i-1)&&n.push(a)}return n}class Oa extends At{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return it.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let a=n.type.create(r,null,n.marks);return it.fromReplace(e,this.pos,this.pos+1,new ae(X.from(a),0,n.isLeaf?0:1))}getMap(){return Xt.empty}invert(e){return new Oa(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Oa(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Oa(n.pos,n.attr,n.value)}}At.jsonID("attr",Oa);class Ki extends At{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let a in e.attrs)n[a]=e.attrs[a];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return it.ok(r)}getMap(){return Xt.empty}invert(e){return new Ki(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Ki(n.attr,n.value)}}At.jsonID("docAttr",Ki);let Pa=class extends Error{};Pa=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Pa.prototype=Object.create(Error.prototype);Pa.prototype.constructor=Pa;Pa.prototype.name="TransformError";class KN{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Yi}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Pa(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let a=this.mapping.maps[r];r&&(e=a.map(e,1),n=a.map(n,-1)),a.forEach((i,s,o,l)=>{e=Math.min(e,o),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=ae.empty){let a=xl(this.doc,e,n,r);return a&&this.step(a),this}replaceWith(e,n,r){return this.replace(e,n,new ae(X.from(r),0,0))}delete(e,n){return this.replace(e,n,ae.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return sM(this,e,n,r),this}replaceRangeWith(e,n,r){return oM(this,e,n,r),this}deleteRange(e,n){return lM(this,e,n),this}lift(e,n){return WD(this,e,n),this}join(e,n=1){return tM(this,e,n),this}wrap(e,n){return KD(this,e,n),this}setBlockType(e,n=e,r,a=null){return XD(this,e,n,r,a),this}setNodeMarkup(e,n,r=null,a){return QD(this,e,n,r,a),this}setNodeAttribute(e,n,r){return this.step(new Oa(e,n,r)),this}setDocAttribute(e,n){return this.step(new Ki(e,n)),this}addNodeMark(e,n){return this.step(new br(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof $e)n.isInSet(r.marks)&&this.step(new ta(e,n));else{let a=r.marks,i,s=[];for(;i=n.isInSet(a);)s.push(new ta(e,i)),a=i.removeFromSet(a);for(let o=s.length-1;o>=0;o--)this.step(s[o])}return this}split(e,n=1,r){return JD(this,e,n,r),this}addMark(e,n,r){return zD(this,e,n,r),this}removeMark(e,n,r){return qD(this,e,n,r),this}clearIncompatible(e,n,r){return Nb(this,e,n,r),this}}const mu=Object.create(null);class ke{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new uM(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=ae.empty){let r=n.content.lastChild,a=null;for(let o=0;o<n.openEnd;o++)a=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:l,$to:u}=s[o],c=e.mapping.slice(i);e.replaceRange(c.map(l.pos),c.map(u.pos),o?ae.empty:n),o==0&&ey(e,i,(r?r.isInline:a&&a.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,a=this.ranges;for(let i=0;i<a.length;i++){let{$from:s,$to:o}=a[i],l=e.mapping.slice(r),u=l.map(s.pos),c=l.map(o.pos);i?e.deleteRange(u,c):(e.replaceRangeWith(u,c,n),ey(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let a=e.parent.inlineContent?new Ee(e):ka(e.node(0),e.parent,e.pos,e.index(),n,r);if(a)return a;for(let i=e.depth-1;i>=0;i--){let s=n<0?ka(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):ka(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Zt(e.node(0))}static atStart(e){return ka(e,e,0,0,1)||new Zt(e)}static atEnd(e){return ka(e,e,e.content.size,e.childCount,-1)||new Zt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=mu[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in mu)throw new RangeError("Duplicate use of selection JSON ID "+e);return mu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Ee.between(this.$anchor,this.$head).getBookmark()}}ke.prototype.visible=!0;class uM{constructor(e,n){this.$from=e,this.$to=n}}let QE=!1;function JE(t){!QE&&!t.parent.inlineContent&&(QE=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Ee extends ke{constructor(e,n=e){JE(e),JE(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return ke.near(r);let a=e.resolve(n.map(this.anchor));return new Ee(a.parent.inlineContent?a:r,r)}replace(e,n=ae.empty){if(super.replace(e,n),n==ae.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ee&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new kl(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ee(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let a=e.resolve(n);return new this(a,r==n?a:e.resolve(r))}static between(e,n,r){let a=e.pos-n.pos;if((!r||a)&&(r=a>=0?1:-1),!n.parent.inlineContent){let i=ke.findFrom(n,r,!0)||ke.findFrom(n,-r,!0);if(i)n=i.$head;else return ke.near(n,r)}return e.parent.inlineContent||(a==0?e=n:(e=(ke.findFrom(e,-r,!0)||ke.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=a<0&&(e=n))),new Ee(e,n)}}ke.jsonID("text",Ee);class kl{constructor(e,n){this.anchor=e,this.head=n}map(e){return new kl(e.map(this.anchor),e.map(this.head))}resolve(e){return Ee.between(e.resolve(this.anchor),e.resolve(this.head))}}class ue extends ke{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:a}=n.mapResult(this.anchor),i=e.resolve(a);return r?ke.near(i):new ue(i)}content(){return new ae(X.from(this.node),0,0)}eq(e){return e instanceof ue&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new wb(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new ue(e.resolve(n.anchor))}static create(e,n){return new ue(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}ue.prototype.visible=!1;ke.jsonID("node",ue);class wb{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new kl(r,r):new wb(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&ue.isSelectable(r)?new ue(n):ke.near(n)}}class Zt extends ke{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=ae.empty){if(n==ae.empty){e.delete(0,e.doc.content.size);let r=ke.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Zt(e)}map(e){return new Zt(e)}eq(e){return e instanceof Zt}getBookmark(){return cM}}ke.jsonID("all",Zt);const cM={map(){return this},resolve(t){return new Zt(t)}};function ka(t,e,n,r,a,i=!1){if(e.inlineContent)return Ee.create(t,n);for(let s=r-(a>0?0:1);a>0?s<e.childCount:s>=0;s+=a){let o=e.child(s);if(o.isAtom){if(!i&&ue.isSelectable(o))return ue.create(t,n-(a<0?o.nodeSize:0))}else{let l=ka(t,o,n+a,a<0?o.childCount:0,a,i);if(l)return l}n+=o.nodeSize*a}return null}function ey(t,e,n){let r=t.steps.length-1;if(r<e)return;let a=t.steps[r];if(!(a instanceof at||a instanceof dt))return;let i=t.mapping.maps[r],s;i.forEach((o,l,u,c)=>{s==null&&(s=c)}),t.setSelection(ke.near(t.doc.resolve(s),n))}const ty=1,Ds=2,ny=4;class dM extends KN{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|ty)&~Ds,this.storedMarks=null,this}get selectionSet(){return(this.updated&ty)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ds,this}ensureMarks(e){return $e.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ds)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ds,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||$e.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let a=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(a.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,a.text(e,i)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(ke.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ny,this}get scrolledIntoView(){return(this.updated&ny)>0}}function ry(t,e){return!e||!t?t:t.bind(e)}class Ti{constructor(e,n,r){this.name=e,this.init=ry(n.init,r),this.apply=ry(n.apply,r)}}const pM=[new Ti("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ti("selection",{init(t,e){return t.selection||ke.atStart(e.doc)},apply(t){return t.selection}}),new Ti("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ti("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class gu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=pM.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ti(r.key,r.spec.state,r))})}}class wa{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let a=this.config.plugins[r];if(a.spec.filterTransaction&&!a.spec.filterTransaction.call(a,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),a=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=a?a[s].n:0,u=a?a[s].state:this,c=l<n.length&&o.spec.appendTransaction.call(o,l?n.slice(l):n,u,r);if(c&&r.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!a){a=[];for(let d=0;d<this.config.plugins.length;d++)a.push(d<s?{state:r,n:n.length}:{state:this,n:0})}n.push(c),r=r.applyInner(c),i=!0}a&&(a[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new wa(this.config),r=this.config.fields;for(let a=0;a<r.length;a++){let i=r[a];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new dM(this)}static create(e){let n=new gu(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new wa(n);for(let a=0;a<n.fields.length;a++)r[n.fields[a].name]=n.fields[a].init(e,r);return r}reconfigure(e){let n=new gu(this.schema,e.plugins),r=n.fields,a=new wa(n);for(let i=0;i<r.length;i++){let s=r[i].name;a[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,a)}return a}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let a=e[r],i=a.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(a,this[a.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let a=new gu(e.schema,e.plugins),i=new wa(a);return a.fields.forEach(s=>{if(s.name=="doc")i.doc=bn.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=ke.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let o in r){let l=r[o],u=l.spec.state;if(l.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,o)){i[s.name]=u.fromJSON.call(l,e,n[o],i);return}}i[s.name]=s.init(e,i)}}),i}}function XN(t,e,n){for(let r in t){let a=t[r];a instanceof Function?a=a.bind(e):r=="handleDOMEvents"&&(a=XN(a,e,{})),n[r]=a}return n}class Xe{constructor(e){this.spec=e,this.props={},e.props&&XN(e.props,this,this.props),this.key=e.key?e.key.key:ZN("plugin")}getState(e){return e[this.key]}}const bu=Object.create(null);function ZN(t){return t in bu?t+"$"+ ++bu[t]:(bu[t]=0,t+"$")}class ot{constructor(e="key"){this.key=ZN(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Ib=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function QN(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const JN=(t,e,n)=>{let r=QN(t,n);if(!r)return!1;let a=Rb(r);if(!a){let s=r.blockRange(),o=s&&Za(s);return o==null?!1:(e&&e(t.tr.lift(s,o).scrollIntoView()),!0)}let i=a.nodeBefore;if(lC(t,a,e,-1))return!0;if(r.parent.content.size==0&&(Fa(i,"end")||ue.isSelectable(i)))for(let s=r.depth;;s--){let o=xl(t.doc,r.before(s),r.after(s),ae.empty);if(o&&o.slice.size<o.to-o.from){if(e){let l=t.tr.step(o);l.setSelection(Fa(i,"end")?ke.findFrom(l.doc.resolve(l.mapping.map(a.pos,-1)),-1):ue.create(l.doc,a.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return i.isAtom&&a.depth==r.depth-1?(e&&e(t.tr.delete(a.pos-i.nodeSize,a.pos).scrollIntoView()),!0):!1},fM=(t,e,n)=>{let r=QN(t,n);if(!r)return!1;let a=Rb(r);return a?eC(t,a,e):!1},hM=(t,e,n)=>{let r=nC(t,n);if(!r)return!1;let a=Ob(r);return a?eC(t,a,e):!1};function eC(t,e,n){let r=e.nodeBefore,a=r,i=e.pos-1;for(;!a.isTextblock;i--){if(a.type.spec.isolating)return!1;let c=a.lastChild;if(!c)return!1;a=c}let s=e.nodeAfter,o=s,l=e.pos+1;for(;!o.isTextblock;l++){if(o.type.spec.isolating)return!1;let c=o.firstChild;if(!c)return!1;o=c}let u=xl(t.doc,i,l,ae.empty);if(!u||u.from!=i||u instanceof at&&u.slice.size>=l-i)return!1;if(n){let c=t.tr.step(u);c.setSelection(Ee.create(c.doc,i)),n(c.scrollIntoView())}return!0}function Fa(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const tC=(t,e,n)=>{let{$head:r,empty:a}=t.selection,i=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=Rb(r)}let s=i&&i.nodeBefore;return!s||!ue.isSelectable(s)?!1:(e&&e(t.tr.setSelection(ue.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Rb(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function nC(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const rC=(t,e,n)=>{let r=nC(t,n);if(!r)return!1;let a=Ob(r);if(!a)return!1;let i=a.nodeAfter;if(lC(t,a,e,1))return!0;if(r.parent.content.size==0&&(Fa(i,"start")||ue.isSelectable(i))){let s=xl(t.doc,r.before(),r.after(),ae.empty);if(s&&s.slice.size<s.to-s.from){if(e){let o=t.tr.step(s);o.setSelection(Fa(i,"start")?ke.findFrom(o.doc.resolve(o.mapping.map(a.pos)),1):ue.create(o.doc,o.mapping.map(a.pos))),e(o.scrollIntoView())}return!0}}return i.isAtom&&a.depth==r.depth-1?(e&&e(t.tr.delete(a.pos,a.pos+i.nodeSize).scrollIntoView()),!0):!1},aC=(t,e,n)=>{let{$head:r,empty:a}=t.selection,i=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;i=Ob(r)}let s=i&&i.nodeAfter;return!s||!ue.isSelectable(s)?!1:(e&&e(t.tr.setSelection(ue.create(t.doc,i.pos)).scrollIntoView()),!0)};function Ob(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const mM=(t,e)=>{let n=t.selection,r=n instanceof ue,a;if(r){if(n.node.isTextblock||!Ir(t.doc,n.from))return!1;a=n.from}else if(a=Sl(t.doc,n.from,-1),a==null)return!1;if(e){let i=t.tr.join(a);r&&i.setSelection(ue.create(i.doc,a-t.doc.resolve(a).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},gM=(t,e)=>{let n=t.selection,r;if(n instanceof ue){if(n.node.isTextblock||!Ir(t.doc,n.to))return!1;r=n.to}else if(r=Sl(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},bM=(t,e)=>{let{$from:n,$to:r}=t.selection,a=n.blockRange(r),i=a&&Za(a);return i==null?!1:(e&&e(t.tr.lift(a,i).scrollIntoView()),!0)},iC=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
|
|
6
|
+
`).scrollIntoView()),!0)};function Lb(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const EM=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let a=n.node(-1),i=n.indexAfter(-1),s=Lb(a.contentMatchAt(i));if(!s||!a.canReplaceWith(i,i,s))return!1;if(e){let o=n.after(),l=t.tr.replaceWith(o,o,s.createAndFill());l.setSelection(ke.near(l.doc.resolve(o),1)),e(l.scrollIntoView())}return!0},sC=(t,e)=>{let n=t.selection,{$from:r,$to:a}=n;if(n instanceof Zt||r.parent.inlineContent||a.parent.inlineContent)return!1;let i=Lb(a.parent.contentMatchAt(a.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&a.index()<a.parent.childCount?r:a).pos,o=t.tr.insert(s,i.createAndFill());o.setSelection(Ee.create(o.doc,s+1)),e(o.scrollIntoView())}return!0},oC=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(er(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),a=r&&Za(r);return a==null?!1:(e&&e(t.tr.lift(r,a).scrollIntoView()),!0)};function yM(t){return(e,n)=>{let{$from:r,$to:a}=e.selection;if(e.selection instanceof ue&&e.selection.node.isBlock)return!r.parentOffset||!er(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let i=[],s,o,l=!1,u=!1;for(let f=r.depth;;f--)if(r.node(f).isBlock){l=r.end(f)==r.pos+(r.depth-f),u=r.start(f)==r.pos-(r.depth-f),o=Lb(r.node(f-1).contentMatchAt(r.indexAfter(f-1))),i.unshift(l&&o?{type:o}:null),s=f;break}else{if(f==1)return!1;i.unshift(null)}let c=e.tr;(e.selection instanceof Ee||e.selection instanceof Zt)&&c.deleteSelection();let d=c.mapping.map(r.pos),p=er(c.doc,d,i.length,i);if(p||(i[0]=o?{type:o}:null,p=er(c.doc,d,i.length,i)),!p)return!1;if(c.split(d,i.length,i),!l&&u&&r.node(s).type!=o){let f=c.mapping.map(r.before(s)),h=c.doc.resolve(f);o&&r.node(s-1).canReplaceWith(h.index(),h.index()+1,o)&&c.setNodeMarkup(c.mapping.map(r.before(s)),o)}return n&&n(c.scrollIntoView()),!0}}const TM=yM(),SM=(t,e)=>{let{$from:n,to:r}=t.selection,a,i=n.sharedDepth(r);return i==0?!1:(a=n.before(i),e&&e(t.tr.setSelection(ue.create(t.doc,a))),!0)};function xM(t,e,n){let r=e.nodeBefore,a=e.nodeAfter,i=e.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(a.isTextblock||Ir(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function lC(t,e,n,r){let a=e.nodeBefore,i=e.nodeAfter,s,o,l=a.type.spec.isolating||i.type.spec.isolating;if(!l&&xM(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(s=(o=a.contentMatchAt(a.childCount)).findWrapping(i.type))&&o.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,h=X.empty;for(let y=s.length-1;y>=0;y--)h=X.from(s[y].create(null,h));h=X.from(a.copy(h));let g=t.tr.step(new dt(e.pos-1,f,e.pos,f,new ae(h,1,0),s.length,!0)),b=g.doc.resolve(f+2*s.length);b.nodeAfter&&b.nodeAfter.type==a.type&&Ir(g.doc,b.pos)&&g.join(b.pos),n(g.scrollIntoView())}return!0}let c=i.type.spec.isolating||r>0&&l?null:ke.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),p=d&&Za(d);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(d,p).scrollIntoView()),!0;if(u&&Fa(i,"start",!0)&&Fa(a,"end")){let f=a,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let g=i,b=1;for(;!g.isTextblock;g=g.firstChild)b++;if(f.canReplace(f.childCount,f.childCount,g.content)){if(n){let y=X.empty;for(let x=h.length-1;x>=0;x--)y=X.from(h[x].copy(y));let T=t.tr.step(new dt(e.pos-h.length,e.pos+i.nodeSize,e.pos+b,e.pos+i.nodeSize-b,new ae(y,h.length,0),0,!0));n(T.scrollIntoView())}return!0}}return!1}function uC(t){return function(e,n){let r=e.selection,a=t<0?r.$from:r.$to,i=a.depth;for(;a.node(i).isInline;){if(!i)return!1;i--}return a.node(i).isTextblock?(n&&n(e.tr.setSelection(Ee.create(e.doc,t<0?a.start(i):a.end(i)))),!0):!1}}const kM=uC(-1),vM=uC(1);function AM(t,e=null){return function(n,r){let{$from:a,$to:i}=n.selection,s=a.blockRange(i),o=s&&Cb(s,t,e);return o?(r&&r(n.tr.wrap(s,o).scrollIntoView()),!0):!1}}function ay(t,e=null){return function(n,r){let a=!1;for(let i=0;i<n.selection.ranges.length&&!a;i++){let{$from:{pos:s},$to:{pos:o}}=n.selection.ranges[i];n.doc.nodesBetween(s,o,(l,u)=>{if(a)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)a=!0;else{let c=n.doc.resolve(u),d=c.index();a=c.parent.canReplaceWith(d,d+1,t)}})}if(!a)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:o},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(o,l,t,e)}r(i.scrollIntoView())}return!0}}function Db(...t){return function(e,n,r){for(let a=0;a<t.length;a++)if(t[a](e,n,r))return!0;return!1}}Db(Ib,JN,tC);Db(Ib,rC,aC);Db(iC,sC,oC,TM);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function _M(t,e=null){return function(n,r){let{$from:a,$to:i}=n.selection,s=a.blockRange(i);if(!s)return!1;let o=r?n.tr:null;return NM(o,s,t,e)?(r&&r(o.scrollIntoView()),!0):!1}}function NM(t,e,n,r=null){let a=!1,i=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);i=new bo(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new bo(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),a=!0}let o=Cb(i,n,r,e);return o?(t&&CM(t,e,o,a,n),!0):!1}function CM(t,e,n,r,a){let i=X.empty;for(let c=n.length-1;c>=0;c--)i=X.from(n[c].type.create(n[c].attrs,i));t.step(new dt(e.start-(r?2:0),e.end,e.start,e.end,new ae(i,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==a&&(s=c+1);let o=n.length-s,l=e.start+n.length-(r?2:0),u=e.parent;for(let c=e.startIndex,d=e.endIndex,p=!0;c<d;c++,p=!1)!p&&er(t.doc,l,o)&&(t.split(l,o),l+=2*o),l+=u.child(c).nodeSize;return t}function wM(t){return function(e,n){let{$from:r,$to:a}=e.selection,i=r.blockRange(a,s=>s.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?IM(e,n,t,i):RM(e,n,i):!0:!1}}function IM(t,e,n,r){let a=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(a.step(new dt(i-1,s,i,s,new ae(X.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new bo(a.doc.resolve(r.$from.pos),a.doc.resolve(s),r.depth));const o=Za(r);if(o==null)return!1;a.lift(r,o);let l=a.doc.resolve(a.mapping.map(i,-1)-1);return Ir(a.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&a.join(l.pos),e(a.scrollIntoView()),!0}function RM(t,e,n){let r=t.tr,a=n.parent;for(let f=n.end,h=n.endIndex-1,g=n.startIndex;h>g;h--)f-=a.child(h).nodeSize,r.delete(f-1,f+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let o=n.startIndex==0,l=n.endIndex==a.childCount,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(o?0:1),c+1,s.content.append(l?X.empty:X.from(a))))return!1;let d=i.pos,p=d+s.nodeSize;return r.step(new dt(d-(o?1:0),p+(l?1:0),d+1,p-1,new ae((o?X.empty:X.from(a.copy(X.empty))).append(l?X.empty:X.from(a.copy(X.empty))),o?0:1,l?0:1),o?0:1)),e(r.scrollIntoView()),!0}function OM(t){return function(e,n){let{$from:r,$to:a}=e.selection,i=r.blockRange(a,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let o=i.parent,l=o.child(s-1);if(l.type!=t)return!1;if(n){let u=l.lastChild&&l.lastChild.type==o.type,c=X.from(u?t.create():null),d=new ae(X.from(t.create(null,X.from(o.type.create(null,c)))),u?3:1,0),p=i.start,f=i.end;n(e.tr.step(new dt(p-(u?3:1),f,p,f,d,1,!0)).scrollIntoView())}return!0}}const mt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ba=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let og=null;const Vn=function(t,e,n){let r=og||(og=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},LM=function(){og=null},na=function(t,e,n,r){return n&&(iy(t,e,n,r,-1)||iy(t,e,n,r,1))},DM=/^(img|br|input|textarea|hr)$/i;function iy(t,e,n,r,a){for(var i;;){if(t==n&&e==r)return!0;if(e==(a<0?0:cn(t))){let s=t.parentNode;if(!s||s.nodeType!=1||hs(t)||DM.test(t.nodeName)||t.contentEditable=="false")return!1;e=mt(t)+(a<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(a<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=a;else return!1;else t=s,e=a<0?cn(t):0}else return!1}}function cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function MM(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=cn(t)}else if(t.parentNode&&!hs(t))e=mt(t),t=t.parentNode;else return null}}function PM(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!hs(t))e=mt(t)+1,t=t.parentNode;else return null}}function FM(t,e,n){for(let r=e==0,a=e==cn(t);r||a;){if(t==n)return!0;let i=mt(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,a=a&&i==cn(t)}}function hs(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const vl=function(t){return t.focusNode&&na(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function jr(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function BM(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function UM(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(cn(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(cn(r.startContainer),r.startOffset)}}}const Ln=typeof navigator<"u"?navigator:null,sy=typeof document<"u"?document:null,Rr=Ln&&Ln.userAgent||"",lg=/Edge\/(\d+)/.exec(Rr),cC=/MSIE \d/.exec(Rr),ug=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rr),qt=!!(cC||ug||lg),xr=cC?document.documentMode:ug?+ug[1]:lg?+lg[1]:0,pn=!qt&&/gecko\/(\d+)/i.test(Rr);pn&&+(/Firefox\/(\d+)/.exec(Rr)||[0,0])[1];const cg=!qt&&/Chrome\/(\d+)/.exec(Rr),bt=!!cg,dC=cg?+cg[1]:0,vt=!qt&&!!Ln&&/Apple Computer/.test(Ln.vendor),Ua=vt&&(/Mobile\/\w+/.test(Rr)||!!Ln&&Ln.maxTouchPoints>2),on=Ua||(Ln?/Mac/.test(Ln.platform):!1),pC=Ln?/Win/.test(Ln.platform):!1,Kn=/Android \d/.test(Rr),ms=!!sy&&"webkitFontSmoothing"in sy.documentElement.style,jM=ms?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function HM(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function jn(t,e){return typeof t=="number"?t:t[e]}function $M(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function oy(t,e,n){let r=t.someProp("scrollThreshold")||0,a=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=Ba(s);continue}let o=s,l=o==i.body,u=l?HM(i):$M(o),c=0,d=0;if(e.top<u.top+jn(r,"top")?d=-(u.top-e.top+jn(a,"top")):e.bottom>u.bottom-jn(r,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+jn(a,"top")-u.top:e.bottom-u.bottom+jn(a,"bottom")),e.left<u.left+jn(r,"left")?c=-(u.left-e.left+jn(a,"left")):e.right>u.right-jn(r,"right")&&(c=e.right-u.right+jn(a,"right")),c||d)if(l)i.defaultView.scrollBy(c,d);else{let f=o.scrollLeft,h=o.scrollTop;d&&(o.scrollTop+=d),c&&(o.scrollLeft+=c);let g=o.scrollLeft-f,b=o.scrollTop-h;e={left:e.left-g,top:e.top-b,right:e.right-g,bottom:e.bottom-b}}let p=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(p))break;s=p=="absolute"?s.offsetParent:Ba(s)}}function zM(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,a;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let o=t.root.elementFromPoint(i,s);if(!o||o==t.dom||!t.dom.contains(o))continue;let l=o.getBoundingClientRect();if(l.top>=n-20){r=o,a=l.top;break}}return{refDOM:r,refTop:a,stack:fC(t.dom)}}function fC(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Ba(r));return e}function qM({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;hC(n,r==0?0:r-e)}function hC(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:a,left:i}=t[n];r.scrollTop!=a+e&&(r.scrollTop=a+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Ea=null;function GM(t){if(t.setActive)return t.setActive();if(Ea)return t.focus(Ea);let e=fC(t);t.focus(Ea==null?{get preventScroll(){return Ea={preventScroll:!0},!0}}:void 0),Ea||(Ea=!1,hC(e,0))}function mC(t,e){let n,r=2e8,a,i=0,s=e.top,o=e.top,l,u;for(let c=t.firstChild,d=0;c;c=c.nextSibling,d++){let p;if(c.nodeType==1)p=c.getClientRects();else if(c.nodeType==3)p=Vn(c).getClientRects();else continue;for(let f=0;f<p.length;f++){let h=p[f];if(h.top<=s&&h.bottom>=o){s=Math.max(h.bottom,s),o=Math.min(h.top,o);let g=h.left>e.left?h.left-e.left:h.right<e.left?e.left-h.right:0;if(g<r){n=c,r=g,a=g&&n.nodeType==3?{left:h.right<e.left?h.right:h.left,top:e.top}:e,c.nodeType==1&&g&&(i=d+(e.left>=(h.left+h.right)/2?1:0));continue}}else h.top>e.top&&!l&&h.left<=e.left&&h.right>=e.left&&(l=c,u={left:Math.max(h.left,Math.min(h.right,e.left)),top:h.top});!n&&(e.left>=h.right&&e.top>=h.top||e.left>=h.left&&e.top>=h.bottom)&&(i=d+1)}}return!n&&l&&(n=l,a=u,r=0),n&&n.nodeType==3?WM(n,a):!n||r&&n.nodeType==1?{node:t,offset:i}:mC(n,a)}function WM(t,e){let n=t.nodeValue.length,r=document.createRange(),a;for(let i=0;i<n;i++){r.setEnd(t,i+1),r.setStart(t,i);let s=lr(r,1);if(s.top!=s.bottom&&Mb(e,s)){a={node:t,offset:i+(e.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),a||{node:t,offset:0}}function Mb(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function VM(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function YM(t,e,n){let{node:r,offset:a}=mC(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,a,i)}function KM(t,e,n,r){let a=-1;for(let i=e,s=!1;i!=t.dom;){let o=t.docView.nearestDesc(i,!0),l;if(!o)return null;if(o.dom.nodeType==1&&(o.node.isBlock&&o.parent||!o.contentDOM)&&((l=o.dom.getBoundingClientRect()).width||l.height)&&(o.node.isBlock&&o.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(o.dom.nodeName)&&(!s&&l.left>r.left||l.top>r.top?a=o.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(a=o.posAfter),s=!0),!o.contentDOM&&a<0&&!o.node.isText))return(o.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?o.posBefore:o.posAfter;i=o.dom.parentNode}return a>-1?a:t.docView.posFromDOM(e,n,-1)}function gC(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let a=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=a;;){let s=t.childNodes[i];if(s.nodeType==1){let o=s.getClientRects();for(let l=0;l<o.length;l++){let u=o[l];if(Mb(e,u))return gC(s,e,u)}}if((i=(i+1)%r)==a)break}return t}function XM(t,e){let n=t.dom.ownerDocument,r,a=0,i=UM(n,e.left,e.top);i&&({node:r,offset:a}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),o;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!Mb(e,u)||(s=gC(t.dom,e,u),!s))return null}if(vt)for(let u=s;r&&u;u=Ba(u))u.draggable&&(r=void 0);if(s=VM(s,e),r){if(pn&&r.nodeType==1&&(a=Math.min(a,r.childNodes.length),a<r.childNodes.length)){let c=r.childNodes[a],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&a++}let u;ms&&a&&r.nodeType==1&&(u=r.childNodes[a-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&a--,r==t.dom&&a==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?o=t.state.doc.content.size:(a==0||r.nodeType!=1||r.childNodes[a-1].nodeName!="BR")&&(o=KM(t,r,a,e))}o==null&&(o=YM(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:o,inside:l?l.posAtStart-l.border:-1}}function ly(t){return t.top<t.bottom||t.left<t.right}function lr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(ly(r))return r}return Array.prototype.find.call(n,ly)||t.getBoundingClientRect()}const ZM=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function bC(t,e,n){let{node:r,offset:a,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=ms||pn;if(r.nodeType==3)if(s&&(ZM.test(r.nodeValue)||(n<0?!a:a==r.nodeValue.length))){let l=lr(Vn(r,a,a),n);if(pn&&a&&/\s/.test(r.nodeValue[a-1])&&a<r.nodeValue.length){let u=lr(Vn(r,a-1,a-1),-1);if(u.top==l.top){let c=lr(Vn(r,a,a+1),-1);if(c.top!=l.top)return ai(c,c.left<u.left)}}return l}else{let l=a,u=a,c=n<0?1:-1;return n<0&&!a?(u++,c=-1):n>=0&&a==r.nodeValue.length?(l--,c=1):n<0?l--:u++,ai(lr(Vn(r,l,u),c),c<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&a&&(n<0||a==cn(r))){let l=r.childNodes[a-1];if(l.nodeType==1)return Eu(l.getBoundingClientRect(),!1)}if(i==null&&a<cn(r)){let l=r.childNodes[a];if(l.nodeType==1)return Eu(l.getBoundingClientRect(),!0)}return Eu(r.getBoundingClientRect(),n>=0)}if(i==null&&a&&(n<0||a==cn(r))){let l=r.childNodes[a-1],u=l.nodeType==3?Vn(l,cn(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return ai(lr(u,1),!1)}if(i==null&&a<cn(r)){let l=r.childNodes[a];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Vn(l,0,s?0:1):l.nodeType==1?l:null:null;if(u)return ai(lr(u,-1),!0)}return ai(lr(r.nodeType==3?Vn(r):r,-n),n>=0)}function ai(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Eu(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function EC(t,e,n){let r=t.state,a=t.root.activeElement;r!=e&&t.updateState(e),a!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),a!=t.dom&&a&&a.focus()}}function QM(t,e,n){let r=e.selection,a=n=="up"?r.$from:r.$to;return EC(t,e,()=>{let{node:i}=t.docView.domFromPos(a.pos,n=="up"?-1:1);for(;;){let o=t.docView.nearestDesc(i,!0);if(!o)break;if(o.node.isBlock){i=o.contentDOM||o.dom;break}i=o.dom.parentNode}let s=bC(t,a.pos,1);for(let o=i.firstChild;o;o=o.nextSibling){let l;if(o.nodeType==1)l=o.getClientRects();else if(o.nodeType==3)l=Vn(o,0,o.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const JM=/[\u0590-\u08ac]/;function e3(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let a=r.parentOffset,i=!a,s=a==r.parent.content.size,o=t.domSelection();return o?!JM.test(r.parent.textContent)||!o.modify?n=="left"||n=="backward"?i:s:EC(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),p=o.caretBidiLevel;o.modify("move",n,"character");let f=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:h,focusOffset:g}=t.domSelectionRange(),b=h&&!f.contains(h.nodeType==1?h:h.parentNode)||l==h&&u==g;try{o.collapse(c,d),l&&(l!=c||u!=d)&&o.extend&&o.extend(l,u)}catch{}return p!=null&&(o.caretBidiLevel=p),b}):r.pos==r.start()||r.pos==r.end()}let uy=null,cy=null,dy=!1;function t3(t,e,n){return uy==e&&cy==n?dy:(uy=e,cy=n,dy=n=="up"||n=="down"?QM(t,e,n):e3(t,e,n))}const fn=0,py=1,Hr=2,Dn=3;class gs{constructor(e,n,r,a){this.parent=e,this.children=n,this.dom=r,this.contentDOM=a,this.dirty=fn,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let a=this.children[n];if(a==e)return r;r+=a.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let a;if(e==this.dom&&this.contentDOM)a=n>mt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){a=!1;break}if(i.previousSibling)break}if(a==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){a=!0;break}if(i.nextSibling)break}}return a??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,a=e;a;a=a.parentNode){let i=this.getDesc(a),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let a=e;a;a=a.parentNode){let i=this.getDesc(a);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let a=this.children[n],i=r+a.size;if(r==e&&i!=r){for(;!a.border&&a.children.length;)for(let s=0;s<a.children.length;s++){let o=a.children[s];if(o.size){a=o;break}}return a}if(e<i)return a.descAt(e-r-a.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,a=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],o=i+s.size;if(o>e||s instanceof TC){a=e-i;break}i=o}if(a)return this.children[r].domFromPos(a-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof yC&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?mt(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?mt(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let a=-1,i=-1;for(let s=r,o=0;;o++){let l=this.children[o],u=s+l.size;if(a==-1&&e<=u){let c=s+l.border;if(e>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let d=o;d>0;d--){let p=this.children[d-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){a=mt(p.dom)+1;break}e-=p.size}a==-1&&(a=0)}if(a>-1&&(u>n||o==this.children.length-1)){n=u;for(let c=o+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=mt(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:n,fromOffset:a,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,a=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let f=0,h=0;f<this.children.length;f++){let g=this.children[f],b=h+g.size;if(i>h&&s<b)return g.setSelection(e-h-g.border,n-h-g.border,r,a);h=b}let o=this.domFromPos(e,e?-1:1),l=n==e?o:this.domFromPos(n,n?-1:1),u=r.root.getSelection(),c=r.domSelectionRange(),d=!1;if((pn||vt)&&e==n){let{node:f,offset:h}=o;if(f.nodeType==3){if(d=!!(h&&f.nodeValue[h-1]==`
|
|
7
|
+
`),d&&h==f.nodeValue.length)for(let g=f,b;g;g=g.parentNode){if(b=g.nextSibling){b.nodeName=="BR"&&(o=l={node:b.parentNode,offset:mt(b)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=f.childNodes[h-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(pn&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let f=c.focusNode.childNodes[c.focusOffset];f&&f.contentEditable=="false"&&(a=!0)}if(!(a||d&&vt)&&na(o.node,o.offset,c.anchorNode,c.anchorOffset)&&na(l.node,l.offset,c.focusNode,c.focusOffset))return;let p=!1;if((u.extend||e==n)&&!(d&&pn)){u.collapse(o.node,o.offset);try{e!=n&&u.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let h=o;o=l,l=h}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(o.node,o.offset),u.removeAllRanges(),u.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,a=0;a<this.children.length;a++){let i=this.children[a],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let o=r+i.border,l=s-i.border;if(e>=o&&n<=l){this.dirty=e==r||n==s?Hr:py,e==o&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Dn:i.markDirty(e-o,n-o);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Hr:Dn}r=s}this.dirty=Hr}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Hr:py;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class yC extends gs{constructor(e,n,r,a){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return a;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let o=document.createElement("span");o.appendChild(s),s=o}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==fn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class n3 extends gs{constructor(e,n,r,a){super(e,[],n,null),this.textDOM=r,this.text=a}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class ra extends gs{constructor(e,n,r,a,i){super(e,[],r,a),this.mark=n,this.spec=i}static create(e,n,r,a){let i=a.nodeViews[n.type.name],s=i&&i(n,a,r);return(!s||!s.dom)&&(s=ca.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new ra(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Dn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Dn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=fn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=fn}}slice(e,n,r){let a=ra.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=pg(i,n,s,r)),e>0&&(i=pg(i,0,e,r));for(let o=0;o<i.length;o++)i[o].parent=a;return a.children=i,a}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class kr extends gs{constructor(e,n,r,a,i,s,o,l,u){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=a,this.nodeDOM=o}static create(e,n,r,a,i,s){let o=i.nodeViews[n.type.name],l,u=o&&o(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,a),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=ca.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let p=c;return c=kC(c,r,n),u?l=new r3(e,n,r,a,c,d||null,p,u,i,s+1):n.isText?new Al(e,n,r,a,c,p,i):new kr(e,n,r,a,c,d||null,p,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>X.empty)}return e}matchesNode(e,n,r){return this.dirty==fn&&e.eq(this.node)&&yo(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,a=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,o=i&&i.pos<0,l=new i3(this,s&&s.node,e);l3(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?l.syncToMarks(u.spec.marks,r,e,c):u.type.side>=0&&!d&&l.syncToMarks(c==this.node.childCount?$e.none:this.node.child(c).marks,r,e,c),l.placeWidget(u,e,a)},(u,c,d,p)=>{l.syncToMarks(u.marks,r,e,p);let f;l.findNodeMatch(u,c,d,p)||o&&e.state.selection.from>a&&e.state.selection.to<a+u.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(u,c,d,f,e)||l.updateNextNode(u,c,d,e,p,a)||l.addNode(u,c,d,e,a),a+=u.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Hr)&&(s&&this.protectLocalComposition(e,s),SC(this.contentDOM,this.children,e),Ua&&u3(this.dom))}localCompositionInfo(e,n){let{from:r,to:a}=e.state.selection;if(!(e.state.selection instanceof Ee)||r<n||a>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,o=c3(this.node.content,s,r-n,a-n);return o<0?null:{node:i,pos:o,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:a}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new n3(this,i,n,a);e.input.compositionNodes.push(s),this.children=pg(this.children,r,r+a.length,e,s)}update(e,n,r,a){return this.dirty==Dn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,a),!0)}updateInner(e,n,r,a){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=fn}updateOuterDeco(e){if(yo(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=xC(this.dom,this.nodeDOM,dg(this.outerDeco,this.node,n),dg(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function fy(t,e,n,r,a){kC(r,e,t);let i=new kr(void 0,t,e,n,r,r,r,a,0);return i.contentDOM&&i.updateChildren(a,0),i}class Al extends kr{constructor(e,n,r,a,i,s,o){super(e,n,r,a,i,null,s,o,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,a){return this.dirty==Dn||this.dirty!=fn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=fn||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,a.trackWrites==this.nodeDOM&&(a.trackWrites=null)),this.node=e,this.dirty=fn,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let a=this.node.cut(e,n),i=document.createTextNode(a.text);return new Al(this.parent,a,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Dn)}get domAtom(){return!1}isText(e){return this.node.text==e}}class TC extends gs{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==fn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class r3 extends kr{constructor(e,n,r,a,i,s,o,l,u,c){super(e,n,r,a,i,s,o,u,c),this.spec=l}update(e,n,r,a){if(this.dirty==Dn)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,a),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,a)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,a){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,a)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function SC(t,e,n){let r=t.firstChild,a=!1;for(let i=0;i<e.length;i++){let s=e[i],o=s.dom;if(o.parentNode==t){for(;o!=r;)r=hy(r),a=!0;r=r.nextSibling}else a=!0,t.insertBefore(o,r);if(s instanceof ra){let l=r?r.previousSibling:t.lastChild;SC(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=hy(r),a=!0;a&&n.trackWrites==t&&(n.trackWrites=null)}const Ci=function(t){t&&(this.nodeName=t)};Ci.prototype=Object.create(null);const $r=[new Ci];function dg(t,e,n){if(t.length==0)return $r;let r=n?$r[0]:new Ci,a=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&a.push(r=new Ci(s.nodeName));for(let o in s){let l=s[o];l!=null&&(n&&a.length==1&&a.push(r=new Ci(e.isInline?"span":"div")),o=="class"?r.class=(r.class?r.class+" ":"")+l:o=="style"?r.style=(r.style?r.style+";":"")+l:o!="nodeName"&&(r[o]=l))}}}return a}function xC(t,e,n,r){if(n==$r&&r==$r)return e;let a=e;for(let i=0;i<r.length;i++){let s=r[i],o=n[i];if(i){let l;o&&o.nodeName==s.nodeName&&a!=t&&(l=a.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(a),o=$r[0]),a=l}a3(a,o||$r[0],s)}return a}function a3(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],a=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)a.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<a.length;i++)r.indexOf(a[i])==-1&&t.classList.add(a[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,a;for(;a=r.exec(e.style);)t.style.removeProperty(a[1])}n.style&&(t.style.cssText+=n.style)}}function kC(t,e,n){return xC(t,t,$r,dg(e,n,t.nodeType!=1))}function yo(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function hy(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class i3{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=s3(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,a){let i=0,s=this.stack.length>>1,o=Math.min(s,e.length);for(;i<o&&(i==s-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<s;)this.destroyRest(),this.top.dirty=fn,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1,u=this.top.children.length;a<this.preMatch.index&&(u=Math.min(this.index+3,u));for(let c=this.index;c<u;c++){let d=this.top.children[c];if(d.matchesMark(e[s])&&!this.isLocked(d.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=ra.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,a){let i=-1,s;if(a>=this.preMatch.index&&(s=this.preMatch.matches[a-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let o=this.index,l=Math.min(this.top.children.length,o+5);o<l;o++){let u=this.top.children[o];if(u.matchesNode(e,n,r)&&!this.preMatch.matched.has(u)){i=o;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,a,i){let s=this.top.children[a];return s.dirty==Dn&&s.dom==s.contentDOM&&(s.dirty=Hr),s.update(e,n,r,i)?(this.destroyBetween(this.index,a),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let a=this.index;a<this.top.children.length;a++)if(this.top.children[a]==r)return a}return-1}e=n}}updateNextNode(e,n,r,a,i,s){for(let o=this.index;o<this.top.children.length;o++){let l=this.top.children[o];if(l instanceof kr){let u=this.preMatch.matched.get(l);if(u!=null&&u!=i)return!1;let c=l.dom,d,p=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Dn&&yo(n,l.outerDeco));if(!p&&l.update(e,n,r,a))return this.destroyBetween(this.index,o),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!p&&(d=this.recreateWrapper(l,e,n,r,a,s)))return this.destroyBetween(this.index,o),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Hr,d.updateChildren(a,s+1),d.dirty=fn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,a,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!yo(r,e.outerDeco)||!a.eq(e.innerDeco))return null;let o=kr.create(this.top,n,r,a,i,s);if(o.contentDOM){o.children=e.children,e.children=[];for(let l of o.children)l.parent=o}return e.destroy(),o}addNode(e,n,r,a,i){let s=kr.create(this.top,e,n,r,a,i);s.contentDOM&&s.updateChildren(a,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let a=this.index<this.top.children.length?this.top.children[this.index]:null;if(a&&a.matchesWidget(e)&&(e==a.widget||!a.widget.type.toDOM.parentNode))this.index++;else{let i=new yC(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof ra;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Al)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((vt||bt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let a=new TC(this.top,[],r,null);n!=this.top?n.children.push(a):n.children.splice(this.index++,0,a),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function s3(t,e){let n=e,r=n.children.length,a=t.childCount,i=new Map,s=[];e:for(;a>0;){let o;for(;;)if(r){let u=n.children[r-1];if(u instanceof ra)n=u,r=u.children.length;else{o=u,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=o.node;if(l){if(l!=t.child(a-1))break;--a,i.set(o,a),s.push(o)}}return{index:a,matched:i,matches:s.reverse()}}function o3(t,e){return t.type.side-e.type.side}function l3(t,e,n,r){let a=e.locals(t),i=0;if(a.length==0){for(let u=0;u<t.childCount;u++){let c=t.child(u);r(c,a,e.forChild(i,c),u),i+=c.nodeSize}return}let s=0,o=[],l=null;for(let u=0;;){let c,d;for(;s<a.length&&a[s].to==i;){let b=a[s++];b.widget&&(c?(d||(d=[c])).push(b):c=b)}if(c)if(d){d.sort(o3);for(let b=0;b<d.length;b++)n(d[b],u,!!l)}else n(c,u,!!l);let p,f;if(l)f=-1,p=l,l=null;else if(u<t.childCount)f=u,p=t.child(u++);else break;for(let b=0;b<o.length;b++)o[b].to<=i&&o.splice(b--,1);for(;s<a.length&&a[s].from<=i&&a[s].to>i;)o.push(a[s++]);let h=i+p.nodeSize;if(p.isText){let b=h;s<a.length&&a[s].from<b&&(b=a[s].from);for(let y=0;y<o.length;y++)o[y].to<b&&(b=o[y].to);b<h&&(l=p.cut(b-i),p=p.cut(0,b-i),h=b,f=-1)}else for(;s<a.length&&a[s].to<h;)s++;let g=p.isInline&&!p.isLeaf?o.filter(b=>!b.inline):o.slice();r(p,g,e.forChild(i,p),f),i=h}}function u3(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function c3(t,e,n,r){for(let a=0,i=0;a<t.childCount&&i<=r;){let s=t.child(a++),o=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;a<t.childCount;){let u=t.child(a++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=n){if(i>=r&&l.slice(r-e.length-o,r-o)==e)return r-e.length;let u=o<r?l.lastIndexOf(e,r-o-1):-1;if(u>=0&&u+e.length+o>=n)return o+u;if(n==r&&l.length>=r+e.length-o&&l.slice(r-o,r-o+e.length)==e)return r}}return-1}function pg(t,e,n,r,a){let i=[];for(let s=0,o=0;s<t.length;s++){let l=t[s],u=o,c=o+=l.size;u>=n||c<=e?i.push(l):(u<e&&i.push(l.slice(0,e-u,r)),a&&(i.push(a),a=void 0),c>n&&i.push(l.slice(n-u,l.size,r)))}return i}function Pb(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let a=t.docView.nearestDesc(n.focusNode),i=a&&a.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let o=r.resolve(s),l,u;if(vl(n)){for(l=s;a&&!a.node;)a=a.parent;let d=a.node;if(a&&d.isAtom&&ue.isSelectable(d)&&a.parent&&!(d.isInline&&FM(n.focusNode,n.focusOffset,a.dom))){let p=a.posBefore;u=new ue(s==p?o:r.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,p=s;for(let f=0;f<n.rangeCount;f++){let h=n.getRangeAt(f);d=Math.min(d,t.docView.posFromDOM(h.startContainer,h.startOffset,1)),p=Math.max(p,t.docView.posFromDOM(h.endContainer,h.endOffset,-1))}if(d<0)return null;[l,s]=p==t.state.selection.anchor?[p,d]:[d,p],o=r.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=r.resolve(l);if(!u){let d=e=="pointer"||t.state.selection.head<o.pos&&!i?1:-1;u=Fb(t,c,o,d)}return u}function vC(t){return t.editable?t.hasFocus():_C(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function tr(t,e=!1){let n=t.state.selection;if(AC(t,n),!!vC(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&bt){let r=t.domSelectionRange(),a=t.domObserver.currentSelection;if(r.anchorNode&&a.anchorNode&&na(r.anchorNode,r.anchorOffset,a.anchorNode,a.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)p3(t);else{let{anchor:r,head:a}=n,i,s;my&&!(n instanceof Ee)&&(n.$from.parent.inlineContent||(i=gy(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=gy(t,n.to))),t.docView.setSelection(r,a,t,e),my&&(i&&by(i),s&&by(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&d3(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const my=vt||bt&&dC<63;function gy(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),a=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(vt&&a&&a.contentEditable=="false")return yu(a);if((!a||a.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(a)return yu(a);if(i)return yu(i)}}function yu(t){return t.contentEditable="true",vt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function by(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function d3(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,a=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=a)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!vC(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function p3(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,mt(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&qt&&xr<=11&&(n.disabled=!0,n.disabled=!1)}function AC(t,e){if(e instanceof ue){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Ey(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Ey(t)}function Ey(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Fb(t,e,n,r){return t.someProp("createSelectionBetween",a=>a(t,e,n))||Ee.between(e,n,r)}function yy(t){return t.editable&&!t.hasFocus()?!1:_C(t)}function _C(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function f3(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return na(e.node,e.offset,n.anchorNode,n.anchorOffset)}function fg(t,e){let{$anchor:n,$head:r}=t.selection,a=e>0?n.max(r):n.min(r),i=a.parent.inlineContent?a.depth?t.doc.resolve(e>0?a.after():a.before()):null:a;return i&&ke.findFrom(i,e)}function dr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Ty(t,e,n){let r=t.state.selection;if(r instanceof Ee)if(n.indexOf("s")>-1){let{$head:a}=r,i=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(a.pos+i.nodeSize*(e<0?-1:1));return dr(t,new Ee(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let a=fg(t.state,e);return a&&a instanceof ue?dr(t,a):!1}else if(!(on&&n.indexOf("m")>-1)){let a=r.$head,i=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter,s;if(!i||i.isText)return!1;let o=e<0?a.pos-i.nodeSize:a.pos;return i.isAtom||(s=t.docView.descAt(o))&&!s.contentDOM?ue.isSelectable(i)?dr(t,new ue(e<0?t.state.doc.resolve(a.pos-i.nodeSize):a)):ms?dr(t,new Ee(t.state.doc.resolve(e<0?o:o+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ue&&r.node.isInline)return dr(t,new Ee(e>0?r.$to:r.$from));{let a=fg(t.state,e);return a?dr(t,a):!1}}}function To(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function wi(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ya(t,e){return e<0?h3(t):m3(t)}function h3(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let a,i,s=!1;for(pn&&n.nodeType==1&&r<To(n)&&wi(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let o=n.childNodes[r-1];if(wi(o,-1))a=n,i=--r;else if(o.nodeType==3)n=o,r=n.nodeValue.length;else break}}else{if(NC(n))break;{let o=n.previousSibling;for(;o&&wi(o,-1);)a=n.parentNode,i=mt(o),o=o.previousSibling;if(o)n=o,r=To(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?hg(t,n,r):a&&hg(t,a,i)}function m3(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let a=To(n),i,s;for(;;)if(r<a){if(n.nodeType!=1)break;let o=n.childNodes[r];if(wi(o,1))i=n,s=++r;else break}else{if(NC(n))break;{let o=n.nextSibling;for(;o&&wi(o,1);)i=o.parentNode,s=mt(o)+1,o=o.nextSibling;if(o)n=o,r=0,a=To(n);else{if(n=n.parentNode,n==t.dom)break;r=a=0}}}i&&hg(t,i,s)}function NC(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function g3(t,e){for(;t&&e==t.childNodes.length&&!hs(t);)e=mt(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function b3(t,e){for(;t&&!e&&!hs(t);)e=mt(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function hg(t,e,n){if(e.nodeType!=3){let i,s;(s=g3(e,n))?(e=s,n=0):(i=b3(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(!r)return;if(vl(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:a}=t;setTimeout(()=>{t.state==a&&tr(t)},50)}function Sy(t,e){let n=t.state.doc.resolve(e);if(!(bt||pC)&&n.parent.inlineContent){let a=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>a.top&&s<a.bottom&&Math.abs(i.left-a.left)>1)return i.left<a.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>a.top&&s<a.bottom&&Math.abs(i.left-a.left)>1)return i.left>a.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function xy(t,e,n){let r=t.state.selection;if(r instanceof Ee&&!r.empty||n.indexOf("s")>-1||on&&n.indexOf("m")>-1)return!1;let{$from:a,$to:i}=r;if(!a.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=fg(t.state,e);if(s&&s instanceof ue)return dr(t,s)}if(!a.parent.inlineContent){let s=e<0?a:i,o=r instanceof Zt?ke.near(s,e):ke.findFrom(s,e);return o?dr(t,o):!1}return!1}function ky(t,e){if(!(t.state.selection instanceof Ee))return!0;let{$head:n,$anchor:r,empty:a}=t.state.selection;if(!n.sameParent(r))return!0;if(!a)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function vy(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function E3(t){if(!vt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;vy(t,r,"true"),setTimeout(()=>vy(t,r,"false"),20)}return!1}function y3(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function T3(t,e){let n=e.keyCode,r=y3(e);if(n==8||on&&n==72&&r=="c")return ky(t,-1)||ya(t,-1);if(n==46&&!e.shiftKey||on&&n==68&&r=="c")return ky(t,1)||ya(t,1);if(n==13||n==27)return!0;if(n==37||on&&n==66&&r=="c"){let a=n==37?Sy(t,t.state.selection.from)=="ltr"?-1:1:-1;return Ty(t,a,r)||ya(t,a)}else if(n==39||on&&n==70&&r=="c"){let a=n==39?Sy(t,t.state.selection.from)=="ltr"?1:-1:1;return Ty(t,a,r)||ya(t,a)}else{if(n==38||on&&n==80&&r=="c")return xy(t,-1,r)||ya(t,-1);if(n==40||on&&n==78&&r=="c")return E3(t)||xy(t,1,r)||ya(t,1);if(r==(on?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Bb(t,e){t.someProp("transformCopied",f=>{e=f(e,t)});let n=[],{content:r,openStart:a,openEnd:i}=e;for(;a>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){a--,i--;let f=r.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),r=f.content}let s=t.someProp("clipboardSerializer")||ca.fromSchema(t.state.schema),o=LC(),l=o.createElement("div");l.appendChild(s.serializeFragment(r,{document:o}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=OC[u.nodeName.toLowerCase()]);){for(let f=c.length-1;f>=0;f--){let h=o.createElement(c[f]);for(;l.firstChild;)h.appendChild(l.firstChild);l.appendChild(h),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${a} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
|
|
8
|
+
|
|
9
|
+
`);return{dom:l,text:p,slice:e}}function CC(t,e,n,r,a){let i=a.parent.type.spec.code,s,o;if(!n&&!e)return null;let l=!!e&&(r||i||!n);if(l){if(t.someProp("transformPastedText",p=>{e=p(e,i||r,t)}),i)return o=new ae(X.from(t.state.schema.text(e.replace(/\r\n?/g,`
|
|
10
|
+
`))),0,0),t.someProp("transformPasted",p=>{o=p(o,t,!0)}),o;let d=t.someProp("clipboardTextParser",p=>p(e,a,r,t));if(d)o=d;else{let p=a.marks(),{schema:f}=t.state,h=ca.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let b=s.appendChild(document.createElement("p"));g&&b.appendChild(h.serializeNode(f.text(g,p)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=v3(n),ms&&A3(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let p=s.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;s=p}if(o||(o=(t.someProp("clipboardParser")||t.someProp("domParser")||Jn.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:a,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!S3.test(p.parentNode.nodeName)?{ignore:!0}:null}})),c)o=_3(Ay(o,+c[1],+c[2]),c[4]);else if(o=ae.maxOpen(x3(o.content,a),!0),o.openStart||o.openEnd){let d=0,p=0;for(let f=o.content.firstChild;d<o.openStart&&!f.type.spec.isolating;d++,f=f.firstChild);for(let f=o.content.lastChild;p<o.openEnd&&!f.type.spec.isolating;p++,f=f.lastChild);o=Ay(o,d,p)}return t.someProp("transformPasted",d=>{o=d(o,t,l)}),o}const S3=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function x3(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let a=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(o=>{if(!s)return;let l=a.findWrapping(o.type),u;if(!l)return s=null;if(u=s.length&&i.length&&IC(l,i,o,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=RC(s[s.length-1],i.length));let c=wC(o,l);s.push(c),a=a.matchType(c.type),i=l}}),s)return X.from(s)}return t}function wC(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,X.from(t));return t}function IC(t,e,n,r,a){if(a<t.length&&a<e.length&&t[a]==e[a]){let i=IC(t,e,n,r.lastChild,a+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(a==t.length-1?n.type:t[a+1]))return r.copy(r.content.append(X.from(wC(n,t,a+1))))}}function RC(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,RC(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(X.empty,!0);return t.copy(n.append(r))}function mg(t,e,n,r,a,i){let s=e<0?t.firstChild:t.lastChild,o=s.content;return t.childCount>1&&(i=0),a<r-1&&(o=mg(o,e,n,r,a+1,i)),a>=n&&(o=e<0?s.contentMatchAt(0).fillBefore(o,i<=a).append(o):o.append(s.contentMatchAt(s.childCount).fillBefore(X.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(o))}function Ay(t,e,n){return e<t.openStart&&(t=new ae(mg(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new ae(mg(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const OC={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let _y=null;function LC(){return _y||(_y=document.implementation.createHTMLDocument("title"))}let Tu=null;function k3(t){let e=window.trustedTypes;return e?(Tu||(Tu=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Tu.createHTML(t)):t}function v3(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=LC().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),a;if((a=r&&OC[r[1].toLowerCase()])&&(t=a.map(i=>"<"+i+">").join("")+t+a.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=k3(t),a)for(let i=0;i<a.length;i++)n=n.querySelector(a[i])||n;return n}function A3(t){let e=t.querySelectorAll(bt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function _3(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:a,openStart:i,openEnd:s}=t;for(let o=r.length-2;o>=0;o-=2){let l=n.nodes[r[o]];if(!l||l.hasRequiredAttrs())break;a=X.from(l.create(r[o+1],a)),i++,s++}return new ae(a,i,s)}const Pt={},Ft={},N3={touchstart:!0,touchmove:!0};class C3{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function w3(t){for(let e in Pt){let n=Pt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{R3(t,r)&&!Ub(t,r)&&(t.editable||!(r.type in Ft))&&n(t,r)},N3[e]?{passive:!0}:void 0)}vt&&t.dom.addEventListener("input",()=>null),gg(t)}function Er(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function I3(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function gg(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Ub(t,r))})}function Ub(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function R3(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function O3(t,e){!Ub(t,e)&&Pt[e.type]&&(t.editable||!(e.type in Ft))&&Pt[e.type](t,e)}Ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!MC(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Kn&&bt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Ua&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",a=>a(t,jr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||T3(t,n)?n.preventDefault():Er(t,"key")};Ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ft.keypress=(t,e)=>{let n=e;if(MC(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||on&&n.metaKey)return;if(t.someProp("handleKeyPress",a=>a(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Ee)||!r.$from.sameParent(r.$to)){let a=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(a).scrollIntoView();!/[\r\n]/.test(a)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,a,i))&&t.dispatch(i()),n.preventDefault()}};function _l(t){return{left:t.clientX,top:t.clientY}}function L3(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function jb(t,e,n,r,a){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,o=>s>i.depth?o(t,n,i.nodeAfter,i.before(s),a,!0):o(t,n,i.node(s),i.before(s),a,!1)))return!0;return!1}function La(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function D3(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&ue.isSelectable(r)?(La(t,new ue(n)),!0):!1}function M3(t,e){if(e==-1)return!1;let n=t.state.selection,r,a;n instanceof ue&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let o=s>i.depth?i.nodeAfter:i.node(s);if(ue.isSelectable(o)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?a=i.before(n.$from.depth):a=i.before(s);break}}return a!=null?(La(t,ue.create(t.state.doc,a)),!0):!1}function P3(t,e,n,r,a){return jb(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(a?M3(t,n):D3(t,n))}function F3(t,e,n,r){return jb(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",a=>a(t,e,r))}function B3(t,e,n,r){return jb(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",a=>a(t,e,r))||U3(t,n,r)}function U3(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(La(t,Ee.create(r,0,r.content.size)),!0):!1;let a=r.resolve(e);for(let i=a.depth+1;i>0;i--){let s=i>a.depth?a.nodeAfter:a.node(i),o=a.before(i);if(s.inlineContent)La(t,Ee.create(r,o+1,o+1+s.content.size));else if(ue.isSelectable(s))La(t,ue.create(r,o));else continue;return!0}}function Hb(t){return So(t)}const DC=on?"metaKey":"ctrlKey";Pt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Hb(t),a=Date.now(),i="singleClick";a-t.input.lastClick.time<500&&L3(n,t.input.lastClick)&&!n[DC]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:a,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=t.posAtCoords(_l(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new j3(t,s,n,!!r)):(i=="doubleClick"?F3:B3)(t,s.pos,s.inside,n)?n.preventDefault():Er(t,"pointer"))};class j3{constructor(e,n,r,a){this.view=e,this.pos=n,this.event=r,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[DC],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.before():0}const o=a?null:r.target,l=o?e.docView.nearestDesc(o,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:u}=e.state;r.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof ue&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&pn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Er(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>tr(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(_l(e))),this.updateAllowDefault(e),this.allowDefault||!n?Er(this.view,"pointer"):P3(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||vt&&this.mightDrag&&!this.mightDrag.node.isAtom||bt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(La(this.view,ke.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Er(this.view,"pointer")}move(e){this.updateAllowDefault(e),Er(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Pt.touchstart=t=>{t.input.lastTouch=Date.now(),Hb(t),Er(t,"pointer")};Pt.touchmove=t=>{t.input.lastTouch=Date.now(),Er(t,"pointer")};Pt.contextmenu=t=>Hb(t);function MC(t,e){return t.composing?!0:vt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const H3=Kn?5e3:-1;Ft.compositionstart=Ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Ee&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||bt&&pC&&$3(t)))t.markCursor=t.state.storedMarks||n.marks(),So(t,!0),t.markCursor=null;else if(So(t,!e.selection.empty),pn&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let a=r.focusNode,i=r.focusOffset;a&&a.nodeType==1&&i!=0;){let s=i<0?a.lastChild:a.childNodes[i-1];if(!s)break;if(s.nodeType==3){let o=t.domSelection();o&&o.collapse(s,s.nodeValue.length);break}else a=s,i=-1}}t.input.composing=!0}PC(t,H3)};function $3(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,PC(t,20))};function PC(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>So(t),e))}function FC(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=q3());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function z3(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=MM(e.focusNode,e.focusOffset),r=PM(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let a=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!a||!a.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function q3(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function So(t,e=!1){if(!(Kn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),FC(t),e||t.docView&&t.docView.dirty){let n=Pb(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function G3(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),a=document.createRange();a.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Xi=qt&&xr<15||Ua&&jM<604;Pt.copy=Ft.cut=(t,e)=>{let n=e,r=t.state.selection,a=n.type=="cut";if(r.empty)return;let i=Xi?null:n.clipboardData,s=r.content(),{dom:o,text:l}=Bb(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",o.innerHTML),i.setData("text/plain",l)):G3(t,o),a&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function W3(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function V3(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let a=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Zi(t,r.value,null,a,e):Zi(t,r.textContent,r.innerHTML,a,e)},50)}function Zi(t,e,n,r,a){let i=CC(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,a,i||ae.empty)))return!0;if(!i)return!1;let s=W3(i),o=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function BC(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ft.paste=(t,e)=>{let n=e;if(t.composing&&!Kn)return;let r=Xi?null:n.clipboardData,a=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Zi(t,BC(r),r.getData("text/html"),a,n)?n.preventDefault():V3(t,n)};class UC{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const Y3=on?"altKey":"ctrlKey";function jC(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[Y3]}Pt.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let a=t.state.selection,i=a.empty?null:t.posAtCoords(_l(n)),s;if(!(i&&i.pos>=a.from&&i.pos<=(a instanceof ue?a.to-1:a.to))){if(r&&r.mightDrag)s=ue.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=ue.create(t.state.doc,d.posBefore))}}let o=(s||t.state.selection).content(),{dom:l,text:u,slice:c}=Bb(t,o);(!n.dataTransfer.files.length||!bt||dC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Xi?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Xi||n.dataTransfer.setData("text/plain",u),t.dragging=new UC(c,jC(t,n),s)};Pt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ft.dragover=Ft.dragenter=(t,e)=>e.preventDefault();Ft.drop=(t,e)=>{try{K3(t,e,t.dragging)}finally{t.dragging=null}};function K3(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(_l(e));if(!r)return;let a=t.state.doc.resolve(r.pos),i=n&&n.slice;i?t.someProp("transformPasted",f=>{i=f(i,t,!1)}):i=CC(t,BC(e.dataTransfer),Xi?null:e.dataTransfer.getData("text/html"),!1,a);let s=!!(n&&jC(t,e));if(t.someProp("handleDrop",f=>f(t,e,i||ae.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let o=i?qN(t.state.doc,a.pos,i):a.pos;o==null&&(o=a.pos);let l=t.state.tr;if(s){let{node:f}=n;f?f.replace(l):l.deleteSelection()}let u=l.mapping.map(o),c=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,d=l.doc;if(c?l.replaceRangeWith(u,u,i.content.firstChild):l.replaceRange(u,u,i),l.doc.eq(d))return;let p=l.doc.resolve(u);if(c&&ue.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new ue(p));else{let f=l.mapping.map(o);l.mapping.maps[l.mapping.maps.length-1].forEach((h,g,b,y)=>f=y),l.setSelection(Fb(t,p,l.doc.resolve(f)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Pt.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&tr(t)},20))};Pt.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Pt.beforeinput=(t,e)=>{if(bt&&Kn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,jr(8,"Backspace")))))return;let{$cursor:a}=t.state.selection;a&&a.pos>0&&t.dispatch(t.state.tr.delete(a.pos-1,a.pos).scrollIntoView())},50)}};for(let t in Ft)Pt[t]=Ft[t];function Qi(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class xo{constructor(e,n){this.toDOM=e,this.spec=n||Vr,this.side=this.spec.side||0}map(e,n,r,a){let{pos:i,deleted:s}=e.mapResult(n.from+a,this.side<0?-1:1);return s?null:new Dt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof xo&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Qi(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class vr{constructor(e,n){this.attrs=e,this.spec=n||Vr}map(e,n,r,a){let i=e.map(n.from+a,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+a,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new Dt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof vr&&Qi(this.attrs,e.attrs)&&Qi(this.spec,e.spec)}static is(e){return e.type instanceof vr}destroy(){}}class $b{constructor(e,n){this.attrs=e,this.spec=n||Vr}map(e,n,r,a){let i=e.mapResult(n.from+a,1);if(i.deleted)return null;let s=e.mapResult(n.to+a,-1);return s.deleted||s.pos<=i.pos?null:new Dt(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:a}=e.content.findIndex(n.from),i;return a==n.from&&!(i=e.child(r)).isText&&a+i.nodeSize==n.to}eq(e){return this==e||e instanceof $b&&Qi(this.attrs,e.attrs)&&Qi(this.spec,e.spec)}destroy(){}}class Dt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Dt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Dt(e,e,new xo(n,r))}static inline(e,n,r,a){return new Dt(e,n,new vr(r,a))}static node(e,n,r,a){return new Dt(e,n,new $b(r,a))}get spec(){return this.type.spec}get inline(){return this.type instanceof vr}get widget(){return this.type instanceof xo}}const va=[],Vr={};class Ke{constructor(e,n){this.local=e.length?e:va,this.children=n.length?n:va}static create(e,n){return n.length?ko(n,e,0,Vr):St}find(e,n,r){let a=[];return this.findInner(e??0,n??1e9,a,0,r),a}findInner(e,n,r,a,i){for(let s=0;s<this.local.length;s++){let o=this.local[s];o.from<=n&&o.to>=e&&(!i||i(o.spec))&&r.push(o.copy(o.from+a,o.to+a))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let o=this.children[s]+1;this.children[s+2].findInner(e-o,n-o,r,a+o,i)}}map(e,n,r){return this==St||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Vr)}mapInner(e,n,r,a,i){let s;for(let o=0;o<this.local.length;o++){let l=this.local[o].map(e,r,a);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?X3(this.children,s||[],e,n,r,a,i):s?new Ke(s.sort(Yr),va):St}add(e,n){return n.length?this==St?Ke.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let a,i=0;e.forEach((o,l)=>{let u=l+r,c;if(c=$C(n,o,u)){for(a||(a=this.children.slice());i<a.length&&a[i]<l;)i+=3;a[i]==l?a[i+2]=a[i+2].addInner(o,c,u+1):a.splice(i,0,l,l+o.nodeSize,ko(c,o,u+1,Vr)),i+=3}});let s=HC(i?zC(n):n,-r);for(let o=0;o<s.length;o++)s[o].type.valid(e,s[o])||s.splice(o--,1);return new Ke(s.length?this.local.concat(s).sort(Yr):this.local,a||this.children)}remove(e){return e.length==0||this==St?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,a=this.local;for(let i=0;i<r.length;i+=3){let s,o=r[i]+n,l=r[i+1]+n;for(let c=0,d;c<e.length;c++)(d=e[c])&&d.from>o&&d.to<l&&(e[c]=null,(s||(s=[])).push(d));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,o+1);u!=St?r[i+2]=u:(r.splice(i,3),i-=3)}if(a.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let o=0;o<a.length;o++)a[o].eq(s,n)&&(a==this.local&&(a=this.local.slice()),a.splice(o--,1))}return r==this.children&&a==this.local?this:a.length||r.length?new Ke(a,r):St}forChild(e,n){if(this==St)return this;if(n.isLeaf)return Ke.empty;let r,a;for(let o=0;o<this.children.length;o+=3)if(this.children[o]>=e){this.children[o]==e&&(r=this.children[o+2]);break}let i=e+1,s=i+n.content.size;for(let o=0;o<this.local.length;o++){let l=this.local[o];if(l.from<s&&l.to>i&&l.type instanceof vr){let u=Math.max(i,l.from)-i,c=Math.min(s,l.to)-i;u<c&&(a||(a=[])).push(l.copy(u,c))}}if(a){let o=new Ke(a.sort(Yr),va);return r?new hr([o,r]):o}return r||St}eq(e){if(this==e)return!0;if(!(e instanceof Ke)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return zb(this.localsInner(e))}localsInner(e){if(this==St)return va;if(e.inlineContent||!this.local.some(vr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof vr||n.push(this.local[r]);return n}forEachSet(e){e(this)}}Ke.empty=new Ke([],[]);Ke.removeOverlap=zb;const St=Ke.empty;class hr{constructor(e){this.members=e}map(e,n){const r=this.members.map(a=>a.map(e,n,Vr));return hr.from(r)}forChild(e,n){if(n.isLeaf)return Ke.empty;let r=[];for(let a=0;a<this.members.length;a++){let i=this.members[a].forChild(e,n);i!=St&&(i instanceof hr?r=r.concat(i.members):r.push(i))}return hr.from(r)}eq(e){if(!(e instanceof hr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let a=0;a<this.members.length;a++){let i=this.members[a].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?zb(r?n:n.sort(Yr)):va}static from(e){switch(e.length){case 0:return St;case 1:return e[0];default:return new hr(e.every(n=>n instanceof Ke)?e:e.reduce((n,r)=>n.concat(r instanceof Ke?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function X3(t,e,n,r,a,i,s){let o=t.slice();for(let u=0,c=i;u<n.maps.length;u++){let d=0;n.maps[u].forEach((p,f,h,g)=>{let b=g-h-(f-p);for(let y=0;y<o.length;y+=3){let T=o[y+1];if(T<0||p>T+c-d)continue;let x=o[y]+c-d;f>=x?o[y+1]=p<=x?-2:-1:p>=c&&b&&(o[y]+=b,o[y+1]+=b)}d+=b}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<o.length;u+=3)if(o[u+1]<0){if(o[u+1]==-2){l=!0,o[u+1]=-1;continue}let c=n.map(t[u]+i),d=c-a;if(d<0||d>=r.content.size){l=!0;continue}let p=n.map(t[u+1]+i,-1),f=p-a,{index:h,offset:g}=r.content.findIndex(d),b=r.maybeChild(h);if(b&&g==d&&g+b.nodeSize==f){let y=o[u+2].mapInner(n,b,c+1,t[u]+i+1,s);y!=St?(o[u]=d,o[u+1]=f,o[u+2]=y):(o[u+1]=-2,l=!0)}else l=!0}if(l){let u=Z3(o,t,e,n,a,i,s),c=ko(u,r,0,s);e=c.local;for(let d=0;d<o.length;d+=3)o[d+1]<0&&(o.splice(d,3),d-=3);for(let d=0,p=0;d<c.children.length;d+=3){let f=c.children[d];for(;p<o.length&&o[p]<f;)p+=3;o.splice(p,0,c.children[d],c.children[d+1],c.children[d+2])}}return new Ke(e.sort(Yr),o)}function HC(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let a=t[r];n.push(new Dt(a.from+e,a.to+e,a.type))}return n}function Z3(t,e,n,r,a,i,s){function o(l,u){for(let c=0;c<l.local.length;c++){let d=l.local[c].map(r,a,u);d?n.push(d):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)o(l.children[c+2],l.children[c]+u+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&o(t[l+2],e[l]+i+1);return n}function $C(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,a=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((a||(a=[])).push(s),t[i]=null);return a}function zC(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function ko(t,e,n,r){let a=[],i=!1;e.forEach((o,l)=>{let u=$C(t,o,l+n);if(u){i=!0;let c=ko(u,o,n+l+1,r);c!=St&&a.push(l,l+o.nodeSize,c)}});let s=HC(i?zC(t):t,-n).sort(Yr);for(let o=0;o<s.length;o++)s[o].type.valid(e,s[o])||(r.onRemove&&r.onRemove(s[o].spec),s.splice(o--,1));return s.length||a.length?new Ke(s,a):St}function Yr(t,e){return t.from-e.from||t.to-e.to}function zb(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let a=n+1;a<e.length;a++){let i=e[a];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[a]=i.copy(i.from,r.to),Ny(e,a+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),Ny(e,a,r.copy(i.from,r.to)));break}}}return e}function Ny(t,e,n){for(;e<t.length&&Yr(n,t[e])>0;)e++;t.splice(e,0,n)}function Su(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=St&&e.push(r)}),t.cursorWrapper&&e.push(Ke.create(t.state.doc,[t.cursorWrapper.deco])),hr.from(e)}const Q3={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},J3=qt&&xr<=11;class eP{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class tP{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new eP,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let a=0;a<r.length;a++)this.queue.push(r[a]);qt&&xr<=11&&r.some(a=>a.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():vt&&e.composing&&r.some(a=>a.type=="childList"&&a.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),J3&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Q3)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(yy(this.view)){if(this.suppressingSelectionUpdates)return tr(this.view);if(qt&&xr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&na(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=Ba(i))n.add(i);for(let i=e.anchorNode;i;i=Ba(i))if(n.has(i)){r=i;break}let a=r&&this.view.docView.nearestDesc(r);if(a&&a.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&yy(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,o=!1,l=[];if(e.editable)for(let c=0;c<n.length;c++){let d=this.registerMutation(n[c],l);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(o=!0))}if(l.some(c=>c.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let c of l)if(c.nodeName=="BR"&&c.parentNode){let d=c.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){c.parentNode.removeChild(c);break}d=d.firstChild}}}else if(pn&&l.length){let c=l.filter(d=>d.nodeName=="BR");if(c.length==2){let[d,p]=c;d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let p of c){let f=p.parentNode;f&&f.nodeName=="LI"&&(!d||aP(e,d)!=f)&&p.remove()}}}let u=null;i<0&&a&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&vl(r)&&(u=Pb(e))&&u.eq(ke.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,tr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||a)&&(i>-1&&(e.docView.markDirty(i,s),nP(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,iP(e,l)),this.handleDOMChange(i,s,o,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||tr(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;c<e.addedNodes.length;c++){let d=e.addedNodes[c];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let a=e.previousSibling,i=e.nextSibling;if(qt&&xr<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:d,nextSibling:p}=e.addedNodes[c];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(a=d),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(i=p)}let s=a&&a.parentNode==e.target?mt(a)+1:0,o=r.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?mt(i):e.target.childNodes.length,u=r.localPosFromDOM(e.target,l,1);return{from:o,to:u}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Cy=new WeakMap,wy=!1;function nP(t){if(!Cy.has(t)&&(Cy.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=pn,wy)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),wy=!0}}function Iy(t,e){let n=e.startContainer,r=e.startOffset,a=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return na(s.node,s.offset,a,i)&&([n,r,a,i]=[a,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:i}}function rP(t,e){if(e.getComposedRanges){let a=e.getComposedRanges(t.root)[0];if(a)return Iy(t,a)}let n;function r(a){a.preventDefault(),a.stopImmediatePropagation(),n=a.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?Iy(t,n):null}function aP(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function iP(t,e){var n;let{focusNode:r,focusOffset:a}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let o=s;for(;;){let l=o.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;o=l}o.insertBefore(i,o.firstChild),r==i&&t.domSelection().collapse(i,a)}else i.parentNode.removeChild(i)}}function sP(t,e,n){let{node:r,fromOffset:a,toOffset:i,from:s,to:o}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(u=[{node:c,offset:l.anchorOffset}],vl(l)||u.push({node:l.focusNode,offset:l.focusOffset})),bt&&t.input.lastKeyCode===8)for(let b=i;b>a;b--){let y=r.childNodes[b-1],T=y.pmViewDesc;if(y.nodeName=="BR"&&!T){i=b;break}if(!T||T.size)break}let d=t.state.doc,p=t.someProp("domParser")||Jn.fromSchema(t.state.schema),f=d.resolve(s),h=null,g=p.parse(r,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:a,to:i,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:oP,context:f});if(u&&u[0].pos!=null){let b=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=b),h={anchor:b+s,head:y+s}}return{doc:g,sel:h,from:s,to:o}}function oP(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(vt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||vt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const lP=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function uP(t,e,n,r,a){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let v=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,N=Pb(t,v);if(N&&!t.state.selection.eq(N)){if(bt&&Kn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",C=>C(t,jr(13,"Enter"))))return;let _=t.state.tr.setSelection(N);v=="pointer"?_.setMeta("pointer",!0):v=="key"&&_.scrollIntoView(),i&&_.setMeta("composition",i),t.dispatch(_)}return}let s=t.state.doc.resolve(e),o=s.sharedDepth(n);e=s.before(o+1),n=t.state.doc.resolve(n).after(o+1);let l=t.state.selection,u=sP(t,e,n),c=t.state.doc,d=c.slice(u.from,u.to),p,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,f="end"):(p=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let h=pP(d.content,u.doc.content,u.from,p,f);if(h&&t.input.domChangeCount++,(Ua&&t.input.lastIOSEnter>Date.now()-225||Kn)&&a.some(v=>v.nodeType==1&&!lP.test(v.nodeName))&&(!h||h.endA>=h.endB)&&t.someProp("handleKeyDown",v=>v(t,jr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!h)if(r&&l instanceof Ee&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))h={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let v=Ry(t,t.state.doc,u.sel);if(v&&!v.eq(t.state.selection)){let N=t.state.tr.setSelection(v);i&&N.setMeta("composition",i),t.dispatch(N)}}return}t.state.selection.from<t.state.selection.to&&h.start==h.endB&&t.state.selection instanceof Ee&&(h.start>t.state.selection.from&&h.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?h.start=t.state.selection.from:h.endA<t.state.selection.to&&h.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(h.endB+=t.state.selection.to-h.endA,h.endA=t.state.selection.to)),qt&&xr<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>u.from&&u.doc.textBetween(h.start-u.from-1,h.start-u.from+1)==" "&&(h.start--,h.endA--,h.endB--);let g=u.doc.resolveNoCache(h.start-u.from),b=u.doc.resolveNoCache(h.endB-u.from),y=c.resolve(h.start),T=g.sameParent(b)&&g.parent.inlineContent&&y.end()>=h.endA;if((Ua&&t.input.lastIOSEnter>Date.now()-225&&(!T||a.some(v=>v.nodeName=="DIV"||v.nodeName=="P"))||!T&&g.pos<u.doc.content.size&&(!g.sameParent(b)||!g.parent.inlineContent)&&g.pos<b.pos&&!/\S/.test(u.doc.textBetween(g.pos,b.pos,"","")))&&t.someProp("handleKeyDown",v=>v(t,jr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>h.start&&dP(c,h.start,h.endA,g,b)&&t.someProp("handleKeyDown",v=>v(t,jr(8,"Backspace")))){Kn&&bt&&t.domObserver.suppressSelectionUpdates();return}bt&&h.endB==h.start&&(t.input.lastChromeDelete=Date.now()),Kn&&!T&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==h.endA&&(h.endB-=2,b=u.doc.resolveNoCache(h.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(v){return v(t,jr(13,"Enter"))})},20));let x=h.start,k=h.endA,A=v=>{let N=v||t.state.tr.replace(x,k,u.doc.slice(h.start-u.from,h.endB-u.from));if(u.sel){let _=Ry(t,N.doc,u.sel);_&&!(bt&&t.composing&&_.empty&&(h.start!=h.endB||t.input.lastChromeDelete<Date.now()-100)&&(_.head==x||_.head==N.mapping.map(k)-1)||qt&&_.empty&&_.head==x)&&N.setSelection(_)}return i&&N.setMeta("composition",i),N.scrollIntoView()},S;if(T)if(g.pos==b.pos){qt&&xr<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>tr(t),20));let v=A(t.state.tr.delete(x,k)),N=c.resolve(h.start).marksAcross(c.resolve(h.endA));N&&v.ensureMarks(N),t.dispatch(v)}else if(h.endA==h.endB&&(S=cP(g.parent.content.cut(g.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,h.endA-y.start())))){let v=A(t.state.tr);S.type=="add"?v.addMark(x,k,S.mark):v.removeMark(x,k,S.mark),t.dispatch(v)}else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let v=g.parent.textBetween(g.parentOffset,b.parentOffset),N=()=>A(t.state.tr.insertText(v,x,k));t.someProp("handleTextInput",_=>_(t,x,k,v,N))||t.dispatch(N())}else t.dispatch(A());else t.dispatch(A())}function Ry(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Fb(t,e.resolve(n.anchor),e.resolve(n.head))}function cP(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,a=n,i=r,s,o,l;for(let c=0;c<r.length;c++)a=r[c].removeFromSet(a);for(let c=0;c<n.length;c++)i=n[c].removeFromSet(i);if(a.length==1&&i.length==0)o=a[0],s="add",l=c=>c.mark(o.addToSet(c.marks));else if(a.length==0&&i.length==1)o=i[0],s="remove",l=c=>c.mark(o.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<e.childCount;c++)u.push(l(e.child(c)));if(X.from(u).eq(t))return{mark:o,type:s}}function dP(t,e,n,r,a){if(n-e<=a.pos-r.pos||xu(r,!0,!1)<a.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let o=i.nodeAfter;return o!=null&&n==e+o.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(xu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||xu(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function xu(t,e,n){let r=t.depth,a=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,a++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,a++}return a}function pP(t,e,n,r,a){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:o}=t.findDiffEnd(e,n+t.size,n+e.size);if(a=="end"){let l=Math.max(0,i-Math.min(s,o));r-=s+l-i}if(s<i&&t.size<e.size){let l=r<=i&&r>=s?i-r:0;i-=l,i&&i<e.size&&Oy(e.textBetween(i-1,i+1))&&(i+=l?1:-1),o=i+(o-s),s=i}else if(o<i){let l=r<=i&&r>=o?i-r:0;i-=l,i&&i<t.size&&Oy(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-o),o=i}return{start:i,endA:s,endB:o}}function Oy(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class qC{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new C3,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Fy),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=My(this),Dy(this),this.nodeViews=Py(this),this.docView=fy(this.state.doc,Ly(this),Su(this),this.dom,this),this.domObserver=new tP(this,(r,a,i,s)=>uP(this,r,a,i,s)),this.domObserver.start(),w3(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&gg(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Fy),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let a=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(FC(this),s=!0),this.state=e;let o=a.plugins!=e.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=Py(this);hP(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&gg(this),this.editable=My(this),Dy(this);let l=Su(this),u=Ly(this),c=a.plugins!=e.plugins&&!a.doc.eq(e.doc)?"reset":e.scrollToSelection>a.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,u,l);(d||!e.selection.eq(a.selection))&&(s=!0);let p=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&zM(this);if(s){this.domObserver.stop();let f=d&&(qt||bt)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&fP(a.selection,e.selection);if(d){let h=bt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=z3(this)),(i||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=fy(e.doc,u,l,this.dom,this)),h&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&f3(this))?tr(this,f):(AC(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((r=this.dragging)===null||r===void 0)&&r.node&&!a.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,a),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():p&&qM(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ue){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&oy(this,n.getBoundingClientRect(),e)}else oy(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,a=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)a=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==r.node&&(a=i)}this.dragging=new UC(e.slice,e.move,a<0?void 0:ue.create(this.state.doc,a))}someProp(e,n){let r=this._props&&this._props[e],a;if(r!=null&&(a=n?n(r):r))return a;for(let s=0;s<this.directPlugins.length;s++){let o=this.directPlugins[s].props[e];if(o!=null&&(a=n?n(o):o))return a}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let o=i[s].props[e];if(o!=null&&(a=n?n(o):o))return a}}hasFocus(){if(qt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&GM(this.dom),tr(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return XM(this,e)}coordsAtPos(e,n=1){return bC(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let a=this.docView.posFromDOM(e,n,r);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(e,n){return t3(this,n||this.state,e)}pasteHTML(e,n){return Zi(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Zi(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Bb(this,e)}destroy(){this.docView&&(I3(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Su(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,LM())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return O3(this,e)}domSelectionRange(){let e=this.domSelection();return e?vt&&this.root.nodeType===11&&BM(this.dom.ownerDocument)==this.dom&&rP(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}qC.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Ly(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Dt.node(0,t.state.doc.content.size,e)]}function Dy(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Dt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function My(t){return!t.someProp("editable",e=>e(t.state)===!1)}function fP(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Py(t){let e=Object.create(null);function n(r){for(let a in r)Object.prototype.hasOwnProperty.call(e,a)||(e[a]=r[a])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function hP(t,e){let n=0,r=0;for(let a in t){if(t[a]!=e[a])return!0;n++}for(let a in e)r++;return n!=r}function Fy(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var _r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},vo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mP=typeof navigator<"u"&&/Mac/.test(navigator.platform),gP=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var gt=0;gt<10;gt++)_r[48+gt]=_r[96+gt]=String(gt);for(var gt=1;gt<=24;gt++)_r[gt+111]="F"+gt;for(var gt=65;gt<=90;gt++)_r[gt]=String.fromCharCode(gt+32),vo[gt]=String.fromCharCode(gt);for(var ku in _r)vo.hasOwnProperty(ku)||(vo[ku]=_r[ku]);function bP(t){var e=mP&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||gP&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?vo:_r)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const EP=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),yP=typeof navigator<"u"&&/Win/.test(navigator.platform);function TP(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,a,i,s;for(let o=0;o<e.length-1;o++){let l=e[o];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))a=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))EP?s=!0:a=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),a&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function SP(t){let e=Object.create(null);for(let n in t)e[TP(n)]=t[n];return e}function vu(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function xP(t){return new Xe({props:{handleKeyDown:GC(t)}})}function GC(t){let e=SP(t);return function(n,r){let a=bP(r),i,s=e[vu(a,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(a.length==1&&a!=" "){if(r.shiftKey){let o=e[vu(a,r,!1)];if(o&&o(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(yP&&r.ctrlKey&&r.altKey)&&(i=_r[r.keyCode])&&i!=a){let o=e[vu(i,r)];if(o&&o(n.state,n.dispatch,n))return!0}}return!1}}var kP=Object.defineProperty,qb=(t,e)=>{for(var n in e)kP(t,n,{get:e[n],enumerable:!0})};function Nl(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:a}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return a},get tr(){return r=n.selection,a=n.doc,i=n.storedMarks,n}}}var Cl=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:a}=n,i=this.buildProps(a);return Object.fromEntries(Object.entries(t).map(([s,o])=>[s,(...u)=>{const c=o(...u)(i);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(a),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:a}=this,{view:i}=r,s=[],o=!!t,l=t||a.tr,u=()=>(!o&&e&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(l),s.every(d=>d===!0)),c={...Object.fromEntries(Object.entries(n).map(([d,p])=>[d,(...h)=>{const g=this.buildProps(l,e),b=p(...h)(g);return s.push(b),c}])),run:u};return c}createCan(t){const{rawCommands:e,state:n}=this,r=!1,a=t||n.tr,i=this.buildProps(a,r);return{...Object.fromEntries(Object.entries(e).map(([o,l])=>[o,(...u)=>l(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(a,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:a}=this,{view:i}=r,s={tr:t,editor:r,view:i,state:Nl({state:a,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([o,l])=>[o,(...u)=>l(...u)(s)]))}};return s}},WC={};qb(WC,{blur:()=>vP,clearContent:()=>AP,clearNodes:()=>_P,command:()=>NP,createParagraphNear:()=>CP,cut:()=>wP,deleteCurrentNode:()=>IP,deleteNode:()=>RP,deleteRange:()=>OP,deleteSelection:()=>LP,enter:()=>DP,exitCode:()=>MP,extendMarkRange:()=>PP,first:()=>FP,focus:()=>UP,forEach:()=>jP,insertContent:()=>HP,insertContentAt:()=>qP,joinBackward:()=>VP,joinDown:()=>WP,joinForward:()=>YP,joinItemBackward:()=>KP,joinItemForward:()=>XP,joinTextblockBackward:()=>ZP,joinTextblockForward:()=>QP,joinUp:()=>GP,keyboardShortcut:()=>e4,lift:()=>t4,liftEmptyBlock:()=>n4,liftListItem:()=>r4,newlineInCode:()=>a4,resetAttributes:()=>i4,scrollIntoView:()=>s4,selectAll:()=>o4,selectNodeBackward:()=>l4,selectNodeForward:()=>u4,selectParentNode:()=>c4,selectTextblockEnd:()=>d4,selectTextblockStart:()=>p4,setContent:()=>f4,setMark:()=>D4,setMeta:()=>M4,setNode:()=>P4,setNodeSelection:()=>F4,setTextDirection:()=>B4,setTextSelection:()=>U4,sinkListItem:()=>j4,splitBlock:()=>H4,splitListItem:()=>$4,toggleList:()=>z4,toggleMark:()=>q4,toggleNode:()=>G4,toggleWrap:()=>W4,undoInputRule:()=>V4,unsetAllMarks:()=>Y4,unsetMark:()=>K4,unsetTextDirection:()=>X4,updateAttributes:()=>Z4,wrapIn:()=>Q4,wrapInList:()=>J4});var vP=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),AP=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),_P=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:a}=r;return n&&a.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(o,l)=>{if(o.type.isText)return;const{doc:u,mapping:c}=e,d=u.resolve(c.map(l)),p=u.resolve(c.map(l+o.nodeSize)),f=d.blockRange(p);if(!f)return;const h=Za(f);if(o.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,g)}(h||h===0)&&e.lift(f,h)})}),!0},NP=t=>e=>t(e),CP=()=>({state:t,dispatch:e})=>sC(t,e),wP=(t,e)=>({editor:n,tr:r})=>{const{state:a}=n,i=a.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Ee(r.doc.resolve(Math.max(s-1,0)))),!0},IP=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const a=t.selection.$anchor;for(let i=a.depth;i>0;i-=1)if(a.node(i).type===r.type){if(e){const o=a.before(i),l=a.after(i);t.delete(o,l).scrollIntoView()}return!0}return!1};function st(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var RP=t=>({tr:e,state:n,dispatch:r})=>{const a=st(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===a){if(r){const l=i.before(s),u=i.after(s);e.delete(l,u).scrollIntoView()}return!0}return!1},OP=t=>({tr:e,dispatch:n})=>{const{from:r,to:a}=t;return n&&e.delete(r,a),!0},LP=()=>({state:t,dispatch:e})=>Ib(t,e),DP=()=>({commands:t})=>t.keyboardShortcut("Enter"),MP=()=>({state:t,dispatch:e})=>EM(t,e);function Gb(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Ao(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(a=>n.strict?e[a]===t[a]:Gb(e[a])?e[a].test(t[a]):e[a]===t[a]):!0}function VC(t,e,n={}){return t.find(r=>r.type===e&&Ao(Object.fromEntries(Object.keys(n).map(a=>[a,r.attrs[a]])),n))}function By(t,e,n={}){return!!VC(t,e,n)}function Wb(t,e,n){var r;if(!t||!e)return;let a=t.parent.childAfter(t.parentOffset);if((!a.node||!a.node.marks.some(c=>c.type===e))&&(a=t.parent.childBefore(t.parentOffset)),!a.node||!a.node.marks.some(c=>c.type===e)||(n=n||((r=a.node.marks[0])==null?void 0:r.attrs),!VC([...a.node.marks],e,n)))return;let s=a.index,o=t.start()+a.offset,l=s+1,u=o+a.node.nodeSize;for(;s>0&&By([...t.parent.child(s-1).marks],e,n);)s-=1,o-=t.parent.child(s).nodeSize;for(;l<t.parent.childCount&&By([...t.parent.child(l).marks],e,n);)u+=t.parent.child(l).nodeSize,l+=1;return{from:o,to:u}}function rr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var PP=(t,e={})=>({tr:n,state:r,dispatch:a})=>{const i=rr(t,r.schema),{doc:s,selection:o}=n,{$from:l,from:u,to:c}=o;if(a){const d=Wb(l,i,e);if(d&&d.from<=u&&d.to>=c){const p=Ee.create(s,d.from,d.to);n.setSelection(p)}}return!0},FP=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function YC(t){return t instanceof Ee}function Xn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function KC(t,e=null){if(!e)return null;const n=ke.atStart(t),r=ke.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const a=n.from,i=r.to;return e==="all"?Ee.create(t,Xn(0,a,i),Xn(t.content.size,a,i)):Ee.create(t,Xn(e,a,i),Xn(e,a,i))}function bg(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Ji(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function BP(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var UP=(t=null,e={})=>({editor:n,view:r,tr:a,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(Ji()||bg())&&r.dom.focus(),BP()&&!Ji()&&!bg()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(i&&t===null&&!YC(n.state.selection))return s(),!0;const o=KC(a.doc,t)||n.state.selection,l=n.state.selection.eq(o);return i&&(l||a.setSelection(o),l&&a.storedMarks&&a.setStoredMarks(a.storedMarks),s()),!0},jP=(t,e)=>n=>t.every((r,a)=>e(r,{...n,index:a})),HP=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),XC=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&XC(r)}return t};function Si(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return XC(n)}function es(t,e,n){if(t instanceof bn||t instanceof X)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,a=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return X.fromArray(t.map(o=>e.nodeFromJSON(o)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),es("",e,n)}if(a){if(n.errorOnInvalidContent){let s=!1,o="";const l=new LN({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(s=!0,o=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Jn.fromSchema(l).parseSlice(Si(t),n.parseOptions):Jn.fromSchema(l).parse(Si(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const i=Jn.fromSchema(e);return n.slice?i.parseSlice(Si(t),n.parseOptions).content:i.parse(Si(t),n.parseOptions)}return es("",e,n)}function $P(t,e,n){const r=t.steps.length-1;if(r<e)return;const a=t.steps[r];if(!(a instanceof at||a instanceof dt))return;const i=t.mapping.maps[r];let s=0;i.forEach((o,l,u,c)=>{s===0&&(s=c)}),t.setSelection(ke.near(t.doc.resolve(s),n))}var zP=t=>!("type"in t),qP=(t,e,n)=>({tr:r,dispatch:a,editor:i})=>{var s;if(a){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let o;const l=b=>{i.emit("contentError",{editor:i,error:b,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{es(e,i.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(b){l(b)}try{o=es(e,i.schema,{parseOptions:u,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:i.options.enableContentCheck})}catch(b){return l(b),!1}let{from:c,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},p=!0,f=!0;if((zP(o)?o:[o]).forEach(b=>{b.check(),p=p?b.isText&&b.marks.length===0:!1,f=f?b.isBlock:!1}),c===d&&f){const{parent:b}=r.doc.resolve(c);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(c-=1,d+=1)}let g;if(p){if(Array.isArray(e))g=e.map(b=>b.text||"").join("");else if(e instanceof X){let b="";e.forEach(y=>{y.text&&(b+=y.text)}),g=b}else typeof e=="object"&&e&&e.text?g=e.text:g=e;r.insertText(g,c,d)}else{g=o;const b=r.doc.resolve(c),y=b.node(),T=b.parentOffset===0,x=y.isText||y.isTextblock,k=y.content.size>0;T&&x&&k&&(c=Math.max(0,c-1)),r.replaceWith(c,d,g)}n.updateSelection&&$P(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:g})}return!0},GP=()=>({state:t,dispatch:e})=>mM(t,e),WP=()=>({state:t,dispatch:e})=>gM(t,e),VP=()=>({state:t,dispatch:e})=>JN(t,e),YP=()=>({state:t,dispatch:e})=>rC(t,e),KP=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Sl(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},XP=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Sl(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},ZP=()=>({state:t,dispatch:e})=>fM(t,e),QP=()=>({state:t,dispatch:e})=>hM(t,e);function ZC(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function JP(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,a,i,s;for(let o=0;o<e.length-1;o+=1){const l=e[o];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))a=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Ji()||ZC()?s=!0:a=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),a&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}var e4=t=>({editor:e,view:n,tr:r,dispatch:a})=>{const i=JP(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),o=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,o))});return l?.steps.forEach(u=>{const c=u.map(r.mapping);c&&a&&r.maybeStep(c)}),!0};function Nr(t,e,n={}){const{from:r,to:a,empty:i}=t.selection,s=e?st(e,t.schema):null,o=[];t.doc.nodesBetween(r,a,(d,p)=>{if(d.isText)return;const f=Math.max(r,p),h=Math.min(a,p+d.nodeSize);o.push({node:d,from:f,to:h})});const l=a-r,u=o.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Ao(d.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((d,p)=>d+p.to-p.from,0)>=l}var t4=(t,e={})=>({state:n,dispatch:r})=>{const a=st(t,n.schema);return Nr(n,a,e)?bM(n,r):!1},n4=()=>({state:t,dispatch:e})=>oC(t,e),r4=t=>({state:e,dispatch:n})=>{const r=st(t,e.schema);return wM(r)(e,n)},a4=()=>({state:t,dispatch:e})=>iC(t,e);function wl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Uy(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,a)=>(n.includes(a)||(r[a]=t[a]),r),{})}var i4=(t,e)=>({tr:n,state:r,dispatch:a})=>{let i=null,s=null;const o=wl(typeof t=="string"?t:t.name,r.schema);if(!o)return!1;o==="node"&&(i=st(t,r.schema)),o==="mark"&&(s=rr(t,r.schema));let l=!1;return n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(c,d)=>{i&&i===c.type&&(l=!0,a&&n.setNodeMarkup(d,void 0,Uy(c.attrs,e))),s&&c.marks.length&&c.marks.forEach(p=>{s===p.type&&(l=!0,a&&n.addMark(d,d+c.nodeSize,s.create(Uy(p.attrs,e))))})})}),l},s4=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),o4=()=>({tr:t,dispatch:e})=>{if(e){const n=new Zt(t.doc);t.setSelection(n)}return!0},l4=()=>({state:t,dispatch:e})=>tC(t,e),u4=()=>({state:t,dispatch:e})=>aC(t,e),c4=()=>({state:t,dispatch:e})=>SM(t,e),d4=()=>({state:t,dispatch:e})=>vM(t,e),p4=()=>({state:t,dispatch:e})=>kM(t,e);function Eg(t,e,n={},r={}){return es(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var f4=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:a,tr:i,dispatch:s,commands:o})=>{const{doc:l}=i;if(r.preserveWhitespace!=="full"){const u=Eg(t,a.schema,r,{errorOnInvalidContent:e??a.options.enableContentCheck});return s&&i.replaceWith(0,l.content.size,u).setMeta("preventUpdate",!n),!0}return s&&i.setMeta("preventUpdate",!n),o.insertContentAt({from:0,to:l.content.size},t,{parseOptions:r,errorOnInvalidContent:e??a.options.enableContentCheck})};function QC(t,e){const n=rr(e,t.schema),{from:r,to:a,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,a,l=>{s.push(...l.marks)});const o=s.find(l=>l.type.name===n.name);return o?{...o.attrs}:{}}function JC(t,e){const n=new KN(t);return e.forEach(r=>{r.steps.forEach(a=>{n.step(a)})}),n}function h4(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function m4(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(a,i)=>{n(a)&&r.push({node:a,pos:i})}),r}function g4(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function Il(t){return e=>g4(e.$from,t)}function le(t,e,n){return t.config[e]===void 0&&t.parent?le(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?le(t.parent,e,n):null}):t.config[e]}function Vb(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=le(e,"addExtensions",n);return r?[e,...Vb(r())]:e}).flat(10)}function Yb(t,e){const n=ca.fromSchema(e).serializeFragment(t),a=document.implementation.createHTMLDocument().createElement("div");return a.appendChild(n),a.innerHTML}function ew(t){return typeof t=="function"}function Fe(t,e=void 0,...n){return ew(t)?e?t.bind(e)(...n):t(...n):t}function b4(t={}){return Object.keys(t).length===0&&t.constructor===Object}function ja(t){const e=t.filter(a=>a.type==="extension"),n=t.filter(a=>a.type==="node"),r=t.filter(a=>a.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function tw(t){const e=[],{nodeExtensions:n,markExtensions:r}=ja(t),a=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(u=>u.name!=="text").map(u=>u.name),o=r.map(u=>u.name),l=[...s,...o];return t.forEach(u=>{const c={name:u.name,options:u.options,storage:u.storage,extensions:a},d=le(u,"addGlobalAttributes",c);if(!d)return;d().forEach(f=>{let h;Array.isArray(f.types)?h=f.types:f.types==="*"?h=l:f.types==="nodes"?h=s:f.types==="marks"?h=o:h=[],h.forEach(g=>{Object.entries(f.attributes).forEach(([b,y])=>{e.push({type:g,name:b,attribute:{...i,...y}})})})})}),a.forEach(u=>{const c={name:u.name,options:u.options,storage:u.storage},d=le(u,"addAttributes",c);if(!d)return;const p=d();Object.entries(p).forEach(([f,h])=>{const g={...i,...h};typeof g?.default=="function"&&(g.default=g.default()),g?.isRequired&&g?.default===void 0&&delete g.default,e.push({type:u.name,name:f,attribute:g})})}),e}function E4(t){const e=[];let n="",r=!1,a=!1,i=0;const s=t.length;for(let o=0;o<s;o+=1){const l=t[o];if(l==="'"&&!a){r=!r,n+=l;continue}if(l==='"'&&!r){a=!a,n+=l;continue}if(!r&&!a){if(l==="("){i+=1,n+=l;continue}if(l===")"&&i>0){i-=1,n+=l;continue}if(l===";"&&i===0){e.push(n),n="";continue}}n+=l}return n&&e.push(n),e}function jy(t){const e=[],n=E4(t||""),r=n.length;for(let a=0;a<r;a+=1){const i=n[a],s=i.indexOf(":");if(s===-1)continue;const o=i.slice(0,s).trim(),l=i.slice(s+1).trim();o&&l&&e.push([o,l])}return e}function tt(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([a,i])=>{if(!r[a]){r[a]=i;return}if(a==="class"){const o=i?String(i).split(" "):[],l=r[a]?r[a].split(" "):[],u=o.filter(c=>!l.includes(c));r[a]=[...l,...u].join(" ")}else if(a==="style"){const o=new Map([...jy(r[a]),...jy(i)]);r[a]=Array.from(o.entries()).map(([l,u])=>`${l}: ${u}`).join("; ")}else r[a]=i}),r},{})}function Ha(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>tt(n,r),{})}function y4(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Hy(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const a=e.reduce((i,s)=>{const o=s.attribute.parseHTML?s.attribute.parseHTML(n):y4(n.getAttribute(s.name));return o==null?i:{...i,[s.name]:o}},{});return{...r,...a}}}}function $y(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&b4(n)?!1:n!=null))}function zy(t){var e,n;const r={};return!((e=t?.attribute)!=null&&e.isRequired)&&"default"in(t?.attribute||{})&&(r.default=t.attribute.default),((n=t?.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function nw(t,e){var n;const r=tw(t),{nodeExtensions:a,markExtensions:i}=ja(t),s=(n=a.find(u=>le(u,"topNode")))==null?void 0:n.name,o=Object.fromEntries(a.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((y,T)=>{const x=le(T,"extendNodeSchema",d);return{...y,...x?x(u):{}}},{}),f=$y({...p,content:Fe(le(u,"content",d)),marks:Fe(le(u,"marks",d)),group:Fe(le(u,"group",d)),inline:Fe(le(u,"inline",d)),atom:Fe(le(u,"atom",d)),selectable:Fe(le(u,"selectable",d)),draggable:Fe(le(u,"draggable",d)),code:Fe(le(u,"code",d)),whitespace:Fe(le(u,"whitespace",d)),linebreakReplacement:Fe(le(u,"linebreakReplacement",d)),defining:Fe(le(u,"defining",d)),isolating:Fe(le(u,"isolating",d)),attrs:Object.fromEntries(c.map(zy))}),h=Fe(le(u,"parseHTML",d));h&&(f.parseDOM=h.map(y=>Hy(y,c)));const g=le(u,"renderHTML",d);g&&(f.toDOM=y=>g({node:y,HTMLAttributes:Ha(y,c)}));const b=le(u,"renderText",d);return b&&(f.toText=b),[u.name,f]})),l=Object.fromEntries(i.map(u=>{const c=r.filter(b=>b.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((b,y)=>{const T=le(y,"extendMarkSchema",d);return{...b,...T?T(u):{}}},{}),f=$y({...p,inclusive:Fe(le(u,"inclusive",d)),excludes:Fe(le(u,"excludes",d)),group:Fe(le(u,"group",d)),spanning:Fe(le(u,"spanning",d)),code:Fe(le(u,"code",d)),attrs:Object.fromEntries(c.map(zy))}),h=Fe(le(u,"parseHTML",d));h&&(f.parseDOM=h.map(b=>Hy(b,c)));const g=le(u,"renderHTML",d);return g&&(f.toDOM=b=>g({mark:b,HTMLAttributes:Ha(b,c)})),[u.name,f]}));return new LN({topNode:s,nodes:o,marks:l})}function T4(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function Ii(t){return t.sort((n,r)=>{const a=le(n,"priority")||100,i=le(r,"priority")||100;return a>i?-1:a<i?1:0})}function Kb(t){const e=Ii(Vb(t)),n=T4(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function S4(t,e){const n=Kb(t);return nw(n,e)}function zse(t,e){const n=S4(e),r=Si(t);return Jn.fromSchema(n).parse(r).toJSON()}function rw(t,e,n){const{from:r,to:a}=e,{blockSeparator:i=`
|
|
11
|
+
|
|
12
|
+
`,textSerializers:s={}}=n||{};let o="";return t.nodesBetween(r,a,(l,u,c,d)=>{var p;l.isBlock&&u>r&&(o+=i);const f=s?.[l.type.name];if(f)return c&&(o+=f({node:l,pos:u,parent:c,index:d,range:e})),!1;l.isText&&(o+=(p=l?.text)==null?void 0:p.slice(Math.max(r,u)-u,a-u))}),o}function x4(t,e){const n={from:0,to:t.content.size};return rw(t,n,e)}function aw(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function k4(t,e){const n=st(e,t.schema),{from:r,to:a}=t.selection,i=[];t.doc.nodesBetween(r,a,o=>{i.push(o)});const s=i.reverse().find(o=>o.type.name===n.name);return s?{...s.attrs}:{}}function iw(t,e){const n=wl(typeof e=="string"?e:e.name,t.schema);return n==="node"?k4(t,e):n==="mark"?QC(t,e):{}}function v4(t,e=JSON.stringify){const n={};return t.filter(r=>{const a=e(r);return Object.prototype.hasOwnProperty.call(n,a)?!1:n[a]=!0})}function A4(t){const e=v4(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function sw(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((a,i)=>{const s=[];if(a.ranges.length)a.forEach((o,l)=>{s.push({from:o,to:l})});else{const{from:o,to:l}=n[i];if(o===void 0||l===void 0)return;s.push({from:o,to:l})}s.forEach(({from:o,to:l})=>{const u=e.slice(i).map(o,-1),c=e.slice(i).map(l),d=e.invert().map(u,-1),p=e.invert().map(c);r.push({oldRange:{from:d,to:p},newRange:{from:u,to:c}})})}),A4(r)}function Xb(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(a=>{const i=n.resolve(t),s=Wb(i,a.type);s&&r.push({mark:a,...s})}):n.nodesBetween(t,e,(a,i)=>{!a||a?.nodeSize===void 0||r.push(...a.marks.map(s=>({from:i,to:i+a.nodeSize,mark:s})))}),r}var _4=(t,e,n,r=20)=>{const a=t.doc.resolve(n);let i=r,s=null;for(;i>0&&s===null;){const o=a.node(i);o?.type.name===e?s=o:i-=1}return[s,i]};function ii(t,e){return e.nodes[t]||e.marks[t]||null}function to(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const a=t.find(i=>i.type===e&&i.name===r);return a?a.attribute.keepOnSplit:!1}))}var N4=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(a,i,s,o)=>{var l,u;const c=((u=(l=a.type.spec).toText)==null?void 0:u.call(l,{node:a,pos:i,parent:s,index:o}))||a.textContent||"%leaf%";n+=a.isAtom&&!a.isText?c:c.slice(0,Math.max(0,r-i))}),n};function yg(t,e,n={}){const{empty:r,ranges:a}=t.selection,i=e?rr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Ao(d.attrs,n,{strict:!1}));let s=0;const o=[];if(a.forEach(({$from:d,$to:p})=>{const f=d.pos,h=p.pos;t.doc.nodesBetween(f,h,(g,b)=>{if(i&&g.inlineContent&&!g.type.allowsMarkType(i))return!1;if(!g.isText&&!g.marks.length)return;const y=Math.max(f,b),T=Math.min(h,b+g.nodeSize),x=T-y;s+=x,o.push(...g.marks.map(k=>({mark:k,from:y,to:T})))})}),s===0)return!1;const l=o.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Ao(d.mark.attrs,n,{strict:!1})).reduce((d,p)=>d+p.to-p.from,0),u=o.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,p)=>d+p.to-p.from,0);return(l>0?l+u:l)>=s}function C4(t,e,n={}){if(!e)return Nr(t,null,n)||yg(t,null,n);const r=wl(e,t.schema);return r==="node"?Nr(t,e,n):r==="mark"?yg(t,e,n):!1}var w4=(t,e)=>{const{$from:n,$to:r,$anchor:a}=t.selection;if(e){const i=Il(o=>o.type.name===e)(t.selection);if(!i)return!1;const s=t.doc.resolve(i.pos+1);return a.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},I4=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function qy(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Gy(t,e){const{nodeExtensions:n}=ja(e),r=n.find(s=>s.name===t);if(!r)return!1;const a={name:r.name,options:r.options,storage:r.storage},i=Fe(le(r,"group",a));return typeof i!="string"?!1:i.split(" ").includes("list")}function Rl(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let a=!0;return t.content.forEach(i=>{a!==!1&&(Rl(i,{ignoreWhitespace:n,checkChildren:e})||(a=!1))}),a}return!1}function ow(t){return t instanceof ue}var lw=class uw{constructor(e){this.position=e}static fromJSON(e){return new uw(e.position)}toJSON(){return{position:this.position}}};function R4(t,e){const n=e.mapping.mapResult(t.position);return{position:new lw(n.pos),mapResult:n}}function O4(t){return new lw(t)}function qse(t,e,n){const a=t.state.doc.content.size,i=Xn(e,0,a),s=Xn(n,0,a),o=t.coordsAtPos(i),l=t.coordsAtPos(s,-1),u=Math.min(o.top,l.top),c=Math.max(o.bottom,l.bottom),d=Math.min(o.left,l.left),p=Math.max(o.right,l.right),f=p-d,h=c-u,y={top:u,bottom:c,left:d,right:p,width:f,height:h,x:d,y:u};return{...y,toJSON:()=>y}}function L4(t,e,n){var r;const{selection:a}=e;let i=null;if(YC(a)&&(i=a.$cursor),i){const o=(r=t.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(o)||!o.some(u=>u.type.excludes(n)))}const{ranges:s}=a;return s.some(({$from:o,$to:l})=>{let u=o.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(o.pos,l.pos,(c,d,p)=>{if(u)return!1;if(c.isInline){const f=!p||p.type.allowsMarkType(n),h=!!n.isInSet(c.marks)||!c.marks.some(g=>g.type.excludes(n));u=f&&h}return!u}),u})}var D4=(t,e={})=>({tr:n,state:r,dispatch:a})=>{const{selection:i}=n,{empty:s,ranges:o}=i,l=rr(t,r.schema);if(a)if(s){const u=QC(r,l);n.addStoredMark(l.create({...u,...e}))}else o.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(p,f)=>{const h=Math.max(f,c),g=Math.min(f+p.nodeSize,d);p.marks.find(y=>y.type===l)?p.marks.forEach(y=>{l===y.type&&n.addMark(h,g,l.create({...y.attrs,...e}))}):n.addMark(h,g,l.create(e))})});return L4(r,n,l)},M4=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),P4=(t,e={})=>({state:n,dispatch:r,chain:a})=>{const i=st(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?a().command(({commands:o})=>ay(i,{...s,...e})(n)?!0:o.clearNodes()).command(({state:o})=>ay(i,{...s,...e})(o,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},F4=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,a=Xn(t,0,r.content.size),i=ue.create(r,a);e.setSelection(i)}return!0},B4=(t,e)=>({tr:n,state:r,dispatch:a})=>{const{selection:i}=r;let s,o;return typeof e=="number"?(s=e,o=e):e&&"from"in e&&"to"in e?(s=e.from,o=e.to):(s=i.from,o=i.to),a&&n.doc.nodesBetween(s,o,(l,u)=>{l.isText||n.setNodeMarkup(u,void 0,{...l.attrs,dir:t})}),!0},U4=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:a,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Ee.atStart(r).from,o=Ee.atEnd(r).to,l=Xn(a,s,o),u=Xn(i,s,o),c=Ee.create(r,l,u);e.setSelection(c)}return!0},j4=t=>({state:e,dispatch:n})=>{const r=st(t,e.schema);return OM(r)(e,n)};function Wy(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(a=>e?.includes(a.type.name));t.tr.ensureMarks(r)}}var H4=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:a})=>{const{selection:i,doc:s}=e,{$from:o,$to:l}=i,u=a.extensionManager.attributes,c=to(u,o.node().type.name,o.node().attrs);if(i instanceof ue&&i.node.isBlock)return!o.parentOffset||!er(s,o.pos)?!1:(r&&(t&&Wy(n,a.extensionManager.splittableMarks),e.split(o.pos).scrollIntoView()),!0);if(!o.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,p=o.depth===0?void 0:h4(o.node(-1).contentMatchAt(o.indexAfter(-1)));let f=d&&p?[{type:p,attrs:c}]:void 0,h=er(e.doc,e.mapping.map(o.pos),1,f);if(!f&&!h&&er(e.doc,e.mapping.map(o.pos),1,p?[{type:p}]:void 0)&&(h=!0,f=p?[{type:p,attrs:c}]:void 0),r){if(h&&(i instanceof Ee&&e.deleteSelection(),e.split(e.mapping.map(o.pos),1,f),p&&!d&&!o.parentOffset&&o.parent.type!==p)){const g=e.mapping.map(o.before()),b=e.doc.resolve(g);o.node(-1).canReplaceWith(b.index(),b.index()+1,p)&&e.setNodeMarkup(e.mapping.map(o.before()),p)}t&&Wy(n,a.extensionManager.splittableMarks),e.scrollIntoView()}return h},$4=(t,e={})=>({tr:n,state:r,dispatch:a,editor:i})=>{var s;const o=st(t,r.schema),{$from:l,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==o)return!1;const p=i.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==o||l.index(-2)!==l.node(-2).childCount-1)return!1;if(a){let y=X.empty;const T=l.index(-1)?1:l.index(-2)?2:3;for(let N=l.depth-T;N>=l.depth-3;N-=1)y=X.from(l.node(N).copy(y));const x=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,k={...to(p,l.node().type.name,l.node().attrs),...e},A=((s=o.contentMatch.defaultType)==null?void 0:s.createAndFill(k))||void 0;y=y.append(X.from(o.createAndFill(null,A)||void 0));const S=l.before(l.depth-(T-1));n.replace(S,l.after(-x),new ae(y,4-T,0));let v=-1;n.doc.nodesBetween(S,n.doc.content.size,(N,_)=>{if(v>-1)return!1;N.isTextblock&&N.content.size===0&&(v=_+1)}),v>-1&&n.setSelection(Ee.near(n.doc.resolve(v))),n.scrollIntoView()}return!0}const f=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,h={...to(p,d.type.name,d.attrs),...e},g={...to(p,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const b=f?[{type:o,attrs:h},{type:f,attrs:g}]:[{type:o,attrs:h}];if(!er(n.doc,l.pos,2))return!1;if(a){const{selection:y,storedMarks:T}=r,{splittableMarks:x}=i.extensionManager,k=T||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,b).scrollIntoView(),!k||!a)return!0;const A=k.filter(S=>x.includes(S.type.name));n.ensureMarks(A)}return!0},Au=(t,e)=>{const n=Il(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const a=t.doc.nodeAt(r);return n.node.type===a?.type&&Ir(t.doc,n.pos)&&t.join(n.pos),!0},_u=(t,e)=>{const n=Il(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const a=t.doc.nodeAt(r);return n.node.type===a?.type&&Ir(t.doc,r)&&t.join(r),!0},z4=(t,e,n,r={})=>({editor:a,tr:i,state:s,dispatch:o,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:p}=a.extensionManager,f=st(t,s.schema),h=st(e,s.schema),{selection:g,storedMarks:b}=s,{$from:y,$to:T}=g,x=y.blockRange(T),k=b||g.$to.parentOffset&&g.$from.marks();if(!x)return!1;const A=Il(S=>Gy(S.type.name,d))(g);if(x.depth>=1&&A&&x.depth-A.depth<=1){if(A.node.type===f)return u.liftListItem(h);if(Gy(A.node.type.name,d)&&f.validContent(A.node.content)&&o)return l().command(()=>(i.setNodeMarkup(A.pos,f),!0)).command(()=>Au(i,f)).command(()=>_u(i,f)).run()}return!n||!k||!o?l().command(()=>c().wrapInList(f,r)?!0:u.clearNodes()).wrapInList(f,r).command(()=>Au(i,f)).command(()=>_u(i,f)).run():l().command(()=>{const S=c().wrapInList(f,r),v=k.filter(N=>p.includes(N.type.name));return i.ensureMarks(v),S?!0:u.clearNodes()}).wrapInList(f,r).command(()=>Au(i,f)).command(()=>_u(i,f)).run()},q4=(t,e={},n={})=>({state:r,commands:a})=>{const{extendEmptyMarkRange:i=!1}=n,s=rr(t,r.schema);return yg(r,s,e)?a.unsetMark(s,{extendEmptyMarkRange:i}):a.setMark(s,e)},G4=(t,e,n={})=>({state:r,commands:a})=>{const i=st(t,r.schema),s=st(e,r.schema),o=Nr(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),o?a.setNode(s,l):a.setNode(i,{...l,...n})},W4=(t,e={})=>({state:n,commands:r})=>{const a=st(t,n.schema);return Nr(n,a,e)?r.lift(a):r.wrapIn(a,e)},V4=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const a=n[r];let i;if(a.spec.isInputRules&&(i=a.getState(t))){if(e){const s=t.tr,o=i.transform;for(let l=o.steps.length-1;l>=0;l-=1)s.step(o.steps[l].invert(o.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},Y4=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:a}=n;return r||e&&a.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},K4=(t,e={})=>({tr:n,state:r,dispatch:a})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:o}=n,l=rr(t,r.schema),{$from:u,empty:c,ranges:d}=o;if(!a)return!0;if(c&&s){let{from:p,to:f}=o;const h=(i=u.marks().find(b=>b.type===l))==null?void 0:i.attrs,g=Wb(u,l,h);g&&(p=g.from,f=g.to),n.removeMark(p,f,l)}else d.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,l)});return n.removeStoredMark(l),!0},X4=t=>({tr:e,state:n,dispatch:r})=>{const{selection:a}=n;let i,s;return typeof t=="number"?(i=t,s=t):t&&"from"in t&&"to"in t?(i=t.from,s=t.to):(i=a.from,s=a.to),r&&e.doc.nodesBetween(i,s,(o,l)=>{if(o.isText)return;const u={...o.attrs};delete u.dir,e.setNodeMarkup(l,void 0,u)}),!0},Z4=(t,e={})=>({tr:n,state:r,dispatch:a})=>{let i=null,s=null;const o=wl(typeof t=="string"?t:t.name,r.schema);if(!o)return!1;o==="node"&&(i=st(t,r.schema)),o==="mark"&&(s=rr(t,r.schema));let l=!1;return n.selection.ranges.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;let p,f,h,g;n.selection.empty?r.doc.nodesBetween(c,d,(b,y)=>{i&&i===b.type&&(l=!0,h=Math.max(y,c),g=Math.min(y+b.nodeSize,d),p=y,f=b)}):r.doc.nodesBetween(c,d,(b,y)=>{y<c&&i&&i===b.type&&(l=!0,h=Math.max(y,c),g=Math.min(y+b.nodeSize,d),p=y,f=b),y>=c&&y<=d&&(i&&i===b.type&&(l=!0,a&&n.setNodeMarkup(y,void 0,{...b.attrs,...e})),s&&b.marks.length&&b.marks.forEach(T=>{if(s===T.type&&(l=!0,a)){const x=Math.max(y,c),k=Math.min(y+b.nodeSize,d);n.addMark(x,k,s.create({...T.attrs,...e}))}}))}),f&&(p!==void 0&&a&&n.setNodeMarkup(p,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(b=>{s===b.type&&a&&n.addMark(h,g,s.create({...b.attrs,...e}))}))}),l},Q4=(t,e={})=>({state:n,dispatch:r})=>{const a=st(t,n.schema);return AM(a,e)(n,r)},J4=(t,e={})=>({state:n,dispatch:r})=>{const a=st(t,n.schema);return _M(a,e)(n,r)},eF=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(r=>r.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(r=>r!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},Ol=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},tF=(t,e)=>{if(Gb(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Ms(t){var e;const{editor:n,from:r,to:a,text:i,rules:s,plugin:o}=t,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||(e=u.nodeBefore||u.nodeAfter)!=null&&e.marks.find(p=>p.type.spec.code))return!1;let c=!1;const d=N4(u)+i;return s.forEach(p=>{if(c)return;const f=tF(d,p.find);if(!f)return;const h=l.state.tr,g=Nl({state:l.state,transaction:h}),b={from:r-(f[0].length-i.length),to:a},{commands:y,chain:T,can:x}=new Cl({editor:n,state:g});p.handler({state:g,range:b,match:f,commands:y,chain:T,can:x})===null||!h.steps.length||(p.undoable&&h.setMeta(o,{transform:h,from:r,to:a,text:i}),l.dispatch(h),c=!0)}),c}function nF(t){const{editor:e,rules:n}=t,r=new Xe({state:{init(){return null},apply(a,i,s){const o=a.getMeta(r);if(o)return o;const l=a.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:c}=l;typeof c=="string"?c=c:c=Yb(X.from(c),s.schema);const{from:d}=l,p=d+c.length;Ms({editor:e,from:d,to:p,text:c,rules:n,plugin:r})}),a.selectionSet||a.docChanged?null:i}},props:{handleTextInput(a,i,s,o){return Ms({editor:e,from:i,to:s,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:i}=a.state.selection;i&&Ms({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(a,i){if(i.key!=="Enter")return!1;const{$cursor:s}=a.state.selection;return s?Ms({editor:e,from:s.pos,to:s.pos,text:`
|
|
13
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function rF(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ps(t){return rF(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function cw(t,e){const n={...t};return Ps(t)&&Ps(e)&&Object.keys(e).forEach(r=>{Ps(e[r])&&Ps(t[r])?n[r]=cw(t[r],e[r]):n[r]=e[r]}),n}var Zb=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Fe(le(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Fe(le(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>cw(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},da=class dw extends Zb{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new dw(n)}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,a=e.state.selection.$from;if(a.pos===a.end()){const s=a.marks();if(!!!s.find(u=>u?.type.name===n.name))return!1;const l=s.find(u=>u?.type.name===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",a.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function aF(t){return typeof t=="number"}var iF=class{constructor(t){this.find=t.find,this.handler=t.handler}},sF=(t,e,n)=>{if(Gb(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(a=>{const i=[a.text];return i.index=a.index,i.input=t,i.data=a.data,a.replaceWith&&(a.text.includes(a.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(a.replaceWith)),i}):[]};function oF(t){const{editor:e,state:n,from:r,to:a,rule:i,pasteEvent:s,dropEvent:o}=t,{commands:l,chain:u,can:c}=new Cl({editor:e,state:n}),d=[];return n.doc.nodesBetween(r,a,(f,h)=>{var g,b,y,T,x;if((b=(g=f.type)==null?void 0:g.spec)!=null&&b.code||!(f.isText||f.isTextblock||f.isInline))return;const k=(x=(T=(y=f.content)==null?void 0:y.size)!=null?T:f.nodeSize)!=null?x:0,A=Math.max(r,h),S=Math.min(a,h+k);if(A>=S)return;const v=f.isText?f.text||"":f.textBetween(A-h,S-h,void 0,"");sF(v,i.find,s).forEach(_=>{if(_.index===void 0)return;const C=A+_.index+1,L=C+_[0].length,P={from:n.tr.mapping.map(C),to:n.tr.mapping.map(L)},$=i.handler({state:n,range:P,match:_,commands:l,chain:u,can:c,pasteEvent:s,dropEvent:o});d.push($)})}),d.every(f=>f!==null)}var Fs=null,lF=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function uF(t){const{editor:e,rules:n}=t;let r=null,a=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,o;try{o=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{o=null}const l=({state:c,from:d,to:p,rule:f,pasteEvt:h})=>{const g=c.tr,b=Nl({state:c,transaction:g});if(!(!oF({editor:e,state:b,from:Math.max(d-1,0),to:p.b-1,rule:f,pasteEvent:h,dropEvent:o})||!g.steps.length)){try{o=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{o=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(c=>new Xe({view(d){const p=h=>{var g;r=(g=d.dom.parentElement)!=null&&g.contains(h.target)?d.dom.parentElement:null,r&&(Fs=e)},f=()=>{Fs&&(Fs=null)};return window.addEventListener("dragstart",p),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",p),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(d,p)=>{if(i=r===d.dom.parentElement,o=p,!i){const f=Fs;f?.isEditable&&setTimeout(()=>{const h=f.state.selection;h&&f.commands.deleteRange({from:h.from,to:h.to})},10)}return!1},paste:(d,p)=>{var f;const h=(f=p.clipboardData)==null?void 0:f.getData("text/html");return s=p,a=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(d,p,f)=>{const h=d[0],g=h.getMeta("uiEvent")==="paste"&&!a,b=h.getMeta("uiEvent")==="drop"&&!i,y=h.getMeta("applyPasteRules"),T=!!y;if(!g&&!b&&!T)return;if(T){let{text:A}=y;typeof A=="string"?A=A:A=Yb(X.from(A),f.schema);const{from:S}=y,v=S+A.length,N=lF(A);return l({rule:c,state:f,from:S,to:{b:v},pasteEvt:N})}const x=p.doc.content.findDiffStart(f.doc.content),k=p.doc.content.findDiffEnd(f.doc.content);if(!(!aF(x)||!k||x===k.b))return l({rule:c,state:f,from:x,to:k,pasteEvt:s})}}))}var Ll=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=Kb(t),this.schema=nw(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:ii(e.name,this.schema)},r=le(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this;return Ii([...this.extensions].reverse()).flatMap(r=>{const a={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:ii(r.name,this.schema)},i=[],s=le(r,"addKeyboardShortcuts",a);let o={};if(r.type==="mark"&&le(r,"exitable",a)&&(o.ArrowRight=()=>da.handleExit({editor:t,mark:r})),s){const p=Object.fromEntries(Object.entries(s()).map(([f,h])=>[f,()=>h({editor:t})]));o={...o,...p}}const l=xP(o);i.push(l);const u=le(r,"addInputRules",a);if(qy(r,t.options.enableInputRules)&&u){const p=u();if(p&&p.length){const f=nF({editor:t,rules:p}),h=Array.isArray(f)?f:[f];i.push(...h)}}const c=le(r,"addPasteRules",a);if(qy(r,t.options.enablePasteRules)&&c){const p=c();if(p&&p.length){const f=uF({editor:t,rules:p});i.push(...f)}}const d=le(r,"addProseMirrorPlugins",a);if(d){const p=d();i.push(...p)}return i})}get attributes(){return tw(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=ja(this.extensions);return Object.fromEntries(e.filter(n=>!!le(n,"addNodeView")).map(n=>{const r=this.attributes.filter(l=>l.type===n.name),a={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:st(n.name,this.schema)},i=le(n,"addNodeView",a);if(!i)return[];const s=i();if(!s)return[];const o=(l,u,c,d,p)=>{const f=Ha(l,r);return s({node:l,view:u,getPos:c,decorations:d,innerDecorations:p,editor:t,extension:n,HTMLAttributes:f})};return[n.name,o]}))}dispatchTransaction(t){const{editor:e}=this;return Ii([...this.extensions].reverse()).reduceRight((r,a)=>{const i={name:a.name,options:a.options,storage:this.editor.extensionStorage[a.name],editor:e,type:ii(a.name,this.schema)},s=le(a,"dispatchTransaction",i);return s?o=>{s.call(i,{transaction:o,next:r})}:r},t)}transformPastedHTML(t){const{editor:e}=this;return Ii([...this.extensions]).reduce((r,a)=>{const i={name:a.name,options:a.options,storage:this.editor.extensionStorage[a.name],editor:e,type:ii(a.name,this.schema)},s=le(a,"transformPastedHTML",i);return s?(o,l)=>{const u=r(o,l);return s.call(i,u)}:r},t||(r=>r))}get markViews(){const{editor:t}=this,{markExtensions:e}=ja(this.extensions);return Object.fromEntries(e.filter(n=>!!le(n,"addMarkView")).map(n=>{const r=this.attributes.filter(o=>o.type===n.name),a={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:rr(n.name,this.schema)},i=le(n,"addMarkView",a);if(!i)return[];const s=(o,l,u)=>{const c=Ha(o,r);return i()({mark:o,view:l,inline:u,editor:t,extension:n,HTMLAttributes:c,updateAttributes:d=>{vF(o,t,d)}})};return[n.name,s]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:ii(e.name,this.schema)};e.type==="mark"&&((n=Fe(le(e,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(e.name);const a=le(e,"onBeforeCreate",r),i=le(e,"onCreate",r),s=le(e,"onUpdate",r),o=le(e,"onSelectionUpdate",r),l=le(e,"onTransaction",r),u=le(e,"onFocus",r),c=le(e,"onBlur",r),d=le(e,"onDestroy",r);a&&this.editor.on("beforeCreate",a),i&&this.editor.on("create",i),s&&this.editor.on("update",s),o&&this.editor.on("selectionUpdate",o),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}};Ll.resolve=Kb;Ll.sort=Ii;Ll.flatten=Vb;var cF={};qb(cF,{ClipboardTextSerializer:()=>fw,Commands:()=>hw,Delete:()=>mw,Drop:()=>gw,Editable:()=>bw,FocusEvents:()=>yw,Keymap:()=>Tw,Paste:()=>Sw,Tabindex:()=>xw,TextDirection:()=>kw,focusEventsPluginKey:()=>Ew});var nt=class pw extends Zb{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new pw(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},fw=nt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Xe({key:new ot("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:a}=e,{ranges:i}=a,s=Math.min(...i.map(c=>c.$from.pos)),o=Math.max(...i.map(c=>c.$to.pos)),l=aw(n);return rw(r,{from:s,to:o},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),hw=nt.create({name:"commands",addCommands(){return{...WC}}}),mw=nt.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,r,a;const i=()=>{var s,o,l,u;if((u=(l=(o=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:o.filterTransaction)==null?void 0:l.call(o,t))!=null?u:t.getMeta("y-sync$"))return;const c=JC(t.before,[t,...e]);sw(c).forEach(f=>{c.mapping.mapResult(f.oldRange.from).deletedAfter&&c.mapping.mapResult(f.oldRange.to).deletedBefore&&c.before.nodesBetween(f.oldRange.from,f.oldRange.to,(h,g)=>{const b=g+h.nodeSize-2,y=f.oldRange.from<=g&&b<=f.oldRange.to;this.editor.emit("delete",{type:"node",node:h,from:g,to:b,newFrom:c.mapping.map(g),newTo:c.mapping.map(b),deletedRange:f.oldRange,newRange:f.newRange,partial:!y,editor:this.editor,transaction:t,combinedTransform:c})})});const p=c.mapping;c.steps.forEach((f,h)=>{var g,b;if(f instanceof gn){const y=p.slice(h).map(f.from,-1),T=p.slice(h).map(f.to),x=p.invert().map(y,-1),k=p.invert().map(T),A=(g=c.doc.nodeAt(y-1))==null?void 0:g.marks.some(v=>v.eq(f.mark)),S=(b=c.doc.nodeAt(T))==null?void 0:b.marks.some(v=>v.eq(f.mark));this.editor.emit("delete",{type:"mark",mark:f.mark,from:f.from,to:f.to,deletedRange:{from:x,to:k},newRange:{from:y,to:T},partial:!!(S||A),editor:this.editor,transaction:t,combinedTransform:c})}})};(a=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||a?setTimeout(i,0):i()}}),gw=nt.create({name:"drop",addProseMirrorPlugins(){return[new Xe({key:new ot("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),bw=nt.create({name:"editable",addProseMirrorPlugins(){return[new Xe({key:new ot("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Ew=new ot("focusEvents"),yw=nt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Xe({key:Ew,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),Tw=nt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:o})=>{const{selection:l,doc:u}=o,{empty:c,$anchor:d}=l,{pos:p,parent:f}=d,h=d.parent.isTextblock&&p>0?o.doc.resolve(p-1):d,g=h.parent.type.spec.isolating,b=d.pos-d.parentOffset,y=g&&h.parent.childCount===1?b===d.pos:ke.atStart(u).from===p;return!c||!f.type.isTextblock||f.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},a={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Ji()||ZC()?i:a},addProseMirrorPlugins(){return[new Xe({key:new ot("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const r=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),a=t.some(g=>g.getMeta("preventClearDocument"));if(!r||a)return;const{empty:i,from:s,to:o}=e.selection,l=ke.atStart(e.doc).from,u=ke.atEnd(e.doc).to;if(i||!(s===l&&o===u)||!Rl(n.doc))return;const p=n.tr,f=Nl({state:n,transaction:p}),{commands:h}=new Cl({editor:this.editor,state:f});if(h.clearNodes(),!!p.steps.length)return p}})]}}),Sw=nt.create({name:"paste",addProseMirrorPlugins(){return[new Xe({key:new ot("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),xw=nt.create({name:"tabindex",addProseMirrorPlugins(){return[new Xe({key:new ot("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),kw=nt.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=ja(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Xe({key:new ot("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),dF=class xi{constructor(e,n,r=!1,a=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=a}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new xi(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new xi(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new xi(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const a=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=n.isInline,o=this.pos+r+(i?0:1);if(o<0||o>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(o);if(!a&&!s&&l.depth<=this.depth)return;const u=new xi(l,this.editor,a,a||s?n:null);a&&(u.actualDepth=this.depth+1),e.push(u)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,a=this.parent;for(;a&&!r;){if(a.node.type.name===e)if(Object.keys(n).length>0){const i=a.node.attrs,s=Object.keys(n);for(let o=0;o<s.length;o+=1){const l=s[o];if(i[l]!==n[l])break}}else r=a;a=a.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let a=[];if(!this.children||this.children.length===0)return a;const i=Object.keys(n);return this.children.forEach(s=>{r&&a.length>0||(s.node.type.name===e&&i.every(l=>n[l]===s.node.attrs[l])&&a.push(s),!(r&&a.length>0)&&(a=a.concat(s.querySelectorAll(e,n,r))))}),a}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},pF=`.ProseMirror {
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ProseMirror {
|
|
18
|
+
word-wrap: break-word;
|
|
19
|
+
white-space: pre-wrap;
|
|
20
|
+
white-space: break-spaces;
|
|
21
|
+
-webkit-font-variant-ligatures: none;
|
|
22
|
+
font-variant-ligatures: none;
|
|
23
|
+
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ProseMirror [contenteditable="false"] {
|
|
27
|
+
white-space: normal;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
|
|
31
|
+
white-space: pre-wrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ProseMirror pre {
|
|
35
|
+
white-space: pre-wrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
img.ProseMirror-separator {
|
|
39
|
+
display: inline !important;
|
|
40
|
+
border: none !important;
|
|
41
|
+
margin: 0 !important;
|
|
42
|
+
width: 0 !important;
|
|
43
|
+
height: 0 !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ProseMirror-gapcursor {
|
|
47
|
+
display: none;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
position: absolute;
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ProseMirror-gapcursor:after {
|
|
54
|
+
content: "";
|
|
55
|
+
display: block;
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: -2px;
|
|
58
|
+
width: 20px;
|
|
59
|
+
border-top: 1px solid black;
|
|
60
|
+
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes ProseMirror-cursor-blink {
|
|
64
|
+
to {
|
|
65
|
+
visibility: hidden;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ProseMirror-hideselection *::selection {
|
|
70
|
+
background: transparent;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ProseMirror-hideselection *::-moz-selection {
|
|
74
|
+
background: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ProseMirror-hideselection * {
|
|
78
|
+
caret-color: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
82
|
+
display: block;
|
|
83
|
+
}`;function fF(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const a=document.createElement("style");return e&&a.setAttribute("nonce",e),a.setAttribute("data-tiptap-style",""),a.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(a),a}var hF=class extends eF{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:R4,createMappablePosition:O4},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:a,moved:i})=>this.options.onDrop(r,a,i)),this.on("paste",({event:r,slice:a})=>this.options.onPaste(r,a)),this.on("delete",this.options.onDelete);const e=this.createDoc(),n=KC(e,this.options.autofocus);this.editorState=wa.create({doc:e,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=fF(pF,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const n=ew(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(a=>{const i=typeof a=="string"?`${a}$`:a.key;n=n.filter(s=>!s.key.startsWith(i))}),e.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e;const r=[...this.options.enableCoreExtensions?[bw,fw.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),hw,yw,Tw,xw,gw,Sw,mw,kw.configure({direction:this.options.textDirection})].filter(a=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[a.name]!==!1:!0):[],...this.options.extensions].filter(a=>["extension","node","mark"].includes(a?.type));this.extensionManager=new Ll(r,this)}createCommandManager(){this.commandManager=new Cl({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=Eg(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),t=Eg(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return t}createView(t){const{editorProps:e,enableExtensionDispatchTransaction:n}=this.options,r=e.dispatchTransaction||this.dispatchTransaction.bind(this),a=n?this.extensionManager.dispatchTransaction(r):r,i=e.transformPastedHTML,s=this.extensionManager.transformPastedHTML(i);this.editorView=new qC(t,{...e,attributes:{role:"textbox",...e?.attributes},dispatchTransaction:a,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.prependClass(),this.injectCSS();const l=this.view.dom;l.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(u=>{var c;return(c=this.capturedTransaction)==null?void 0:c.step(u)});return}const{state:e,transactions:n}=this.state.applyTransaction(t),r=!this.state.selection.eq(e.selection),a=n.includes(t),i=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!a)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const s=n.findLast(u=>u.getMeta("focus")||u.getMeta("blur")),o=s?.getMeta("focus"),l=s?.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),!(t.getMeta("preventUpdate")||!n.some(u=>u.docChanged)||i.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:n.slice(1)})}getAttributes(t){return iw(this.state,t)}isActive(t,e){const n=typeof t=="string"?t:null,r=typeof t=="string"?e:t;return C4(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Yb(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=`
|
|
84
|
+
|
|
85
|
+
`,textSerializers:n={}}=t||{};return x4(this.state.doc,{blockSeparator:e,textSerializers:{...aw(this.schema),...n}})}get isEmpty(){return Rl(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t);return new dF(e,this)}get $doc(){return this.$pos(0)}};function $a(t){return new Ol({find:t.find,handler:({state:e,range:n,match:r})=>{const a=Fe(t.getAttributes,void 0,r);if(a===!1||a===null)return null;const{tr:i}=e,s=r[r.length-1],o=r[0];if(s){const l=o.search(/\S/),u=n.from+o.indexOf(s),c=u+s.length;if(Xb(n.from,n.to,e.doc).filter(f=>f.mark.type.excluded.find(g=>g===t.type&&g!==f.mark.type)).filter(f=>f.to>u).length)return null;c<n.to&&i.delete(c,n.to),u>n.from&&i.delete(n.from+l,u);const p=n.from+l+s.length;i.addMark(n.from+l,p,t.type.create(a||{})),i.removeStoredMark(t.type)}},undoable:t.undoable})}function mF(t){return new Ol({find:t.find,handler:({state:e,range:n,match:r})=>{const a=Fe(t.getAttributes,void 0,r)||{},{tr:i}=e,s=n.from;let o=n.to;const l=t.type.create(a);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=s+u;c>o?c=o:o=c+r[1].length;const d=r[0][r[0].length-1];i.insertText(d,s+r[0].length-1),i.replaceWith(c,o,l)}else if(r[0]){const u=t.type.isInline?s:s-1;i.insert(u,t.type.create(a)).delete(i.mapping.map(s),i.mapping.map(o))}i.scrollIntoView()},undoable:t.undoable})}function Tg(t){return new Ol({find:t.find,handler:({state:e,range:n,match:r})=>{const a=e.doc.resolve(n.from),i=Fe(t.getAttributes,void 0,r)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)},undoable:t.undoable})}function za(t){return new Ol({find:t.find,handler:({state:e,range:n,match:r,chain:a})=>{const i=Fe(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),u=l&&Cb(l,t.type,i);if(!u)return null;if(s.wrap(l,u),t.keepMarks&&t.editor){const{selection:d,storedMarks:p}=e,{splittableMarks:f}=t.editor.extensionManager,h=p||d.$to.parentOffset&&d.$from.marks();if(h){const g=h.filter(b=>f.includes(b.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(d,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&Ir(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,c))&&s.join(n.from-1)},undoable:t.undoable})}var gF=t=>"touches"in t,Gse=class{constructor(t){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=o=>{if(!this.isResizing||!this.activeHandle)return;const l=o.clientX-this.startX,u=o.clientY-this.startY;this.handleResize(l,u)},this.handleTouchMove=o=>{if(!this.isResizing||!this.activeHandle)return;const l=o.touches[0];if(!l)return;const u=l.clientX-this.startX,c=l.clientY-this.startY;this.handleResize(u,c)},this.handleMouseUp=()=>{if(!this.isResizing)return;const o=this.element.offsetWidth,l=this.element.offsetHeight;this.onCommit(o,l),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=o=>{o.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=o=>{o.key==="Shift"&&(this.isShiftKeyPressed=!1)};var e,n,r,a,i,s;this.node=t.node,this.editor=t.editor,this.element=t.element,this.contentElement=t.contentElement,this.getPos=t.getPos,this.onResize=t.onResize,this.onCommit=t.onCommit,this.onUpdate=t.onUpdate,(e=t.options)!=null&&e.min&&(this.minSize={...this.minSize,...t.options.min}),(n=t.options)!=null&&n.max&&(this.maxSize=t.options.max),(r=t?.options)!=null&&r.directions&&(this.directions=t.options.directions),(a=t.options)!=null&&a.preserveAspectRatio&&(this.preserveAspectRatio=t.options.preserveAspectRatio),(i=t.options)!=null&&i.className&&(this.classNames={container:t.options.className.container||"",wrapper:t.options.className.wrapper||"",handle:t.options.className.handle||"",resizing:t.options.className.resizing||""}),(s=t.options)!=null&&s.createCustomHandle&&(this.createCustomHandle=t.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var t;return(t=this.contentElement)!=null?t:null}handleEditorUpdate(){const t=this.editor.isEditable;t!==this.lastEditableState&&(this.lastEditableState=t,t?t&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(t,e,n){return t.type!==this.node.type?!1:(this.node=t,this.onUpdate?this.onUpdate(t,e,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const t=document.createElement("div");return t.dataset.resizeContainer="",t.dataset.node=this.node.type.name,t.style.display="flex",this.classNames.container&&(t.className=this.classNames.container),t.appendChild(this.wrapper),t}createWrapper(){const t=document.createElement("div");return t.style.position="relative",t.style.display="block",t.dataset.resizeWrapper="",this.classNames.wrapper&&(t.className=this.classNames.wrapper),t.appendChild(this.element),t}createHandle(t){const e=document.createElement("div");return e.dataset.resizeHandle=t,e.style.position="absolute",this.classNames.handle&&(e.className=this.classNames.handle),e}positionHandle(t,e){const n=e.includes("top"),r=e.includes("bottom"),a=e.includes("left"),i=e.includes("right");n&&(t.style.top="0"),r&&(t.style.bottom="0"),a&&(t.style.left="0"),i&&(t.style.right="0"),(e==="top"||e==="bottom")&&(t.style.left="0",t.style.right="0"),(e==="left"||e==="right")&&(t.style.top="0",t.style.bottom="0")}attachHandles(){this.directions.forEach(t=>{let e;this.createCustomHandle?e=this.createCustomHandle(t):e=this.createHandle(t),e instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${t}") did not return an HTMLElement. Falling back to default handle.`),e=this.createHandle(t)),this.createCustomHandle||this.positionHandle(e,t),e.addEventListener("mousedown",n=>this.handleResizeStart(n,t)),e.addEventListener("touchstart",n=>this.handleResizeStart(n,t)),this.handleMap.set(t,e),this.wrapper.appendChild(e)})}removeHandles(){this.handleMap.forEach(t=>t.remove()),this.handleMap.clear()}applyInitialSize(){const t=this.node.attrs.width,e=this.node.attrs.height;t?(this.element.style.width=`${t}px`,this.initialWidth=t):this.initialWidth=this.element.offsetWidth,e?(this.element.style.height=`${e}px`,this.initialHeight=e):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(t,e){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.activeHandle=e,gF(t)?(this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY):(this.startX=t.clientX,this.startY=t.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(t,e){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:a}=this.calculateNewDimensions(this.activeHandle,t,e),i=this.applyConstraints(r,a,n);this.element.style.width=`${i.width}px`,this.element.style.height=`${i.height}px`,this.onResize&&this.onResize(i.width,i.height)}calculateNewDimensions(t,e,n){let r=this.startWidth,a=this.startHeight;const i=t.includes("right"),s=t.includes("left"),o=t.includes("bottom"),l=t.includes("top");return i?r=this.startWidth+e:s&&(r=this.startWidth-e),o?a=this.startHeight+n:l&&(a=this.startHeight-n),(t==="right"||t==="left")&&(r=this.startWidth+(i?e:-e)),(t==="top"||t==="bottom")&&(a=this.startHeight+(o?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,a,t):{width:r,height:a}}applyConstraints(t,e,n){var r,a,i,s;if(!n){let u=Math.max(this.minSize.width,t),c=Math.max(this.minSize.height,e);return(r=this.maxSize)!=null&&r.width&&(u=Math.min(this.maxSize.width,u)),(a=this.maxSize)!=null&&a.height&&(c=Math.min(this.maxSize.height,c)),{width:u,height:c}}let o=t,l=e;return o<this.minSize.width&&(o=this.minSize.width,l=o/this.aspectRatio),l<this.minSize.height&&(l=this.minSize.height,o=l*this.aspectRatio),(i=this.maxSize)!=null&&i.width&&o>this.maxSize.width&&(o=this.maxSize.width,l=o/this.aspectRatio),(s=this.maxSize)!=null&&s.height&&l>this.maxSize.height&&(l=this.maxSize.height,o=l*this.aspectRatio),{width:o,height:l}}applyAspectRatio(t,e,n){const r=n==="left"||n==="right",a=n==="top"||n==="bottom";return r?{width:t,height:t/this.aspectRatio}:a?{width:e*this.aspectRatio,height:e}:{width:t,height:t/this.aspectRatio}}};function bF(t,e){const{selection:n}=t,{$from:r}=n;if(n instanceof ue){const i=r.index();return r.parent.canReplaceWith(i,i+1,e)}let a=r.depth;for(;a>=0;){const i=r.index(a);if(r.node(a).contentMatchAt(i).matchType(e))return!0;a-=1}return!1}function Wse(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var EF={};qb(EF,{createAtomBlockMarkdownSpec:()=>yF,createBlockMarkdownSpec:()=>TF,createInlineMarkdownSpec:()=>kF,parseAttributes:()=>Qb,parseIndentedBlocks:()=>Sg,renderNestedMarkdownContent:()=>e0,serializeAttributes:()=>Jb});function Qb(t){if(!t?.trim())return{};const e={},n=[],r=t.replace(/["']([^"']*)["']/g,u=>(n.push(u),`__QUOTED_${n.length-1}__`)),a=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(a){const u=a.map(c=>c.trim().slice(1));e.class=u.join(" ")}const i=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(e.id=i[1]);const s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,u,c])=>{var d;const p=parseInt(((d=c.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),f=n[p];f&&(e[u]=f.slice(1,-1))});const l=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(c=>{c.match(/^[a-zA-Z][\w-]*$/)&&(e[c]=!0)}),e}function Jb(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(r=>e.push(`.${r}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?e.push(n):r!==!1&&r!=null&&e.push(`${n}="${String(r)}"`))}),e.join(" ")}function yF(t){const{nodeName:e,name:n,parseAttributes:r=Qb,serializeAttributes:a=Jb,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:o}=t,l=n||e,u=c=>{if(!o)return c;const d={};return o.forEach(p=>{p in c&&(d[p]=c[p])}),d};return{parseMarkdown:(c,d)=>{const p={...i,...c.attributes};return d.createNode(e,p,[])},markdownTokenizer:{name:e,level:"block",start(c){var d;const p=new RegExp(`^:::${l}(?:\\s|$)`,"m"),f=(d=c.match(p))==null?void 0:d.index;return f!==void 0?f:-1},tokenize(c,d,p){const f=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),h=c.match(f);if(!h)return;const g=h[1]||"",b=r(g);if(!s.find(T=>!(T in b)))return{type:e,raw:h[0],attributes:b}}},renderMarkdown:c=>{const d=u(c.attrs||{}),p=a(d),f=p?` {${p}}`:"";return`:::${l}${f} :::`}}}function TF(t){const{nodeName:e,name:n,getContent:r,parseAttributes:a=Qb,serializeAttributes:i=Jb,defaultAttributes:s={},content:o="block",allowedAttributes:l}=t,u=n||e,c=d=>{if(!l)return d;const p={};return l.forEach(f=>{f in d&&(p[f]=d[f])}),p};return{parseMarkdown:(d,p)=>{let f;if(r){const g=r(d);f=typeof g=="string"?[{type:"text",text:g}]:g}else o==="block"?f=p.parseChildren(d.tokens||[]):f=p.parseInline(d.tokens||[]);const h={...s,...d.attributes};return p.createNode(e,h,f)},markdownTokenizer:{name:e,level:"block",start(d){var p;const f=new RegExp(`^:::${u}`,"m"),h=(p=d.match(f))==null?void 0:p.index;return h!==void 0?h:-1},tokenize(d,p,f){var h;const g=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),b=d.match(g);if(!b)return;const[y,T=""]=b,x=a(T);let k=1;const A=y.length;let S="";const v=/^:::([\w-]*)(\s.*)?/gm,N=d.slice(A);for(v.lastIndex=0;;){const _=v.exec(N);if(_===null)break;const C=_.index,L=_[1];if(!((h=_[2])!=null&&h.endsWith(":::"))){if(L)k+=1;else if(k-=1,k===0){const P=N.slice(0,C);S=P.trim();const $=d.slice(0,A+C+_[0].length);let F=[];if(S)if(o==="block")for(F=f.blockTokens(P),F.forEach(M=>{M.text&&(!M.tokens||M.tokens.length===0)&&(M.tokens=f.inlineTokens(M.text))});F.length>0;){const M=F[F.length-1];if(M.type==="paragraph"&&(!M.text||M.text.trim()===""))F.pop();else break}else F=f.inlineTokens(S);return{type:e,raw:$,attributes:x,content:S,tokens:F}}}}}},renderMarkdown:(d,p)=>{const f=c(d.attrs||{}),h=i(f),g=h?` {${h}}`:"",b=p.renderChildren(d.content||[],`
|
|
86
|
+
|
|
87
|
+
`);return`:::${u}${g}
|
|
88
|
+
|
|
89
|
+
${b}
|
|
90
|
+
|
|
91
|
+
:::`}}}function SF(t){if(!t.trim())return{};const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,a,i,s]=r;e[a]=i||s,r=n.exec(t)}return e}function xF(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function kF(t){const{nodeName:e,name:n,getContent:r,parseAttributes:a=SF,serializeAttributes:i=xF,defaultAttributes:s={},selfClosing:o=!1,allowedAttributes:l}=t,u=n||e,c=p=>{if(!l)return p;const f={};return l.forEach(h=>{const g=typeof h=="string"?h:h.name,b=typeof h=="string"?void 0:h.skipIfDefault;if(g in p){const y=p[g];if(b!==void 0&&y===b)return;f[g]=y}}),f},d=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(p,f)=>{const h={...s,...p.attributes};if(o)return f.createNode(e,h);const g=r?r(p):p.content||"";return g?f.createNode(e,h,[f.createTextNode(g)]):f.createNode(e,h,[])},markdownTokenizer:{name:e,level:"inline",start(p){const f=o?new RegExp(`\\[${d}\\s*[^\\]]*\\]`):new RegExp(`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`),h=p.match(f),g=h?.index;return g!==void 0?g:-1},tokenize(p,f,h){const g=o?new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`),b=p.match(g);if(!b)return;let y="",T="";if(o){const[,k]=b;T=k}else{const[,k,A]=b;T=k,y=A||""}const x=a(T.trim());return{type:e,raw:b[0],content:y.trim(),attributes:x}}},renderMarkdown:p=>{let f="";r?f=r(p):p.content&&p.content.length>0&&(f=p.content.filter(y=>y.type==="text").map(y=>y.text).join(""));const h=c(p.attrs||{}),g=i(h),b=g?` ${g}`:"";return o?`[${u}${b}]`:`[${u}${b}]${f}[/${u}]`}}}function Sg(t,e,n){var r,a,i,s;const o=t.split(`
|
|
92
|
+
`),l=[];let u="",c=0;const d=e.baseIndentSize||2;for(;c<o.length;){const p=o[c],f=p.match(e.itemPattern);if(!f){if(l.length>0)break;if(p.trim()===""){c+=1,u=`${u}${p}
|
|
93
|
+
`;continue}else return}const h=e.extractItemData(f),{indentLevel:g,mainContent:b}=h;u=`${u}${p}
|
|
94
|
+
`;const y=[b];for(c+=1;c<o.length;){const A=o[c];if(A.trim()===""){const v=o.slice(c+1).findIndex(C=>C.trim()!=="");if(v===-1)break;if((((a=(r=o[c+1+v].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:a.length)||0)>g){y.push(A),u=`${u}${A}
|
|
95
|
+
`,c+=1;continue}else break}if((((s=(i=A.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:s.length)||0)>g)y.push(A),u=`${u}${A}
|
|
96
|
+
`,c+=1;else break}let T;const x=y.slice(1);if(x.length>0){const A=x.map(S=>S.slice(g+d)).join(`
|
|
97
|
+
`);A.trim()&&(e.customNestedParser?T=e.customNestedParser(A):T=n.blockTokens(A))}const k=e.createToken(h,T);l.push(k)}if(l.length!==0)return{items:l,raw:u}}function e0(t,e,n,r){if(!t||!Array.isArray(t.content))return"";const a=typeof n=="function"?n(r):n,[i,...s]=t.content,o=e.renderChildren([i]);let l=`${a}${o}`;return s&&s.length>0&&s.forEach((u,c)=>{var d,p;const f=(p=(d=e.renderChild)==null?void 0:d.call(e,u,c+1))!=null?p:e.renderChildren([u]);if(f!=null){const h=f.split(`
|
|
98
|
+
`).map(g=>g?e.indent(g):e.indent("")).join(`
|
|
99
|
+
`);l+=u.type==="paragraph"?`
|
|
100
|
+
|
|
101
|
+
${h}`:`
|
|
102
|
+
${h}`}}),l}function vF(t,e,n={}){const{state:r}=e,{doc:a,tr:i}=r,s=t;a.descendants((o,l)=>{const u=i.mapping.map(l),c=i.mapping.map(l)+o.nodeSize;let d=null;if(o.marks.forEach(f=>{if(f!==s)return!1;d=f}),!d)return;let p=!1;if(Object.keys(n).forEach(f=>{n[f]!==d.attrs[f]&&(p=!0)}),p){const f=t.type.create({...t.attrs,...n});i.removeMark(u,c,t.type),i.addMark(u,c,f)}}),i.docChanged&&e.view.dispatch(i)}var Bt=class vw extends Zb{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new vw(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},AF=class{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.innerDecorations=e.innerDecorations,this.view=e.view,this.HTMLAttributes=e.HTMLAttributes,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,r,a,i,s,o;const{view:l}=this.editor,u=t.target,c=u.nodeType===3?(e=u.parentElement)==null?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(u)||!c)return;let d=0,p=0;if(this.dom!==c){const T=this.dom.getBoundingClientRect(),x=c.getBoundingClientRect(),k=(a=t.offsetX)!=null?a:(r=t.nativeEvent)==null?void 0:r.offsetX,A=(s=t.offsetY)!=null?s:(i=t.nativeEvent)==null?void 0:i.offsetY;d=x.x-T.x+k,p=x.y-T.y+A}const f=this.dom.cloneNode(!0);try{const T=this.dom.getBoundingClientRect();f.style.width=`${Math.round(T.width)}px`,f.style.height=`${Math.round(T.height)}px`,f.style.boxSizing="border-box",f.style.pointerEvents="none"}catch{}let h=null;try{h=document.createElement("div"),h.style.position="absolute",h.style.top="-9999px",h.style.left="-9999px",h.style.pointerEvents="none",h.appendChild(f),document.body.appendChild(h),(o=t.dataTransfer)==null||o.setDragImage(f,d,p)}finally{h&&setTimeout(()=>{try{h?.remove()}catch{}},0)}const g=this.getPos();if(typeof g!="number")return;const b=ue.create(l.state.doc,g),y=l.state.tr.setSelection(b);l.dispatch(y)}stopEvent(t){var e;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const n=t.target;if(!(this.dom.contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const a=t.type.startsWith("drag"),i=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i&&!a)return!0;const{isEditable:o}=this.editor,{isDragging:l}=this,u=!!this.node.type.spec.draggable,c=ue.isSelectable(this.node),d=t.type==="copy",p=t.type==="paste",f=t.type==="cut",h=t.type==="mousedown";if(!u&&c&&a&&t.target===this.dom&&t.preventDefault(),u&&a&&!l&&t.target===this.dom)return t.preventDefault(),!1;if(u&&o&&!l&&h){const g=n.closest("[data-drag-handle]");g&&(this.dom===g||this.dom.contains(g))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||i||d||p||f||h&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(Ji()||bg())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const n=this.getPos();return typeof n!="number"?!1:(e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}};function aa(t){return new iF({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:a})=>{const i=Fe(t.getAttributes,void 0,r,a);if(i===!1||i===null)return null;const{tr:s}=e,o=r[r.length-1],l=r[0];let u=n.to;if(o){const c=l.search(/\S/),d=n.from+l.indexOf(o),p=d+o.length;if(Xb(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(b=>b===t.type&&b!==h.mark.type)).filter(h=>h.to>d).length)return null;p<n.to&&s.delete(p,n.to),d>n.from&&s.delete(n.from+c,d),u=n.from+c+o.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const{getOwnPropertyNames:_F,getOwnPropertySymbols:NF}=Object,{hasOwnProperty:CF}=Object.prototype;function Nu(t,e){return function(r,a,i){return t(r,a,i)&&e(r,a,i)}}function Bs(t){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,a);const{cache:i}=a,s=i.get(n),o=i.get(r);if(s&&o)return s===r&&o===n;i.set(n,r),i.set(r,n);const l=t(n,r,a);return i.delete(n),i.delete(r),l}}function wF(t){return t?.[Symbol.toStringTag]}function Vy(t){return _F(t).concat(NF(t))}const IF=Object.hasOwn||((t,e)=>CF.call(t,e));function pa(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const RF="__v",OF="__o",LF="_owner",{getOwnPropertyDescriptor:Yy,keys:Ky}=Object;function DF(t,e){return t.byteLength===e.byteLength&&_o(new Uint8Array(t),new Uint8Array(e))}function MF(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function PF(t,e){return t.byteLength===e.byteLength&&_o(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function FF(t,e){return pa(t.getTime(),e.getTime())}function BF(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function UF(t,e){return t===e}function Xy(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const a=new Array(r),i=t.entries();let s,o,l=0;for(;(s=i.next())&&!s.done;){const u=e.entries();let c=!1,d=0;for(;(o=u.next())&&!o.done;){if(a[d]){d++;continue}const p=s.value,f=o.value;if(n.equals(p[0],f[0],l,d,t,e,n)&&n.equals(p[1],f[1],p[0],f[0],t,e,n)){c=a[d]=!0;break}d++}if(!c)return!1;l++}return!0}const jF=pa;function HF(t,e,n){const r=Ky(t);let a=r.length;if(Ky(e).length!==a)return!1;for(;a-- >0;)if(!Aw(t,e,n,r[a]))return!1;return!0}function si(t,e,n){const r=Vy(t);let a=r.length;if(Vy(e).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!Aw(t,e,n,i)||(s=Yy(t,i),o=Yy(e,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function $F(t,e){return pa(t.valueOf(),e.valueOf())}function zF(t,e){return t.source===e.source&&t.flags===e.flags}function Zy(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const a=new Array(r),i=t.values();let s,o;for(;(s=i.next())&&!s.done;){const l=e.values();let u=!1,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&n.equals(s.value,o.value,s.value,o.value,t,e,n)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function _o(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function qF(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function Aw(t,e,n,r){return(r===LF||r===OF||r===RF)&&(t.$$typeof||e.$$typeof)?!0:IF(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const GF="[object ArrayBuffer]",WF="[object Arguments]",VF="[object Boolean]",YF="[object DataView]",KF="[object Date]",XF="[object Error]",ZF="[object Map]",QF="[object Number]",JF="[object Object]",e6="[object RegExp]",t6="[object Set]",n6="[object String]",r6={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},a6="[object URL]",i6=Object.prototype.toString;function s6({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:f,unknownTagComparators:h}){return function(b,y,T){if(b===y)return!0;if(b==null||y==null)return!1;const x=typeof b;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?o(b,y,T):x==="function"?i(b,y,T):!1;const k=b.constructor;if(k!==y.constructor)return!1;if(k===Object)return l(b,y,T);if(Array.isArray(b))return e(b,y,T);if(k===Date)return r(b,y,T);if(k===RegExp)return c(b,y,T);if(k===Map)return s(b,y,T);if(k===Set)return d(b,y,T);const A=i6.call(b);if(A===KF)return r(b,y,T);if(A===e6)return c(b,y,T);if(A===ZF)return s(b,y,T);if(A===t6)return d(b,y,T);if(A===JF)return typeof b.then!="function"&&typeof y.then!="function"&&l(b,y,T);if(A===a6)return f(b,y,T);if(A===XF)return a(b,y,T);if(A===WF)return l(b,y,T);if(r6[A])return p(b,y,T);if(A===GF)return t(b,y,T);if(A===YF)return n(b,y,T);if(A===VF||A===QF||A===n6)return u(b,y,T);if(h){let S=h[A];if(!S){const v=wF(b);v&&(S=h[v])}if(S)return S(b,y,T)}return!1}}function o6({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:DF,areArraysEqual:n?si:MF,areDataViewsEqual:PF,areDatesEqual:FF,areErrorsEqual:BF,areFunctionsEqual:UF,areMapsEqual:n?Nu(Xy,si):Xy,areNumbersEqual:jF,areObjectsEqual:n?si:HF,arePrimitiveWrappersEqual:$F,areRegExpsEqual:zF,areSetsEqual:n?Nu(Zy,si):Zy,areTypedArraysEqual:n?Nu(_o,si):_o,areUrlsEqual:qF,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const a=Bs(r.areArraysEqual),i=Bs(r.areMapsEqual),s=Bs(r.areObjectsEqual),o=Bs(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function l6(t){return function(e,n,r,a,i,s,o){return t(e,n,o)}}function u6({circular:t,comparator:e,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:u=t?new WeakMap:void 0,meta:c}=n();return e(o,l,{cache:u,equals:r,meta:c,strict:a})};if(t)return function(o,l){return e(o,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,l){return e(o,l,i)}}const c6=Or();Or({strict:!0});Or({circular:!0});Or({circular:!0,strict:!0});Or({createInternalComparator:()=>pa});Or({strict:!0,createInternalComparator:()=>pa});Or({circular:!0,createInternalComparator:()=>pa});Or({circular:!0,createInternalComparator:()=>pa,strict:!0});function Or(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:a=!1}=t,i=o6(t),s=s6(i),o=n?n(s):l6(s);return u6({circular:e,comparator:s,createState:r,equals:o,strict:a})}var d6=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},p6=({contentComponent:t})=>{const e=H_.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return m.jsx(m.Fragment,{children:Object.values(e)})};function f6(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,r){e={...e,[n]:BO.createPortal(r.reactElement,r.element,n)},t.forEach(a=>a())},removeRenderer(n){const r={...e};delete r[n],e=r,t.forEach(a=>a())}}}var h6=class extends xt.Component{constructor(t){var e;super(t),this.editorContentRef=xt.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((e=t.editor)!=null&&e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const e=this.props.editor;if(e&&!e.isDestroyed&&((t=e.view.dom)!=null&&t.parentNode)){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),e.contentComponent=f6(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;const e=this.props.editor;if(e){this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.parentNode))return;const n=document.createElement("div");n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:d6(e,this.editorContentRef),...n}),t?.contentComponent&&m.jsx(p6,{contentComponent:t.contentComponent})]})}},m6=U.forwardRef((t,e)=>{const n=xt.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return xt.createElement(h6,{key:n,innerRef:e,...t})}),_w=xt.memo(m6),g6=typeof window<"u"?U.useLayoutEffect:U.useEffect,b6=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",e),()=>{n.off("transaction",e)}}}};function E6(t){var e;const[n]=U.useState(()=>new b6(t.editor)),r=PO.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:c6);return g6(()=>n.watch(t.editor),[t.editor,n]),U.useDebugValue(r),r}var y6=!1,xg=typeof window>"u",T6=xg||!!(typeof window<"u"&&window.next),S6=class Nw{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?xg||T6?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var a,i;return(i=(a=this.options.current).onBeforeCreate)==null?void 0:i.call(a,...r)},onBlur:(...r)=>{var a,i;return(i=(a=this.options.current).onBlur)==null?void 0:i.call(a,...r)},onCreate:(...r)=>{var a,i;return(i=(a=this.options.current).onCreate)==null?void 0:i.call(a,...r)},onDestroy:(...r)=>{var a,i;return(i=(a=this.options.current).onDestroy)==null?void 0:i.call(a,...r)},onFocus:(...r)=>{var a,i;return(i=(a=this.options.current).onFocus)==null?void 0:i.call(a,...r)},onSelectionUpdate:(...r)=>{var a,i;return(i=(a=this.options.current).onSelectionUpdate)==null?void 0:i.call(a,...r)},onTransaction:(...r)=>{var a,i;return(i=(a=this.options.current).onTransaction)==null?void 0:i.call(a,...r)},onUpdate:(...r)=>{var a,i;return(i=(a=this.options.current).onUpdate)==null?void 0:i.call(a,...r)},onContentError:(...r)=>{var a,i;return(i=(a=this.options.current).onContentError)==null?void 0:i.call(a,...r)},onDrop:(...r)=>{var a,i;return(i=(a=this.options.current).onDrop)==null?void 0:i.call(a,...r)},onPaste:(...r)=>{var a,i;return(i=(a=this.options.current).onPaste)==null?void 0:i.call(a,...r)},onDelete:(...r)=>{var a,i;return(i=(a=this.options.current).onDelete)==null?void 0:i.call(a,...r)}};return new hF(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((a,i)=>{var s;return a===((s=n.extensions)==null?void 0:s[i])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?Nw.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,a)=>r===e[a]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function x6(t={},e=[]){const n=U.useRef(t);n.current=t;const[r]=U.useState(()=>new S6(n)),a=H_.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return U.useDebugValue(a),U.useEffect(r.onRender(e)),E6({editor:a,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&i===0?0:i+1}),a}var t0=U.createContext({editor:null});t0.Consumer;var Vse=()=>U.useContext(t0),Cw=U.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),k6=()=>U.useContext(Cw),ww=xt.forwardRef((t,e)=>{const{onDragStart:n}=k6(),r=t.as||"div";return m.jsx(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function Qy(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function Jy(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function v6(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function A6(t){if(Qy(t)||Jy(t))return!0;if(v6(t)){const e=t.type;if(e)return Qy(e)||Jy(e)}return!1}function _6(){try{if(U.version)return parseInt(U.version.split(".")[0],10)>=19}catch{}return!1}var N6=class{constructor(t,{editor:e,props:n={},as:r="div",className:a=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),a&&this.element.classList.add(...a.split(" ")),this.editor.isInitialized?FO.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const e=this.component,n=this.props,r=this.editor,a=_6(),i=A6(e),s={...n};s.ref&&!(a||i)&&delete s.ref,!s.ref&&(a||i)&&(s.ref=o=>{this.ref=o}),this.reactElement=m.jsx(e,{...s}),(t=r?.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){this.destroyed||(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const e=this.editor;(t=e?.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(e=>{this.element.setAttribute(e,t[e])})}};xt.createContext({markViewContentRef:()=>{}});var C6=class extends AF{constructor(t,e,n){if(super(t,e,n),this.selectionRafId=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const r=this.dom.querySelector("[data-node-view-content]");if(!r)return;r.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const t=this.editor,e=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(e,{get(n,r,a){var i;return r==="storage"?(i=t.storage[e.name])!=null?i:{}:Reflect.get(n,r,a)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:U.createRef()};if(!this.component.displayName){const l=u=>u.charAt(0).toUpperCase()+u.substring(1);this.component.displayName=l(this.extension.name)}const r={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},a=this.component,i=U.memo(l=>m.jsx(Cw.Provider,{value:r,children:U.createElement(a,l)}));i.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:o=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new N6(i,{editor:this.editor,props:t,as:s,className:`node-${this.node.type.name} ${o}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const{from:t,to:e}=this.editor.state.selection,n=this.getPos();if(typeof n=="number")if(t<=n&&e>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(t,e,n){const r=a=>{this.renderer.updateProps(a),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const a=this.node,i=this.decorations,s=this.innerDecorations;return this.node=t,this.decorations=e,this.innerDecorations=n,this.options.update({oldNode:a,oldDecorations:i,newNode:t,newDecorations:e,oldInnerDecorations:s,innerDecorations:n,updateProps:()=>r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}return t===this.node&&this.decorations===e&&this.innerDecorations===n||(this.node=t,this.decorations=e,this.innerDecorations=n,r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const e=this.editor.extensionManager.attributes,n=Ha(this.node,e);t=this.options.attrs({node:this.node,HTMLAttributes:n})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function Iw(t,e){return n=>n.editor.contentComponent?new C6(t,n,e):{}}var n0=U.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});n0.displayName="TiptapContext";var w6=()=>U.useContext(n0);function Rw({editor:t,instance:e,children:n}){const r=t??e;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const a=U.useMemo(()=>({editor:r}),[r]),i=U.useMemo(()=>({editor:r}),[r]);return m.jsx(t0.Provider,{value:i,children:m.jsx(n0.Provider,{value:a,children:n})})}Rw.displayName="Tiptap";function Ow({...t}){const{editor:e}=w6();return m.jsx(_w,{editor:e,...t})}Ow.displayName="Tiptap.Content";Object.assign(Rw,{Content:Ow});function I6(t){return t.storage.mention}function Yse(t,e,n){t.chain().focus().insertContentAt(e,[Lw(n),{type:"text",text:" "}]).run()}function Lw(t){return{type:"mention",attrs:t}}function Kse(t,e,n){const r=t.state.doc.nodeAt(e);return r?.type.name==="mention"&&r.attrs.id===n}function R6(t){const e=W.c(34),{node:n,selected:r,view:a,editor:i,getPos:s}=t,{name:o,char:l,kind:u,id:c,args:d}=n.attrs,p=fe(),f=r&&a.editable,h=u==="task",g=l==="@",b=a.editable&&l==="/"&&(u==="prompt"||u===void 0);let y;e[0]!==d||e[1]!==i||e[2]!==s||e[3]!==c||e[4]!==o?(y=()=>{const Y=I6(i)?.onEditChip;if(!Y||typeof s!="function")return;const w=s();typeof w=="number"&&Y({promptId:c,promptName:o,args:d??{},pos:w})},e[0]=d,e[1]=i,e[2]=s,e[3]=c,e[4]=o,e[5]=y):y=e[5];const T=y;let x;e[6]!==b||e[7]!==T?(x=B=>{b&&(B.preventDefault(),B.stopPropagation(),T())},e[6]=b,e[7]=T,e[8]=x):x=e[8];const k=x;let A;e[9]!==b||e[10]!==T?(A=B=>{b&&(B.key!=="Enter"&&B.key!==" "||(B.preventDefault(),B.stopPropagation(),T()))},e[9]=b,e[10]=T,e[11]=A):A=e[11];const S=A,v=b?"button":void 0,N=b?0:void 0;let _;e[12]!==b||e[13]!==o||e[14]!==p?(_=b?p("chat.mention.editPrompt",{name:o?tg(o):""}):void 0,e[12]=b,e[13]=o,e[14]=p,e[15]=_):_=e[15];const C=b?"cursor-pointer":"cursor-default",L=g?"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",P=f&&"outline-2 outline-blue-300 outline-offset-0",$=b&&"hover:brightness-95",F=!h&&"capitalize";let M;e[16]!==F||e[17]!==C||e[18]!==L||e[19]!==P||e[20]!==$?(M=ye("px-1 py-1 rounded","inline-flex items-center gap-1",C,"select-none","text-xs font-light",L,P,$,F),e[16]=F,e[17]=C,e[18]=L,e[19]=P,e[20]=$,e[21]=M):M=e[21];let H;e[22]!==h||e[23]!==o?(H=h?m.jsx("span",{className:"inline-block max-w-[220px] truncate align-bottom",children:o??""}):o?tg(o):"",e[22]=h,e[23]=o,e[24]=H):H=e[24];let j;return e[25]!==l||e[26]!==k||e[27]!==S||e[28]!==M||e[29]!==H||e[30]!==v||e[31]!==N||e[32]!==_?(j=m.jsxs(ww,{onClick:k,onKeyDown:S,role:v,tabIndex:N,"aria-label":_,className:M,children:[l,H]}),e[25]=l,e[26]=k,e[27]=S,e[28]=M,e[29]=H,e[30]=v,e[31]=N,e[32]=_,e[33]=j):j=e[33],j}const O6=Bt.create({name:"mention",group:"inline",inline:!0,atom:!0,addStorage(){return{onEditChip:null}},addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},char:{default:"/",parseHTML:t=>t.getAttribute("data-char")||"/",renderHTML:t=>t.char?{"data-char":t.char}:{}},metadata:{default:null,parseHTML:t=>{try{return JSON.parse(t.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:t=>t.metadata?{"data-metadata":JSON.stringify(t.metadata)}:{}},kind:{default:void 0,parseHTML:t=>t.getAttribute("data-kind")||void 0,renderHTML:t=>t.kind?{"data-kind":t.kind}:{}},args:{default:null,parseHTML:t=>{try{return JSON.parse(t.getAttribute("data-args")||"null")}catch{return null}},renderHTML:t=>t.args?{"data-args":JSON.stringify(t.args)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({HTMLAttributes:t}){return["span",tt(t,{"data-type":"mention"})]},renderText({node:t}){const e=t.attrs.char??"@",n=t.attrs.name??"";return`${e}${n}`},addNodeView(){return Iw(R6)}}),L6=/^mcp__[a-zA-Z0-9_-]+__/;function Dw(t){return t.replace(L6,"")}function r0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fa=r0();function Mw(t){fa=t}var Ri={exec:()=>null};function Pe(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Mt.caret,"$1"),n=n.replace(a,s),r},getRegex:()=>new RegExp(n,e)};return r}var Mt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},D6=/^(?:[ \t]*(?:\n|$))+/,M6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,P6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,F6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,a0=/(?:[*+-]|\d{1,9}[.)])/,Pw=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Fw=Pe(Pw).replace(/bull/g,a0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),B6=Pe(Pw).replace(/bull/g,a0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),i0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,U6=/^[^\n]+/,s0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,j6=Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",s0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),H6=Pe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,a0).getRegex(),Dl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$6=Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",o0).replace("tag",Dl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bw=Pe(i0).replace("hr",bs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Dl).getRegex(),z6=Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Bw).getRegex(),l0={blockquote:z6,code:M6,def:j6,fences:P6,heading:F6,hr:bs,html:$6,lheading:Fw,list:H6,newline:D6,paragraph:Bw,table:Ri,text:U6},e1=Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Dl).getRegex(),q6={...l0,lheading:B6,table:e1,paragraph:Pe(i0).replace("hr",bs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",e1).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Dl).getRegex()},G6={...l0,html:Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",o0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ri,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Pe(i0).replace("hr",bs).replace("heading",` *#{1,6} *[^
|
|
103
|
+
]`).replace("lheading",Fw).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},W6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,V6=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Uw=/^( {2,}|\\)\n(?!\s*$)/,Y6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ml=/[\p{P}\p{S}]/u,u0=/[\s\p{P}\p{S}]/u,jw=/[^\s\p{P}\p{S}]/u,K6=Pe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,u0).getRegex(),Hw=/(?!~)[\p{P}\p{S}]/u,X6=/(?!~)[\s\p{P}\p{S}]/u,Z6=/(?:[^\s\p{P}\p{S}]|~)/u,Q6=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,$w=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,J6=Pe($w,"u").replace(/punct/g,Ml).getRegex(),eB=Pe($w,"u").replace(/punct/g,Hw).getRegex(),zw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",tB=Pe(zw,"gu").replace(/notPunctSpace/g,jw).replace(/punctSpace/g,u0).replace(/punct/g,Ml).getRegex(),nB=Pe(zw,"gu").replace(/notPunctSpace/g,Z6).replace(/punctSpace/g,X6).replace(/punct/g,Hw).getRegex(),rB=Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jw).replace(/punctSpace/g,u0).replace(/punct/g,Ml).getRegex(),aB=Pe(/\\(punct)/,"gu").replace(/punct/g,Ml).getRegex(),iB=Pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sB=Pe(o0).replace("(?:-->|$)","-->").getRegex(),oB=Pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),No=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,lB=Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",No).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qw=Pe(/^!?\[(label)\]\[(ref)\]/).replace("label",No).replace("ref",s0).getRegex(),Gw=Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref",s0).getRegex(),uB=Pe("reflink|nolink(?!\\()","g").replace("reflink",qw).replace("nolink",Gw).getRegex(),c0={_backpedal:Ri,anyPunctuation:aB,autolink:iB,blockSkip:Q6,br:Uw,code:V6,del:Ri,emStrongLDelim:J6,emStrongRDelimAst:tB,emStrongRDelimUnd:rB,escape:W6,link:lB,nolink:Gw,punctuation:K6,reflink:qw,reflinkSearch:uB,tag:oB,text:Y6,url:Ri},cB={...c0,link:Pe(/^!?\[(label)\]\((.*?)\)/).replace("label",No).getRegex(),reflink:Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",No).getRegex()},kg={...c0,emStrongRDelimAst:nB,emStrongLDelim:eB,url:Pe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},dB={...kg,br:Pe(Uw).replace("{2,}","*").getRegex(),text:Pe(kg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Us={normal:l0,gfm:q6,pedantic:G6},oi={normal:c0,gfm:kg,breaks:dB,pedantic:cB},pB={"&":"&","<":"<",">":">",'"':""","'":"'"},t1=t=>pB[t];function vn(t,e){if(e){if(Mt.escapeTest.test(t))return t.replace(Mt.escapeReplace,t1)}else if(Mt.escapeTestNoEncode.test(t))return t.replace(Mt.escapeReplaceNoEncode,t1);return t}function n1(t){try{t=encodeURI(t).replace(Mt.percentDecode,"%")}catch{return null}return t}function r1(t,e){const n=t.replace(Mt.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(Mt.splitPipe);let a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Mt.slashPipe,"|");return r}function li(t,e,n){const r=t.length;if(r===0)return"";let a=0;for(;a<r&&t.charAt(r-a-1)===e;)a++;return t.slice(0,r-a)}function fB(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function a1(t,e,n,r,a){const i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function hB(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const a=r[1];return e.split(`
|
|
104
|
+
`).map(i=>{const s=i.match(n.other.beginningSpace);if(s===null)return i;const[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
|
|
105
|
+
`)}var Co=class{options;rules;lexer;constructor(t){this.options=t||fa}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:li(n,`
|
|
106
|
+
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=hB(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){const r=li(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:li(e[0],`
|
|
107
|
+
`)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=li(e[0],`
|
|
108
|
+
`).split(`
|
|
109
|
+
`),r="",a="";const i=[];for(;n.length>0;){let s=!1;const o=[];let l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))o.push(n[l]),s=!0;else if(!s)o.push(n[l]);else break;n=n.slice(l);const u=o.join(`
|
|
110
|
+
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
111
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
112
|
+
${u}`:u,a=a?`${a}
|
|
113
|
+
${c}`:c;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=d,n.length===0)break;const p=i.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){const f=p,h=f.raw+`
|
|
114
|
+
`+n.join(`
|
|
115
|
+
`),g=this.blockquote(h);i[i.length-1]=g,r=r.substring(0,r.length-f.raw.length)+g.raw,a=a.substring(0,a.length-f.text.length)+g.text;break}else if(p?.type==="list"){const f=p,h=f.raw+`
|
|
116
|
+
`+n.join(`
|
|
117
|
+
`),g=this.list(h);i[i.length-1]=g,r=r.substring(0,r.length-p.raw.length)+g.raw,a=a.substring(0,a.length-f.raw.length)+g.raw,n=h.substring(i.at(-1).raw.length).split(`
|
|
118
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const r=n.length>1,a={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let s=!1;for(;t;){let l=!1,u="",c="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;u=e[0],t=t.substring(u.length);let d=e[2].split(`
|
|
119
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),p=t.split(`
|
|
120
|
+
`,1)[0],f=!d.trim(),h=0;if(this.options.pedantic?(h=2,c=d.trimStart()):f?h=e[1].length+1:(h=e[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,c=d.slice(h),h+=e[1].length),f&&this.rules.other.blankLine.test(p)&&(u+=p+`
|
|
121
|
+
`,t=t.substring(p.length+1),l=!0),!l){const y=this.rules.other.nextBulletRegex(h),T=this.rules.other.hrRegex(h),x=this.rules.other.fencesBeginRegex(h),k=this.rules.other.headingBeginRegex(h),A=this.rules.other.htmlBeginRegex(h);for(;t;){const S=t.split(`
|
|
122
|
+
`,1)[0];let v;if(p=S,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),v=p):v=p.replace(this.rules.other.tabCharGlobal," "),x.test(p)||k.test(p)||A.test(p)||y.test(p)||T.test(p))break;if(v.search(this.rules.other.nonSpaceChar)>=h||!p.trim())c+=`
|
|
123
|
+
`+v.slice(h);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||x.test(d)||k.test(d)||T.test(d))break;c+=`
|
|
124
|
+
`+p}!f&&!p.trim()&&(f=!0),u+=S+`
|
|
125
|
+
`,t=t.substring(S.length+1),d=v.slice(h)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0));let g=null,b;this.options.gfm&&(g=this.rules.other.listIsTask.exec(c),g&&(b=g[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:u,task:!!g,checked:b,loose:!1,text:c,tokens:[]}),a.raw+=u}const o=a.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){const u=a.items[l].tokens.filter(d=>d.type==="space"),c=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));a.loose=c}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(t){const e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){const e=this.rules.block.def.exec(t);if(e){const n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:r,title:a}}}table(t){const e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const n=r1(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
126
|
+
`):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<n.length;s++)i.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:i.align[s]});for(const s of a)i.rows.push(r1(s,i.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:i.align[l]})));return i}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n=e[1].charAt(e[1].length-1)===`
|
|
127
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const i=li(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{const i=fB(e[2],"()");if(i===-2)return;if(i>-1){const o=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let r=e[2],a="";if(this.options.pedantic){const i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],a=i[3])}else a=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),a1(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=e[r.toLowerCase()];if(!a){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return a1(n,a,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const i=[...r[0]].length-1;let s,o,l=i,u=0;const c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+i);(r=c.exec(e))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(o=[...s].length,r[3]||r[4]){l+=o;continue}else if((r[5]||r[6])&&i%3&&!((i+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);const d=[...r[0]][0].length,p=t.slice(0,i+r.index+d+o);if(Math.min(i,o)%2){const h=p.slice(1,-1);return{type:"em",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}const f=p.slice(2,-2);return{type:"strong",raw:p,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,r;if(e[2]==="@")n=e[0],r="mailto:"+n;else{let a;do a=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(a!==e[0]);n=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},Zn=class vg{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||fa,this.options.tokenizer=this.options.tokenizer||new Co,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Mt,block:Us.normal,inline:oi.normal};this.options.pedantic?(n.block=Us.pedantic,n.inline=oi.pedantic):this.options.gfm&&(n.block=Us.gfm,this.options.breaks?n.inline=oi.breaks:n.inline=oi.gfm),this.tokenizer.rules=n}static get rules(){return{block:Us,inline:oi}}static lex(e,n){return new vg(n).lex(e)}static lexInline(e,n){return new vg(n).inlineTokens(e)}lex(e){e=e.replace(Mt.carriageReturn,`
|
|
128
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(Mt.tabCharGlobal," ").replace(Mt.spaceLine,""));e;){let a;if(this.options.extensions?.block?.some(s=>(a=s.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);const s=n.at(-1);a.raw.length===1&&s!==void 0?s.raw+=`
|
|
129
|
+
`:n.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);const s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=`
|
|
130
|
+
`+a.raw,s.text+=`
|
|
131
|
+
`+a.text,this.inlineQueue.at(-1).src=s.text):n.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);const s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=`
|
|
132
|
+
`+a.raw,s.text+=`
|
|
133
|
+
`+a.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),n.push(a);continue}let i=e;if(this.options.extensions?.startBlock){let s=1/0;const o=e.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(i=e.substring(0,s+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){const s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=`
|
|
134
|
+
`+a.raw,s.text+=`
|
|
135
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(a),r=i.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);const s=n.at(-1);s?.type==="text"?(s.raw+=`
|
|
136
|
+
`+a.raw,s.text+=`
|
|
137
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(a);continue}if(e){const s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=e,a=null;if(this.tokens.links){const o=Object.keys(this.tokens.links);if(o.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)o.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,s="";for(;e;){i||(s=""),i=!1;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);const u=n.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,r,s)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let l=e;if(this.options.extensions?.startInline){let u=1/0;const c=e.slice(1);let d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(o=this.tokenizer.inlineText(l)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(s=o.raw.slice(-1)),i=!0;const u=n.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):n.push(o);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},wo=class{options;parser;constructor(t){this.options=t||fa}space(t){return""}code({text:t,lang:e,escaped:n}){const r=(e||"").match(Mt.notSpaceStart)?.[0],a=t.replace(Mt.endingNewline,"")+`
|
|
138
|
+
`;return r?'<pre><code class="language-'+vn(r)+'">'+(n?a:vn(a,!0))+`</code></pre>
|
|
139
|
+
`:"<pre><code>"+(n?a:vn(a,!0))+`</code></pre>
|
|
140
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
141
|
+
${this.parser.parse(t)}</blockquote>
|
|
142
|
+
`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
143
|
+
`}hr(t){return`<hr>
|
|
144
|
+
`}list(t){const e=t.ordered,n=t.start;let r="";for(let s=0;s<t.items.length;s++){const o=t.items[s];r+=this.listitem(o)}const a=e?"ol":"ul",i=e&&n!==1?' start="'+n+'"':"";return"<"+a+i+`>
|
|
145
|
+
`+r+"</"+a+`>
|
|
146
|
+
`}listitem(t){let e="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+vn(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
|
|
147
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
148
|
+
`}table(t){let e="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);e+=this.tablerow({text:n});let r="";for(let a=0;a<t.rows.length;a++){const i=t.rows[a];n="";for(let s=0;s<i.length;s++)n+=this.tablecell(i[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
149
|
+
<thead>
|
|
150
|
+
`+e+`</thead>
|
|
151
|
+
`+r+`</table>
|
|
152
|
+
`}tablerow({text:t}){return`<tr>
|
|
153
|
+
${t}</tr>
|
|
154
|
+
`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
155
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${vn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),a=n1(t);if(a===null)return r;t=a;let i='<a href="'+t+'"';return e&&(i+=' title="'+vn(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const a=n1(t);if(a===null)return vn(n);t=a;let i=`<img src="${t}" alt="${n}"`;return e&&(i+=` title="${vn(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:vn(t.text)}},d0=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Qn=class Ag{options;renderer;textRenderer;constructor(e){this.options=e||fa,this.options.renderer=this.options.renderer||new wo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new d0}static parse(e,n){return new Ag(n).parse(e)}static parseInline(e,n){return new Ag(n).parseInline(e)}parse(e,n=!0){let r="";for(let a=0;a<e.length;a++){const i=e[a];if(this.options.extensions?.renderers?.[i.type]){const o=i,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=l||"";continue}}const s=i;switch(s.type){case"space":{r+=this.renderer.space(s);continue}case"hr":{r+=this.renderer.hr(s);continue}case"heading":{r+=this.renderer.heading(s);continue}case"code":{r+=this.renderer.code(s);continue}case"table":{r+=this.renderer.table(s);continue}case"blockquote":{r+=this.renderer.blockquote(s);continue}case"list":{r+=this.renderer.list(s);continue}case"html":{r+=this.renderer.html(s);continue}case"paragraph":{r+=this.renderer.paragraph(s);continue}case"text":{let o=s,l=this.renderer.text(o);for(;a+1<e.length&&e[a+1].type==="text";)o=e[++a],l+=`
|
|
156
|
+
`+this.renderer.text(o);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):r+=l;continue}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(e,n=this.renderer){let r="";for(let a=0;a<e.length;a++){const i=e[a];if(this.options.extensions?.renderers?.[i.type]){const o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=o||"";continue}}const s=i;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},no=class{options;block;constructor(t){this.options=t||fa}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Zn.lex:Zn.lexInline}provideParser(){return this.block?Qn.parse:Qn.parseInline}},mB=class{defaults=r0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qn;Renderer=wo;TextRenderer=d0;Lexer=Zn;Tokenizer=Co;Hooks=no;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{const a=r;for(const i of a.header)n=n.concat(this.walkTokens(i.tokens,e));for(const i of a.rows)for(const s of i)n=n.concat(this.walkTokens(s.tokens,e));break}case"list":{const a=r;n=n.concat(this.walkTokens(a.items,e));break}default:{const a=r;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{const s=a[i].flat(1/0);n=n.concat(this.walkTokens(s,e))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const i=e.renderers[a.name];i?e.renderers[a.name]=function(...s){let o=a.renderer.apply(this,s);return o===!1&&(o=i.apply(this,s)),o}:e.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=e[a.level];i?i.unshift(a.tokenizer):e[a.level]=[a.tokenizer],a.start&&(a.level==="block"?e.startBlock?e.startBlock.push(a.start):e.startBlock=[a.start]:a.level==="inline"&&(e.startInline?e.startInline.push(a.start):e.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(e.childTokens[a.name]=a.childTokens)}),r.extensions=e),n.renderer){const a=this.defaults.renderer||new wo(this.defaults);for(const i in n.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const s=i,o=n.renderer[s],l=a[s];a[s]=(...u)=>{let c=o.apply(a,u);return c===!1&&(c=l.apply(a,u)),c||""}}r.renderer=a}if(n.tokenizer){const a=this.defaults.tokenizer||new Co(this.defaults);for(const i in n.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const s=i,o=n.tokenizer[s],l=a[s];a[s]=(...u)=>{let c=o.apply(a,u);return c===!1&&(c=l.apply(a,u)),c}}r.tokenizer=a}if(n.hooks){const a=this.defaults.hooks||new no;for(const i in n.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;const s=i,o=n.hooks[s],l=a[s];no.passThroughHooks.has(i)?a[s]=u=>{if(this.defaults.async)return Promise.resolve(o.call(a,u)).then(d=>l.call(a,d));const c=o.call(a,u);return l.call(a,c)}:a[s]=(...u)=>{let c=o.apply(a,u);return c===!1&&(c=l.apply(a,u)),c}}r.hooks=a}if(n.walkTokens){const a=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(s){let o=[];return o.push(i.call(this,s)),a&&(o=o.concat(a.call(this,s))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Zn.lex(t,e??this.defaults)}parser(t,e){return Qn.parse(t,e??this.defaults)}parseMarkdown(t){return(n,r)=>{const a={...r},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=t);const o=i.hooks?i.hooks.provideLexer():t?Zn.lex:Zn.lexInline,l=i.hooks?i.hooks.provideParser():t?Qn.parse:Qn.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(u=>o(u,i)).then(u=>i.hooks?i.hooks.processAllTokens(u):u).then(u=>i.walkTokens?Promise.all(this.walkTokens(u,i.walkTokens)).then(()=>u):u).then(u=>l(u,i)).then(u=>i.hooks?i.hooks.postprocess(u):u).catch(s);try{i.hooks&&(n=i.hooks.preprocess(n));let u=o(n,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let c=l(u,i);return i.hooks&&(c=i.hooks.postprocess(c)),c}catch(u){return s(u)}}}onError(t,e){return n=>{if(n.message+=`
|
|
157
|
+
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+vn(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},ia=new mB;function Ue(t,e){return ia.parse(t,e)}Ue.options=Ue.setOptions=function(t){return ia.setOptions(t),Ue.defaults=ia.defaults,Mw(Ue.defaults),Ue};Ue.getDefaults=r0;Ue.defaults=fa;Ue.use=function(...t){return ia.use(...t),Ue.defaults=ia.defaults,Mw(Ue.defaults),Ue};Ue.walkTokens=function(t,e){return ia.walkTokens(t,e)};Ue.parseInline=ia.parseInline;Ue.Parser=Qn;Ue.parser=Qn.parse;Ue.Renderer=wo;Ue.TextRenderer=d0;Ue.Lexer=Zn;Ue.lexer=Zn.lex;Ue.Tokenizer=Co;Ue.Hooks=no;Ue.parse=Ue;Ue.options;Ue.setOptions;Ue.use;Ue.walkTokens;Ue.parseInline;Qn.parse;Zn.lex;function i1(t){const e=[],n=String(t||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&e.push(s),a=r+1,r=n.indexOf(",",a)}return e}function Ww(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gB=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bB=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EB={};function s1(t,e){return(EB.jsx?bB:gB).test(t)}const yB=/[ \t\n\f\r]/g;function TB(t){return typeof t=="object"?t.type==="text"?o1(t.value):!1:o1(t)}function o1(t){return t.replace(yB,"")===""}class Es{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}Es.prototype.normal={};Es.prototype.property={};Es.prototype.space=void 0;function Vw(t,e){const n={},r={};for(const a of t)Object.assign(n,a.property),Object.assign(r,a.normal);return new Es(n,r,e)}function ts(t){return t.toLowerCase()}class Wt{constructor(e,n){this.attribute=n,this.property=e}}Wt.prototype.attribute="";Wt.prototype.booleanish=!1;Wt.prototype.boolean=!1;Wt.prototype.commaOrSpaceSeparated=!1;Wt.prototype.commaSeparated=!1;Wt.prototype.defined=!1;Wt.prototype.mustUseProperty=!1;Wt.prototype.number=!1;Wt.prototype.overloadedBoolean=!1;Wt.prototype.property="";Wt.prototype.spaceSeparated=!1;Wt.prototype.space=void 0;let SB=0;const Se=ha(),rt=ha(),_g=ha(),te=ha(),qe=ha(),Da=ha(),Kt=ha();function ha(){return 2**++SB}const Ng=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:rt,commaOrSpaceSeparated:Kt,commaSeparated:Da,number:te,overloadedBoolean:_g,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),Cu=Object.keys(Ng);class p0 extends Wt{constructor(e,n,r,a){let i=-1;if(super(e,n),l1(this,"space",a),typeof r=="number")for(;++i<Cu.length;){const s=Cu[i];l1(this,Cu[i],(r&Ng[s])===Ng[s])}}}p0.prototype.defined=!0;function l1(t,e,n){n&&(t[e]=n)}function Qa(t){const e={},n={};for(const[r,a]of Object.entries(t.properties)){const i=new p0(r,t.transform(t.attributes||{},r),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),e[r]=i,n[ts(r)]=r,n[ts(i.attribute)]=r}return new Es(e,n,t.space)}const Yw=Qa({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:qe,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:te,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:qe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:rt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Kw(t,e){return e in t?t[e]:e}function Xw(t,e){return Kw(t,e.toLowerCase())}const xB=Qa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Da,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:qe,autoFocus:Se,autoPlay:Se,blocking:qe,capture:null,charSet:null,checked:Se,cite:null,className:qe,cols:te,colSpan:null,content:null,contentEditable:rt,controls:Se,controlsList:qe,coords:te|Da,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:_g,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:qe,height:te,hidden:_g,high:te,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:qe,itemRef:qe,itemScope:Se,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:te,pattern:null,ping:qe,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:qe,required:Se,reversed:Se,rows:te,rowSpan:te,sandbox:qe,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:rt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:Xw}),kB=Qa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Da,g2:Da,glyphName:Da,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Kw}),Zw=Qa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Qw=Qa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xw}),Jw=Qa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),vB={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},AB=/[A-Z]/g,u1=/-[a-z]/g,_B=/^data[-\w.:]+$/i;function Pl(t,e){const n=ts(e);let r=e,a=Wt;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_B.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(u1,CB);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!u1.test(i)){let s=i.replace(AB,NB);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=p0}return new a(r,e)}function NB(t){return"-"+t.toLowerCase()}function CB(t){return t.charAt(1).toUpperCase()}const ys=Vw([Yw,xB,Zw,Qw,Jw],"html"),Lr=Vw([Yw,kB,Zw,Qw,Jw],"svg");function c1(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function eI(t){return t.join(" ").trim()}var Ta={},wu,d1;function wB(){if(d1)return wu;d1=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
158
|
+
`,u="/",c="*",d="",p="comment",f="declaration";function h(b,y){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];y=y||{};var T=1,x=1;function k(F){var M=F.match(e);M&&(T+=M.length);var H=F.lastIndexOf(l);x=~H?F.length-H:x+F.length}function A(){var F={line:T,column:x};return function(M){return M.position=new S(F),_(),M}}function S(F){this.start=F,this.end={line:T,column:x},this.source=y.source}S.prototype.content=b;function v(F){var M=new Error(y.source+":"+T+":"+x+": "+F);if(M.reason=F,M.filename=y.source,M.line=T,M.column=x,M.source=b,!y.silent)throw M}function N(F){var M=F.exec(b);if(M){var H=M[0];return k(H),b=b.slice(H.length),M}}function _(){N(n)}function C(F){var M;for(F=F||[];M=L();)M!==!1&&F.push(M);return F}function L(){var F=A();if(!(u!=b.charAt(0)||c!=b.charAt(1))){for(var M=2;d!=b.charAt(M)&&(c!=b.charAt(M)||u!=b.charAt(M+1));)++M;if(M+=2,d===b.charAt(M-1))return v("End of comment missing");var H=b.slice(2,M-2);return x+=2,k(H),b=b.slice(M),x+=2,F({type:p,comment:H})}}function P(){var F=A(),M=N(r);if(M){if(L(),!N(a))return v("property missing ':'");var H=N(i),j=F({type:f,property:g(M[0].replace(t,d)),value:H?g(H[0].replace(t,d)):d});return N(s),j}}function $(){var F=[];C(F);for(var M;M=P();)M!==!1&&(F.push(M),C(F));return F}return _(),$()}function g(b){return b?b.replace(o,d):d}return wu=h,wu}var p1;function IB(){if(p1)return Ta;p1=1;var t=Ta&&Ta.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=n;const e=t(wB());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const s=(0,e.default)(r),o=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?a(u,c,l):c&&(i=i||{},i[u]=c)}),i}return Ta}var ui={},f1;function RB(){if(f1)return ui;f1=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(u){return!u||n.test(u)||t.test(u)},s=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),i(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,o):u=u.replace(r,o),u.replace(e,s))};return ui.camelCase=l,ui}var ci,h1;function OB(){if(h1)return ci;h1=1;var t=ci&&ci.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},e=t(IB()),n=RB();function r(a,i){var s={};return!a||typeof a!="string"||(0,e.default)(a,function(o,l){o&&l&&(s[(0,n.camelCase)(o,i)]=l)}),s}return r.default=r,ci=r,ci}var LB=OB();const DB=pb(LB),Fl=tI("end"),Fn=tI("start");function tI(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function MB(t){const e=Fn(t),n=Fl(t);if(e&&n)return{start:e,end:n}}function Oi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?m1(t.position):"start"in t||"end"in t?m1(t):"line"in t||"column"in t?Cg(t):""}function Cg(t){return g1(t&&t.line)+":"+g1(t&&t.column)}function m1(t){return Cg(t&&t.start)+"-"+Cg(t&&t.end)}function g1(t){return t&&typeof t=="number"?t:1}class _t extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof e=="string"?a=e:!i.cause&&e&&(s=!0,a=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Oi(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const f0={}.hasOwnProperty,PB=new Map,FB=/[A-Z]/g,BB=new Set(["table","tbody","thead","tfoot","tr"]),UB=new Set(["td","th"]),nI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jB(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=YB(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=VB(n,e.jsx,e.jsxs)}const a={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Lr:ys,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},i=rI(a,t,void 0);return i&&typeof i!="string"?i:a.create(t,a.Fragment,{children:i||void 0},void 0)}function rI(t,e,n){if(e.type==="element")return HB(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return $B(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return qB(t,e,n);if(e.type==="mdxjsEsm")return zB(t,e);if(e.type==="root")return GB(t,e,n);if(e.type==="text")return WB(t,e)}function HB(t,e,n){const r=t.schema;let a=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Lr,t.schema=a),t.ancestors.push(e);const i=iI(t,e.tagName,!1),s=KB(t,e);let o=m0(t,e);return BB.has(e.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!TB(l):!0})),aI(t,s,i,e),h0(s,o),t.ancestors.pop(),t.schema=r,t.create(e,i,s,n)}function $B(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}ns(t,e.position)}function zB(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);ns(t,e.position)}function qB(t,e,n){const r=t.schema;let a=r;e.name==="svg"&&r.space==="html"&&(a=Lr,t.schema=a),t.ancestors.push(e);const i=e.name===null?t.Fragment:iI(t,e.name,!0),s=XB(t,e),o=m0(t,e);return aI(t,s,i,e),h0(s,o),t.ancestors.pop(),t.schema=r,t.create(e,i,s,n)}function GB(t,e,n){const r={};return h0(r,m0(t,e)),t.create(e,t.Fragment,r,n)}function WB(t,e){return e.value}function aI(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function h0(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function VB(t,e,n){return r;function r(a,i,s,o){const u=Array.isArray(s.children)?n:e;return o?u(i,s,o):u(i,s)}}function YB(t,e){return n;function n(r,a,i,s){const o=Array.isArray(i.children),l=Fn(r);return e(a,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function KB(t,e){const n={};let r,a;for(a in e.properties)if(a!=="children"&&f0.call(e.properties,a)){const i=ZB(t,a,e.properties[a]);if(i){const[s,o]=i;t.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&UB.has(e.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function XB(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else ns(t,e.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const o=r.value.data.estree.body[0];o.type,i=t.evaluater.evaluateExpression(o.expression)}else ns(t,e.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function m0(t,e){const n=[];let r=-1;const a=t.passKeys?new Map:PB;for(;++r<e.children.length;){const i=e.children[r];let s;if(t.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=rI(t,i,s);o!==void 0&&n.push(o)}return n}function ZB(t,e,n){const r=Pl(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ww(n):eI(n)),r.property==="style"){let a=typeof n=="object"?n:QB(t,String(n));return t.stylePropertyNameCase==="css"&&(a=JB(a)),["style",a]}return[t.elementAttributeNameCase==="react"&&r.space?vB[r.property]||r.property:r.attribute,n]}}function QB(t,e){try{return DB(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,a=new _t("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=nI+"#cannot-parse-style-attribute",a}}function iI(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const a=e.split(".");let i=-1,s;for(;++i<a.length;){const o=s1(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=s1(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const a=r.value;return f0.call(t.components,a)?t.components[a]:a}if(t.evaluater)return t.evaluater.evaluateExpression(r);ns(t)}function ns(t,e){const n=new _t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=nI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function JB(t){const e={};let n;for(n in t)f0.call(t,n)&&(e[e5(n)]=t[n]);return e}function e5(t){let e=t.replace(FB,t5);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function t5(t){return"-"+t.toLowerCase()}const Iu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},n5={};function g0(t,e){const n=n5,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return sI(t,r,a)}function sI(t,e,n){if(r5(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return b1(t.children,e,n)}return Array.isArray(t)?b1(t,e,n):""}function b1(t,e,n){const r=[];let a=-1;for(;++a<t.length;)r[a]=sI(t[a],e,n);return r.join("")}function r5(t){return!!(t&&typeof t=="object")}const E1=document.createElement("i");function b0(t){const e="&"+t+";";E1.innerHTML=e;const n=E1.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Qt(t,e,n,r){const a=t.length;let i=0,s;if(e<0?e=-e>a?0:a+e:e=e>a?a:e,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(e,n),t.splice(...s);else for(n&&t.splice(e,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(e,0),t.splice(...s),i+=1e4,e+=1e4}function ln(t,e){return t.length>0?(Qt(t,t.length,0,e),t):e}const y1={}.hasOwnProperty;function oI(t){const e={};let n=-1;for(;++n<t.length;)a5(e,t[n]);return e}function a5(t,e){let n;for(n in e){const a=(y1.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let s;if(i)for(s in i){y1.call(a,s)||(a[s]=[]);const o=i[s];i5(a[s],Array.isArray(o)?o:o?[o]:[])}}}function i5(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Qt(t,0,0,r)}function lI(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function En(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lt=Dr(/[A-Za-z]/),kt=Dr(/[\dA-Za-z]/),s5=Dr(/[#-'*+\--9=?A-Z^-~]/);function Io(t){return t!==null&&(t<32||t===127)}const wg=Dr(/\d/),o5=Dr(/[\dA-Fa-f]/),l5=Dr(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function ze(t){return t!==null&&(t<0||t===32)}function Ne(t){return t===-2||t===-1||t===32}const Bl=Dr(new RegExp("\\p{P}|\\p{S}","u")),sa=Dr(/\s/);function Dr(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Ja(t){const e=[];let n=-1,r=0,a=0;for(;++n<t.length;){const i=t.charCodeAt(n);let s="";if(i===37&&kt(t.charCodeAt(n+1))&&kt(t.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=t.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return e.join("")+t.slice(r)}function Ie(t,e,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return Ne(l)?(t.enter(n),o(l)):e(l)}function o(l){return Ne(l)&&i++<a?(t.consume(l),o):(t.exit(n),e(l))}}const u5={tokenize:c5};function c5(t){const e=t.attempt(this.parser.constructs.contentInitial,r,a);let n;return e;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Ie(t,e,"linePrefix")}function a(o){return t.enter("paragraph"),i(o)}function i(o){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return pe(o)?(t.consume(o),t.exit("chunkText"),i):(t.consume(o),s)}}const d5={tokenize:p5},T1={tokenize:f5};function p5(t){const e=this,n=[];let r=0,a,i,s;return o;function o(x){if(r<n.length){const k=n[r];return e.containerState=k[1],t.attempt(k[0].continuation,l,u)(x)}return u(x)}function l(x){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,a&&T();const k=e.events.length;let A=k,S;for(;A--;)if(e.events[A][0]==="exit"&&e.events[A][1].type==="chunkFlow"){S=e.events[A][1].end;break}y(r);let v=k;for(;v<e.events.length;)e.events[v][1].end={...S},v++;return Qt(e.events,A+1,0,e.events.slice(k)),e.events.length=v,u(x)}return o(x)}function u(x){if(r===n.length){if(!a)return p(x);if(a.currentConstruct&&a.currentConstruct.concrete)return h(x);e.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(T1,c,d)(x)}function c(x){return a&&T(),y(r),p(x)}function d(x){return e.parser.lazy[e.now().line]=r!==n.length,s=e.now().offset,h(x)}function p(x){return e.containerState={},t.attempt(T1,f,h)(x)}function f(x){return r++,n.push([e.currentConstruct,e.containerState]),p(x)}function h(x){if(x===null){a&&T(),y(0),t.consume(x);return}return a=a||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),g(x)}function g(x){if(x===null){b(t.exit("chunkFlow"),!0),y(0),t.consume(x);return}return pe(x)?(t.consume(x),b(t.exit("chunkFlow")),r=0,e.interrupt=void 0,o):(t.consume(x),g)}function b(x,k){const A=e.sliceStream(x);if(k&&A.push(null),x.previous=i,i&&(i.next=x),i=x,a.defineSkip(x.start),a.write(A),e.parser.lazy[x.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const v=e.events.length;let N=v,_,C;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){if(_){C=e.events[N][1].end;break}_=!0}for(y(r),S=v;S<e.events.length;)e.events[S][1].end={...C},S++;Qt(e.events,N+1,0,e.events.slice(v)),e.events.length=S}}function y(x){let k=n.length;for(;k-- >x;){const A=n[k];e.containerState=A[1],A[0].exit.call(e,t)}n.length=x}function T(){a.write([null]),i=void 0,a=void 0,e.containerState._closeFlow=void 0}}function f5(t,e,n){return Ie(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qa(t){if(t===null||ze(t)||sa(t))return 1;if(Bl(t))return 2}function Ul(t,e,n){const r=[];let a=-1;for(;++a<t.length;){const i=t[a].resolveAll;i&&!r.includes(i)&&(e=i(e,n),r.push(i))}return e}const Ig={name:"attention",resolveAll:h5,tokenize:m5};function h5(t,e){let n=-1,r,a,i,s,o,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const d={...t[r][1].end},p={...t[n][1].start};S1(d,-l),S1(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...t[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},t[r][1].end={...s.start},t[n][1].start={...o.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=ln(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=ln(u,[["enter",a,e],["enter",s,e],["exit",s,e],["enter",i,e]]),u=ln(u,Ul(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=ln(u,[["exit",i,e],["enter",o,e],["exit",o,e],["exit",a,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=ln(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,Qt(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function m5(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=qa(r);let i;return s;function s(l){return i=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===i)return t.consume(l),o;const u=t.exit("attentionSequence"),c=qa(l),d=!c||c===2&&a||n.includes(l),p=!a||a===2&&c||n.includes(r);return u._open=!!(i===42?d:d&&(a||!p)),u._close=!!(i===42?p:p&&(c||!d)),e(l)}}function S1(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const g5={name:"autolink",tokenize:b5};function b5(t,e,n){let r=0;return a;function a(f){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(f),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),i}function i(f){return Lt(f)?(t.consume(f),s):f===64?n(f):u(f)}function s(f){return f===43||f===45||f===46||kt(f)?(r=1,o(f)):u(f)}function o(f){return f===58?(t.consume(f),r=0,l):(f===43||f===45||f===46||kt(f))&&r++<32?(t.consume(f),o):(r=0,u(f))}function l(f){return f===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(f),t.exit("autolinkMarker"),t.exit("autolink"),e):f===null||f===32||f===60||Io(f)?n(f):(t.consume(f),l)}function u(f){return f===64?(t.consume(f),c):s5(f)?(t.consume(f),u):n(f)}function c(f){return kt(f)?d(f):n(f)}function d(f){return f===46?(t.consume(f),r=0,c):f===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(f),t.exit("autolinkMarker"),t.exit("autolink"),e):p(f)}function p(f){if((f===45||kt(f))&&r++<63){const h=f===45?p:d;return t.consume(f),h}return n(f)}}const Ts={partial:!0,tokenize:E5};function E5(t,e,n){return r;function r(i){return Ne(i)?Ie(t,a,"linePrefix")(i):a(i)}function a(i){return i===null||pe(i)?e(i):n(i)}}const uI={continuation:{tokenize:T5},exit:S5,name:"blockQuote",tokenize:y5};function y5(t,e,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),i}return n(s)}function i(s){return Ne(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function T5(t,e,n){const r=this;return a;function a(s){return Ne(s)?Ie(t,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return t.attempt(uI,e,n)(s)}}function S5(t){t.exit("blockQuote")}const cI={name:"characterEscape",tokenize:x5};function x5(t,e,n){return r;function r(i){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(i),t.exit("escapeMarker"),a}function a(i){return l5(i)?(t.enter("characterEscapeValue"),t.consume(i),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(i)}}const dI={name:"characterReference",tokenize:k5};function k5(t,e,n){const r=this;let a=0,i,s;return o;function o(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),l}function l(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),i=31,s=kt,c(d))}function u(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,s=o5,c):(t.enter("characterReferenceValue"),i=7,s=wg,c(d))}function c(d){if(d===59&&a){const p=t.exit("characterReferenceValue");return s===kt&&!b0(r.sliceSerialize(p))?n(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(d)&&a++<i?(t.consume(d),c):n(d)}}const x1={partial:!0,tokenize:A5},k1={concrete:!0,name:"codeFenced",tokenize:v5};function v5(t,e,n){const r=this,a={partial:!0,tokenize:A};let i=0,s=0,o;return l;function l(S){return u(S)}function u(S){const v=r.events[r.events.length-1];return i=v&&v[1].type==="linePrefix"?v[2].sliceSerialize(v[1],!0).length:0,o=S,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===o?(s++,t.consume(S),c):s<3?n(S):(t.exit("codeFencedFenceSequence"),Ne(S)?Ie(t,d,"whitespace")(S):d(S))}function d(S){return S===null||pe(S)?(t.exit("codeFencedFence"),r.interrupt?e(S):t.check(x1,g,k)(S)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||pe(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),d(S)):Ne(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ie(t,f,"whitespace")(S)):S===96&&S===o?n(S):(t.consume(S),p)}function f(S){return S===null||pe(S)?d(S):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||pe(S)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),d(S)):S===96&&S===o?n(S):(t.consume(S),h)}function g(S){return t.attempt(a,k,b)(S)}function b(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),y}function y(S){return i>0&&Ne(S)?Ie(t,T,"linePrefix",i+1)(S):T(S)}function T(S){return S===null||pe(S)?t.check(x1,g,k)(S):(t.enter("codeFlowValue"),x(S))}function x(S){return S===null||pe(S)?(t.exit("codeFlowValue"),T(S)):(t.consume(S),x)}function k(S){return t.exit("codeFenced"),e(S)}function A(S,v,N){let _=0;return C;function C(M){return S.enter("lineEnding"),S.consume(M),S.exit("lineEnding"),L}function L(M){return S.enter("codeFencedFence"),Ne(M)?Ie(S,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):P(M)}function P(M){return M===o?(S.enter("codeFencedFenceSequence"),$(M)):N(M)}function $(M){return M===o?(_++,S.consume(M),$):_>=s?(S.exit("codeFencedFenceSequence"),Ne(M)?Ie(S,F,"whitespace")(M):F(M)):N(M)}function F(M){return M===null||pe(M)?(S.exit("codeFencedFence"),v(M)):N(M)}}}function A5(t,e,n){const r=this;return a;function a(s){return s===null?n(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}const Ru={name:"codeIndented",tokenize:N5},_5={partial:!0,tokenize:C5};function N5(t,e,n){const r=this;return a;function a(u){return t.enter("codeIndented"),Ie(t,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):pe(u)?t.attempt(_5,s,l)(u):(t.enter("codeFlowValue"),o(u))}function o(u){return u===null||pe(u)?(t.exit("codeFlowValue"),s(u)):(t.consume(u),o)}function l(u){return t.exit("codeIndented"),e(u)}}function C5(t,e,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):pe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a):Ie(t,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):pe(s)?a(s):n(s)}}const w5={name:"codeText",previous:R5,resolve:I5,tokenize:O5};function I5(t){let e=t.length-4,n=3,r,a;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)a===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(a=r):(r===e||t[r][1].type==="lineEnding")&&(t[a][1].type="codeTextData",r!==a+2&&(t[a][1].end=t[r-1][1].end,t.splice(a+2,r-a-2),e-=r-a-2,r=a+2),a=void 0);return t}function R5(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function O5(t,e,n){let r=0,a,i;return s;function s(d){return t.enter("codeText"),t.enter("codeTextSequence"),o(d)}function o(d){return d===96?(t.consume(d),r++,o):(t.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(t.enter("space"),t.consume(d),t.exit("space"),l):d===96?(i=t.enter("codeTextSequence"),a=0,c(d)):pe(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||pe(d)?(t.exit("codeTextData"),l(d)):(t.consume(d),u)}function c(d){return d===96?(t.consume(d),a++,c):a===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(d)):(i.type="codeTextData",u(d))}}class L5{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const a=n||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&di(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),di(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),di(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);di(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);di(this.left,n.reverse())}}}function di(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function pI(t){const e={};let n=-1,r,a,i,s,o,l,u;const c=new L5(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,D5(c,n)),n=e[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(r),c.splice(a,n-a+1,o))}}return Qt(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function D5(t,e){const n=t.get(e)[1],r=t.get(e)[2];let a=e-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,d,p=-1,f=n,h=0,g=0;const b=[g];for(;f;){for(;t.get(++a)[1]!==f;);i.push(a),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(g=p+1,b.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):b.pop(),p=b.length;p--;){const y=o.slice(b[p],b[p+1]),T=i.pop();l.push([T,T+y.length-1]),t.splice(T,2,y)}for(l.reverse(),p=-1;++p<l.length;)u[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return u}const M5={resolve:F5,tokenize:B5},P5={partial:!0,tokenize:U5};function F5(t){return pI(t),t}function B5(t,e){let n;return r;function r(o){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):pe(o)?t.check(P5,s,i)(o):(t.consume(o),a)}function i(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function s(o){return t.consume(o),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function U5(t,e,n){const r=this;return a;function a(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Ie(t,i,"linePrefix")}function i(s){if(s===null||pe(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):t.interrupt(r.parser.constructs.flow,n,e)(s)}}function fI(t,e,n,r,a,i,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(t.enter(r),t.enter(a),t.enter(i),t.consume(y),t.exit(i),p):y===null||y===32||y===41||Io(y)?n(y):(t.enter(r),t.enter(s),t.enter(o),t.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(t.enter(i),t.consume(y),t.exit(i),t.exit(a),t.exit(r),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(t.exit("chunkString"),t.exit(o),p(y)):y===null||y===60||pe(y)?n(y):(t.consume(y),y===92?h:f)}function h(y){return y===60||y===62||y===92?(t.consume(y),f):f(y)}function g(y){return!c&&(y===null||y===41||ze(y))?(t.exit("chunkString"),t.exit(o),t.exit(s),t.exit(r),e(y)):c<u&&y===40?(t.consume(y),c++,g):y===41?(t.consume(y),c--,g):y===null||y===32||y===40||Io(y)?n(y):(t.consume(y),y===92?b:g)}function b(y){return y===40||y===41||y===92?(t.consume(y),g):g(y)}}function hI(t,e,n,r,a,i){const s=this;let o=0,l;return u;function u(f){return t.enter(r),t.enter(a),t.consume(f),t.exit(a),t.enter(i),c}function c(f){return o>999||f===null||f===91||f===93&&!l||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(t.exit(i),t.enter(a),t.consume(f),t.exit(a),t.exit(r),e):pe(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||pe(f)||o++>999?(t.exit("chunkString"),c(f)):(t.consume(f),l||(l=!Ne(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(t.consume(f),o++,d):d(f)}}function mI(t,e,n,r,a,i){let s;return o;function o(p){return p===34||p===39||p===40?(t.enter(r),t.enter(a),t.consume(p),t.exit(a),s=p===40?41:p,l):n(p)}function l(p){return p===s?(t.enter(a),t.consume(p),t.exit(a),t.exit(r),e):(t.enter(i),u(p))}function u(p){return p===s?(t.exit(i),l(s)):p===null?n(p):pe(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Ie(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||pe(p)?(t.exit("chunkString"),u(p)):(t.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(t.consume(p),c):c(p)}}function Li(t,e){let n;return r;function r(a){return pe(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n=!0,r):Ne(a)?Ie(t,r,n?"linePrefix":"lineSuffix")(a):e(a)}}const j5={name:"definition",tokenize:$5},H5={partial:!0,tokenize:z5};function $5(t,e,n){const r=this;let a;return i;function i(f){return t.enter("definition"),s(f)}function s(f){return hI.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return a=En(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),l):n(f)}function l(f){return ze(f)?Li(t,u)(f):u(f)}function u(f){return fI(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return t.attempt(H5,d,d)(f)}function d(f){return Ne(f)?Ie(t,p,"whitespace")(f):p(f)}function p(f){return f===null||pe(f)?(t.exit("definition"),r.parser.defined.push(a),e(f)):n(f)}}function z5(t,e,n){return r;function r(o){return ze(o)?Li(t,a)(o):n(o)}function a(o){return mI(t,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return Ne(o)?Ie(t,s,"whitespace")(o):s(o)}function s(o){return o===null||pe(o)?e(o):n(o)}}const q5={name:"hardBreakEscape",tokenize:G5};function G5(t,e,n){return r;function r(i){return t.enter("hardBreakEscape"),t.consume(i),a}function a(i){return pe(i)?(t.exit("hardBreakEscape"),e(i)):n(i)}}const W5={name:"headingAtx",resolve:V5,tokenize:Y5};function V5(t,e){let n=t.length-2,r=3,a,i;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},i={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Qt(t,r,n-r+1,[["enter",a,e],["enter",i,e],["exit",i,e],["exit",a,e]])),t}function Y5(t,e,n){let r=0;return a;function a(c){return t.enter("atxHeading"),i(c)}function i(c){return t.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(t.consume(c),s):c===null||ze(c)?(t.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||pe(c)?(t.exit("atxHeading"),e(c)):Ne(c)?Ie(t,o,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||ze(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),u)}}const K5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],v1=["pre","script","style","textarea"],X5={concrete:!0,name:"htmlFlow",resolveTo:J5,tokenize:eU},Z5={partial:!0,tokenize:nU},Q5={partial:!0,tokenize:tU};function J5(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function eU(t,e,n){const r=this;let a,i,s,o,l;return u;function u(R){return c(R)}function c(R){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(R),d}function d(R){return R===33?(t.consume(R),p):R===47?(t.consume(R),i=!0,g):R===63?(t.consume(R),a=3,r.interrupt?e:w):Lt(R)?(t.consume(R),s=String.fromCharCode(R),b):n(R)}function p(R){return R===45?(t.consume(R),a=2,f):R===91?(t.consume(R),a=5,o=0,h):Lt(R)?(t.consume(R),a=4,r.interrupt?e:w):n(R)}function f(R){return R===45?(t.consume(R),r.interrupt?e:w):n(R)}function h(R){const ne="CDATA[";return R===ne.charCodeAt(o++)?(t.consume(R),o===ne.length?r.interrupt?e:P:h):n(R)}function g(R){return Lt(R)?(t.consume(R),s=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||ze(R)){const ne=R===47,ie=s.toLowerCase();return!ne&&!i&&v1.includes(ie)?(a=1,r.interrupt?e(R):P(R)):K5.includes(s.toLowerCase())?(a=6,ne?(t.consume(R),y):r.interrupt?e(R):P(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?T(R):x(R))}return R===45||kt(R)?(t.consume(R),s+=String.fromCharCode(R),b):n(R)}function y(R){return R===62?(t.consume(R),r.interrupt?e:P):n(R)}function T(R){return Ne(R)?(t.consume(R),T):C(R)}function x(R){return R===47?(t.consume(R),C):R===58||R===95||Lt(R)?(t.consume(R),k):Ne(R)?(t.consume(R),x):C(R)}function k(R){return R===45||R===46||R===58||R===95||kt(R)?(t.consume(R),k):A(R)}function A(R){return R===61?(t.consume(R),S):Ne(R)?(t.consume(R),A):x(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(t.consume(R),l=R,v):Ne(R)?(t.consume(R),S):N(R)}function v(R){return R===l?(t.consume(R),l=null,_):R===null||pe(R)?n(R):(t.consume(R),v)}function N(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||ze(R)?A(R):(t.consume(R),N)}function _(R){return R===47||R===62||Ne(R)?x(R):n(R)}function C(R){return R===62?(t.consume(R),L):n(R)}function L(R){return R===null||pe(R)?P(R):Ne(R)?(t.consume(R),L):n(R)}function P(R){return R===45&&a===2?(t.consume(R),H):R===60&&a===1?(t.consume(R),j):R===62&&a===4?(t.consume(R),V):R===63&&a===3?(t.consume(R),w):R===93&&a===5?(t.consume(R),Y):pe(R)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(Z5,ee,$)(R)):R===null||pe(R)?(t.exit("htmlFlowData"),$(R)):(t.consume(R),P)}function $(R){return t.check(Q5,F,ee)(R)}function F(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),M}function M(R){return R===null||pe(R)?$(R):(t.enter("htmlFlowData"),P(R))}function H(R){return R===45?(t.consume(R),w):P(R)}function j(R){return R===47?(t.consume(R),s="",B):P(R)}function B(R){if(R===62){const ne=s.toLowerCase();return v1.includes(ne)?(t.consume(R),V):P(R)}return Lt(R)&&s.length<8?(t.consume(R),s+=String.fromCharCode(R),B):P(R)}function Y(R){return R===93?(t.consume(R),w):P(R)}function w(R){return R===62?(t.consume(R),V):R===45&&a===2?(t.consume(R),w):P(R)}function V(R){return R===null||pe(R)?(t.exit("htmlFlowData"),ee(R)):(t.consume(R),V)}function ee(R){return t.exit("htmlFlow"),e(R)}}function tU(t,e,n){const r=this;return a;function a(s){return pe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}function nU(t,e,n){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(Ts,e,n)}}const rU={name:"htmlText",tokenize:aU};function aU(t,e,n){const r=this;let a,i,s;return o;function o(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),l}function l(w){return w===33?(t.consume(w),u):w===47?(t.consume(w),A):w===63?(t.consume(w),x):Lt(w)?(t.consume(w),N):n(w)}function u(w){return w===45?(t.consume(w),c):w===91?(t.consume(w),i=0,h):Lt(w)?(t.consume(w),T):n(w)}function c(w){return w===45?(t.consume(w),f):n(w)}function d(w){return w===null?n(w):w===45?(t.consume(w),p):pe(w)?(s=d,j(w)):(t.consume(w),d)}function p(w){return w===45?(t.consume(w),f):d(w)}function f(w){return w===62?H(w):w===45?p(w):d(w)}function h(w){const V="CDATA[";return w===V.charCodeAt(i++)?(t.consume(w),i===V.length?g:h):n(w)}function g(w){return w===null?n(w):w===93?(t.consume(w),b):pe(w)?(s=g,j(w)):(t.consume(w),g)}function b(w){return w===93?(t.consume(w),y):g(w)}function y(w){return w===62?H(w):w===93?(t.consume(w),y):g(w)}function T(w){return w===null||w===62?H(w):pe(w)?(s=T,j(w)):(t.consume(w),T)}function x(w){return w===null?n(w):w===63?(t.consume(w),k):pe(w)?(s=x,j(w)):(t.consume(w),x)}function k(w){return w===62?H(w):x(w)}function A(w){return Lt(w)?(t.consume(w),S):n(w)}function S(w){return w===45||kt(w)?(t.consume(w),S):v(w)}function v(w){return pe(w)?(s=v,j(w)):Ne(w)?(t.consume(w),v):H(w)}function N(w){return w===45||kt(w)?(t.consume(w),N):w===47||w===62||ze(w)?_(w):n(w)}function _(w){return w===47?(t.consume(w),H):w===58||w===95||Lt(w)?(t.consume(w),C):pe(w)?(s=_,j(w)):Ne(w)?(t.consume(w),_):H(w)}function C(w){return w===45||w===46||w===58||w===95||kt(w)?(t.consume(w),C):L(w)}function L(w){return w===61?(t.consume(w),P):pe(w)?(s=L,j(w)):Ne(w)?(t.consume(w),L):_(w)}function P(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(t.consume(w),a=w,$):pe(w)?(s=P,j(w)):Ne(w)?(t.consume(w),P):(t.consume(w),F)}function $(w){return w===a?(t.consume(w),a=void 0,M):w===null?n(w):pe(w)?(s=$,j(w)):(t.consume(w),$)}function F(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ze(w)?_(w):(t.consume(w),F)}function M(w){return w===47||w===62||ze(w)?_(w):n(w)}function H(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),e):n(w)}function j(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),B}function B(w){return Ne(w)?Ie(t,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):Y(w)}function Y(w){return t.enter("htmlTextData"),s(w)}}const E0={name:"labelEnd",resolveAll:lU,resolveTo:uU,tokenize:cU},iU={tokenize:dU},sU={tokenize:pU},oU={tokenize:fU};function lU(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",e+=a}}return t.length!==n.length&&Qt(t,0,t.length,n),t}function uU(t,e){let n=t.length,r=0,a,i,s,o;for(;n--;)if(a=t[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;t[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(t[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:t[i][1].type==="labelLink"?"link":"image",start:{...t[i][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[i][1].start},end:{...t[s][1].end}},c={type:"labelText",start:{...t[i+r+2][1].end},end:{...t[s-2][1].start}};return o=[["enter",l,e],["enter",u,e]],o=ln(o,t.slice(i+1,i+r+3)),o=ln(o,[["enter",c,e]]),o=ln(o,Ul(e.parser.constructs.insideSpan.null,t.slice(i+r+4,s-3),e)),o=ln(o,[["exit",c,e],t[s-2],t[s-1],["exit",u,e]]),o=ln(o,t.slice(s+1)),o=ln(o,[["exit",l,e]]),Qt(t,i,t.length,o),t}function cU(t,e,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(p){return i?i._inactive?d(p):(s=r.parser.defined.includes(En(r.sliceSerialize({start:i.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),l):n(p)}function l(p){return p===40?t.attempt(iU,c,s?c:d)(p):p===91?t.attempt(sU,c,s?u:d)(p):s?c(p):d(p)}function u(p){return t.attempt(oU,c,d)(p)}function c(p){return e(p)}function d(p){return i._balanced=!0,n(p)}}function dU(t,e,n){return r;function r(d){return t.enter("resource"),t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),a}function a(d){return ze(d)?Li(t,i)(d):i(d)}function i(d){return d===41?c(d):fI(t,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return ze(d)?Li(t,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?mI(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return ze(d)?Li(t,c)(d):c(d)}function c(d){return d===41?(t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),t.exit("resource"),e):n(d)}}function pU(t,e,n){const r=this;return a;function a(o){return hI.call(r,t,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(En(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(o):n(o)}function s(o){return n(o)}}function fU(t,e,n){return r;function r(i){return t.enter("reference"),t.enter("referenceMarker"),t.consume(i),t.exit("referenceMarker"),a}function a(i){return i===93?(t.enter("referenceMarker"),t.consume(i),t.exit("referenceMarker"),t.exit("reference"),e):n(i)}}const hU={name:"labelStartImage",resolveAll:E0.resolveAll,tokenize:mU};function mU(t,e,n){const r=this;return a;function a(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),i}function i(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const gU={name:"labelStartLink",resolveAll:E0.resolveAll,tokenize:bU};function bU(t,e,n){const r=this;return a;function a(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}const Ou={name:"lineEnding",tokenize:EU};function EU(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Ie(t,e,"linePrefix")}}const ro={name:"thematicBreak",tokenize:yU};function yU(t,e,n){let r=0,a;return i;function i(u){return t.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||pe(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===a?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),Ne(u)?Ie(t,o,"whitespace")(u):o(u))}}const Ht={continuation:{tokenize:kU},exit:AU,name:"list",tokenize:xU},TU={partial:!0,tokenize:_U},SU={partial:!0,tokenize:vU};function xU(t,e,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(f){const h=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:wg(f)){if(r.containerState.type||(r.containerState.type=h,t.enter(h,{_container:!0})),h==="listUnordered")return t.enter("listItemPrefix"),f===42||f===45?t.check(ro,n,u)(f):u(f);if(!r.interrupt||f===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(f)}return n(f)}function l(f){return wg(f)&&++s<10?(t.consume(f),l):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(t.exit("listItemValue"),u(f)):n(f)}function u(f){return t.enter("listItemMarker"),t.consume(f),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,t.check(Ts,r.interrupt?n:c,t.attempt(TU,p,d))}function c(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function d(f){return Ne(f)?(t.enter("listItemPrefixWhitespace"),t.consume(f),t.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(f)}}function kU(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Ts,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ie(t,e,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!Ne(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(SU,e,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ie(t,t.attempt(Ht,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function vU(t,e,n){const r=this;return Ie(t,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?e(i):n(i)}}function AU(t){t.exit(this.containerState.type)}function _U(t,e,n){const r=this;return Ie(t,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!Ne(i)&&s&&s[1].type==="listItemPrefixWhitespace"?e(i):n(i)}}const A1={name:"setextUnderline",resolveTo:NU,tokenize:CU};function NU(t,e){let n=t.length,r,a,i;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(a=n)}else t[n][1].type==="content"&&t.splice(n,1),!i&&t[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[a][1].type="setextHeadingText",i?(t.splice(a,0,["enter",s,e]),t.splice(i+1,0,["exit",t[r][1],e]),t[r][1].end={...t[i][1].end}):t[r][1]=s,t.push(["exit",s,e]),t}function CU(t,e,n){const r=this;let a;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(t.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return t.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(t.consume(u),o):(t.exit("setextHeadingLineSequence"),Ne(u)?Ie(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||pe(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const wU={tokenize:IU};function IU(t){const e=this,n=t.attempt(Ts,r,t.attempt(this.parser.constructs.flowInitial,a,Ie(t,t.attempt(this.parser.constructs.flow,a,t.attempt(M5,a)),"linePrefix")));return n;function r(i){if(i===null){t.consume(i);return}return t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function a(i){if(i===null){t.consume(i);return}return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const RU={resolveAll:bI()},OU=gI("string"),LU=gI("text");function gI(t){return{resolveAll:bI(t==="text"?DU:void 0),tokenize:e};function e(n){const r=this,a=this.parser.constructs[t],i=n.attempt(a,s,o);return s;function s(c){return u(c)?i(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function bI(t){return e;function e(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return t?t(n,r):n}}function DU(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],a=e.sliceStream(r);let i=a.length,s=-1,o=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){i++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(o=0),o){const u={type:n===t.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}const MU={42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:uI},PU={91:j5},FU={[-2]:Ru,[-1]:Ru,32:Ru},BU={35:W5,42:ro,45:[A1,ro],60:X5,61:A1,95:ro,96:k1,126:k1},UU={38:dI,92:cI},jU={[-5]:Ou,[-4]:Ou,[-3]:Ou,33:hU,38:dI,42:Ig,60:[g5,rU],91:gU,92:[q5,cI],93:E0,95:Ig,96:w5},HU={null:[Ig,RU]},$U={null:[42,95]},zU={null:[]},qU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$U,contentInitial:PU,disable:zU,document:MU,flow:BU,flowInitial:FU,insideSpan:HU,string:UU,text:jU},Symbol.toStringTag,{value:"Module"}));function GU(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let s=[],o=[];const l={attempt:v(A),check:v(S),consume:T,enter:x,exit:k,interrupt:v(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:h,parser:t,previous:null,sliceSerialize:p,sliceStream:f,write:d};let c=e.tokenize.call(u,l);return e.resolveAll&&i.push(e),u;function d(L){return s=ln(s,L),b(),s[s.length-1]!==null?[]:(N(e,0),u.events=Ul(i,u.events,u),u.events)}function p(L,P){return VU(f(L),P)}function f(L){return WU(s,L)}function h(){const{_bufferIndex:L,_index:P,line:$,column:F,offset:M}=r;return{_bufferIndex:L,_index:P,line:$,column:F,offset:M}}function g(L){a[L.line]=L.column,C()}function b(){let L;for(;r._index<s.length;){const P=s[r._index];if(typeof P=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(L){c=c(L)}function T(L){pe(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,C()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=L}function x(L,P){const $=P||{};return $.type=L,$.start=h(),u.events.push(["enter",$,u]),o.push($),$}function k(L){const P=o.pop();return P.end=h(),u.events.push(["exit",P,u]),P}function A(L,P){N(L,P.from)}function S(L,P){P.restore()}function v(L,P){return $;function $(F,M,H){let j,B,Y,w;return Array.isArray(F)?ee(F):"tokenize"in F?ee([F]):V(F);function V(re){return me;function me(Te){const De=Te!==null&&re[Te],he=Te!==null&&re.null,we=[...Array.isArray(De)?De:De?[De]:[],...Array.isArray(he)?he:he?[he]:[]];return ee(we)(Te)}}function ee(re){return j=re,B=0,re.length===0?H:R(re[B])}function R(re){return me;function me(Te){return w=_(),Y=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?ie():re.tokenize.call(P?Object.assign(Object.create(u),P):u,l,ne,ie)(Te)}}function ne(re){return L(Y,w),M}function ie(re){return w.restore(),++B<j.length?R(j[B]):H}}}function N(L,P){L.resolveAll&&!i.includes(L)&&i.push(L),L.resolve&&Qt(u.events,P,u.events.length-P,L.resolve(u.events.slice(P),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function _(){const L=h(),P=u.previous,$=u.currentConstruct,F=u.events.length,M=Array.from(o);return{from:F,restore:H};function H(){r=L,u.previous=P,u.currentConstruct=$,u.events.length=F,o=M,C()}}function C(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function WU(t,e){const n=e.start._index,r=e.start._bufferIndex,a=e.end._index,i=e.end._bufferIndex;let s;if(n===a)s=[t[n].slice(r,i)];else{if(s=t.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(t[a].slice(0,i))}return s}function VU(t,e){let n=-1;const r=[];let a;for(;++n<t.length;){const i=t[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
159
|
+
`;break}case-3:{s=`\r
|
|
160
|
+
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}function YU(t){const r={constructs:oI([qU,...(t||{}).extensions||[]]),content:a(u5),defined:[],document:a(d5),flow:a(wU),lazy:{},string:a(OU),text:a(LU)};return r;function a(i){return s;function s(o){return GU(r,i,o)}}}function KU(t){for(;!pI(t););return t}const _1=/[\0\t\n\r]/g;function XU(){let t=1,e="",n=!0,r;return a;function a(i,s,o){const l=[];let u,c,d,p,f;for(i=e+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,e="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(_1.lastIndex=d,u=_1.exec(i),p=u&&u.index!==void 0?u.index:i.length,f=i.charCodeAt(p),!u){e=i.slice(d);break}if(f===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(i.slice(d,p)),t+=p-d),f){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}d=p+1}return o&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}const ZU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function QU(t){return t.replace(ZU,JU)}function JU(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return lI(n.slice(i?2:1),i?16:10)}return b0(n)||t}const EI={}.hasOwnProperty;function e8(t,e,n){return e&&typeof e=="object"&&(n=e,e=void 0),t8(n)(KU(YU(n).document().write(XU()(t,e,!0))))}function t8(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ze),autolinkProtocol:_,autolinkEmail:_,atxHeading:i(je),blockQuote:i(he),characterEscape:_,characterReference:_,codeFenced:i(we),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(we,s),codeText:i(de,s),codeTextData:_,data:_,codeFlowValue:_,definition:i(ce),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(ve),hardBreakEscape:i(Re),hardBreakTrailing:i(Re),htmlFlow:i(Ye,s),htmlFlowData:_,htmlText:i(Ye,s),htmlTextData:_,image:i(He),label:s,link:i(Ze),listItem:i(Ae),listItemValue:p,listOrdered:i(oe,d),listUnordered:i(oe),paragraph:i(Oe),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(je),strong:i(yt),thematicBreak:i(ft)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:De,autolinkProtocol:Te,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:re,characterReference:me,codeFenced:l(b),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:C,codeIndented:l(y),codeText:l(M),codeTextData:C,data:C,definition:l(),definitionDestinationString:k,definitionLabelString:T,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l($),htmlFlowData:C,htmlText:l(F),htmlTextData:C,image:l(j),label:Y,labelText:B,lineEnding:L,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ne,resourceDestinationString:w,resourceTitleString:V,resource:ee,setextHeading:l(N),setextHeadingLineSequence:v,setextHeadingText:S,strong:l(),thematicBreak:l()}};yI(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(G){let Z={type:"root",children:[]};const se={stack:[Z],tokenStack:[],config:e,enter:o,exit:u,buffer:s,resume:c,data:n},be=[];let Me=-1;for(;++Me<G.length;)if(G[Me][1].type==="listOrdered"||G[Me][1].type==="listUnordered")if(G[Me][0]==="enter")be.push(Me);else{const Ct=be.pop();Me=a(G,Ct,Me)}for(Me=-1;++Me<G.length;){const Ct=e[G[Me][0]];EI.call(Ct,G[Me][1].type)&&Ct[G[Me][1].type].call(Object.assign({sliceSerialize:G[Me][2].sliceSerialize},se),G[Me][1])}if(se.tokenStack.length>0){const Ct=se.tokenStack[se.tokenStack.length-1];(Ct[1]||N1).call(se,void 0,Ct[0])}for(Z.position={start:ir(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:ir(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<e.transforms.length;)Z=e.transforms[Me](Z)||Z;return Z}function a(G,Z,se){let be=Z-1,Me=-1,Ct=!1,wt,It,Yt,Rt;for(;++be<=se;){const Tt=G[be];switch(Tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tt[0]==="enter"?Me++:Me--,Rt=void 0;break}case"lineEndingBlank":{Tt[0]==="enter"&&(wt&&!Rt&&!Me&&!Yt&&(Yt=be),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!Me&&Tt[0]==="enter"&&Tt[1].type==="listItemPrefix"||Me===-1&&Tt[0]==="exit"&&(Tt[1].type==="listUnordered"||Tt[1].type==="listOrdered")){if(wt){let tn=be;for(It=void 0;tn--;){const Ut=G[tn];if(Ut[1].type==="lineEnding"||Ut[1].type==="lineEndingBlank"){if(Ut[0]==="exit")continue;It&&(G[It][1].type="lineEndingBlank",Ct=!0),Ut[1].type="lineEnding",It=tn}else if(!(Ut[1].type==="linePrefix"||Ut[1].type==="blockQuotePrefix"||Ut[1].type==="blockQuotePrefixWhitespace"||Ut[1].type==="blockQuoteMarker"||Ut[1].type==="listItemIndent"))break}Yt&&(!It||Yt<It)&&(wt._spread=!0),wt.end=Object.assign({},It?G[It][1].start:Tt[1].end),G.splice(It||be,0,["exit",wt,Tt[2]]),be++,se++}if(Tt[1].type==="listItemPrefix"){const tn={type:"listItem",_spread:!1,start:Object.assign({},Tt[1].start),end:void 0};wt=tn,G.splice(be,0,["enter",tn,Tt[2]]),be++,se++,Yt=void 0,Rt=!0}}}return G[Z][1]._spread=Ct,se}function i(G,Z){return se;function se(be){o.call(this,G(be),be),Z&&Z.call(this,be)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(G,Z,se){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([Z,se||void 0]),G.position={start:ir(Z.start),end:void 0}}function l(G){return Z;function Z(se){G&&G.call(this,se),u.call(this,se)}}function u(G,Z){const se=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==G.type&&(Z?Z.call(this,G,be[0]):(be[1]||N1).call(this,G,be[0]));else throw new Error("Cannot close `"+G.type+"` ("+Oi({start:G.start,end:G.end})+"): it’s not open");se.position.end=ir(G.end)}function c(){return g0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(G){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function f(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=G}function h(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=G}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.value=G.replace(/(\r?\n|\r)$/g,"")}function T(G){const Z=this.resume(),se=this.stack[this.stack.length-1];se.label=Z,se.identifier=En(this.sliceSerialize(G)).toLowerCase()}function x(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.title=G}function k(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.url=G}function A(G){const Z=this.stack[this.stack.length-1];if(!Z.depth){const se=this.sliceSerialize(G).length;Z.depth=se}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function v(G){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function _(G){const se=this.stack[this.stack.length-1].children;let be=se[se.length-1];(!be||be.type!=="text")&&(be=en(),be.position={start:ir(G.start),end:void 0},se.push(be)),this.stack.push(be)}function C(G){const Z=this.stack.pop();Z.value+=this.sliceSerialize(G),Z.position.end=ir(G.end)}function L(G){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=Z.children[Z.children.length-1];se.position.end=ir(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(Z.type)&&(_.call(this,G),C.call(this,G))}function P(){this.data.atHardBreak=!0}function $(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.value=G}function F(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.value=G}function M(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.value=G}function H(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=Z,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function j(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=Z,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function B(G){const Z=this.sliceSerialize(G),se=this.stack[this.stack.length-2];se.label=QU(Z),se.identifier=En(Z).toLowerCase()}function Y(){const G=this.stack[this.stack.length-1],Z=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const be=G.children;se.children=be}else se.alt=Z}function w(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.url=G}function V(){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.title=G}function ee(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function ne(G){const Z=this.resume(),se=this.stack[this.stack.length-1];se.label=Z,se.identifier=En(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ie(G){this.data.characterReferenceType=G.type}function re(G){const Z=this.sliceSerialize(G),se=this.data.characterReferenceType;let be;se?(be=lI(Z,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=b0(Z);const Me=this.stack[this.stack.length-1];Me.value+=be}function me(G){const Z=this.stack.pop();Z.position.end=ir(G.end)}function Te(G){C.call(this,G);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(G)}function De(G){C.call(this,G);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(G)}function he(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function de(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ve(){return{type:"emphasis",children:[]}}function je(){return{type:"heading",depth:0,children:[]}}function Re(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function He(){return{type:"image",title:null,url:"",alt:null}}function Ze(){return{type:"link",title:null,url:"",children:[]}}function oe(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Ae(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Oe(){return{type:"paragraph",children:[]}}function yt(){return{type:"strong",children:[]}}function en(){return{type:"text",value:""}}function ft(){return{type:"thematicBreak"}}}function ir(t){return{line:t.line,column:t.column,offset:t.offset}}function yI(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?yI(t,r):n8(t,r)}}function n8(t,e){let n;for(n in e)if(EI.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function N1(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Oi({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Oi({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Oi({start:e.start,end:e.end})+") is still open")}function r8(t){const e=this;e.parser=n;function n(r){return e8(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function a8(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function i8(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
161
|
+
`}]}function s8(t,e){const n=e.value?e.value+`
|
|
162
|
+
`:"",r={},a=e.lang?e.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}function o8(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function l8(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function u8(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),a=Ja(r.toLowerCase()),i=t.footnoteOrder.indexOf(r);let s,o=t.footnoteCounts.get(r);o===void 0?(o=0,t.footnoteOrder.push(r),s=t.footnoteOrder.length):s=i+1,o+=1,t.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,u),t.applyData(e,u)}function c8(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function d8(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function TI(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const a=t.all(e),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function p8(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return TI(t,e);const a={src:Ja(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return t.patch(e,i),t.applyData(e,i)}function f8(t,e){const n={src:Ja(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function h8(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function m8(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return TI(t,e);const a={href:Ja(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function g8(t,e){const n={href:Ja(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function b8(t,e,n){const r=t.all(e),a=n?E8(n):SI(e),i={},s=[];if(typeof e.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
163
|
+
`}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
164
|
+
`});const u={type:"element",tagName:"li",properties:i,children:s};return t.patch(e,u),t.applyData(e,u)}function E8(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=SI(n[r])}return e}function SI(t){const e=t.spread;return e??t.children.length>1}function y8(t,e){const n={},r=t.all(e);let a=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,i),t.applyData(e,i)}function T8(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function S8(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function x8(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function k8(t,e){const n=t.all(e),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=Fn(e.children[1]),l=Fl(e.children[e.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:t.wrap(a,!0)};return t.patch(e,i),t.applyData(e,i)}function v8(t,e,n){const r=n?n.children:void 0,i=(r?r.indexOf(e):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:e.children.length;let l=-1;const u=[];for(;++l<o;){const d=e.children[l],p={},f=s?s[l]:void 0;f&&(p.align=f);let h={type:"element",tagName:i,properties:p,children:[]};d&&(h.children=t.all(d),t.patch(d,h),h=t.applyData(d,h)),u.push(h)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,c),t.applyData(e,c)}function A8(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const C1=9,w1=32;function _8(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),a=0;const i=[];for(;r;)i.push(I1(e.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(e);return i.push(I1(e.slice(a),a>0,!1)),i.join("")}function I1(t,e,n){let r=0,a=t.length;if(e){let i=t.codePointAt(r);for(;i===C1||i===w1;)r++,i=t.codePointAt(r)}if(n){let i=t.codePointAt(a-1);for(;i===C1||i===w1;)a--,i=t.codePointAt(a-1)}return a>r?t.slice(r,a):""}function N8(t,e){const n={type:"text",value:_8(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function C8(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const w8={blockquote:a8,break:i8,code:s8,delete:o8,emphasis:l8,footnoteReference:u8,heading:c8,html:d8,imageReference:p8,image:f8,inlineCode:h8,linkReference:m8,link:g8,listItem:b8,list:y8,paragraph:T8,root:S8,strong:x8,table:k8,tableCell:A8,tableRow:v8,text:N8,thematicBreak:C8,toml:js,yaml:js,definition:js,footnoteDefinition:js};function js(){}const xI=-1,jl=0,Di=1,Ro=2,y0=3,T0=4,S0=5,x0=6,kI=7,vI=8,R1=typeof self=="object"?self:globalThis,I8=(t,e)=>{const n=(a,i)=>(t.set(i,a),a),r=a=>{if(t.has(a))return t.get(a);const[i,s]=e[a];switch(i){case jl:case xI:return n(s,a);case Di:{const o=n([],a);for(const l of s)o.push(r(l));return o}case Ro:{const o=n({},a);for(const[l,u]of s)o[r(l)]=r(u);return o}case y0:return n(new Date(s),a);case T0:{const{source:o,flags:l}=s;return n(new RegExp(o,l),a)}case S0:{const o=n(new Map,a);for(const[l,u]of s)o.set(r(l),r(u));return o}case x0:{const o=n(new Set,a);for(const l of s)o.add(r(l));return o}case kI:{const{name:o,message:l}=s;return n(new R1[o](l),a)}case vI:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new R1[i](s),a)};return r},O1=t=>I8(new Map,t)(0),Sa="",{toString:R8}={},{keys:O8}=Object,pi=t=>{const e=typeof t;if(e!=="object"||!t)return[jl,e];const n=R8.call(t).slice(8,-1);switch(n){case"Array":return[Di,Sa];case"Object":return[Ro,Sa];case"Date":return[y0,Sa];case"RegExp":return[T0,Sa];case"Map":return[S0,Sa];case"Set":return[x0,Sa];case"DataView":return[Di,n]}return n.includes("Array")?[Di,n]:n.includes("Error")?[kI,n]:[Ro,n]},Hs=([t,e])=>t===jl&&(e==="function"||e==="symbol"),L8=(t,e,n,r)=>{const a=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},i=s=>{if(n.has(s))return n.get(s);let[o,l]=pi(s);switch(o){case jl:{let c=s;switch(l){case"bigint":o=vI,c=s.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([xI],s)}return a([o,c],s)}case Di:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),a([l,[...p]],s)}const c=[],d=a([o,c],s);for(const p of s)c.push(i(p));return d}case Ro:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(e&&"toJSON"in s)return i(s.toJSON());const c=[],d=a([o,c],s);for(const p of O8(s))(t||!Hs(pi(s[p])))&&c.push([i(p),i(s[p])]);return d}case y0:return a([o,s.toISOString()],s);case T0:{const{source:c,flags:d}=s;return a([o,{source:c,flags:d}],s)}case S0:{const c=[],d=a([o,c],s);for(const[p,f]of s)(t||!(Hs(pi(p))||Hs(pi(f))))&&c.push([i(p),i(f)]);return d}case x0:{const c=[],d=a([o,c],s);for(const p of s)(t||!Hs(pi(p)))&&c.push(i(p));return d}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return i},L1=(t,{json:e,lossy:n}={})=>{const r=[];return L8(!(e||n),!!e,new Map,r)(t),r},Ga=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?O1(L1(t,e)):structuredClone(t):(t,e)=>O1(L1(t,e));function D8(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function M8(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function P8(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||D8,r=t.options.footnoteBackLabel||M8,a=t.options.footnoteLabel||"Footnotes",i=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<t.footnoteOrder.length;){const u=t.footnoteById.get(t.footnoteOrder[l]);if(!u)continue;const c=t.all(u),d=String(u.identifier).toUpperCase(),p=Ja(d.toLowerCase());let f=0;const h=[],g=t.footnoteCounts.get(d);for(;g!==void 0&&++f<=g;){h.length>0&&h.push({type:"text",value:" "});let T=typeof n=="string"?n:n(l,f);typeof T=="string"&&(T={type:"text",value:T}),h.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const T=b.children[b.children.length-1];T&&T.type==="text"?T.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else c.push(...h);const y={type:"element",tagName:"li",properties:{id:e+"fn-"+p},children:t.wrap(c,!0)};t.patch(u,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ga(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
165
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:`
|
|
166
|
+
`}]}}const Hl=(function(t){if(t==null)return j8;if(typeof t=="function")return $l(t);if(typeof t=="object")return Array.isArray(t)?F8(t):B8(t);if(typeof t=="string")return U8(t);throw new Error("Expected function, string, or object as test")});function F8(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=Hl(t[n]);return $l(r);function r(...a){let i=-1;for(;++i<e.length;)if(e[i].apply(this,a))return!0;return!1}}function B8(t){const e=t;return $l(n);function n(r){const a=r;let i;for(i in t)if(a[i]!==e[i])return!1;return!0}}function U8(t){return $l(e);function e(n){return n&&n.type===t}}function $l(t){return e;function e(n,r,a){return!!(H8(n)&&t.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function j8(){return!0}function H8(t){return t!==null&&typeof t=="object"&&"type"in t}const AI=[],$8=!0,Rg=!1,z8="skip";function _I(t,e,n,r){let a;typeof e=="function"&&typeof n!="function"?(r=n,n=e):a=e;const i=Hl(a),s=r?-1:1;o(t,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=AI,h,g,b;if((!e||i(l,u,c[c.length-1]||void 0))&&(f=q8(n(l,c)),f[0]===Rg))return f;if("children"in l&&l.children){const y=l;if(y.children&&f[0]!==z8)for(g=(r?y.children.length:-1)+s,b=c.concat(y);g>-1&&g<y.children.length;){const T=y.children[g];if(h=o(T,g,b)(),h[0]===Rg)return h;g=typeof h[1]=="number"?h[1]:g+s}}return f}}}function q8(t){return Array.isArray(t)?t:typeof t=="number"?[$8,t]:t==null?AI:[t]}function zl(t,e,n,r){let a,i,s;typeof e=="function"&&typeof n!="function"?(i=void 0,s=e,a=n):(i=e,s=n,a=r),_I(t,i,o,a);function o(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const Og={}.hasOwnProperty,G8={};function W8(t,e){const n=e||G8,r=new Map,a=new Map,i=new Map,s={...w8,...n.handlers},o={all:u,applyData:Y8,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:n,patch:V8,wrap:X8};return zl(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:a,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),o;function l(c,d){const p=c.type,f=o.handlers[p];if(Og.call(o.handlers,p)&&f)return f(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:g,...b}=c,y=Ga(b);return y.children=o.all(c),y}return Ga(c)}return(o.options.unknownHandler||K8)(o,c,d)}function u(c){const d=[];if("children"in c){const p=c.children;let f=-1;for(;++f<p.length;){const h=o.one(p[f],c);if(h){if(f&&p[f-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=D1(h.value)),!Array.isArray(h)&&h.type==="element")){const g=h.children[0];g&&g.type==="text"&&(g.value=D1(g.value))}Array.isArray(h)?d.push(...h):d.push(h)}}}return d}}function V8(t,e){t.position&&(e.position=MB(t))}function Y8(t,e){let n=e;if(t&&t.data){const r=t.data.hName,a=t.data.hChildren,i=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,Ga(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function K8(t,e){const n=e.data||{},r="value"in e&&!(Og.call(n,"hProperties")||Og.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function X8(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
|
|
167
|
+
`});++r<t.length;)r&&n.push({type:"text",value:`
|
|
168
|
+
`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
|
|
169
|
+
`}),n}function D1(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function M1(t,e){const n=W8(t,e),r=n.one(t,void 0),a=P8(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
170
|
+
`},a),i}function Z8(t,e){return t&&"run"in t?async function(n,r){const a=M1(n,{file:r,...e});await t.run(a,r)}:function(n,r){return M1(n,{file:r,...t||e})}}function P1(t){if(t)throw t}var Lu,F1;function Q8(){if(F1)return Lu;F1=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},i=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var c=t.call(u,"constructor"),d=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!d)return!1;var p;for(p in u);return typeof p>"u"||t.call(u,p)},s=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return Lu=function l(){var u,c,d,p,f,h,g=arguments[0],b=1,y=arguments.length,T=!1;for(typeof g=="boolean"&&(T=g,g=arguments[1]||{},b=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});b<y;++b)if(u=arguments[b],u!=null)for(c in u)d=o(g,c),p=o(u,c),g!==p&&(T&&p&&(i(p)||(f=a(p)))?(f?(f=!1,h=d&&a(d)?d:[]):h=d&&i(d)?d:{},s(g,{name:c,newValue:l(T,h,p)})):typeof p<"u"&&s(g,{name:c,newValue:p}));return g},Lu}var J8=Q8();const Du=pb(J8);function Lg(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ej(){const t=[],e={run:n,use:r};return e;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const c=t[++i];let d=-1;if(l){s(l);return}for(;++d<a.length;)(u[d]===null||u[d]===void 0)&&(u[d]=a[d]);a=u,c?tj(c,o)(...u):s(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return t.push(a),e}}function tj(t,e){let n;return r;function r(...s){const o=t.length>s.length;let l;o&&s.push(a);try{l=t.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return a(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...o){n||(n=!0,e(s,...o))}function i(s){a(null,s)}}const An={basename:nj,dirname:rj,extname:aj,join:ij,sep:"/"};function nj(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Ss(t);let n=0,r=-1,a=t.length,i;if(e===void 0||e.length===0||e.length>t.length){for(;a--;)if(t.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let s=-1,o=e.length-1;for(;a--;)if(t.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(t.codePointAt(a)===e.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=t.length),t.slice(n,r)}function rj(t){if(Ss(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function aj(t){Ss(t);let e=t.length,n=-1,r=0,a=-1,i=0,s;for(;e--;){const o=t.codePointAt(e);if(o===47){if(s){r=e+1;break}continue}n<0&&(s=!0,n=e+1),o===46?a<0?a=e:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":t.slice(a,n)}function ij(...t){let e=-1,n;for(;++e<t.length;)Ss(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":sj(n)}function sj(t){Ss(t);const e=t.codePointAt(0)===47;let n=oj(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function oj(t,e){let n="",r=0,a=-1,i=0,s=-1,o,l;for(;++s<=t.length;){if(s<t.length)o=t.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(a+1,s):n=t.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function Ss(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const lj={cwd:uj};function uj(){return"/"}function Dg(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function cj(t){if(typeof t=="string")t=new URL(t);else if(!Dg(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return dj(t)}function dj(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(e)}const Mu=["history","path","basename","stem","extname","dirname"];class NI{constructor(e){let n;e?Dg(e)?n={path:e}:typeof e=="string"||pj(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":lj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Mu.length;){const i=Mu[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Mu.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?An.basename(this.path):void 0}set basename(e){Fu(e,"basename"),Pu(e,"basename"),this.path=An.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?An.dirname(this.path):void 0}set dirname(e){B1(this.basename,"dirname"),this.path=An.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?An.extname(this.path):void 0}set extname(e){if(Pu(e,"extname"),B1(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=An.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Dg(e)&&(e=cj(e)),Fu(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?An.basename(this.path,this.extname):void 0}set stem(e){Fu(e,"stem"),Pu(e,"stem"),this.path=An.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const a=this.message(e,n,r);throw a.fatal=!0,a}info(e,n,r){const a=this.message(e,n,r);return a.fatal=void 0,a}message(e,n,r){const a=new _t(e,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Pu(t,e){if(t&&t.includes(An.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+An.sep+"`")}function Fu(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function B1(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function pj(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const fj=(function(t){const r=this.constructor.prototype,a=r[t],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),hj={}.hasOwnProperty;class k0 extends fj{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ej()}copy(){const e=new k0;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Du(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(ju("data",this.frozen),this.namespace[e]=n,this):hj.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ju("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(e,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=$s(e),r=this.parser||this.Parser;return Bu("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),Bu("process",this.parser||this.Parser),Uu("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=$s(e),l=r.parse(o);r.run(l,o,function(c,d,p){if(c||!d||!p)return u(c);const f=d,h=r.stringify(f,p);bj(h)?p.value=h:p.result=h,u(c,p)});function u(c,d){c||!d?s(c):i?i(d):n(void 0,d)}}}processSync(e){let n=!1,r;return this.freeze(),Bu("processSync",this.parser||this.Parser),Uu("processSync",this.compiler||this.Compiler),this.process(e,a),j1("processSync","process",n),r;function a(i,s){n=!0,P1(i),r=s}}run(e,n,r){U1(e),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const l=$s(n);a.run(e,l,u);function u(c,d,p){const f=d||e;c?o(c):s?s(f):r(void 0,f,p)}}}runSync(e,n){let r=!1,a;return this.run(e,n,i),j1("runSync","run",r),a;function i(s,o){P1(s),a=o,r=!0}}stringify(e,n){this.freeze();const r=$s(n),a=this.compiler||this.Compiler;return Uu("stringify",a),U1(e),a(e,r)}use(e,...n){const r=this.attachers,a=this.namespace;if(ju("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?o(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(a.settings=Du(!0,a.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];i(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===u){p=d;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[f,...h]=c;const g=r[p][1];Lg(g)&&Lg(f)&&(f=Du(!0,g,f)),r[p]=[u,f,...h]}}}}const mj=new k0().freeze();function Bu(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Uu(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ju(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function U1(t){if(!Lg(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function j1(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function $s(t){return gj(t)?t:new NI(t)}function gj(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function bj(t){return typeof t=="string"||Ej(t)}function Ej(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const yj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",H1=[],$1={allowDangerousHtml:!0},Tj=/^(https?|ircs?|mailto|xmpp)$/i,Sj=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function CI(t){const e=xj(t),n=kj(t);return vj(e.runSync(e.parse(n),n),t)}function xj(t){const e=t.rehypePlugins||H1,n=t.remarkPlugins||H1,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...$1}:$1;return mj().use(r8).use(n).use(Z8,r).use(e)}function kj(t){const e=t.children||"",n=new NI;return typeof e=="string"&&(n.value=e),n}function vj(t,e){const n=e.allowedElements,r=e.allowElement,a=e.components,i=e.disallowedElements,s=e.skipHtml,o=e.unwrapDisallowed,l=e.urlTransform||Aj;for(const c of Sj)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+yj+c.id,void 0);return zl(t,u),jB(t,{Fragment:m.Fragment,components:a,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function u(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return s?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in Iu)if(Object.hasOwn(Iu,f)&&Object.hasOwn(c.properties,f)){const h=c.properties[f],g=Iu[f];(g===null||g.includes(c.tagName))&&(c.properties[f]=l(String(h||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(c,d,p)),f&&p&&typeof d=="number")return o&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function Aj(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),a=t.indexOf("/");return e===-1||a!==-1&&e>a||n!==-1&&e>n||r!==-1&&e>r||Tj.test(t.slice(0,e))?t:""}const z1=/[#.]/g;function _j(t,e){const n=t||"",r={};let a=0,i,s;for(;a<n.length;){z1.lastIndex=a;const o=z1.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||e||"div",properties:r,children:[]}}function wI(t,e,n){const r=n?Ij(n):void 0;function a(i,s,...o){let l;if(i==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=_j(i,e);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,Nj(s))o.unshift(s);else for(const[d,p]of Object.entries(s))Cj(t,l.properties,d,p)}for(const u of o)Mg(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function Nj(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;if(typeof t.type!="string")return!1;const e=t,n=Object.keys(t);for(const r of n){const a=e[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in t&&Array.isArray(t.children))}function Cj(t,e,n,r){const a=Pl(t,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=c1(r):a.commaSeparated?i=i1(r):a.commaOrSpaceSeparated?i=c1(i1(r).join(" ")):i=q1(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?wj(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(q1(a,a.property,o));i=s}a.property==="className"&&Array.isArray(e.className)&&(i=e.className.concat(i)),e[a.property]=i}}function Mg(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)Mg(t,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?Mg(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function q1(t,e,n){if(typeof n=="string"){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(n===""||ts(n)===ts(e)))return!0}return n}function wj(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}function Ij(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}const Rj=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Oj=wI(ys,"div"),Lj=wI(Lr,"g",Rj);function Dj(t){const e=String(t),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=e.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=G1(e,n[s-1]);o=l===-1?e.length+1:l+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=G1(e,o),u=l===-1?e.length+1:l+1;if(o===u)break;n.push(u)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function G1(t,e){const n=t.indexOf("\r",e),r=t.indexOf(`
|
|
171
|
+
`,e);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const zr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},II={}.hasOwnProperty,Mj=Object.prototype;function Pj(t,e){const n=e||{};return v0({file:n.file||void 0,location:!1,schema:n.space==="svg"?Lr:ys,verbose:n.verbose||!1},t)}function v0(t,e){let n;switch(e.nodeName){case"#comment":{const r=e;return n={type:"comment",value:r.data},ao(t,r,n),n}case"#document":case"#document-fragment":{const r=e,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:RI(t,e.childNodes),data:{quirksMode:a}},t.file&&t.location){const i=String(t.file),s=Dj(i),o=s.toPoint(0),l=s.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=e;return n={type:"doctype"},ao(t,r,n),n}case"#text":{const r=e;return n={type:"text",value:r.value},ao(t,r,n),n}default:return n=Fj(t,e),n}}function RI(t,e){let n=-1;const r=[];for(;++n<e.length;){const a=v0(t,e[n]);r.push(a)}return r}function Fj(t,e){const n=t.schema;t.schema=e.namespaceURI===zr.svg?Lr:ys;let r=-1;const a={};for(;++r<e.attrs.length;){const o=e.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;II.call(Mj,l)||(a[l]=o.value)}const s=(t.schema.space==="svg"?Lj:Oj)(e.tagName,a,RI(t,e.childNodes));if(ao(t,e,s),s.tagName==="template"){const o=e,l=o.sourceCodeLocation,u=l&&l.startTag&&Ia(l.startTag),c=l&&l.endTag&&Ia(l.endTag),d=v0(t,o.content);u&&c&&t.file&&(d.position={start:u.end,end:c.start}),s.content=d}return t.schema=n,s}function ao(t,e,n){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){const r=Bj(t,n,e.sourceCodeLocation);r&&(t.location=!0,n.position=r)}}function Bj(t,e,n){const r=Ia(n);if(e.type==="element"){const a=e.children[e.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),t.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)II.call(n.attrs,s)&&(i[Pl(t.schema,s).property]=Ia(n.attrs[s]));n.startTag;const o=Ia(n.startTag),l=n.endTag?Ia(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=i,e.data={position:u}}}return r}function Ia(t){const e=W1({line:t.startLine,column:t.startCol,offset:t.startOffset}),n=W1({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||n?{start:e,end:n}:void 0}function W1(t){return t.line&&t.column?t:void 0}const V1={}.hasOwnProperty;function OI(t,e){const n=e||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&V1.call(a,t)){const l=String(a[t]);s=V1.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Uj={},jj={}.hasOwnProperty,LI=OI("type",{handlers:{root:$j,element:Vj,text:Gj,comment:Wj,doctype:qj}});function Hj(t,e){const r=(e||Uj).space;return LI(t,r==="svg"?Lr:ys)}function $j(t,e){const n={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=A0(t.children,n,e),ei(t,n),n}function zj(t,e){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=A0(t.children,n,e),ei(t,n),n}function qj(t){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ei(t,e),e}function Gj(t){const e={nodeName:"#text",value:t.value,parentNode:null};return ei(t,e),e}function Wj(t){const e={nodeName:"#comment",data:t.value,parentNode:null};return ei(t,e),e}function Vj(t,e){const n=e;let r=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Lr);const a=[];let i;if(t.properties){for(i in t.properties)if(i!=="children"&&jj.call(t.properties,i)){const l=Yj(r,i,t.properties[i]);l&&a.push(l)}}const s=r.space,o={nodeName:t.tagName,tagName:t.tagName,attrs:a,namespaceURI:zr[s],childNodes:[],parentNode:null};return o.childNodes=A0(t.children,o,r),ei(t,o),t.tagName==="template"&&t.content&&(o.content=zj(t.content,r)),o}function Yj(t,e,n){const r=Pl(t,e);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Ww(n):eI(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=zr[r.space]}return a}function A0(t,e,n){let r=-1;const a=[];if(t)for(;++r<t.length;){const i=LI(t[r],n);i.parentNode=e,a.push(i)}return a}function ei(t,e){const n=t.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,e.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Kj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Xj=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ve="�";var I;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const jt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function DI(t){return t>=55296&&t<=57343}function Zj(t){return t>=56320&&t<=57343}function Qj(t,e){return(t-55296)*1024+9216+e}function MI(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function PI(t){return t>=64976&&t<=65007||Xj.has(t)}var q;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(q||(q={}));const Jj=65536;class eH{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Jj,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Zj(n))return this.pos++,this._addGap(),Qj(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(q.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,n){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,n){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const n=this.pos+e;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const r=this.html.charCodeAt(n);return r===I.CARRIAGE_RETURN?I.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let e=this.html.charCodeAt(this.pos);return e===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):e===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,DI(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===I.LINE_FEED||e===I.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){MI(e)?this._err(q.controlCharacterInInputStream):PI(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var _e;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(_e||(_e={}));function FI(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}const tH=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),nH=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rH(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=nH.get(t))!==null&&e!==void 0?e:t}var ct;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));const aH=32;var yr;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(yr||(yr={}));function Pg(t){return t>=ct.ZERO&&t<=ct.NINE}function iH(t){return t>=ct.UPPER_A&&t<=ct.UPPER_F||t>=ct.LOWER_A&&t<=ct.LOWER_F}function sH(t){return t>=ct.UPPER_A&&t<=ct.UPPER_Z||t>=ct.LOWER_A&&t<=ct.LOWER_Z||Pg(t)}function oH(t){return t===ct.EQUALS||sH(t)}var ut;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(ut||(ut={}));var Yn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Yn||(Yn={}));class lH{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=ut.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Yn.Strict}startEntity(e){this.decodeMode=e,this.state=ut.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case ut.EntityStart:return e.charCodeAt(n)===ct.NUM?(this.state=ut.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=ut.NamedEntity,this.stateNamedEntity(e,n));case ut.NumericStart:return this.stateNumericStart(e,n);case ut.NumericDecimal:return this.stateNumericDecimal(e,n);case ut.NumericHex:return this.stateNumericHex(e,n);case ut.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|aH)===ct.LOWER_X?(this.state=ut.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=ut.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(e.substr(n,i),a),this.consumed+=i}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const a=e.charCodeAt(n);if(Pg(a)||iH(a))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const a=e.charCodeAt(n);if(Pg(a))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Yn.Strict)return 0;return this.emitCodePoint(rH(this.result),this.consumed),this.errors&&(e!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&yr.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const s=e.charCodeAt(n);if(this.treeIndex=uH(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Yn.Attribute&&(i===0||oH(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&yr.VALUE_LENGTH)>>14,i!==0){if(s===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Yn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,a=(r[n]&yr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[e]&~yr.VALUE_LENGTH:a[e+1],r),n===3&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case ut.NamedEntity:return this.result!==0&&(this.decodeMode!==Yn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ut.NumericDecimal:return this.emitNumericEntity(0,2);case ut.NumericHex:return this.emitNumericEntity(0,3);case ut.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ut.EntityStart:return 0}}}function uH(t,e,n,r){const a=(e&yr.BRANCH_LENGTH)>>7,i=e&yr.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:t[n+l]-1}let s=n,o=s+a-1;for(;s<=o;){const l=s+o>>>1,u=t[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return t[l+a]}return-1}var K;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(K||(K={}));var Kr;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(Kr||(Kr={}));var un;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(un||(un={}));var z;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(z||(z={}));var E;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(E||(E={}));const cH=new Map([[z.A,E.A],[z.ADDRESS,E.ADDRESS],[z.ANNOTATION_XML,E.ANNOTATION_XML],[z.APPLET,E.APPLET],[z.AREA,E.AREA],[z.ARTICLE,E.ARTICLE],[z.ASIDE,E.ASIDE],[z.B,E.B],[z.BASE,E.BASE],[z.BASEFONT,E.BASEFONT],[z.BGSOUND,E.BGSOUND],[z.BIG,E.BIG],[z.BLOCKQUOTE,E.BLOCKQUOTE],[z.BODY,E.BODY],[z.BR,E.BR],[z.BUTTON,E.BUTTON],[z.CAPTION,E.CAPTION],[z.CENTER,E.CENTER],[z.CODE,E.CODE],[z.COL,E.COL],[z.COLGROUP,E.COLGROUP],[z.DD,E.DD],[z.DESC,E.DESC],[z.DETAILS,E.DETAILS],[z.DIALOG,E.DIALOG],[z.DIR,E.DIR],[z.DIV,E.DIV],[z.DL,E.DL],[z.DT,E.DT],[z.EM,E.EM],[z.EMBED,E.EMBED],[z.FIELDSET,E.FIELDSET],[z.FIGCAPTION,E.FIGCAPTION],[z.FIGURE,E.FIGURE],[z.FONT,E.FONT],[z.FOOTER,E.FOOTER],[z.FOREIGN_OBJECT,E.FOREIGN_OBJECT],[z.FORM,E.FORM],[z.FRAME,E.FRAME],[z.FRAMESET,E.FRAMESET],[z.H1,E.H1],[z.H2,E.H2],[z.H3,E.H3],[z.H4,E.H4],[z.H5,E.H5],[z.H6,E.H6],[z.HEAD,E.HEAD],[z.HEADER,E.HEADER],[z.HGROUP,E.HGROUP],[z.HR,E.HR],[z.HTML,E.HTML],[z.I,E.I],[z.IMG,E.IMG],[z.IMAGE,E.IMAGE],[z.INPUT,E.INPUT],[z.IFRAME,E.IFRAME],[z.KEYGEN,E.KEYGEN],[z.LABEL,E.LABEL],[z.LI,E.LI],[z.LINK,E.LINK],[z.LISTING,E.LISTING],[z.MAIN,E.MAIN],[z.MALIGNMARK,E.MALIGNMARK],[z.MARQUEE,E.MARQUEE],[z.MATH,E.MATH],[z.MENU,E.MENU],[z.META,E.META],[z.MGLYPH,E.MGLYPH],[z.MI,E.MI],[z.MO,E.MO],[z.MN,E.MN],[z.MS,E.MS],[z.MTEXT,E.MTEXT],[z.NAV,E.NAV],[z.NOBR,E.NOBR],[z.NOFRAMES,E.NOFRAMES],[z.NOEMBED,E.NOEMBED],[z.NOSCRIPT,E.NOSCRIPT],[z.OBJECT,E.OBJECT],[z.OL,E.OL],[z.OPTGROUP,E.OPTGROUP],[z.OPTION,E.OPTION],[z.P,E.P],[z.PARAM,E.PARAM],[z.PLAINTEXT,E.PLAINTEXT],[z.PRE,E.PRE],[z.RB,E.RB],[z.RP,E.RP],[z.RT,E.RT],[z.RTC,E.RTC],[z.RUBY,E.RUBY],[z.S,E.S],[z.SCRIPT,E.SCRIPT],[z.SEARCH,E.SEARCH],[z.SECTION,E.SECTION],[z.SELECT,E.SELECT],[z.SOURCE,E.SOURCE],[z.SMALL,E.SMALL],[z.SPAN,E.SPAN],[z.STRIKE,E.STRIKE],[z.STRONG,E.STRONG],[z.STYLE,E.STYLE],[z.SUB,E.SUB],[z.SUMMARY,E.SUMMARY],[z.SUP,E.SUP],[z.TABLE,E.TABLE],[z.TBODY,E.TBODY],[z.TEMPLATE,E.TEMPLATE],[z.TEXTAREA,E.TEXTAREA],[z.TFOOT,E.TFOOT],[z.TD,E.TD],[z.TH,E.TH],[z.THEAD,E.THEAD],[z.TITLE,E.TITLE],[z.TR,E.TR],[z.TRACK,E.TRACK],[z.TT,E.TT],[z.U,E.U],[z.UL,E.UL],[z.SVG,E.SVG],[z.VAR,E.VAR],[z.WBR,E.WBR],[z.XMP,E.XMP]]);function ti(t){var e;return(e=cH.get(t))!==null&&e!==void 0?e:E.UNKNOWN}const Q=E,dH={[K.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[K.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[K.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[K.XLINK]:new Set,[K.XML]:new Set,[K.XMLNS]:new Set},Fg=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;var O;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(O||(O={}));const et={DATA:O.DATA,RCDATA:O.RCDATA,RAWTEXT:O.RAWTEXT,SCRIPT_DATA:O.SCRIPT_DATA,PLAINTEXT:O.PLAINTEXT,CDATA_SECTION:O.CDATA_SECTION};function pH(t){return t>=I.DIGIT_0&&t<=I.DIGIT_9}function ki(t){return t>=I.LATIN_CAPITAL_A&&t<=I.LATIN_CAPITAL_Z}function fH(t){return t>=I.LATIN_SMALL_A&&t<=I.LATIN_SMALL_Z}function ur(t){return fH(t)||ki(t)}function Y1(t){return ur(t)||pH(t)}function zs(t){return t+32}function BI(t){return t===I.SPACE||t===I.LINE_FEED||t===I.TABULATION||t===I.FORM_FEED}function K1(t){return BI(t)||t===I.SOLIDUS||t===I.GREATER_THAN_SIGN}function hH(t){return t===I.NULL?q.nullCharacterReference:t>1114111?q.characterReferenceOutsideUnicodeRange:DI(t)?q.surrogateCharacterReference:PI(t)?q.noncharacterCharacterReference:MI(t)||t===I.CARRIAGE_RETURN?q.controlCharacterReference:null}class mH{constructor(e,n){this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=O.DATA,this.returnState=O.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eH(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new lH(tH,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=hH(r);a&&this._err(a,1)}}:void 0)}_err(e,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(e,n))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,n,r){this.active=!0,this.preprocessor.write(e,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let n=0;n<e;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,n){return this.preprocessor.startsWith(e,n)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:_e.START_TAG,tagName:"",tagID:E.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:_e.END_TAG,tagName:"",tagID:E.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:_e.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:_e.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,n;const r=this.currentToken;if(FI(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(e=(n=r.location).attrs)!==null&&e!==void 0?e:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=ti(e.tagName),e.type===_e.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case _e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case _e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case _e.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:_e.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,n)}_emitCodePoint(e){const n=BI(e)?_e.WHITESPACE_CHARACTER:e===I.NULL?_e.NULL_CHARACTER:_e.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(_e.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=O.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Yn.Attribute:Yn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===O.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case O.DATA:{this._stateData(e);break}case O.RCDATA:{this._stateRcdata(e);break}case O.RAWTEXT:{this._stateRawtext(e);break}case O.SCRIPT_DATA:{this._stateScriptData(e);break}case O.PLAINTEXT:{this._statePlaintext(e);break}case O.TAG_OPEN:{this._stateTagOpen(e);break}case O.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case O.TAG_NAME:{this._stateTagName(e);break}case O.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case O.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case O.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case O.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case O.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case O.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case O.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case O.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case O.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case O.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case O.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case O.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case O.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case O.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case O.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case O.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case O.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case O.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case O.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case O.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case O.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case O.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case O.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case O.BOGUS_COMMENT:{this._stateBogusComment(e);break}case O.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case O.COMMENT_START:{this._stateCommentStart(e);break}case O.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case O.COMMENT:{this._stateComment(e);break}case O.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case O.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case O.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case O.COMMENT_END:{this._stateCommentEnd(e);break}case O.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case O.DOCTYPE:{this._stateDoctype(e);break}case O.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case O.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case O.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case O.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case O.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case O.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case O.CDATA_SECTION:{this._stateCdataSection(e);break}case O.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case O.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case O.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case O.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case I.LESS_THAN_SIGN:{this.state=O.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=O.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ve);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case I.LESS_THAN_SIGN:{this.state=O.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ve);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ve);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ve);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ur(e))this._createStartTagToken(),this.state=O.TAG_NAME,this._stateTagName(e);else switch(e){case I.EXCLAMATION_MARK:{this.state=O.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=O.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=O.BOGUS_COMMENT,this._stateBogusComment(e);break}case I.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=O.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ur(e))this._createEndTagToken(),this.state=O.TAG_NAME,this._stateTagName(e);else switch(e){case I.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=O.DATA;break}case I.EOF:{this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=O.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=Ve;break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ki(e)?zs(e):e)}}_stateRcdataLessThanSign(e){e===I.SOLIDUS?this.state=O.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ur(e)?(this.state=O.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=O.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=O.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=O.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=O.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=O.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===I.SOLIDUS?this.state=O.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ur(e)?(this.state=O.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=O.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=O.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case I.SOLIDUS:{this.state=O.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=O.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=O.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ur(e)?(this.state=O.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=O.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=O.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===I.HYPHEN_MINUS?(this.state=O.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=O.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===I.HYPHEN_MINUS?(this.state=O.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=O.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case I.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ve);break}case I.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case I.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(Ve);break}case I.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=O.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(Ve);break}case I.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===I.SOLIDUS?this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ur(e)?(this._emitChars("<"),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ur(e)?(this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(jt.SCRIPT,!1)&&K1(this.preprocessor.peek(jt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<jt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case I.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ve);break}case I.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case I.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ve);break}case I.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=O.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ve);break}case I.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===I.SOLIDUS?(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(jt.SCRIPT,!1)&&K1(this.preprocessor.peek(jt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<jt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=O.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=O.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case I.EQUALS_SIGN:{this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=O.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=O.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=O.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=O.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=Ve;break}default:this.currentAttr.name+=String.fromCodePoint(ki(e)?zs(e):e)}}_stateAfterAttributeName(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=O.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=O.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=O.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=O.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(q.missingAttributeValue),this.state=O.DATA,this.emitCurrentTagToken();break}default:this.state=O.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case I.QUOTATION_MARK:{this.state=O.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ve;break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case I.APOSTROPHE:{this.state=O.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ve;break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=O.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=O.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ve;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=O.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=O.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=O.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBetweenAttributes),this.state=O.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case I.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=O.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.unexpectedSolidusInTag),this.state=O.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const n=this.currentToken;switch(e){case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentComment(n);break}case I.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.data+=Ve;break}default:n.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(jt.DASH_DASH,!0)?(this._createCommentToken(jt.DASH_DASH.length+1),this.state=O.COMMENT_START):this._consumeSequenceIfMatch(jt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(jt.DOCTYPE.length+1),this.state=O.DOCTYPE):this._consumeSequenceIfMatch(jt.CDATA_START,!0)?this.inForeignNode?this.state=O.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(jt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=O.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case I.HYPHEN_MINUS:{this.state=O.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=O.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=O.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const n=this.currentToken;switch(e){case I.HYPHEN_MINUS:{this.state=O.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=O.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=O.COMMENT,this._stateComment(e)}}_stateComment(e){const n=this.currentToken;switch(e){case I.HYPHEN_MINUS:{this.state=O.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{n.data+="<",this.state=O.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.data+=Ve;break}case I.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const n=this.currentToken;switch(e){case I.EXCLAMATION_MARK:{n.data+="!",this.state=O.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=O.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===I.HYPHEN_MINUS?this.state=O.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=O.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===I.HYPHEN_MINUS?this.state=O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=O.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==I.GREATER_THAN_SIGN&&e!==I.EOF&&this._err(q.nestedComment),this.state=O.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const n=this.currentToken;switch(e){case I.HYPHEN_MINUS:{this.state=O.COMMENT_END;break}case I.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=O.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const n=this.currentToken;switch(e){case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentComment(n);break}case I.EXCLAMATION_MARK:{this.state=O.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{n.data+="-";break}case I.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=O.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const n=this.currentToken;switch(e){case I.HYPHEN_MINUS:{n.data+="--!",this.state=O.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=O.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=O.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=O.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case I.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=O.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ki(e))this._createDoctypeToken(String.fromCharCode(zs(e))),this.state=O.DOCTYPE_NAME;else switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(Ve),this.state=O.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=O.DOCTYPE_NAME}}_stateDoctypeName(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=O.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.name+=Ve;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ki(e)?zs(e):e)}}_stateAfterDoctypeName(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(jt.PUBLIC,!1)?this.state=O.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(jt.SYSTEM,!1)?this.state=O.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case I.QUOTATION_MARK:{this.state=O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ve;break}case I.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case I.APOSTROPHE:{this.state=O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ve;break}case I.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.QUOTATION_MARK:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case I.QUOTATION_MARK:{this.state=O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ve;break}case I.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case I.APOSTROPHE:{this.state=O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ve;break}case I.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const n=this.currentToken;switch(e){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case I.NULL:{this._err(q.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case I.RIGHT_SQUARE_BRACKET:{this.state=O.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===I.RIGHT_SQUARE_BRACKET?this.state=O.CDATA_SECTION_END:(this._emitChars("]"),this.state=O.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case I.GREATER_THAN_SIGN:{this.state=O.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=O.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Y1(this.preprocessor.peek(1))?O.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Y1(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===I.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const UI=new Set([E.DD,E.DT,E.LI,E.OPTGROUP,E.OPTION,E.P,E.RB,E.RP,E.RT,E.RTC]),X1=new Set([...UI,E.CAPTION,E.COLGROUP,E.TBODY,E.TD,E.TFOOT,E.TH,E.THEAD,E.TR]),Oo=new Set([E.APPLET,E.CAPTION,E.HTML,E.MARQUEE,E.OBJECT,E.TABLE,E.TD,E.TEMPLATE,E.TH]),gH=new Set([...Oo,E.OL,E.UL]),bH=new Set([...Oo,E.BUTTON]),Z1=new Set([E.ANNOTATION_XML,E.MI,E.MN,E.MO,E.MS,E.MTEXT]),Q1=new Set([E.DESC,E.FOREIGN_OBJECT,E.TITLE]),EH=new Set([E.TR,E.TEMPLATE,E.HTML]),yH=new Set([E.TBODY,E.TFOOT,E.THEAD,E.TEMPLATE,E.HTML]),TH=new Set([E.TABLE,E.TEMPLATE,E.HTML]),SH=new Set([E.TD,E.TH]);class xH{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=E.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===E.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===K.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,n){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,n,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,n){const r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(e,n,r){const a=this._indexOf(e)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(e,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==K.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(e){for(;this.stackTop>=e;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<e)}}popUntilElementPopped(e){const n=this._indexOf(e);this.shortenToLength(Math.max(n,0))}popUntilPopped(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Fg,K.HTML)}popUntilTableCellPopped(){this.popUntilPopped(SH,K.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,n){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(TH,K.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yH,K.HTML)}clearBackToTableRowContext(){this.clearBackTo(EH,K.HTML)}remove(e){const n=this._indexOf(e);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===E.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const n=this._indexOf(e)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===E.HTML}hasInDynamicScope(e,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case K.HTML:{if(a===e)return!0;if(n.has(a))return!1;break}case K.SVG:{if(Q1.has(a))return!1;break}case K.MATHML:{if(Z1.has(a))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Oo)}hasInListItemScope(e){return this.hasInDynamicScope(e,gH)}hasInButtonScope(e){return this.hasInDynamicScope(e,bH)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case K.HTML:{if(Fg.has(n))return!0;if(Oo.has(n))return!1;break}case K.SVG:{if(Q1.has(n))return!1;break}case K.MATHML:{if(Z1.has(n))return!1;break}}}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===K.HTML)switch(this.tagIDs[n]){case e:return!0;case E.TABLE:case E.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===K.HTML)switch(this.tagIDs[e]){case E.TBODY:case E.THEAD:case E.TFOOT:return!0;case E.TABLE:case E.HTML:return!1}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===K.HTML)switch(this.tagIDs[n]){case e:return!0;case E.OPTION:case E.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&UI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&X1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&X1.has(this.currentTagId);)this.pop()}}const Hu=3;var wn;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(wn||(wn={}));const J1={type:wn.Marker};class kH{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===wn.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<Hu)return;const n=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,n);if(r.length<Hu)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Hu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(J1)}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.unshift({type:wn.Element,element:e,token:n})}insertElementAfterBookmark(e,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:wn.Element,element:e,token:n})}removeEntry(e){const n=this.entries.indexOf(e);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const e=this.entries.indexOf(J1);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const n=this.entries.find(r=>r.type===wn.Marker||this.treeAdapter.getTagName(r.element)===e);return n&&n.type===wn.Element?n:null}getElementEntry(e){return this.entries.find(n=>n.type===wn.Element&&n.element===e)}}const cr={createDocument(){return{nodeName:"#document",mode:un.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,n,r){const a=t.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=e,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null};cr.appendChild(t,i)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(cr.isTextNode(n)){n.value+=e;return}}cr.appendChild(t,cr.createTextNode(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&cr.isTextNode(r)?r.value+=e:cr.insertBefore(t,cr.createTextNode(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},jI="html",vH="about:legacy-compat",AH="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",HI=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],_H=[...HI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],NH=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),$I=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],CH=[...$I,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eT(t,e){return e.some(n=>t.startsWith(n))}function wH(t){return t.name===jI&&t.publicId===null&&(t.systemId===null||t.systemId===vH)}function IH(t){if(t.name!==jI)return un.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===AH)return un.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),NH.has(n))return un.QUIRKS;let r=e===null?_H:HI;if(eT(n,r))return un.QUIRKS;if(r=e===null?$I:CH,eT(n,r))return un.LIMITED_QUIRKS}return un.NO_QUIRKS}const tT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},RH="definitionurl",OH="definitionURL",LH=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),DH=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:K.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:K.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:K.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:K.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:K.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:K.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:K.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:K.XML}],["xml:space",{prefix:"xml",name:"space",namespace:K.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:K.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:K.XMLNS}]]),MH=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),PH=new Set([E.B,E.BIG,E.BLOCKQUOTE,E.BODY,E.BR,E.CENTER,E.CODE,E.DD,E.DIV,E.DL,E.DT,E.EM,E.EMBED,E.H1,E.H2,E.H3,E.H4,E.H5,E.H6,E.HEAD,E.HR,E.I,E.IMG,E.LI,E.LISTING,E.MENU,E.META,E.NOBR,E.OL,E.P,E.PRE,E.RUBY,E.S,E.SMALL,E.SPAN,E.STRONG,E.STRIKE,E.SUB,E.SUP,E.TABLE,E.TT,E.U,E.UL,E.VAR]);function FH(t){const e=t.tagID;return e===E.FONT&&t.attrs.some(({name:r})=>r===Kr.COLOR||r===Kr.SIZE||r===Kr.FACE)||PH.has(e)}function zI(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===RH){t.attrs[e].name=OH;break}}function qI(t){for(let e=0;e<t.attrs.length;e++){const n=LH.get(t.attrs[e].name);n!=null&&(t.attrs[e].name=n)}}function _0(t){for(let e=0;e<t.attrs.length;e++){const n=DH.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function BH(t){const e=MH.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=ti(t.tagName))}function UH(t,e){return e===K.MATHML&&(t===E.MI||t===E.MO||t===E.MN||t===E.MS||t===E.MTEXT)}function jH(t,e,n){if(e===K.MATHML&&t===E.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Kr.ENCODING){const a=n[r].value.toLowerCase();return a===tT.TEXT_HTML||a===tT.APPLICATION_XML}}return e===K.SVG&&(t===E.FOREIGN_OBJECT||t===E.DESC||t===E.TITLE)}function HH(t,e,n,r){return(!r||r===K.HTML)&&jH(t,e,n)||(!r||r===K.MATHML)&&UH(t,e)}const $H="hidden",zH=8,qH=3;var D;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(D||(D={}));const GH={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},GI=new Set([E.TABLE,E.TBODY,E.TFOOT,E.THEAD,E.TR]),nT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:cr,onParseError:null};class rT{constructor(e,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=D.INITIAL,this.originalInsertionMode=D.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...nT,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new mH(this.options,this),this.activeFormattingElements=new kH(this.treeAdapter),this.fragmentContextID=r?ti(this.treeAdapter.getTagName(r)):E.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new xH(this.document,this.treeAdapter,this)}static parse(e,n){const r=new this(n);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,n){const r={...nT,...n};e??(e=r.treeAdapter.createElement(z.TEMPLATE,K.HTML,[]));const a=r.treeAdapter.createElement("documentmock",K.HTML,[]),i=new this(r,a,e);return i.fragmentContextID===E.TEMPLATE&&i.tmplInsertionModeStack.unshift(D.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,n),n}_err(e,n,r){var a;if(!this.onParseError)return;const i=(a=e.location)!==null&&a!==void 0?a:GH,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(e,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,n)}onItemPop(e,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,e,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(e,n){const r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===K.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&e!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,e)}_switchToTextParsing(e,n){this._insertElement(e,K.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=D.TEXT}switchToPlaintextParsing(){this.insertionMode=D.TEXT,this.originalInsertionMode=D.IN_BODY,this.tokenizer.state=et.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===z.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==K.HTML))switch(this.fragmentContextID){case E.TITLE:case E.TEXTAREA:{this.tokenizer.state=et.RCDATA;break}case E.STYLE:case E.XMP:case E.IFRAME:case E.NOEMBED:case E.NOFRAMES:case E.NOSCRIPT:{this.tokenizer.state=et.RAWTEXT;break}case E.SCRIPT:{this.tokenizer.state=et.SCRIPT_DATA;break}case E.PLAINTEXT:{this.tokenizer.state=et.PLAINTEXT;break}}}_setDocumentType(e){const n=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),e.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,e)}}_appendElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,n){const r=this.treeAdapter.createElement(e,K.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(e){const n=this.treeAdapter.createElement(e.tagName,K.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(z.HTML,K.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,E.HTML)}_appendCommentNode(e,n){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,e.chars,r):this.treeAdapter.insertText(n,e.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(e),i=n.type===_e.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,e.tagID===E.SVG&&this.treeAdapter.getTagName(n)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===K.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===E.MGLYPH||e.tagID===E.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,K.HTML)}_processToken(e){switch(e.type){case _e.CHARACTER:{this.onCharacter(e);break}case _e.NULL_CHARACTER:{this.onNullCharacter(e);break}case _e.COMMENT:{this.onComment(e);break}case _e.DOCTYPE:{this.onDoctype(e);break}case _e.START_TAG:{this._processStartTag(e);break}case _e.END_TAG:{this.onEndTag(e);break}case _e.EOF:{this.onEof(e);break}case _e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return HH(e,a,i,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===wn.Marker||this.openElements.contains(a.element)),r=n===-1?e-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=D.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(E.P),this.openElements.popUntilTagNamePopped(E.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case E.TR:{this.insertionMode=D.IN_ROW;return}case E.TBODY:case E.THEAD:case E.TFOOT:{this.insertionMode=D.IN_TABLE_BODY;return}case E.CAPTION:{this.insertionMode=D.IN_CAPTION;return}case E.COLGROUP:{this.insertionMode=D.IN_COLUMN_GROUP;return}case E.TABLE:{this.insertionMode=D.IN_TABLE;return}case E.BODY:{this.insertionMode=D.IN_BODY;return}case E.FRAMESET:{this.insertionMode=D.IN_FRAMESET;return}case E.SELECT:{this._resetInsertionModeForSelect(e);return}case E.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case E.HTML:{this.insertionMode=this.headElement?D.AFTER_HEAD:D.BEFORE_HEAD;return}case E.TD:case E.TH:{if(e>0){this.insertionMode=D.IN_CELL;return}break}case E.HEAD:{if(e>0){this.insertionMode=D.IN_HEAD;return}break}}this.insertionMode=D.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===E.TEMPLATE)break;if(r===E.TABLE){this.insertionMode=D.IN_SELECT_IN_TABLE;return}}this.insertionMode=D.IN_SELECT}_isElementCausesFosterParenting(e){return GI.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const n=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case E.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===K.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case E.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_isSpecialElement(e,n){const r=this.treeAdapter.getNamespaceURI(e);return dH[r].has(n)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){S$(this,e);return}switch(this.insertionMode){case D.INITIAL:{fi(this,e);break}case D.BEFORE_HTML:{Mi(this,e);break}case D.BEFORE_HEAD:{Pi(this,e);break}case D.IN_HEAD:{Fi(this,e);break}case D.IN_HEAD_NO_SCRIPT:{Bi(this,e);break}case D.AFTER_HEAD:{Ui(this,e);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{VI(this,e);break}case D.TEXT:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{$u(this,e);break}case D.IN_TABLE_TEXT:{JI(this,e);break}case D.IN_COLUMN_GROUP:{Lo(this,e);break}case D.AFTER_BODY:{Do(this,e);break}case D.AFTER_AFTER_BODY:{io(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){T$(this,e);return}switch(this.insertionMode){case D.INITIAL:{fi(this,e);break}case D.BEFORE_HTML:{Mi(this,e);break}case D.BEFORE_HEAD:{Pi(this,e);break}case D.IN_HEAD:{Fi(this,e);break}case D.IN_HEAD_NO_SCRIPT:{Bi(this,e);break}case D.AFTER_HEAD:{Ui(this,e);break}case D.TEXT:{this._insertCharacters(e);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{$u(this,e);break}case D.IN_COLUMN_GROUP:{Lo(this,e);break}case D.AFTER_BODY:{Do(this,e);break}case D.AFTER_AFTER_BODY:{io(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bg(this,e);return}switch(this.insertionMode){case D.INITIAL:case D.BEFORE_HTML:case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_TEMPLATE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{Bg(this,e);break}case D.IN_TABLE_TEXT:{hi(this,e);break}case D.AFTER_BODY:{QH(this,e);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{JH(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{e9(this,e);break}case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:{this._err(e,q.misplacedDoctype);break}case D.IN_TABLE_TEXT:{hi(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?x$(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case D.INITIAL:{fi(this,e);break}case D.BEFORE_HTML:{t9(this,e);break}case D.BEFORE_HEAD:{r9(this,e);break}case D.IN_HEAD:{xn(this,e);break}case D.IN_HEAD_NO_SCRIPT:{s9(this,e);break}case D.AFTER_HEAD:{l9(this,e);break}case D.IN_BODY:{Nt(this,e);break}case D.IN_TABLE:{Wa(this,e);break}case D.IN_TABLE_TEXT:{hi(this,e);break}case D.IN_CAPTION:{a$(this,e);break}case D.IN_COLUMN_GROUP:{w0(this,e);break}case D.IN_TABLE_BODY:{Wl(this,e);break}case D.IN_ROW:{Vl(this,e);break}case D.IN_CELL:{o$(this,e);break}case D.IN_SELECT:{nR(this,e);break}case D.IN_SELECT_IN_TABLE:{u$(this,e);break}case D.IN_TEMPLATE:{d$(this,e);break}case D.AFTER_BODY:{f$(this,e);break}case D.IN_FRAMESET:{h$(this,e);break}case D.AFTER_FRAMESET:{g$(this,e);break}case D.AFTER_AFTER_BODY:{E$(this,e);break}case D.AFTER_AFTER_FRAMESET:{y$(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?k$(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case D.INITIAL:{fi(this,e);break}case D.BEFORE_HTML:{n9(this,e);break}case D.BEFORE_HEAD:{a9(this,e);break}case D.IN_HEAD:{i9(this,e);break}case D.IN_HEAD_NO_SCRIPT:{o9(this,e);break}case D.AFTER_HEAD:{u9(this,e);break}case D.IN_BODY:{Gl(this,e);break}case D.TEXT:{Y9(this,e);break}case D.IN_TABLE:{rs(this,e);break}case D.IN_TABLE_TEXT:{hi(this,e);break}case D.IN_CAPTION:{i$(this,e);break}case D.IN_COLUMN_GROUP:{s$(this,e);break}case D.IN_TABLE_BODY:{Ug(this,e);break}case D.IN_ROW:{tR(this,e);break}case D.IN_CELL:{l$(this,e);break}case D.IN_SELECT:{rR(this,e);break}case D.IN_SELECT_IN_TABLE:{c$(this,e);break}case D.IN_TEMPLATE:{p$(this,e);break}case D.AFTER_BODY:{iR(this,e);break}case D.IN_FRAMESET:{m$(this,e);break}case D.AFTER_FRAMESET:{b$(this,e);break}case D.AFTER_AFTER_BODY:{io(this,e);break}}}onEof(e){switch(this.insertionMode){case D.INITIAL:{fi(this,e);break}case D.BEFORE_HTML:{Mi(this,e);break}case D.BEFORE_HEAD:{Pi(this,e);break}case D.IN_HEAD:{Fi(this,e);break}case D.IN_HEAD_NO_SCRIPT:{Bi(this,e);break}case D.AFTER_HEAD:{Ui(this,e);break}case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{ZI(this,e);break}case D.TEXT:{K9(this,e);break}case D.IN_TABLE_TEXT:{hi(this,e);break}case D.IN_TEMPLATE:{aR(this,e);break}case D.AFTER_BODY:case D.IN_FRAMESET:case D.AFTER_FRAMESET:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{C0(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===I.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.TEXT:case D.IN_COLUMN_GROUP:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{this._insertCharacters(e);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:case D.AFTER_BODY:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{WI(this,e);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{$u(this,e);break}case D.IN_TABLE_TEXT:{QI(this,e);break}}}}function WH(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):XI(t,e),n}function VH(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const a=t.openElements.items[r];if(a===e.element)break;t._isSpecialElement(a,t.openElements.tagIDs[r])&&(n=a)}return n||(t.openElements.shortenToLength(Math.max(r,0)),t.activeFormattingElements.removeEntry(e)),n}function YH(t,e,n){let r=e,a=t.openElements.getCommonAncestor(e);for(let i=0,s=a;s!==n;i++,s=a){a=t.openElements.getCommonAncestor(s);const o=t.activeFormattingElements.getElementEntry(s),l=o&&i>=qH;!o||l?(l&&t.activeFormattingElements.removeEntry(o),t.openElements.remove(s)):(s=KH(t,o),r===e&&(t.activeFormattingElements.bookmark=o),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(s,r),r=s)}return r}function KH(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function XH(t,e,n){const r=t.treeAdapter.getTagName(e),a=ti(r);if(t._isElementCausesFosterParenting(a))t._fosterParentElement(n);else{const i=t.treeAdapter.getNamespaceURI(e);a===E.TEMPLATE&&i===K.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function ZH(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=t.treeAdapter.createElement(a.tagName,r,a.attrs);t._adoptNodes(e,i),t.treeAdapter.appendChild(e,i),t.activeFormattingElements.insertElementAfterBookmark(i,a),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,i,a.tagID)}function N0(t,e){for(let n=0;n<zH;n++){const r=WH(t,e);if(!r)break;const a=VH(t,r);if(!a)break;t.activeFormattingElements.bookmark=r;const i=YH(t,a,r.element),s=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(i),s&&XH(t,s,i),ZH(t,a,r)}}function Bg(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function QH(t,e){t._appendCommentNode(e,t.openElements.items[0])}function JH(t,e){t._appendCommentNode(e,t.document)}function C0(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const r=t.openElements.items[0],a=t.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(t._setEndLocation(r,e),t.openElements.stackTop>=1)){const i=t.openElements.items[1],s=t.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&t._setEndLocation(i,e)}}}}function e9(t,e){t._setDocumentType(e);const n=e.forceQuirks?un.QUIRKS:IH(e);wH(e)||t._err(e,q.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=D.BEFORE_HTML}function fi(t,e){t._err(e,q.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,un.QUIRKS),t.insertionMode=D.BEFORE_HTML,t._processToken(e)}function t9(t,e){e.tagID===E.HTML?(t._insertElement(e,K.HTML),t.insertionMode=D.BEFORE_HEAD):Mi(t,e)}function n9(t,e){const n=e.tagID;(n===E.HTML||n===E.HEAD||n===E.BODY||n===E.BR)&&Mi(t,e)}function Mi(t,e){t._insertFakeRootElement(),t.insertionMode=D.BEFORE_HEAD,t._processToken(e)}function r9(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.HEAD:{t._insertElement(e,K.HTML),t.headElement=t.openElements.current,t.insertionMode=D.IN_HEAD;break}default:Pi(t,e)}}function a9(t,e){const n=e.tagID;n===E.HEAD||n===E.BODY||n===E.HTML||n===E.BR?Pi(t,e):t._err(e,q.endTagWithoutMatchingOpenElement)}function Pi(t,e){t._insertFakeElement(z.HEAD,E.HEAD),t.headElement=t.openElements.current,t.insertionMode=D.IN_HEAD,t._processToken(e)}function xn(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:{t._appendElement(e,K.HTML),e.ackSelfClosing=!0;break}case E.TITLE:{t._switchToTextParsing(e,et.RCDATA);break}case E.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,et.RAWTEXT):(t._insertElement(e,K.HTML),t.insertionMode=D.IN_HEAD_NO_SCRIPT);break}case E.NOFRAMES:case E.STYLE:{t._switchToTextParsing(e,et.RAWTEXT);break}case E.SCRIPT:{t._switchToTextParsing(e,et.SCRIPT_DATA);break}case E.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=D.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(D.IN_TEMPLATE);break}case E.HEAD:{t._err(e,q.misplacedStartTagForHeadElement);break}default:Fi(t,e)}}function i9(t,e){switch(e.tagID){case E.HEAD:{t.openElements.pop(),t.insertionMode=D.AFTER_HEAD;break}case E.BODY:case E.BR:case E.HTML:{Fi(t,e);break}case E.TEMPLATE:{ma(t,e);break}default:t._err(e,q.endTagWithoutMatchingOpenElement)}}function ma(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==E.TEMPLATE&&t._err(e,q.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(E.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,q.endTagWithoutMatchingOpenElement)}function Fi(t,e){t.openElements.pop(),t.insertionMode=D.AFTER_HEAD,t._processToken(e)}function s9(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.BASEFONT:case E.BGSOUND:case E.HEAD:case E.LINK:case E.META:case E.NOFRAMES:case E.STYLE:{xn(t,e);break}case E.NOSCRIPT:{t._err(e,q.nestedNoscriptInHead);break}default:Bi(t,e)}}function o9(t,e){switch(e.tagID){case E.NOSCRIPT:{t.openElements.pop(),t.insertionMode=D.IN_HEAD;break}case E.BR:{Bi(t,e);break}default:t._err(e,q.endTagWithoutMatchingOpenElement)}}function Bi(t,e){const n=e.type===_e.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=D.IN_HEAD,t._processToken(e)}function l9(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.BODY:{t._insertElement(e,K.HTML),t.framesetOk=!1,t.insertionMode=D.IN_BODY;break}case E.FRAMESET:{t._insertElement(e,K.HTML),t.insertionMode=D.IN_FRAMESET;break}case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:case E.NOFRAMES:case E.SCRIPT:case E.STYLE:case E.TEMPLATE:case E.TITLE:{t._err(e,q.abandonedHeadElementChild),t.openElements.push(t.headElement,E.HEAD),xn(t,e),t.openElements.remove(t.headElement);break}case E.HEAD:{t._err(e,q.misplacedStartTagForHeadElement);break}default:Ui(t,e)}}function u9(t,e){switch(e.tagID){case E.BODY:case E.HTML:case E.BR:{Ui(t,e);break}case E.TEMPLATE:{ma(t,e);break}default:t._err(e,q.endTagWithoutMatchingOpenElement)}}function Ui(t,e){t._insertFakeElement(z.BODY,E.BODY),t.insertionMode=D.IN_BODY,ql(t,e)}function ql(t,e){switch(e.type){case _e.CHARACTER:{VI(t,e);break}case _e.WHITESPACE_CHARACTER:{WI(t,e);break}case _e.COMMENT:{Bg(t,e);break}case _e.START_TAG:{Nt(t,e);break}case _e.END_TAG:{Gl(t,e);break}case _e.EOF:{ZI(t,e);break}}}function WI(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function VI(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function c9(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function d9(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function p9(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,K.HTML),t.insertionMode=D.IN_FRAMESET)}function f9(t,e){t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._insertElement(e,K.HTML)}function h9(t,e){t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t.openElements.currentTagId!==void 0&&Fg.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,K.HTML)}function m9(t,e){t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._insertElement(e,K.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function g9(t,e){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._insertElement(e,K.HTML),n||(t.formElement=t.openElements.current))}function b9(t,e){t.framesetOk=!1;const n=e.tagID;for(let r=t.openElements.stackTop;r>=0;r--){const a=t.openElements.tagIDs[r];if(n===E.LI&&a===E.LI||(n===E.DD||n===E.DT)&&(a===E.DD||a===E.DT)){t.openElements.generateImpliedEndTagsWithExclusion(a),t.openElements.popUntilTagNamePopped(a);break}if(a!==E.ADDRESS&&a!==E.DIV&&a!==E.P&&t._isSpecialElement(t.openElements.items[r],a))break}t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._insertElement(e,K.HTML)}function E9(t,e){t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._insertElement(e,K.HTML),t.tokenizer.state=et.PLAINTEXT}function y9(t,e){t.openElements.hasInScope(E.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(E.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML),t.framesetOk=!1}function T9(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);n&&(N0(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function S9(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function x9(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(E.NOBR)&&(N0(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,K.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function k9(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function v9(t,e){t.treeAdapter.getDocumentMode(t.document)!==un.QUIRKS&&t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._insertElement(e,K.HTML),t.framesetOk=!1,t.insertionMode=D.IN_TABLE}function YI(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,K.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function KI(t){const e=FI(t,Kr.TYPE);return e!=null&&e.toLowerCase()===$H}function A9(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,K.HTML),KI(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function _9(t,e){t._appendElement(e,K.HTML),e.ackSelfClosing=!0}function N9(t,e){t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._appendElement(e,K.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function C9(t,e){e.tagName=z.IMG,e.tagID=E.IMG,YI(t,e)}function w9(t,e){t._insertElement(e,K.HTML),t.skipNextNewLine=!0,t.tokenizer.state=et.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=D.TEXT}function I9(t,e){t.openElements.hasInButtonScope(E.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,et.RAWTEXT)}function R9(t,e){t.framesetOk=!1,t._switchToTextParsing(e,et.RAWTEXT)}function aT(t,e){t._switchToTextParsing(e,et.RAWTEXT)}function O9(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===D.IN_TABLE||t.insertionMode===D.IN_CAPTION||t.insertionMode===D.IN_TABLE_BODY||t.insertionMode===D.IN_ROW||t.insertionMode===D.IN_CELL?D.IN_SELECT_IN_TABLE:D.IN_SELECT}function L9(t,e){t.openElements.currentTagId===E.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML)}function D9(t,e){t.openElements.hasInScope(E.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,K.HTML)}function M9(t,e){t.openElements.hasInScope(E.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(E.RTC),t._insertElement(e,K.HTML)}function P9(t,e){t._reconstructActiveFormattingElements(),zI(e),_0(e),e.selfClosing?t._appendElement(e,K.MATHML):t._insertElement(e,K.MATHML),e.ackSelfClosing=!0}function F9(t,e){t._reconstructActiveFormattingElements(),qI(e),_0(e),e.selfClosing?t._appendElement(e,K.SVG):t._insertElement(e,K.SVG),e.ackSelfClosing=!0}function iT(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,K.HTML)}function Nt(t,e){switch(e.tagID){case E.I:case E.S:case E.B:case E.U:case E.EM:case E.TT:case E.BIG:case E.CODE:case E.FONT:case E.SMALL:case E.STRIKE:case E.STRONG:{S9(t,e);break}case E.A:{T9(t,e);break}case E.H1:case E.H2:case E.H3:case E.H4:case E.H5:case E.H6:{h9(t,e);break}case E.P:case E.DL:case E.OL:case E.UL:case E.DIV:case E.DIR:case E.NAV:case E.MAIN:case E.MENU:case E.ASIDE:case E.CENTER:case E.FIGURE:case E.FOOTER:case E.HEADER:case E.HGROUP:case E.DIALOG:case E.DETAILS:case E.ADDRESS:case E.ARTICLE:case E.SEARCH:case E.SECTION:case E.SUMMARY:case E.FIELDSET:case E.BLOCKQUOTE:case E.FIGCAPTION:{f9(t,e);break}case E.LI:case E.DD:case E.DT:{b9(t,e);break}case E.BR:case E.IMG:case E.WBR:case E.AREA:case E.EMBED:case E.KEYGEN:{YI(t,e);break}case E.HR:{N9(t,e);break}case E.RB:case E.RTC:{D9(t,e);break}case E.RT:case E.RP:{M9(t,e);break}case E.PRE:case E.LISTING:{m9(t,e);break}case E.XMP:{I9(t,e);break}case E.SVG:{F9(t,e);break}case E.HTML:{c9(t,e);break}case E.BASE:case E.LINK:case E.META:case E.STYLE:case E.TITLE:case E.SCRIPT:case E.BGSOUND:case E.BASEFONT:case E.TEMPLATE:{xn(t,e);break}case E.BODY:{d9(t,e);break}case E.FORM:{g9(t,e);break}case E.NOBR:{x9(t,e);break}case E.MATH:{P9(t,e);break}case E.TABLE:{v9(t,e);break}case E.INPUT:{A9(t,e);break}case E.PARAM:case E.TRACK:case E.SOURCE:{_9(t,e);break}case E.IMAGE:{C9(t,e);break}case E.BUTTON:{y9(t,e);break}case E.APPLET:case E.OBJECT:case E.MARQUEE:{k9(t,e);break}case E.IFRAME:{R9(t,e);break}case E.SELECT:{O9(t,e);break}case E.OPTION:case E.OPTGROUP:{L9(t,e);break}case E.NOEMBED:case E.NOFRAMES:{aT(t,e);break}case E.FRAMESET:{p9(t,e);break}case E.TEXTAREA:{w9(t,e);break}case E.NOSCRIPT:{t.options.scriptingEnabled?aT(t,e):iT(t,e);break}case E.PLAINTEXT:{E9(t,e);break}case E.COL:case E.TH:case E.TD:case E.TR:case E.HEAD:case E.FRAME:case E.TBODY:case E.TFOOT:case E.THEAD:case E.CAPTION:case E.COLGROUP:break;default:iT(t,e)}}function B9(t,e){if(t.openElements.hasInScope(E.BODY)&&(t.insertionMode=D.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}function U9(t,e){t.openElements.hasInScope(E.BODY)&&(t.insertionMode=D.AFTER_BODY,iR(t,e))}function j9(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function H9(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(E.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(E.FORM):n&&t.openElements.remove(n))}function $9(t){t.openElements.hasInButtonScope(E.P)||t._insertFakeElement(z.P,E.P),t._closePElement()}function z9(t){t.openElements.hasInListItemScope(E.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(E.LI),t.openElements.popUntilTagNamePopped(E.LI))}function q9(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function G9(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function W9(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function V9(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(z.BR,E.BR),t.openElements.pop(),t.framesetOk=!1}function XI(t,e){const n=e.tagName,r=e.tagID;for(let a=t.openElements.stackTop;a>0;a--){const i=t.openElements.items[a],s=t.openElements.tagIDs[a];if(r===s&&(r!==E.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=a&&t.openElements.shortenToLength(a);break}if(t._isSpecialElement(i,s))break}}function Gl(t,e){switch(e.tagID){case E.A:case E.B:case E.I:case E.S:case E.U:case E.EM:case E.TT:case E.BIG:case E.CODE:case E.FONT:case E.NOBR:case E.SMALL:case E.STRIKE:case E.STRONG:{N0(t,e);break}case E.P:{$9(t);break}case E.DL:case E.UL:case E.OL:case E.DIR:case E.DIV:case E.NAV:case E.PRE:case E.MAIN:case E.MENU:case E.ASIDE:case E.BUTTON:case E.CENTER:case E.FIGURE:case E.FOOTER:case E.HEADER:case E.HGROUP:case E.DIALOG:case E.ADDRESS:case E.ARTICLE:case E.DETAILS:case E.SEARCH:case E.SECTION:case E.SUMMARY:case E.LISTING:case E.FIELDSET:case E.BLOCKQUOTE:case E.FIGCAPTION:{j9(t,e);break}case E.LI:{z9(t);break}case E.DD:case E.DT:{q9(t,e);break}case E.H1:case E.H2:case E.H3:case E.H4:case E.H5:case E.H6:{G9(t);break}case E.BR:{V9(t);break}case E.BODY:{B9(t,e);break}case E.HTML:{U9(t,e);break}case E.FORM:{H9(t);break}case E.APPLET:case E.OBJECT:case E.MARQUEE:{W9(t,e);break}case E.TEMPLATE:{ma(t,e);break}default:XI(t,e)}}function ZI(t,e){t.tmplInsertionModeStack.length>0?aR(t,e):C0(t,e)}function Y9(t,e){var n;e.tagID===E.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function K9(t,e){t._err(e,q.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function $u(t,e){if(t.openElements.currentTagId!==void 0&&GI.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=D.IN_TABLE_TEXT,e.type){case _e.CHARACTER:{JI(t,e);break}case _e.WHITESPACE_CHARACTER:{QI(t,e);break}}else xs(t,e)}function X9(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,K.HTML),t.insertionMode=D.IN_CAPTION}function Z9(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,K.HTML),t.insertionMode=D.IN_COLUMN_GROUP}function Q9(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(z.COLGROUP,E.COLGROUP),t.insertionMode=D.IN_COLUMN_GROUP,w0(t,e)}function J9(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,K.HTML),t.insertionMode=D.IN_TABLE_BODY}function e$(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(z.TBODY,E.TBODY),t.insertionMode=D.IN_TABLE_BODY,Wl(t,e)}function t$(t,e){t.openElements.hasInTableScope(E.TABLE)&&(t.openElements.popUntilTagNamePopped(E.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function n$(t,e){KI(e)?t._appendElement(e,K.HTML):xs(t,e),e.ackSelfClosing=!0}function r$(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,K.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Wa(t,e){switch(e.tagID){case E.TD:case E.TH:case E.TR:{e$(t,e);break}case E.STYLE:case E.SCRIPT:case E.TEMPLATE:{xn(t,e);break}case E.COL:{Q9(t,e);break}case E.FORM:{r$(t,e);break}case E.TABLE:{t$(t,e);break}case E.TBODY:case E.TFOOT:case E.THEAD:{J9(t,e);break}case E.INPUT:{n$(t,e);break}case E.CAPTION:{X9(t,e);break}case E.COLGROUP:{Z9(t,e);break}default:xs(t,e)}}function rs(t,e){switch(e.tagID){case E.TABLE:{t.openElements.hasInTableScope(E.TABLE)&&(t.openElements.popUntilTagNamePopped(E.TABLE),t._resetInsertionMode());break}case E.TEMPLATE:{ma(t,e);break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TBODY:case E.TD:case E.TFOOT:case E.TH:case E.THEAD:case E.TR:break;default:xs(t,e)}}function xs(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,ql(t,e),t.fosterParentingEnabled=n}function QI(t,e){t.pendingCharacterTokens.push(e)}function JI(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function hi(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)xs(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const eR=new Set([E.CAPTION,E.COL,E.COLGROUP,E.TBODY,E.TD,E.TFOOT,E.TH,E.THEAD,E.TR]);function a$(t,e){const n=e.tagID;eR.has(n)?t.openElements.hasInTableScope(E.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(E.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=D.IN_TABLE,Wa(t,e)):Nt(t,e)}function i$(t,e){const n=e.tagID;switch(n){case E.CAPTION:case E.TABLE:{t.openElements.hasInTableScope(E.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(E.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=D.IN_TABLE,n===E.TABLE&&rs(t,e));break}case E.BODY:case E.COL:case E.COLGROUP:case E.HTML:case E.TBODY:case E.TD:case E.TFOOT:case E.TH:case E.THEAD:case E.TR:break;default:Gl(t,e)}}function w0(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.COL:{t._appendElement(e,K.HTML),e.ackSelfClosing=!0;break}case E.TEMPLATE:{xn(t,e);break}default:Lo(t,e)}}function s$(t,e){switch(e.tagID){case E.COLGROUP:{t.openElements.currentTagId===E.COLGROUP&&(t.openElements.pop(),t.insertionMode=D.IN_TABLE);break}case E.TEMPLATE:{ma(t,e);break}case E.COL:break;default:Lo(t,e)}}function Lo(t,e){t.openElements.currentTagId===E.COLGROUP&&(t.openElements.pop(),t.insertionMode=D.IN_TABLE,t._processToken(e))}function Wl(t,e){switch(e.tagID){case E.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,K.HTML),t.insertionMode=D.IN_ROW;break}case E.TH:case E.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(z.TR,E.TR),t.insertionMode=D.IN_ROW,Vl(t,e);break}case E.CAPTION:case E.COL:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE,Wa(t,e));break}default:Wa(t,e)}}function Ug(t,e){const n=e.tagID;switch(e.tagID){case E.TBODY:case E.TFOOT:case E.THEAD:{t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE);break}case E.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE,rs(t,e));break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TD:case E.TH:case E.TR:break;default:rs(t,e)}}function Vl(t,e){switch(e.tagID){case E.TH:case E.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,K.HTML),t.insertionMode=D.IN_CELL,t.activeFormattingElements.insertMarker();break}case E.CAPTION:case E.COL:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:case E.TR:{t.openElements.hasInTableScope(E.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE_BODY,Wl(t,e));break}default:Wa(t,e)}}function tR(t,e){switch(e.tagID){case E.TR:{t.openElements.hasInTableScope(E.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE_BODY);break}case E.TABLE:{t.openElements.hasInTableScope(E.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE_BODY,Ug(t,e));break}case E.TBODY:case E.TFOOT:case E.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(E.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=D.IN_TABLE_BODY,Ug(t,e));break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TD:case E.TH:break;default:rs(t,e)}}function o$(t,e){const n=e.tagID;eR.has(n)?(t.openElements.hasInTableScope(E.TD)||t.openElements.hasInTableScope(E.TH))&&(t._closeTableCell(),Vl(t,e)):Nt(t,e)}function l$(t,e){const n=e.tagID;switch(n){case E.TD:case E.TH:{t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=D.IN_ROW);break}case E.TABLE:case E.TBODY:case E.TFOOT:case E.THEAD:case E.TR:{t.openElements.hasInTableScope(n)&&(t._closeTableCell(),tR(t,e));break}case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:break;default:Gl(t,e)}}function nR(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.OPTION:{t.openElements.currentTagId===E.OPTION&&t.openElements.pop(),t._insertElement(e,K.HTML);break}case E.OPTGROUP:{t.openElements.currentTagId===E.OPTION&&t.openElements.pop(),t.openElements.currentTagId===E.OPTGROUP&&t.openElements.pop(),t._insertElement(e,K.HTML);break}case E.HR:{t.openElements.currentTagId===E.OPTION&&t.openElements.pop(),t.openElements.currentTagId===E.OPTGROUP&&t.openElements.pop(),t._appendElement(e,K.HTML),e.ackSelfClosing=!0;break}case E.INPUT:case E.KEYGEN:case E.TEXTAREA:case E.SELECT:{t.openElements.hasInSelectScope(E.SELECT)&&(t.openElements.popUntilTagNamePopped(E.SELECT),t._resetInsertionMode(),e.tagID!==E.SELECT&&t._processStartTag(e));break}case E.SCRIPT:case E.TEMPLATE:{xn(t,e);break}}}function rR(t,e){switch(e.tagID){case E.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===E.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===E.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===E.OPTGROUP&&t.openElements.pop();break}case E.OPTION:{t.openElements.currentTagId===E.OPTION&&t.openElements.pop();break}case E.SELECT:{t.openElements.hasInSelectScope(E.SELECT)&&(t.openElements.popUntilTagNamePopped(E.SELECT),t._resetInsertionMode());break}case E.TEMPLATE:{ma(t,e);break}}}function u$(t,e){const n=e.tagID;n===E.CAPTION||n===E.TABLE||n===E.TBODY||n===E.TFOOT||n===E.THEAD||n===E.TR||n===E.TD||n===E.TH?(t.openElements.popUntilTagNamePopped(E.SELECT),t._resetInsertionMode(),t._processStartTag(e)):nR(t,e)}function c$(t,e){const n=e.tagID;n===E.CAPTION||n===E.TABLE||n===E.TBODY||n===E.TFOOT||n===E.THEAD||n===E.TR||n===E.TD||n===E.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(E.SELECT),t._resetInsertionMode(),t.onEndTag(e)):rR(t,e)}function d$(t,e){switch(e.tagID){case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:case E.NOFRAMES:case E.SCRIPT:case E.STYLE:case E.TEMPLATE:case E.TITLE:{xn(t,e);break}case E.CAPTION:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:{t.tmplInsertionModeStack[0]=D.IN_TABLE,t.insertionMode=D.IN_TABLE,Wa(t,e);break}case E.COL:{t.tmplInsertionModeStack[0]=D.IN_COLUMN_GROUP,t.insertionMode=D.IN_COLUMN_GROUP,w0(t,e);break}case E.TR:{t.tmplInsertionModeStack[0]=D.IN_TABLE_BODY,t.insertionMode=D.IN_TABLE_BODY,Wl(t,e);break}case E.TD:case E.TH:{t.tmplInsertionModeStack[0]=D.IN_ROW,t.insertionMode=D.IN_ROW,Vl(t,e);break}default:t.tmplInsertionModeStack[0]=D.IN_BODY,t.insertionMode=D.IN_BODY,Nt(t,e)}}function p$(t,e){e.tagID===E.TEMPLATE&&ma(t,e)}function aR(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(E.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):C0(t,e)}function f$(t,e){e.tagID===E.HTML?Nt(t,e):Do(t,e)}function iR(t,e){var n;if(e.tagID===E.HTML){if(t.fragmentContext||(t.insertionMode=D.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===E.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&t._setEndLocation(r,e)}}else Do(t,e)}function Do(t,e){t.insertionMode=D.IN_BODY,ql(t,e)}function h$(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.FRAMESET:{t._insertElement(e,K.HTML);break}case E.FRAME:{t._appendElement(e,K.HTML),e.ackSelfClosing=!0;break}case E.NOFRAMES:{xn(t,e);break}}}function m$(t,e){e.tagID===E.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==E.FRAMESET&&(t.insertionMode=D.AFTER_FRAMESET))}function g$(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.NOFRAMES:{xn(t,e);break}}}function b$(t,e){e.tagID===E.HTML&&(t.insertionMode=D.AFTER_AFTER_FRAMESET)}function E$(t,e){e.tagID===E.HTML?Nt(t,e):io(t,e)}function io(t,e){t.insertionMode=D.IN_BODY,ql(t,e)}function y$(t,e){switch(e.tagID){case E.HTML:{Nt(t,e);break}case E.NOFRAMES:{xn(t,e);break}}}function T$(t,e){e.chars=Ve,t._insertCharacters(e)}function S$(t,e){t._insertCharacters(e),t.framesetOk=!1}function sR(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==K.HTML&&t.openElements.currentTagId!==void 0&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function x$(t,e){if(FH(e))sR(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===K.MATHML?zI(e):r===K.SVG&&(BH(e),qI(e)),_0(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function k$(t,e){if(e.tagID===E.P||e.tagID===E.BR){sR(t),t._endTagOutsideForeignContent(e);return}for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===K.HTML){t._endTagOutsideForeignContent(e);break}const a=t.treeAdapter.getTagName(r);if(a.toLowerCase()===e.tagName){e.tagName=a,t.openElements.shortenToLength(n);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const v$=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,A$=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sT={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function oR(t,e){const n=M$(t),r=OI("type",{handlers:{root:_$,element:N$,text:C$,comment:uR,doctype:w$,raw:R$},unknown:O$}),a={parser:n?new rT(sT):rT.getFragmentParser(void 0,sT),handle(o){r(o,a)},stitches:!1,options:e||{}};r(t,a),ni(a,Fn());const i=n?a.parser.document:a.parser.getFragment(),s=Pj(i,{file:a.options.file});return a.stitches&&zl(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===t.type?s.children[0]:s}function lR(t,e){let n=-1;if(t)for(;++n<t.length;)e.handle(t[n])}function _$(t,e){lR(t.children,e)}function N$(t,e){L$(t,e),lR(t.children,e),D$(t,e)}function C$(t,e){e.parser.tokenizer.state>4&&(e.parser.tokenizer.state=0);const n={type:_e.CHARACTER,chars:t.value,location:ks(t)};ni(e,Fn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function w$(t,e){const n={type:_e.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ks(t)};ni(e,Fn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function I$(t,e){e.stitches=!0;const n=P$(t);if("children"in t&&"children"in n){const r=oR({type:"root",children:t.children},e.options);n.children=r.children}uR({type:"comment",value:{stitch:n}},e)}function uR(t,e){const n=t.value,r={type:_e.COMMENT,data:n,location:ks(t)};ni(e,Fn(t)),e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)}function R$(t,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,cR(e,Fn(t)),e.parser.tokenizer.write(e.options.tagfilter?t.value.replace(v$,"<$1$2"):t.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=e.parser.tokenizer._consume();e.parser.tokenizer._callState(n)}}function O$(t,e){const n=t;if(e.options.passThrough&&e.options.passThrough.includes(n.type))I$(n,e);else{let r="";throw A$.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ni(t,e){cR(t,e);const n=t.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=t.parser.tokenizer.preprocessor.line,n.location.endCol=t.parser.tokenizer.preprocessor.col+1,n.location.endOffset=t.parser.tokenizer.preprocessor.offset+1,t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)),t.parser.tokenizer.paused=!1,t.parser.tokenizer.inLoop=!1,t.parser.tokenizer.active=!1,t.parser.tokenizer.returnState=et.DATA,t.parser.tokenizer.charRefCode=-1,t.parser.tokenizer.consumedAfterSnapshot=-1,t.parser.tokenizer.currentLocation=null,t.parser.tokenizer.currentCharacterToken=null,t.parser.tokenizer.currentToken=null,t.parser.tokenizer.currentAttr={name:"",value:""}}function cR(t,e){if(e&&e.offset!==void 0){const n={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};t.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,t.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,t.parser.tokenizer.preprocessor.line=e.line,t.parser.tokenizer.currentLocation=n}}function L$(t,e){const n=t.tagName.toLowerCase();if(e.parser.tokenizer.state===et.PLAINTEXT)return;ni(e,Fn(t));const r=e.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:zr.html;a===zr.html&&n==="svg"&&(a=zr.svg);const i=Hj({...t,children:[]},{space:a===zr.svg?"svg":"html"}),s={type:_e.START_TAG,tagName:n,tagID:ti(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:ks(t)};e.parser.currentToken=s,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=n}function D$(t,e){const n=t.tagName.toLowerCase();if(!e.parser.tokenizer.inForeignNode&&Kj.includes(n)||e.parser.tokenizer.state===et.PLAINTEXT)return;ni(e,Fl(t));const r={type:_e.END_TAG,tagName:n,tagID:ti(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ks(t)};e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken),n===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===et.RCDATA||e.parser.tokenizer.state===et.RAWTEXT||e.parser.tokenizer.state===et.SCRIPT_DATA)&&(e.parser.tokenizer.state=et.DATA)}function M$(t){const e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName.toLowerCase()==="html"))}function ks(t){const e=Fn(t)||{line:void 0,column:void 0,offset:void 0},n=Fl(t)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function P$(t){return"children"in t?Ga({...t,children:[]}):Ga(t)}function F$(t){return function(e,n){return oR(e,{...t,file:n})}}function oT(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(e);for(;a!==-1;)r++,a=n.indexOf(e,a+e.length);return r}function B$(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function U$(t,e,n){const a=Hl((n||{}).ignore||[]),i=j$(e);let s=-1;for(;++s<i.length;)_I(t,"text",o);function o(u,c){let d=-1,p;for(;++d<c.length;){const f=c[d],h=p?p.children:void 0;if(a(f,h?h.indexOf(f):void 0,p))return;p=f}if(p)return l(u,c)}function l(u,c){const d=c[c.length-1],p=i[s][0],f=i[s][1];let h=0;const b=d.children.indexOf(u);let y=!1,T=[];p.lastIndex=0;let x=p.exec(u.value);for(;x;){const k=x.index,A={index:x.index,input:x.input,stack:[...c,u]};let S=f(...x,A);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=k+1:(h!==k&&T.push({type:"text",value:u.value.slice(h,k)}),Array.isArray(S)?T.push(...S):S&&T.push(S),h=k+x[0].length,y=!0),!p.global)break;x=p.exec(u.value)}return y?(h<u.value.length&&T.push({type:"text",value:u.value.slice(h)}),d.children.splice(b,1,...T)):T=[u],b+T.length}}function j$(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const a=n[r];e.push([H$(a[0]),$$(a[1])])}return e}function H$(t){return typeof t=="string"?new RegExp(B$(t),"g"):t}function $$(t){return typeof t=="function"?t:function(){return t}}const zu="phrasing",qu=["autolink","link","image","label"];function z$(){return{transforms:[X$],enter:{literalAutolink:G$,literalAutolinkEmail:Gu,literalAutolinkHttp:Gu,literalAutolinkWww:Gu},exit:{literalAutolink:K$,literalAutolinkEmail:Y$,literalAutolinkHttp:W$,literalAutolinkWww:V$}}}function q$(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:zu,notInConstruct:qu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:zu,notInConstruct:qu},{character:":",before:"[ps]",after:"\\/",inConstruct:zu,notInConstruct:qu}]}}function G$(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Gu(t){this.config.enter.autolinkProtocol.call(this,t)}function W$(t){this.config.exit.autolinkProtocol.call(this,t)}function V$(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function Y$(t){this.config.exit.autolinkEmail.call(this,t)}function K$(t){this.exit(t)}function X$(t){U$(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Z$],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Q$]],{ignore:["link","linkReference"]})}function Z$(t,e,n,r,a){let i="";if(!dR(a)||(/^w/i.test(e)&&(n=e+n,e="",i="http://"),!J$(n)))return!1;const s=ez(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:i+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function Q$(t,e,n,r){return!dR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function J$(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function ez(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const a=oT(t,"(");let i=oT(t,")");for(;r!==-1&&a>i;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[t,n]}function dR(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||sa(n)||Bl(n))&&(!e||n!==47)}pR.peek=uz;function tz(){this.buffer()}function nz(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function rz(){this.buffer()}function az(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function iz(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=En(this.sliceSerialize(t)).toLowerCase(),n.label=e}function sz(t){this.exit(t)}function oz(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=En(this.sliceSerialize(t)).toLowerCase(),n.label=e}function lz(t){this.exit(t)}function uz(){return"["}function pR(t,e,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return i+=a.move(n.safe(n.associationId(t),{after:"]",before:i})),o(),s(),i+=a.move("]"),i}function cz(){return{enter:{gfmFootnoteCallString:tz,gfmFootnoteCall:nz,gfmFootnoteDefinitionLabelString:rz,gfmFootnoteDefinition:az},exit:{gfmFootnoteCallString:iz,gfmFootnoteCall:sz,gfmFootnoteDefinitionLabelString:oz,gfmFootnoteDefinition:lz}}}function dz(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:pR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,s){const o=i.createTracker(s);let l=o.move("[^");const u=i.enter("footnoteDefinition"),c=i.enter("label");return l+=o.move(i.safe(i.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((e?`
|
|
172
|
+
`:" ")+i.indentLines(i.containerFlow(r,o.current()),e?fR:pz))),u(),l}}function pz(t,e,n){return e===0?t:fR(t,e,n)}function fR(t,e,n){return(n?"":" ")+t}const fz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];hR.peek=Ez;function hz(){return{canContainEols:["delete"],enter:{strikethrough:gz},exit:{strikethrough:bz}}}function mz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fz}],handlers:{delete:hR}}}function gz(t){this.enter({type:"delete",children:[]},t)}function bz(t){this.exit(t)}function hR(t,e,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(t,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function Ez(){return"~"}function yz(t){return t.length}function Tz(t,e){const n=e||{},r=(n.align||[]).concat(),a=n.stringLength||yz,i=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<t.length;){const g=[],b=[];let y=-1;for(t[c].length>u&&(u=t[c].length);++y<t[c].length;){const T=Sz(t[c][y]);if(n.alignDelimiters!==!1){const x=a(T);b[y]=x,(l[y]===void 0||x>l[y])&&(l[y]=x)}g.push(T)}s[c]=g,o[c]=b}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)i[d]=lT(r[d]);else{const g=lT(r);for(;++d<u;)i[d]=g}d=-1;const p=[],f=[];for(;++d<u;){const g=i[d];let b="",y="";g===99?(b=":",y=":"):g===108?b=":":g===114&&(y=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[d]-b.length-y.length);const x=b+"-".repeat(T)+y;n.alignDelimiters!==!1&&(T=b.length+T+y.length,T>l[d]&&(l[d]=T),f[d]=T),p[d]=x}s.splice(1,0,p),o.splice(1,0,f),c=-1;const h=[];for(;++c<s.length;){const g=s[c],b=o[c];d=-1;const y=[];for(;++d<u;){const T=g[d]||"";let x="",k="";if(n.alignDelimiters!==!1){const A=l[d]-(b[d]||0),S=i[d];S===114?x=" ".repeat(A):S===99?A%2?(x=" ".repeat(A/2+.5),k=" ".repeat(A/2-.5)):(x=" ".repeat(A/2),k=x):k=" ".repeat(A)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(x),y.push(T),n.alignDelimiters!==!1&&y.push(k),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&y.push("|")}h.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return h.join(`
|
|
173
|
+
`)}function Sz(t){return t==null?"":String(t)}function lT(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function xz(t,e,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(t,i.current()),kz);return a(),s}function kz(t,e,n){return">"+(n?"":" ")+t}function vz(t,e){return uT(t,e.inConstruct,!0)&&!uT(t,e.notInConstruct,!1)}function uT(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function cT(t,e,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
174
|
+
`&&vz(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
175
|
+
`}function Az(t,e){const n=String(t);let r=n.indexOf(e),a=r,i=0,s=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>s&&(s=i):i=1,a=r+e.length,r=n.indexOf(e,a);return s}function _z(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Nz(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function Cz(t,e,n,r){const a=Nz(n),i=t.value||"",s=a==="`"?"GraveAccent":"Tilde";if(_z(t,n)){const d=n.enter("codeIndented"),p=n.indentLines(i,wz);return d(),p}const o=n.createTracker(r),l=a.repeat(Math.max(Az(i,a)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(t.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(t.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(t.lang&&t.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(t.meta,{before:c,after:`
|
|
176
|
+
`,encode:["`"],...o.current()})),d()}return c+=o.move(`
|
|
177
|
+
`),i&&(c+=o.move(i+`
|
|
178
|
+
`)),c+=o.move(l),u(),c}function wz(t,e,n){return(n?"":" ")+t}function I0(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Iz(t,e,n,r){const a=I0(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(t),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":`
|
|
179
|
+
`,...l.current()}))),o(),t.title&&(o=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(t.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),s(),u}function Rz(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function as(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Mo(t,e,n){const r=qa(t),a=qa(e);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}mR.peek=Oz;function mR(t,e,n,r){const a=Rz(n),i=n.enter("emphasis"),s=n.createTracker(r),o=s.move(a);let l=s.move(n.containerPhrasing(t,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Mo(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=as(u)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Mo(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+as(d));const f=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+l+f}function Oz(t,e,n){return n.options.emphasis||"*"}function Lz(t,e){let n=!1;return zl(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Rg}),!!((!t.depth||t.depth<3)&&g0(t)&&(e.options.setext||n))}function Dz(t,e,n,r){const a=Math.max(Math.min(6,t.depth||1),1),i=n.createTracker(r);if(Lz(t,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(t,{...i.current(),before:`
|
|
180
|
+
`,after:`
|
|
181
|
+
`});return d(),c(),p+`
|
|
182
|
+
`+(a===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
183
|
+
`))+1))}const s="#".repeat(a),o=n.enter("headingAtx"),l=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(t,{before:"# ",after:`
|
|
184
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=as(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}gR.peek=Mz;function gR(t){return t.value||""}function Mz(){return"<"}bR.peek=Pz;function bR(t,e,n,r){const a=I0(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(t.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":")",...l.current()}))),o(),t.title&&(o=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(t.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function Pz(){return"!"}ER.peek=Fz;function ER(t,e,n,r){const a=t.referenceType,i=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(t.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...o.current()});return s(),n.stack=c,i(),a==="full"||!u||u!==d?l+=o.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Fz(){return"!"}yR.peek=Bz;function yR(t,e,n){let r=t.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return a+r+a}function Bz(){return"`"}function TR(t,e){const n=g0(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}SR.peek=Uz;function SR(t,e,n,r){const a=I0(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(TR(t,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(t,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(t,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(t.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(t.url,{before:u,after:t.title?" ":")",...s.current()}))),l(),t.title&&(l=n.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(n.safe(t.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function Uz(t,e,n){return TR(t,n)?"<":"["}xR.peek=jz;function xR(t,e,n,r){const a=t.referenceType,i=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(t,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...o.current()});return s(),n.stack=c,i(),a==="full"||!u||u!==d?l+=o.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function jz(){return"["}function R0(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Hz(t){const e=R0(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function $z(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function kR(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function zz(t,e,n,r){const a=n.enter("list"),i=n.bulletCurrent;let s=t.ordered?$z(n):R0(n);const o=t.ordered?s==="."?")":".":Hz(n);let l=e&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!t.ordered){const c=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),kR(n)===s&&c){let d=-1;for(;++d<t.children.length;){const p=t.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(t,r);return n.bulletLastUsed=s,n.bulletCurrent=i,a(),u}function qz(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function Gz(t,e,n,r){const a=qz(n);let i=n.bulletCurrent||R0(n);e&&e.type==="list"&&e.ordered&&(i=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(i+" ".repeat(s-i.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(t,o.current()),c);return l(),u;function c(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?i:i+" ".repeat(s-i.length))+d}}function Wz(t,e,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(t,r);return i(),a(),s}const Vz=Hl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yz(t,e,n,r){return(t.children.some(function(s){return Vz(s)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function Kz(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}vR.peek=Xz;function vR(t,e,n,r){const a=Kz(n),i=n.enter("strong"),s=n.createTracker(r),o=s.move(a+a);let l=s.move(n.containerPhrasing(t,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Mo(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=as(u)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Mo(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+as(d));const f=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+l+f}function Xz(t,e,n){return n.options.strong||"*"}function Zz(t,e,n,r){return n.safe(t.value,r)}function Qz(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function Jz(t,e,n){const r=(kR(n)+(n.options.ruleSpaces?" ":"")).repeat(Qz(n));return n.options.ruleSpaces?r.slice(0,-1):r}const AR={blockquote:xz,break:cT,code:Cz,definition:Iz,emphasis:mR,hardBreak:cT,heading:Dz,html:gR,image:bR,imageReference:ER,inlineCode:yR,link:SR,linkReference:xR,list:zz,listItem:Gz,paragraph:Wz,root:Yz,strong:vR,text:Zz,thematicBreak:Jz};function e7(){return{enter:{table:t7,tableData:dT,tableHeader:dT,tableRow:r7},exit:{codeText:a7,table:n7,tableData:Wu,tableHeader:Wu,tableRow:Wu}}}function t7(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function n7(t){this.exit(t),this.data.inTable=void 0}function r7(t){this.enter({type:"tableRow",children:[]},t)}function Wu(t){this.exit(t)}function dT(t){this.enter({type:"tableCell",children:[]},t)}function a7(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,i7));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function i7(t,e){return e==="|"?e:t}function s7(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,a=e.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
185
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(f,h,g,b){return u(c(f,g,b),f.align)}function o(f,h,g,b){const y=d(f,g,b),T=u([y]);return T.slice(0,T.indexOf(`
|
|
186
|
+
`))}function l(f,h,g,b){const y=g.enter("tableCell"),T=g.enter("phrasing"),x=g.containerPhrasing(f,{...b,before:i,after:i});return T(),y(),x}function u(f,h){return Tz(f,{align:h,alignDelimiters:r,padding:n,stringLength:a})}function c(f,h,g){const b=f.children;let y=-1;const T=[],x=h.enter("table");for(;++y<b.length;)T[y]=d(b[y],h,g);return x(),T}function d(f,h,g){const b=f.children;let y=-1;const T=[],x=h.enter("tableRow");for(;++y<b.length;)T[y]=l(b[y],f,h,g);return x(),T}function p(f,h,g){let b=AR.inlineCode(f,h,g);return g.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function o7(){return{exit:{taskListCheckValueChecked:pT,taskListCheckValueUnchecked:pT,paragraph:u7}}}function l7(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:c7}}}function pT(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function u7(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=e.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function c7(t,e,n,r){const a=t.children[0],i=typeof t.checked=="boolean"&&a&&a.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",o=n.createTracker(r);i&&o.move(s);let l=AR.listItem(t,e,n,{...r,...o.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function d7(){return[z$(),cz(),hz(),e7(),o7()]}function p7(t){return{extensions:[q$(),dz(t),mz(),s7(t),l7()]}}const f7={tokenize:y7,partial:!0},_R={tokenize:T7,partial:!0},NR={tokenize:S7,partial:!0},CR={tokenize:x7,partial:!0},h7={tokenize:k7,partial:!0},wR={name:"wwwAutolink",tokenize:b7,previous:RR},IR={name:"protocolAutolink",tokenize:E7,previous:OR},ar={name:"emailAutolink",tokenize:g7,previous:LR},Bn={};function m7(){return{text:Bn}}let Mr=48;for(;Mr<123;)Bn[Mr]=ar,Mr++,Mr===58?Mr=65:Mr===91&&(Mr=97);Bn[43]=ar;Bn[45]=ar;Bn[46]=ar;Bn[95]=ar;Bn[72]=[ar,IR];Bn[104]=[ar,IR];Bn[87]=[ar,wR];Bn[119]=[ar,wR];function g7(t,e,n){const r=this;let a,i;return s;function s(d){return!jg(d)||!LR.call(r,r.previous)||O0(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(d))}function o(d){return jg(d)?(t.consume(d),o):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(h7,c,u)(d):d===45||d===95||kt(d)?(i=!0,t.consume(d),l):c(d)}function u(d){return t.consume(d),a=!0,l}function c(d){return i&&a&&Lt(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function b7(t,e,n){const r=this;return a;function a(s){return s!==87&&s!==119||!RR.call(r,r.previous)||O0(r.events)?n(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(f7,t.attempt(_R,t.attempt(NR,i),n),n)(s))}function i(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function E7(t,e,n){const r=this;let a="",i=!1;return s;function s(d){return(d===72||d===104)&&OR.call(r,r.previous)&&!O0(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),t.consume(d),o):n(d)}function o(d){if(Lt(d)&&a.length<5)return a+=String.fromCodePoint(d),t.consume(d),o;if(d===58){const p=a.toLowerCase();if(p==="http"||p==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),i?u:(i=!0,l)):n(d)}function u(d){return d===null||Io(d)||ze(d)||sa(d)||Bl(d)?n(d):t.attempt(_R,t.attempt(NR,c),n)(d)}function c(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function y7(t,e,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,t.consume(s),a):s===46&&r===3?(t.consume(s),i):n(s)}function i(s){return s===null?n(s):e(s)}}function T7(t,e,n){let r,a,i;return s;function s(u){return u===46||u===95?t.check(CR,l,o)(u):u===null||ze(u)||sa(u)||u!==45&&Bl(u)?l(u):(i=!0,t.consume(u),s)}function o(u){return u===95?r=!0:(a=r,r=void 0),t.consume(u),s}function l(u){return a||r||!i?n(u):e(u)}}function S7(t,e){let n=0,r=0;return a;function a(s){return s===40?(n++,t.consume(s),a):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(CR,e,i)(s):s===null||ze(s)||sa(s)?e(s):(t.consume(s),a)}function i(s){return s===41&&r++,t.consume(s),a}}function x7(t,e,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),r):o===38?(t.consume(o),i):o===93?(t.consume(o),a):o===60||o===null||ze(o)||sa(o)?e(o):n(o)}function a(o){return o===null||o===40||o===91||ze(o)||sa(o)?e(o):r(o)}function i(o){return Lt(o)?s(o):n(o)}function s(o){return o===59?(t.consume(o),r):Lt(o)?(t.consume(o),s):n(o)}}function k7(t,e,n){return r;function r(i){return t.consume(i),a}function a(i){return kt(i)?n(i):e(i)}}function RR(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||ze(t)}function OR(t){return!Lt(t)}function LR(t){return!(t===47||jg(t))}function jg(t){return t===43||t===45||t===46||t===95||kt(t)}function O0(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const v7={tokenize:O7,partial:!0};function A7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:w7,continuation:{tokenize:I7},exit:R7}},text:{91:{name:"gfmFootnoteCall",tokenize:C7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_7,resolveTo:N7}}}}function _7(t,e,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=En(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function N7(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",a,e],["exit",a,e],["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...o),t}function C7(t,e,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return o;function o(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(d){if(i>999||d===93&&!s||d===null||d===91||ze(d))return n(d);if(d===93){t.exit("chunkString");const p=t.exit("gfmFootnoteCallString");return a.includes(En(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return ze(d)||(s=!0),i++,t.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(t.consume(d),i++,u):u(d)}}function w7(t,e,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,o;return l;function l(h){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(h),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(h),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):n(h)}function c(h){if(s>999||h===93&&!o||h===null||h===91||ze(h))return n(h);if(h===93){t.exit("chunkString");const g=t.exit("gfmFootnoteDefinitionLabelString");return i=En(r.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(h),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return ze(h)||(o=!0),s++,t.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(t.consume(h),s++,c):c(h)}function p(h){return h===58?(t.enter("definitionMarker"),t.consume(h),t.exit("definitionMarker"),a.includes(i)||a.push(i),Ie(t,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return e(h)}}function I7(t,e,n){return t.check(Ts,e,t.attempt(v7,e,n))}function R7(t){t.exit("gfmFootnoteDefinition")}function O7(t,e,n){const r=this;return Ie(t,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(i):n(i)}}function L7(t){let n=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],f=o.parser.constructs.insideSpan.null;f&&Qt(p,p.length,0,Ul(f,s.slice(u+1,l),o)),Qt(p,p.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),Qt(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,o,l){const u=this.previous,c=this.events;let d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(s.enter("strikethroughSequenceTemporary"),f(h))}function f(h){const g=qa(u);if(h===126)return d>1?l(h):(s.consume(h),d++,f);if(d<2&&!n)return l(h);const b=s.exit("strikethroughSequenceTemporary"),y=qa(h);return b._open=!y||y===2&&!!g,b._close=!g||g===2&&!!y,o(h)}}}class D7{constructor(){this.map=[]}add(e,n,r){M7(this,e,n,r)}consume(e){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let a=r.pop();for(;a;){for(const i of a)e.push(i);a=r.pop()}this.map.length=0}}function M7(t,e,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<t.map.length;){if(t.map[a][0]===e){t.map[a][1]+=n,t.map[a][2].push(...r);return}a+=1}t.map.push([e,n,r])}}function P7(t,e){let n=!1;const r=[];for(;e<t.length;){const a=t[e];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function F7(){return{flow:{null:{name:"table",tokenize:B7,resolveAll:U7}}}}function B7(t,e,n){const r=this;let a=0,i=0,s;return o;function o(C){let L=r.events.length-1;for(;L>-1;){const F=r.events[L][1].type;if(F==="lineEnding"||F==="linePrefix")L--;else break}const P=L>-1?r.events[L][1].type:null,$=P==="tableHead"||P==="tableRow"?S:l;return $===S&&r.parser.lazy[r.now().line]?n(C):$(C)}function l(C){return t.enter("tableHead"),t.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,i+=1),c(C)}function c(C){return C===null?n(C):pe(C)?i>1?(i=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),f):n(C):Ne(C)?Ie(t,c,"whitespace")(C):(i+=1,s&&(s=!1,a+=1),C===124?(t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),s=!0,c):(t.enter("data"),d(C)))}function d(C){return C===null||C===124||ze(C)?(t.exit("data"),c(C)):(t.consume(C),C===92?p:d)}function p(C){return C===92||C===124?(t.consume(C),d):d(C)}function f(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(t.enter("tableDelimiterRow"),s=!1,Ne(C)?Ie(t,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):h(C))}function h(C){return C===45||C===58?b(C):C===124?(s=!0,t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),g):A(C)}function g(C){return Ne(C)?Ie(t,b,"whitespace")(C):b(C)}function b(C){return C===58?(i+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(C),t.exit("tableDelimiterMarker"),y):C===45?(i+=1,y(C)):C===null||pe(C)?k(C):A(C)}function y(C){return C===45?(t.enter("tableDelimiterFiller"),T(C)):A(C)}function T(C){return C===45?(t.consume(C),T):C===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(C),t.exit("tableDelimiterMarker"),x):(t.exit("tableDelimiterFiller"),x(C))}function x(C){return Ne(C)?Ie(t,k,"whitespace")(C):k(C)}function k(C){return C===124?h(C):C===null||pe(C)?!s||a!==i?A(C):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(C)):A(C)}function A(C){return n(C)}function S(C){return t.enter("tableRow"),v(C)}function v(C){return C===124?(t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),v):C===null||pe(C)?(t.exit("tableRow"),e(C)):Ne(C)?Ie(t,v,"whitespace")(C):(t.enter("data"),N(C))}function N(C){return C===null||C===124||ze(C)?(t.exit("data"),v(C)):(t.consume(C),C===92?_:N)}function _(C){return C===92||C===124?(t.consume(C),N):N(C)}}function U7(t,e){let n=-1,r=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,d;const p=new D7;for(;++n<t.length;){const f=t[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(o=!1,l!==0&&(fT(p,e,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,e]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,e]])),a=h.type==="tableDelimiterRow"?2:c?3:1):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=qs(p,e,i,a,void 0,d),i=[0,0,0,0]),s[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],d=qs(p,e,i,a,void 0,d)),i=s,s=[i[1],n,0,0])):h.type==="tableHead"?(o=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],d=qs(p,e,i,a,n,d)):s[1]!==0&&(d=qs(p,e,s,a,n,d)),a=0):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&fT(p,e,l,u,c),p.consume(e.events),n=-1;++n<e.events.length;){const f=e.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=P7(e.events,n))}return t}function qs(t,e,n,r,a,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(i.end=Object.assign({},Aa(e.events,n[0])),t.add(n[0],0,[["exit",i,e]]));const l=Aa(e.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",i,e]]),n[2]!==0){const u=Aa(e.events,n[2]),c=Aa(e.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){const p=e.events[n[2]],f=e.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,g=n[3]-n[2]-1;t.add(h,g,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return a!==void 0&&(i.end=Object.assign({},Aa(e.events,a)),t.add(a,0,[["exit",i,e]]),i=void 0),i}function fT(t,e,n,r,a){const i=[],s=Aa(e.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,e])),r.end=Object.assign({},s),i.push(["exit",r,e]),t.add(n+1,0,i)}function Aa(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const j7={name:"tasklistCheck",tokenize:$7};function H7(){return{text:{91:j7}}}function $7(t,e,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),i)}function i(l){return ze(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):n(l)}function o(l){return pe(l)?e(l):Ne(l)?t.check({tokenize:z7},e,n)(l):n(l)}}function z7(t,e,n){return Ie(t,r,"whitespace");function r(a){return a===null?n(a):e(a)}}function q7(t){return oI([m7(),A7(),L7(t),F7(),H7()])}const G7={};function DR(t){const e=this,n=t||G7,r=e.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(q7(n)),i.push(d7()),s.push(p7(n))}function W7(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function V7(t,e){if(t==null)return{};var n,r,a=W7(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Hg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Y7(t){if(Array.isArray(t))return Hg(t)}function K7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function X7(t,e){if(t){if(typeof t=="string")return Hg(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hg(t,e):void 0}}function Z7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
187
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $g(t){return Y7(t)||K7(t)||X7(t)||Z7()}function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function Q7(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function J7(t){var e=Q7(t,"string");return is(e)=="symbol"?e:e+""}function MR(t,e,n){return(e=J7(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zg(){return zg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zg.apply(null,arguments)}function hT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ra(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hT(Object(n),!0).forEach(function(r){MR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function eq(t){var e=t.length;if(e===0||e===1)return t;if(e===2)return[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])];if(e===3)return[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])];if(e>=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var Vu={};function tq(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return Vu[e]||(Vu[e]=eq(t)),Vu[e]}function nq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.filter(function(i){return i!=="token"}),a=tq(r);return a.reduce(function(i,s){return Ra(Ra({},i),n[s])},e)}function mT(t){return t.join(" ")}function rq(t,e){var n=0;return function(r){return n+=1,r.map(function(a,i){return PR({node:a,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(n,"-").concat(i)})})}}function PR(t){var e=t.node,n=t.stylesheet,r=t.style,a=r===void 0?{}:r,i=t.useInlineStyles,s=t.key,o=e.properties,l=e.type,u=e.tagName,c=e.value;if(l==="text")return c;if(u){var d=rq(n,i),p;if(!i)p=Ra(Ra({},o),{},{className:mT(o.className)});else{var f=Object.keys(n).reduce(function(y,T){return T.split(".").forEach(function(x){y.includes(x)||y.push(x)}),y},[]),h=o.className&&o.className.includes("token")?["token"]:[],g=o.className&&h.concat(o.className.filter(function(y){return!f.includes(y)}));p=Ra(Ra({},o),{},{className:mT(g)||void 0,style:nq(o.className,Object.assign({},o.style,a),n)})}var b=d(e.children);return xt.createElement(u,zg({key:s},p),b)}}const aq=(function(t,e){var n=t.listLanguages();return n.indexOf(e)!==-1});var iq=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function gT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Tr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gT(Object(n),!0).forEach(function(r){MR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var sq=/\n/g;function oq(t){return t.match(sq)}function lq(t){var e=t.lines,n=t.startingLineNumber,r=t.style;return e.map(function(a,i){var s=i+n;return xt.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(s):r},"".concat(s,`
|
|
188
|
+
`))})}function uq(t){var e=t.codeString,n=t.codeStyle,r=t.containerStyle,a=r===void 0?{float:"left",paddingRight:"10px"}:r,i=t.numberStyle,s=i===void 0?{}:i,o=t.startingLineNumber;return xt.createElement("code",{style:Object.assign({},n,a)},lq({lines:e.replace(/\n$/,"").split(`
|
|
189
|
+
`),style:s,startingLineNumber:o}))}function cq(t){return"".concat(t.toString().length,".25em")}function FR(t,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:t}]}}function BR(t,e,n){var r={display:"inline-block",minWidth:cq(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof t=="function"?t(e):t,i=Tr(Tr({},r),a);return i}function so(t){var e=t.children,n=t.lineNumber,r=t.lineNumberStyle,a=t.largestLineNumber,i=t.showInlineLineNumbers,s=t.lineProps,o=s===void 0?{}:s,l=t.className,u=l===void 0?[]:l,c=t.showLineNumbers,d=t.wrapLongLines,p=t.wrapLines,f=p===void 0?!1:p,h=f?Tr({},typeof o=="function"?o(n):o):{};if(h.className=h.className?[].concat($g(h.className.trim().split(/\s+/)),$g(u)):u,n&&i){var g=BR(r,n,a);e.unshift(FR(n,g))}return d&c&&(h.style=Tr({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:e}}function UR(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<t.length;r++){var a=t[r];if(a.type==="text")n.push(so({children:[a],className:$g(new Set(e))}));else if(a.children){var i=e.concat(a.properties.className);UR(a.children,i).forEach(function(s){return n.push(s)})}}return n}function dq(t,e,n,r,a,i,s,o,l){var u,c=UR(t.value),d=[],p=-1,f=0;function h(A,S){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return so({children:A,lineNumber:S,lineNumberStyle:o,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:v,showLineNumbers:r,wrapLongLines:l,wrapLines:e})}function g(A,S){if(r&&S&&a){var v=BR(o,S,s);A.unshift(FR(S,v))}return A}function b(A,S){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||v.length>0?h(A,S,v):g(A,S)}for(var y=function(){var S=c[f],v=S.children[0].value,N=oq(v);if(N){var _=v.split(`
|
|
190
|
+
`);_.forEach(function(C,L){var P=r&&d.length+i,$={type:"text",value:"".concat(C,`
|
|
191
|
+
`)};if(L===0){var F=c.slice(p+1,f).concat(so({children:[$],className:S.properties.className})),M=b(F,P);d.push(M)}else if(L===_.length-1){var H=c[f+1]&&c[f+1].children&&c[f+1].children[0],j={type:"text",value:"".concat(C)};if(H){var B=so({children:[j],className:S.properties.className});c.splice(f+1,0,B)}else{var Y=[j],w=b(Y,P,S.properties.className);d.push(w)}}else{var V=[$],ee=b(V,P,S.properties.className);d.push(ee)}}),p=f}f++};f<c.length;)y();if(p!==c.length-1){var T=c.slice(p+1,c.length);if(T&&T.length){var x=r&&d.length+i,k=b(T,x);d.push(k)}}return e?d:(u=[]).concat.apply(u,d)}function pq(t){var e=t.rows,n=t.stylesheet,r=t.useInlineStyles;return e.map(function(a,i){return PR({node:a,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(i)})})}function jR(t){return t&&typeof t.highlightAuto<"u"}function fq(t){var e=t.astGenerator,n=t.language,r=t.code,a=t.defaultCodeValue;if(jR(e)){var i=aq(e,n);return n==="text"?{value:a,language:"text"}:i?e.highlight(n,r):e.highlightAuto(r)}try{return n&&n!=="text"?{value:e.highlight(r,n)}:{value:a}}catch{return{value:a}}}function hq(t,e){return function(r){var a,i,s=r.language,o=r.children,l=r.style,u=l===void 0?e:l,c=r.customStyle,d=c===void 0?{}:c,p=r.codeTagProps,f=p===void 0?{className:s?"language-".concat(s):void 0,style:Tr(Tr({},u['code[class*="language-"]']),u['code[class*="language-'.concat(s,'"]')])}:p,h=r.useInlineStyles,g=h===void 0?!0:h,b=r.showLineNumbers,y=b===void 0?!1:b,T=r.showInlineLineNumbers,x=T===void 0?!0:T,k=r.startingLineNumber,A=k===void 0?1:k,S=r.lineNumberContainerStyle,v=r.lineNumberStyle,N=v===void 0?{}:v,_=r.wrapLines,C=r.wrapLongLines,L=C===void 0?!1:C,P=r.lineProps,$=P===void 0?{}:P,F=r.renderer,M=r.PreTag,H=M===void 0?"pre":M,j=r.CodeTag,B=j===void 0?"code":j,Y=r.code,w=Y===void 0?(Array.isArray(o)?o[0]:o)||"":Y,V=r.astGenerator,ee=V7(r,iq);V=V||t;var R=y?xt.createElement(uq,{containerStyle:S,codeStyle:f.style||{},numberStyle:N,startingLineNumber:A,codeString:w}):null,ne=u.hljs||u['pre[class*="language-"]']||{backgroundColor:"#fff"},ie=jR(V)?"hljs":"prismjs",re=g?Object.assign({},ee,{style:Object.assign({},ne,d)}):Object.assign({},ee,{className:ee.className?"".concat(ie," ").concat(ee.className):ie,style:Object.assign({},d)});if(L?f.style=Tr({whiteSpace:"pre-wrap"},f.style):f.style=Tr({whiteSpace:"pre"},f.style),!V)return xt.createElement(H,re,R,xt.createElement(B,f,w));(_===void 0&&F||L)&&(_=!0),F=F||pq;var me=[{type:"text",value:w}],Te=fq({astGenerator:V,language:s,code:w,defaultCodeValue:me});Te.language===null&&(Te.value=me);var De=(a=(i=w.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&a!==void 0?a:0,he=A+De,we=dq(Te,_,$,y,x,A,he,N,L);return xt.createElement(H,re,xt.createElement(B,f,!x&&R,F({rows:we,stylesheet:u,useInlineStyles:g})))}}const mq=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Yu,bT;function gq(){if(bT)return Yu;bT=1,Yu=e;var t=Object.prototype.hasOwnProperty;function e(){for(var n={},r=0;r<arguments.length;r++){var a=arguments[r];for(var i in a)t.call(a,i)&&(n[i]=a[i])}return n}return Yu}var Ku,ET;function HR(){if(ET)return Ku;ET=1,Ku=e;var t=e.prototype;t.space=null,t.normal={},t.property={};function e(n,r,a){this.property=n,this.normal=r,a&&(this.space=a)}return Ku}var Xu,yT;function bq(){if(yT)return Xu;yT=1;var t=gq(),e=HR();Xu=n;function n(r){for(var a=r.length,i=[],s=[],o=-1,l,u;++o<a;)l=r[o],i.push(l.property),s.push(l.normal),u=l.space;return new e(t.apply(null,i),t.apply(null,s),u)}return Xu}var Zu,TT;function L0(){if(TT)return Zu;TT=1,Zu=t;function t(e){return e.toLowerCase()}return Zu}var Qu,ST;function $R(){if(ST)return Qu;ST=1,Qu=e;var t=e.prototype;t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1;function e(n,r){this.property=n,this.attribute=r}return Qu}var Hn={},xT;function D0(){if(xT)return Hn;xT=1;var t=0;Hn.boolean=e(),Hn.booleanish=e(),Hn.overloadedBoolean=e(),Hn.number=e(),Hn.spaceSeparated=e(),Hn.commaSeparated=e(),Hn.commaOrSpaceSeparated=e();function e(){return Math.pow(2,++t)}return Hn}var Ju,kT;function zR(){if(kT)return Ju;kT=1;var t=$R(),e=D0();Ju=a,a.prototype=new t,a.prototype.defined=!0;var n=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],r=n.length;function a(s,o,l,u){var c=-1,d;for(i(this,"space",u),t.call(this,s,o);++c<r;)d=n[c],i(this,d,(l&e[d])===e[d])}function i(s,o,l){l&&(s[o]=l)}return Ju}var ec,vT;function vs(){if(vT)return ec;vT=1;var t=L0(),e=HR(),n=zR();ec=r;function r(a){var i=a.space,s=a.mustUseProperty||[],o=a.attributes||{},l=a.properties,u=a.transform,c={},d={},p,f;for(p in l)f=new n(p,u(o,p),l[p],i),s.indexOf(p)!==-1&&(f.mustUseProperty=!0),c[p]=f,d[t(p)]=p,d[t(f.attribute)]=p;return new e(c,d,i)}return ec}var tc,AT;function Eq(){if(AT)return tc;AT=1;var t=vs();tc=t({space:"xlink",transform:e,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function e(n,r){return"xlink:"+r.slice(5).toLowerCase()}return tc}var nc,_T;function yq(){if(_T)return nc;_T=1;var t=vs();nc=t({space:"xml",transform:e,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e(n,r){return"xml:"+r.slice(3).toLowerCase()}return nc}var rc,NT;function Tq(){if(NT)return rc;NT=1,rc=t;function t(e,n){return n in e?e[n]:n}return rc}var ac,CT;function qR(){if(CT)return ac;CT=1;var t=Tq();ac=e;function e(n,r){return t(n,r.toLowerCase())}return ac}var ic,wT;function Sq(){if(wT)return ic;wT=1;var t=vs(),e=qR();return ic=t({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e,properties:{xmlns:null,xmlnsXLink:null}}),ic}var sc,IT;function xq(){if(IT)return sc;IT=1;var t=D0(),e=vs(),n=t.booleanish,r=t.number,a=t.spaceSeparated;sc=e({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:n,ariaAutoComplete:null,ariaBusy:n,ariaChecked:n,ariaColCount:r,ariaColIndex:r,ariaColSpan:r,ariaControls:a,ariaCurrent:null,ariaDescribedBy:a,ariaDetails:null,ariaDisabled:n,ariaDropEffect:a,ariaErrorMessage:null,ariaExpanded:n,ariaFlowTo:a,ariaGrabbed:n,ariaHasPopup:null,ariaHidden:n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:a,ariaLevel:r,ariaLive:null,ariaModal:n,ariaMultiLine:n,ariaMultiSelectable:n,ariaOrientation:null,ariaOwns:a,ariaPlaceholder:null,ariaPosInSet:r,ariaPressed:n,ariaReadOnly:n,ariaRelevant:null,ariaRequired:n,ariaRoleDescription:a,ariaRowCount:r,ariaRowIndex:r,ariaRowSpan:r,ariaSelected:n,ariaSetSize:r,ariaSort:null,ariaValueMax:r,ariaValueMin:r,ariaValueNow:r,ariaValueText:null,role:null}});function i(s,o){return o==="role"?o:"aria-"+o.slice(4).toLowerCase()}return sc}var oc,RT;function kq(){if(RT)return oc;RT=1;var t=D0(),e=vs(),n=qR(),r=t.boolean,a=t.overloadedBoolean,i=t.booleanish,s=t.number,o=t.spaceSeparated,l=t.commaSeparated;return oc=e({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:o,accessKey:o,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:o,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:o,cols:s,colSpan:null,content:null,contentEditable:i,controls:r,controlsList:o,coords:s|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:a,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:o,height:s,hidden:r,high:s,href:null,hrefLang:null,htmlFor:o,httpEquiv:o,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:o,itemRef:o,itemScope:r,itemType:o,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:s,pattern:null,ping:o,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:o,required:r,reversed:r,rows:s,rowSpan:s,sandbox:o,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:o,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:s,security:null,unselectable:null}}),oc}var lc,OT;function vq(){if(OT)return lc;OT=1;var t=bq(),e=Eq(),n=yq(),r=Sq(),a=xq(),i=kq();return lc=t([n,e,r,a,i]),lc}var uc,LT;function Aq(){if(LT)return uc;LT=1;var t=L0(),e=zR(),n=$R(),r="data";uc=o;var a=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function o(p,f){var h=t(f),g=f,b=n;return h in p.normal?p.property[p.normal[h]]:(h.length>4&&h.slice(0,4)===r&&a.test(f)&&(f.charAt(4)==="-"?g=l(f):f=u(f),b=e),new b(g,f))}function l(p){var f=p.slice(5).replace(i,d);return r+f.charAt(0).toUpperCase()+f.slice(1)}function u(p){var f=p.slice(4);return i.test(f)?p:(f=f.replace(s,c),f.charAt(0)!=="-"&&(f="-"+f),r+f)}function c(p){return"-"+p.toLowerCase()}function d(p){return p.charAt(1).toUpperCase()}return uc}var cc,DT;function _q(){if(DT)return cc;DT=1,cc=e;var t=/[#.]/g;function e(n,r){for(var a=n||"",i=r||"div",s={},o=0,l,u,c;o<a.length;)t.lastIndex=o,c=t.exec(a),l=a.slice(o,c?c.index:a.length),l&&(u?u==="#"?s.id=l:s.className?s.className.push(l):s.className=[l]:i=l,o+=l.length),c&&(u=c[0],o++);return{type:"element",tagName:i,properties:s,children:[]}}return cc}var Gs={},MT;function Nq(){if(MT)return Gs;MT=1,Gs.parse=r,Gs.stringify=a;var t="",e=" ",n=/[ \t\n\r\f]+/g;function r(i){var s=String(i||t).trim();return s===t?[]:s.split(n)}function a(i){return i.join(e).trim()}return Gs}var Ws={},PT;function Cq(){if(PT)return Ws;PT=1,Ws.parse=r,Ws.stringify=a;var t=",",e=" ",n="";function r(i){for(var s=[],o=String(i||n),l=o.indexOf(t),u=0,c=!1,d;!c;)l===-1&&(l=o.length,c=!0),d=o.slice(u,l).trim(),(d||!c)&&s.push(d),u=l+1,l=o.indexOf(t,u);return s}function a(i,s){var o=s||{},l=o.padLeft===!1?n:e,u=o.padRight?e:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(u+t+l).trim()}return Ws}var dc,FT;function wq(){if(FT)return dc;FT=1;var t=Aq(),e=L0(),n=_q(),r=Nq().parse,a=Cq().parse;dc=s;var i={}.hasOwnProperty;function s(h,g,b){var y=b?f(b):null;return T;function T(k,A){var S=n(k,g),v=Array.prototype.slice.call(arguments,2),N=S.tagName.toLowerCase(),_;if(S.tagName=y&&i.call(y,N)?y[N]:N,A&&o(A,S)&&(v.unshift(A),A=null),A)for(_ in A)x(S.properties,_,A[_]);return u(S.children,v),S.tagName==="template"&&(S.content={type:"root",children:S.children},S.children=[]),S}function x(k,A,S){var v,N,_;S==null||S!==S||(v=t(h,A),N=v.property,_=S,typeof _=="string"&&(v.spaceSeparated?_=r(_):v.commaSeparated?_=a(_):v.commaOrSpaceSeparated&&(_=r(a(_).join(" ")))),N==="style"&&typeof S!="string"&&(_=p(_)),N==="className"&&k.className&&(_=k.className.concat(_)),k[N]=c(v,N,_))}}function o(h,g){return typeof h=="string"||"length"in h||l(g.tagName,h)}function l(h,g){var b=g.type;return h==="input"||!b||typeof b!="string"?!1:typeof g.children=="object"&&"length"in g.children?!0:(b=b.toLowerCase(),h==="button"?b!=="menu"&&b!=="submit"&&b!=="reset"&&b!=="button":"value"in g)}function u(h,g){var b,y;if(typeof g=="string"||typeof g=="number"){h.push({type:"text",value:String(g)});return}if(typeof g=="object"&&"length"in g){for(b=-1,y=g.length;++b<y;)u(h,g[b]);return}if(typeof g!="object"||!("type"in g))throw new Error("Expected node, nodes, or string, got `"+g+"`");h.push(g)}function c(h,g,b){var y,T,x;if(typeof b!="object"||!("length"in b))return d(h,g,b);for(T=b.length,y=-1,x=[];++y<T;)x[y]=d(h,g,b[y]);return x}function d(h,g,b){var y=b;return h.number||h.positiveNumber?!isNaN(y)&&y!==""&&(y=Number(y)):(h.boolean||h.overloadedBoolean)&&typeof y=="string"&&(y===""||e(b)===e(g))&&(y=!0),y}function p(h){var g=[],b;for(b in h)g.push([b,h[b]].join(": "));return g.join("; ")}function f(h){for(var g=h.length,b=-1,y={},T;++b<g;)T=h[b],y[T.toLowerCase()]=T;return y}return dc}var pc,BT;function Iq(){if(BT)return pc;BT=1;var t=vq(),e=wq(),n=e(t,"div");return n.displayName="html",pc=n,pc}var fc,UT;function Rq(){return UT||(UT=1,fc=Iq()),fc}const Oq="Æ",Lq="&",Dq="Á",Mq="Â",Pq="À",Fq="Å",Bq="Ã",Uq="Ä",jq="©",Hq="Ç",$q="Ð",zq="É",qq="Ê",Gq="È",Wq="Ë",Vq=">",Yq="Í",Kq="Î",Xq="Ì",Zq="Ï",Qq="<",Jq="Ñ",eG="Ó",tG="Ô",nG="Ò",rG="Ø",aG="Õ",iG="Ö",sG='"',oG="®",lG="Þ",uG="Ú",cG="Û",dG="Ù",pG="Ü",fG="Ý",hG="á",mG="â",gG="´",bG="æ",EG="à",yG="&",TG="å",SG="ã",xG="ä",kG="¦",vG="ç",AG="¸",_G="¢",NG="©",CG="¤",wG="°",IG="÷",RG="é",OG="ê",LG="è",DG="ð",MG="ë",PG="½",FG="¼",BG="¾",UG=">",jG="í",HG="î",$G="¡",zG="ì",qG="¿",GG="ï",WG="«",VG="<",YG="¯",KG="µ",XG="·",ZG=" ",QG="¬",JG="ñ",eW="ó",tW="ô",nW="ò",rW="ª",aW="º",iW="ø",sW="õ",oW="ö",lW="¶",uW="±",cW="£",dW='"',pW="»",fW="®",hW="§",mW="",gW="¹",bW="²",EW="³",yW="ß",TW="þ",SW="×",xW="ú",kW="û",vW="ù",AW="¨",_W="ü",NW="ý",CW="¥",wW="ÿ",IW={AElig:Oq,AMP:Lq,Aacute:Dq,Acirc:Mq,Agrave:Pq,Aring:Fq,Atilde:Bq,Auml:Uq,COPY:jq,Ccedil:Hq,ETH:$q,Eacute:zq,Ecirc:qq,Egrave:Gq,Euml:Wq,GT:Vq,Iacute:Yq,Icirc:Kq,Igrave:Xq,Iuml:Zq,LT:Qq,Ntilde:Jq,Oacute:eG,Ocirc:tG,Ograve:nG,Oslash:rG,Otilde:aG,Ouml:iG,QUOT:sG,REG:oG,THORN:lG,Uacute:uG,Ucirc:cG,Ugrave:dG,Uuml:pG,Yacute:fG,aacute:hG,acirc:mG,acute:gG,aelig:bG,agrave:EG,amp:yG,aring:TG,atilde:SG,auml:xG,brvbar:kG,ccedil:vG,cedil:AG,cent:_G,copy:NG,curren:CG,deg:wG,divide:IG,eacute:RG,ecirc:OG,egrave:LG,eth:DG,euml:MG,frac12:PG,frac14:FG,frac34:BG,gt:UG,iacute:jG,icirc:HG,iexcl:$G,igrave:zG,iquest:qG,iuml:GG,laquo:WG,lt:VG,macr:YG,micro:KG,middot:XG,nbsp:ZG,not:QG,ntilde:JG,oacute:eW,ocirc:tW,ograve:nW,ordf:rW,ordm:aW,oslash:iW,otilde:sW,ouml:oW,para:lW,plusmn:uW,pound:cW,quot:dW,raquo:pW,reg:fW,sect:hW,shy:mW,sup1:gW,sup2:bW,sup3:EW,szlig:yW,thorn:TW,times:SW,uacute:xW,ucirc:kW,ugrave:vW,uml:AW,uuml:_W,yacute:NW,yen:CW,yuml:wW},RW={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var hc,jT;function GR(){if(jT)return hc;jT=1,hc=t;function t(e){var n=typeof e=="string"?e.charCodeAt(0):e;return n>=48&&n<=57}return hc}var mc,HT;function OW(){if(HT)return mc;HT=1,mc=t;function t(e){var n=typeof e=="string"?e.charCodeAt(0):e;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return mc}var gc,$T;function LW(){if($T)return gc;$T=1,gc=t;function t(e){var n=typeof e=="string"?e.charCodeAt(0):e;return n>=97&&n<=122||n>=65&&n<=90}return gc}var bc,zT;function DW(){if(zT)return bc;zT=1;var t=LW(),e=GR();bc=n;function n(r){return t(r)||e(r)}return bc}var Ec,qT;function MW(){if(qT)return Ec;qT=1;var t,e=59;Ec=n;function n(r){var a="&"+r+";",i;return t=t||document.createElement("i"),t.innerHTML=a,i=t.textContent,i.charCodeAt(i.length-1)===e&&r!=="semi"||i===a?!1:i}return Ec}var yc,GT;function PW(){if(GT)return yc;GT=1;var t=IW,e=RW,n=GR(),r=OW(),a=DW(),i=MW();yc=Y;var s={}.hasOwnProperty,o=String.fromCharCode,l=Function.prototype,u={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},c=9,d=10,p=12,f=32,h=38,g=59,b=60,y=61,T=35,x=88,k=120,A=65533,S="named",v="hexadecimal",N="decimal",_={};_[v]=16,_[N]=10;var C={};C[S]=a,C[N]=n,C[v]=r;var L=1,P=2,$=3,F=4,M=5,H=6,j=7,B={};B[L]="Named character references must be terminated by a semicolon",B[P]="Numeric character references must be terminated by a semicolon",B[$]="Named character references cannot be empty",B[F]="Numeric character references cannot be empty",B[M]="Named character references must be known",B[H]="Numeric character references cannot be disallowed",B[j]="Numeric character references cannot be outside the permissible Unicode range";function Y(R,ne){var ie={},re,me;ne||(ne={});for(me in u)re=ne[me],ie[me]=re??u[me];return(ie.position.indent||ie.position.start)&&(ie.indent=ie.position.indent||[],ie.position=ie.position.start),w(R,ie)}function w(R,ne){var ie=ne.additional,re=ne.nonTerminated,me=ne.text,Te=ne.reference,De=ne.warning,he=ne.textContext,we=ne.referenceContext,de=ne.warningContext,ce=ne.position,ve=ne.indent||[],je=R.length,Re=0,Ye=-1,He=ce.column||1,Ze=ce.line||1,oe="",Ae=[],Oe,yt,en,ft,G,Z,se,be,Me,Ct,wt,It,Yt,Rt,Tt,tn,Ut,kn,lt;for(typeof ie=="string"&&(ie=ie.charCodeAt(0)),tn=ri(),be=De?OO:l,Re--,je++;++Re<je;)if(G===d&&(He=ve[Ye]||1),G=R.charCodeAt(Re),G===h){if(se=R.charCodeAt(Re+1),se===c||se===d||se===p||se===f||se===h||se===b||se!==se||ie&&se===ie){oe+=o(G),He++;continue}for(Yt=Re+1,It=Yt,lt=Yt,se===T?(lt=++It,se=R.charCodeAt(lt),se===x||se===k?(Rt=v,lt=++It):Rt=N):Rt=S,Oe="",wt="",ft="",Tt=C[Rt],lt--;++lt<je&&(se=R.charCodeAt(lt),!!Tt(se));)ft+=o(se),Rt===S&&s.call(t,ft)&&(Oe=ft,wt=t[ft]);en=R.charCodeAt(lt)===g,en&&(lt++,yt=Rt===S?i(ft):!1,yt&&(Oe=ft,wt=yt)),kn=1+lt-Yt,!en&&!re||(ft?Rt===S?(en&&!wt?be(M,1):(Oe!==ft&&(lt=It+Oe.length,kn=1+lt-It,en=!1),en||(Me=Oe?L:$,ne.attribute?(se=R.charCodeAt(lt),se===y?(be(Me,kn),wt=null):a(se)?wt=null:be(Me,kn)):be(Me,kn))),Z=wt):(en||be(P,kn),Z=parseInt(ft,_[Rt]),V(Z)?(be(j,kn),Z=o(A)):Z in e?(be(H,kn),Z=e[Z]):(Ct="",ee(Z)&&be(H,kn),Z>65535&&(Z-=65536,Ct+=o(Z>>>10|55296),Z=56320|Z&1023),Z=Ct+o(Z))):Rt!==S&&be(F,kn)),Z?(RE(),tn=ri(),Re=lt-1,He+=lt-Yt+1,Ae.push(Z),Ut=ri(),Ut.offset++,Te&&Te.call(we,Z,{start:tn,end:Ut},R.slice(Yt-1,lt)),tn=Ut):(ft=R.slice(Yt-1,lt),oe+=ft,He+=ft.length,Re=lt-1)}else G===10&&(Ze++,Ye++,He=0),G===G?(oe+=o(G),He++):RE();return Ae.join("");function ri(){return{line:Ze,column:He,offset:Re+(ce.offset||0)}}function OO(OE,LE){var ou=ri();ou.column+=LE,ou.offset+=LE,De.call(de,B[OE],ou,OE)}function RE(){oe&&(Ae.push(oe),me&&me.call(he,oe,{start:tn,end:ri()}),oe="")}}function V(R){return R>=55296&&R<=57343||R>1114111}function ee(R){return R>=1&&R<=8||R===11||R>=13&&R<=31||R>=127&&R<=159||R>=64976&&R<=65007||(R&65535)===65535||(R&65535)===65534}return yc}var Tc={exports:{}},WT;function FW(){return WT||(WT=1,(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=(function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function T(x){return x instanceof l?new l(x.type,T(x.content),x.alias):Array.isArray(x)?x.map(T):x.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(T){return Object.prototype.toString.call(T).slice(8,-1)},objId:function(T){return T.__id||Object.defineProperty(T,"__id",{value:++i}),T.__id},clone:function T(x,k){k=k||{};var A,S;switch(o.util.type(x)){case"Object":if(S=o.util.objId(x),k[S])return k[S];A={},k[S]=A;for(var v in x)x.hasOwnProperty(v)&&(A[v]=T(x[v],k));return A;case"Array":return S=o.util.objId(x),k[S]?k[S]:(A=[],k[S]=A,x.forEach(function(N,_){A[_]=T(N,k)}),A);default:return x}},getLanguage:function(T){for(;T;){var x=a.exec(T.className);if(x)return x[1].toLowerCase();T=T.parentElement}return"none"},setLanguage:function(T,x){T.className=T.className.replace(RegExp(a,"gi"),""),T.classList.add("language-"+x)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(A){var T=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(T){var x=document.getElementsByTagName("script");for(var k in x)if(x[k].src==T)return x[k]}return null}},isActive:function(T,x,k){for(var A="no-"+x;T;){var S=T.classList;if(S.contains(x))return!0;if(S.contains(A))return!1;T=T.parentElement}return!!k}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(T,x){var k=o.util.clone(o.languages[T]);for(var A in x)k[A]=x[A];return k},insertBefore:function(T,x,k,A){A=A||o.languages;var S=A[T],v={};for(var N in S)if(S.hasOwnProperty(N)){if(N==x)for(var _ in k)k.hasOwnProperty(_)&&(v[_]=k[_]);k.hasOwnProperty(N)||(v[N]=S[N])}var C=A[T];return A[T]=v,o.languages.DFS(o.languages,function(L,P){P===C&&L!=T&&(this[L]=v)}),v},DFS:function T(x,k,A,S){S=S||{};var v=o.util.objId;for(var N in x)if(x.hasOwnProperty(N)){k.call(x,N,x[N],A||N);var _=x[N],C=o.util.type(_);C==="Object"&&!S[v(_)]?(S[v(_)]=!0,T(_,k,null,S)):C==="Array"&&!S[v(_)]&&(S[v(_)]=!0,T(_,k,N,S))}}},plugins:{},highlightAll:function(T,x){o.highlightAllUnder(document,T,x)},highlightAllUnder:function(T,x,k){var A={callback:k,container:T,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),o.hooks.run("before-all-elements-highlight",A);for(var S=0,v;v=A.elements[S++];)o.highlightElement(v,x===!0,A.callback)},highlightElement:function(T,x,k){var A=o.util.getLanguage(T),S=o.languages[A];o.util.setLanguage(T,A);var v=T.parentElement;v&&v.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(v,A);var N=T.textContent,_={element:T,language:A,grammar:S,code:N};function C(P){_.highlightedCode=P,o.hooks.run("before-insert",_),_.element.innerHTML=_.highlightedCode,o.hooks.run("after-highlight",_),o.hooks.run("complete",_),k&&k.call(_.element)}if(o.hooks.run("before-sanity-check",_),v=_.element.parentElement,v&&v.nodeName.toLowerCase()==="pre"&&!v.hasAttribute("tabindex")&&v.setAttribute("tabindex","0"),!_.code){o.hooks.run("complete",_),k&&k.call(_.element);return}if(o.hooks.run("before-highlight",_),!_.grammar){C(o.util.encode(_.code));return}if(x&&r.Worker){var L=new Worker(o.filename);L.onmessage=function(P){C(P.data)},L.postMessage(JSON.stringify({language:_.language,code:_.code,immediateClose:!0}))}else C(o.highlight(_.code,_.grammar,_.language))},highlight:function(T,x,k){var A={code:T,grammar:x,language:k};if(o.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=o.tokenize(A.code,A.grammar),o.hooks.run("after-tokenize",A),l.stringify(o.util.encode(A.tokens),A.language)},tokenize:function(T,x){var k=x.rest;if(k){for(var A in k)x[A]=k[A];delete x.rest}var S=new d;return p(S,S.head,T),c(T,S,x,S.head,0),h(S)},hooks:{all:{},add:function(T,x){var k=o.hooks.all;k[T]=k[T]||[],k[T].push(x)},run:function(T,x){var k=o.hooks.all[T];if(!(!k||!k.length))for(var A=0,S;S=k[A++];)S(x)}},Token:l};r.Prism=o;function l(T,x,k,A){this.type=T,this.content=x,this.alias=k,this.length=(A||"").length|0}l.stringify=function T(x,k){if(typeof x=="string")return x;if(Array.isArray(x)){var A="";return x.forEach(function(C){A+=T(C,k)}),A}var S={type:x.type,content:T(x.content,k),tag:"span",classes:["token",x.type],attributes:{},language:k},v=x.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(S.classes,v):S.classes.push(v)),o.hooks.run("wrap",S);var N="";for(var _ in S.attributes)N+=" "+_+'="'+(S.attributes[_]||"").replace(/"/g,""")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+N+">"+S.content+"</"+S.tag+">"};function u(T,x,k,A){T.lastIndex=x;var S=T.exec(k);if(S&&A&&S[1]){var v=S[1].length;S.index+=v,S[0]=S[0].slice(v)}return S}function c(T,x,k,A,S,v){for(var N in k)if(!(!k.hasOwnProperty(N)||!k[N])){var _=k[N];_=Array.isArray(_)?_:[_];for(var C=0;C<_.length;++C){if(v&&v.cause==N+","+C)return;var L=_[C],P=L.inside,$=!!L.lookbehind,F=!!L.greedy,M=L.alias;if(F&&!L.pattern.global){var H=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,H+"g")}for(var j=L.pattern||L,B=A.next,Y=S;B!==x.tail&&!(v&&Y>=v.reach);Y+=B.value.length,B=B.next){var w=B.value;if(x.length>T.length)return;if(!(w instanceof l)){var V=1,ee;if(F){if(ee=u(j,Y,T,$),!ee||ee.index>=T.length)break;var re=ee.index,R=ee.index+ee[0].length,ne=Y;for(ne+=B.value.length;re>=ne;)B=B.next,ne+=B.value.length;if(ne-=B.value.length,Y=ne,B.value instanceof l)continue;for(var ie=B;ie!==x.tail&&(ne<R||typeof ie.value=="string");ie=ie.next)V++,ne+=ie.value.length;V--,w=T.slice(Y,ne),ee.index-=Y}else if(ee=u(j,0,w,$),!ee)continue;var re=ee.index,me=ee[0],Te=w.slice(0,re),De=w.slice(re+me.length),he=Y+w.length;v&&he>v.reach&&(v.reach=he);var we=B.prev;Te&&(we=p(x,we,Te),Y+=Te.length),f(x,we,V);var de=new l(N,P?o.tokenize(me,P):me,M,me);if(B=p(x,we,de),De&&p(x,B,De),V>1){var ce={cause:N+","+C,reach:he};c(T,x,k,B.prev,Y,ce),v&&ce.reach>v.reach&&(v.reach=ce.reach)}}}}}}function d(){var T={value:null,prev:null,next:null},x={value:null,prev:T,next:null};T.next=x,this.head=T,this.tail=x,this.length=0}function p(T,x,k){var A=x.next,S={value:k,prev:x,next:A};return x.next=S,A.prev=S,T.length++,S}function f(T,x,k){for(var A=x.next,S=0;S<k&&A!==T.tail;S++)A=A.next;x.next=A,A.prev=x,T.length-=S}function h(T){for(var x=[],k=T.head.next;k!==T.tail;)x.push(k.value),k=k.next;return x}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(T){var x=JSON.parse(T.data),k=x.language,A=x.code,S=x.immediateClose;r.postMessage(o.highlight(A,o.languages[k],k)),S&&r.close()},!1)),o;var g=o.util.currentScript();g&&(o.filename=g.src,g.hasAttribute("data-manual")&&(o.manual=!0));function b(){o.manual||o.highlightAll()}if(!o.manual){var y=document.readyState;y==="loading"||y==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return o})(e);t.exports&&(t.exports=n),typeof co<"u"&&(co.Prism=n)})(Tc)),Tc.exports}var Sc,VT;function BW(){if(VT)return Sc;VT=1,Sc=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,a){var i={};i["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[a]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};s["language-"+a]={pattern:/[\s\S]+/,inside:e.languages[a]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}return Sc}var xc,YT;function UW(){if(YT)return xc;YT=1,xc=t,t.displayName="css",t.aliases=[];function t(e){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(e)}return xc}var kc,KT;function jW(){if(KT)return kc;KT=1,kc=t,t.displayName="clike",t.aliases=[];function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return kc}var vc,XT;function HW(){if(XT)return vc;XT=1,vc=t,t.displayName="javascript",t.aliases=["js"];function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}return vc}var Ac,ZT;function $W(){if(ZT)return Ac;ZT=1;var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof co=="object"?co:{},e=A();t.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=Rq(),r=PW(),a=FW(),i=BW(),s=UW(),o=jW(),l=HW();e();var u={}.hasOwnProperty;function c(){}c.prototype=a;var d=new c;Ac=d,d.highlight=h,d.register=p,d.alias=f,d.registered=g,d.listLanguages=b,p(i),p(s),p(o),p(l),d.util.encode=x,d.Token.stringify=y;function p(S){if(typeof S!="function"||!S.displayName)throw new Error("Expected `function` for `grammar`, got `"+S+"`");d.languages[S.displayName]===void 0&&S(d)}function f(S,v){var N=d.languages,_=S,C,L,P,$;v&&(_={},_[S]=v);for(C in _)for(L=_[C],L=typeof L=="string"?[L]:L,P=L.length,$=-1;++$<P;)N[L[$]]=N[C]}function h(S,v){var N=a.highlight,_;if(typeof S!="string")throw new Error("Expected `string` for `value`, got `"+S+"`");if(d.util.type(v)==="Object")_=v,v=null;else{if(typeof v!="string")throw new Error("Expected `string` for `name`, got `"+v+"`");if(u.call(d.languages,v))_=d.languages[v];else throw new Error("Unknown language: `"+v+"` is not registered")}return N.call(this,S,_,v)}function g(S){if(typeof S!="string")throw new Error("Expected `string` for `language`, got `"+S+"`");return u.call(d.languages,S)}function b(){var S=d.languages,v=[],N;for(N in S)u.call(S,N)&&typeof S[N]=="object"&&v.push(N);return v}function y(S,v,N){var _;return typeof S=="string"?{type:"text",value:S}:d.util.type(S)==="Array"?T(S,v):(_={type:S.type,content:d.Token.stringify(S.content,v,N),tag:"span",classes:["token",S.type],attributes:{},language:v,parent:N},S.alias&&(_.classes=_.classes.concat(S.alias)),d.hooks.run("wrap",_),n(_.tag+"."+_.classes.join("."),k(_.attributes),_.content))}function T(S,v){for(var N=[],_=S.length,C=-1,L;++C<_;)L=S[C],L!==""&&L!==null&&L!==void 0&&N.push(L);for(C=-1,_=N.length;++C<_;)L=N[C],N[C]=d.Token.stringify(L,v,N);return N}function x(S){return S}function k(S){var v;for(v in S)S[v]=r(S[v]);return S}function A(){var S="Prism"in t,v=S?t.Prism:void 0;return N;function N(){S?t.Prism=v:delete t.Prism,S=void 0,v=void 0}}return Ac}const zW={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var _c,QT;function qW(){if(QT)return _c;QT=1,_c=t,t.displayName="abap",t.aliases=[];function t(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return _c}var Nc,JT;function GW(){if(JT)return Nc;JT=1,Nc=t,t.displayName="abnf",t.aliases=[];function t(e){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}return Nc}var Cc,eS;function WW(){if(eS)return Cc;eS=1,Cc=t,t.displayName="actionscript",t.aliases=[];function t(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}return Cc}var wc,tS;function VW(){if(tS)return wc;tS=1,wc=t,t.displayName="ada",t.aliases=[];function t(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return wc}var Ic,nS;function YW(){if(nS)return Ic;nS=1,Ic=t,t.displayName="agda",t.aliases=[];function t(e){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}return Ic}var Rc,rS;function KW(){if(rS)return Rc;rS=1,Rc=t,t.displayName="al",t.aliases=[];function t(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return Rc}var Oc,aS;function XW(){if(aS)return Oc;aS=1,Oc=t,t.displayName="antlr4",t.aliases=["g4"];function t(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}return Oc}var Lc,iS;function ZW(){if(iS)return Lc;iS=1,Lc=t,t.displayName="apacheconf",t.aliases=[];function t(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return Lc}var Dc,sS;function M0(){if(sS)return Dc;sS=1,Dc=t,t.displayName="sql",t.aliases=[];function t(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Dc}var Mc,oS;function QW(){if(oS)return Mc;oS=1;var t=M0();Mc=e,e.displayName="apex",e.aliases=[];function e(n){n.register(t),(function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return a.source});function s(l){return RegExp(l.replace(/<CLASS-NAME>/g,function(){return i}),"i")}var o={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:s(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:o},{pattern:s(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:s(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(n)}return Mc}var Pc,lS;function JW(){if(lS)return Pc;lS=1,Pc=t,t.displayName="apl",t.aliases=[];function t(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return Pc}var Fc,uS;function eV(){if(uS)return Fc;uS=1,Fc=t,t.displayName="applescript",t.aliases=[];function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return Fc}var Bc,cS;function tV(){if(cS)return Bc;cS=1,Bc=t,t.displayName="aql",t.aliases=[];function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return Bc}var Uc,dS;function ga(){if(dS)return Uc;dS=1,Uc=t,t.displayName="c",t.aliases=[];function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}return Uc}var jc,pS;function P0(){if(pS)return jc;pS=1;var t=ga();jc=e,e.displayName="cpp",e.aliases=[];function e(n){n.register(t),(function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])})(n)}return jc}var Hc,fS;function nV(){if(fS)return Hc;fS=1;var t=P0();Hc=e,e.displayName="arduino",e.aliases=["ino"];function e(n){n.register(t),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return Hc}var $c,hS;function rV(){if(hS)return $c;hS=1,$c=t,t.displayName="arff",t.aliases=[];function t(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return $c}var zc,mS;function aV(){if(mS)return zc;mS=1,zc=t,t.displayName="asciidoc",t.aliases=["adoc"];function t(e){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(s){s=s.split(" ");for(var o={},l=0,u=s.length;l<u;l++)o[s[l]]=a[s[l]];return o}r.inside.interpreted.inside.rest=i("macro inline replacement entity"),a["passthrough-block"].inside.rest=i("macro"),a["literal-block"].inside.rest=i("callout"),a.table.inside.rest=i("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),a["other-block"].inside.rest=i("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),a.title.inside.rest=i("macro inline replacement entity"),n.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.value.replace(/&/,"&"))}),n.languages.adoc=n.languages.asciidoc})(e)}return zc}var qc,gS;function iV(){if(gS)return qc;gS=1,qc=t,t.displayName="asm6502",t.aliases=[];function t(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}return qc}var Gc,bS;function sV(){if(bS)return Gc;bS=1,Gc=t,t.displayName="asmatmel",t.aliases=[];function t(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return Gc}var Wc,ES;function Yl(){if(ES)return Wc;ES=1,Wc=t,t.displayName="csharp",t.aliases=["dotnet","cs"];function t(e){(function(n){function r(V,ee){return V.replace(/<<(\d+)>>/g,function(R,ne){return"(?:"+ee[+ne]+")"})}function a(V,ee,R){return RegExp(r(V,ee),"")}function i(V,ee){for(var R=0;R<ee;R++)V=V.replace(/<<self>>/g,function(){return"(?:"+V+")"});return V.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(V){return"\\b(?:"+V.trim().replace(/ /g,"|")+")\\b"}var l=o(s.typeDeclaration),u=RegExp(o(s.type+" "+s.typeDeclaration+" "+s.contextual+" "+s.other)),c=o(s.typeDeclaration+" "+s.contextual+" "+s.other),d=o(s.type+" "+s.typeDeclaration+" "+s.other),p=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=i(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,g=r(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),b=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,g]),y=/\[\s*(?:,\s*)*\]/.source,T=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,y]),x=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,f,y]),k=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),A=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,b,y]),S={keyword:u,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:S},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,A]),lookbehind:!0,inside:S},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:S},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[T]),lookbehind:!0,inside:S},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,d,h]),inside:S}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,b]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,h,A,u.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var C=N+"|"+v,L=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),P=i(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[L]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,P]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[P]),inside:n.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,H=i(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[L]),2),j=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,M]),B=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[C]),2),Y=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[B,M]);function w(V,ee){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[V]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ee,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:w(j,H)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:w(Y,B)}],char:{pattern:RegExp(v),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(e)}return Wc}var Vc,yS;function oV(){if(yS)return Vc;yS=1;var t=Yl();Vc=e,e.displayName="aspnet",e.aliases=[];function e(n){n.register(t),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return Vc}var Yc,TS;function lV(){if(TS)return Yc;TS=1,Yc=t,t.displayName="autohotkey",t.aliases=[];function t(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return Yc}var Kc,SS;function uV(){if(SS)return Kc;SS=1,Kc=t,t.displayName="autoit",t.aliases=[];function t(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return Kc}var Xc,xS;function cV(){if(xS)return Xc;xS=1,Xc=t,t.displayName="avisynth",t.aliases=["avs"];function t(e){(function(n){function r(c,d){return c.replace(/<<(\d+)>>/g,function(p,f){return d[+f]})}function a(c,d,p){return RegExp(r(c,d),p)}var i=/bool|clip|float|int|string|val/.source,s=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[s,o,l].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(e)}return Xc}var Zc,kS;function dV(){if(kS)return Zc;kS=1,Zc=t,t.displayName="avroIdl",t.aliases=[];function t(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}return Zc}var Qc,vS;function WR(){if(vS)return Qc;vS=1,Qc=t,t.displayName="bash",t.aliases=["shell"];function t(e){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,l=0;l<s.length;l++)o[s[l]]=n.languages.bash[s[l]];n.languages.shell=n.languages.bash})(e)}return Qc}var Jc,AS;function VR(){if(AS)return Jc;AS=1,Jc=t,t.displayName="basic",t.aliases=[];function t(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return Jc}var ed,_S;function pV(){if(_S)return ed;_S=1,ed=t,t.displayName="batch",t.aliases=[];function t(e){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,s=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:s,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:s,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:s,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:s,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}return ed}var td,NS;function fV(){if(NS)return td;NS=1,td=t,t.displayName="bbcode",t.aliases=["shortcode"];function t(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}return td}var nd,CS;function hV(){if(CS)return nd;CS=1,nd=t,t.displayName="bicep",t.aliases=[];function t(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}return nd}var rd,wS;function mV(){if(wS)return rd;wS=1,rd=t,t.displayName="birb",t.aliases=[];function t(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return rd}var ad,IS;function gV(){if(IS)return ad;IS=1;var t=ga();ad=e,e.displayName="bison",e.aliases=[];function e(n){n.register(t),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return ad}var id,RS;function bV(){if(RS)return id;RS=1,id=t,t.displayName="bnf",t.aliases=["rbnf"];function t(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}return id}var sd,OS;function EV(){if(OS)return sd;OS=1,sd=t,t.displayName="brainfuck",t.aliases=[];function t(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return sd}var od,LS;function yV(){if(LS)return od;LS=1,od=t,t.displayName="brightscript",t.aliases=[];function t(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}return od}var ld,DS;function TV(){if(DS)return ld;DS=1,ld=t,t.displayName="bro",t.aliases=[];function t(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return ld}var ud,MS;function SV(){if(MS)return ud;MS=1,ud=t,t.displayName="bsl",t.aliases=[];function t(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}return ud}var cd,PS;function xV(){if(PS)return cd;PS=1,cd=t,t.displayName="cfscript",t.aliases=[];function t(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}return cd}var dd,FS;function kV(){if(FS)return dd;FS=1;var t=P0();dd=e,e.displayName="chaiscript",e.aliases=[];function e(n){n.register(t),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return dd}var pd,BS;function vV(){if(BS)return pd;BS=1,pd=t,t.displayName="cil",t.aliases=[];function t(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return pd}var fd,US;function AV(){if(US)return fd;US=1,fd=t,t.displayName="clojure",t.aliases=[];function t(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return fd}var hd,jS;function _V(){if(jS)return hd;jS=1,hd=t,t.displayName="cmake",t.aliases=[];function t(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return hd}var md,HS;function NV(){if(HS)return md;HS=1,md=t,t.displayName="cobol",t.aliases=[];function t(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return md}var gd,$S;function CV(){if($S)return gd;$S=1,gd=t,t.displayName="coffeescript",t.aliases=["coffee"];function t(e){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(e)}return gd}var bd,zS;function wV(){if(zS)return bd;zS=1,bd=t,t.displayName="concurnas",t.aliases=["conc"];function t(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}return bd}var Ed,qS;function IV(){if(qS)return Ed;qS=1,Ed=t,t.displayName="coq",t.aliases=[];function t(e){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,a=0;a<2;a++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}return Ed}var yd,GS;function Kl(){if(GS)return yd;GS=1,yd=t,t.displayName="ruby",t.aliases=["rb"];function t(e){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(e)}return yd}var Td,WS;function RV(){if(WS)return Td;WS=1;var t=Kl();Td=e,e.displayName="crystal",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(n)}return Td}var Sd,VS;function OV(){if(VS)return Sd;VS=1;var t=Yl();Sd=e,e.displayName="cshtml",e.aliases=["razor"];function e(n){n.register(t),(function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function s(b,y){for(var T=0;T<y;T++)b=b.replace(/<self>/g,function(){return"(?:"+b+")"});return b.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+i+")").replace(/<comment>/g,"(?:"+a+")")}var o=s(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),l=s(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),u=s(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),c=s(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),d=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,p=/(?!\d)[^\s>\/=$<%]+/.source+d+/\s*\/?>/.source,f=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+d+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|"+s(/<\1/.source+d+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+p+")";r.languages.cshtml=r.languages.extend("markup",{});var h=r.languages.insertBefore("csharp","string",{html:{pattern:RegExp(f),greedy:!0,inside:r.languages.cshtml}},{csharp:r.languages.extend("csharp",{})}),g={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:h};r.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[u,/(?:code|functions)\s*/.source+u,/(?:for|foreach|lock|switch|using|while)\s*/.source+o+/\s*/.source+u,/do\s*/.source+u+/\s*while\s*/.source+o+/(?:\s*;)?/.source,/try\s*/.source+u+/\s*catch\s*/.source+o+/\s*/.source+u+/\s*finally\s*/.source+u,/if\s*/.source+o+/\s*/.source+u+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+o+")?"+/\s*/.source+u+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:g}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:g}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|"+o+"|"+l+"|"+c+o+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:g}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),r.languages.razor=r.languages.cshtml})(n)}return Sd}var xd,YS;function LV(){if(YS)return xd;YS=1,xd=t,t.displayName="csp",t.aliases=[];function t(e){(function(n){function r(a){return RegExp(/([ \t])/.source+"(?:"+a+")"+/(?=[\s;]|$)/.source,"i")}n.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:r(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:r(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:r(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:r(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:r(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:r(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:r(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}return xd}var kd,KS;function DV(){if(KS)return kd;KS=1,kd=t,t.displayName="cssExtras",t.aliases=[];function t(e){(function(n){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a;n.languages.css.selector={pattern:n.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:s})})(e)}return kd}var vd,XS;function MV(){if(XS)return vd;XS=1,vd=t,t.displayName="csv",t.aliases=[];function t(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return vd}var Ad,ZS;function PV(){if(ZS)return Ad;ZS=1,Ad=t,t.displayName="cypher",t.aliases=[];function t(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Ad}var _d,QS;function FV(){if(QS)return _d;QS=1,_d=t,t.displayName="d",t.aliases=[];function t(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return _d}var Nd,JS;function BV(){if(JS)return Nd;JS=1,Nd=t,t.displayName="dart",t.aliases=[];function t(e){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}return Nd}var Cd,ex;function UV(){if(ex)return Cd;ex=1,Cd=t,t.displayName="dataweave",t.aliases=[];function t(e){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}return Cd}var wd,tx;function jV(){if(tx)return wd;tx=1,wd=t,t.displayName="dax",t.aliases=[];function t(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return wd}var Id,nx;function HV(){if(nx)return Id;nx=1,Id=t,t.displayName="dhall",t.aliases=[];function t(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}return Id}var Rd,rx;function $V(){if(rx)return Rd;rx=1,Rd=t,t.displayName="diff",t.aliases=[];function t(e){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],s=[];/^\w+$/.test(a)||s.push(/\w+/.exec(a)[0]),a==="diff"&&s.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r
|
|
192
|
+
?|
|
|
193
|
+
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(e)}return Rd}var Od,ax;function Vt(){if(ax)return Od;ax=1,Od=t,t.displayName="markupTemplating",t.aliases=[];function t(e){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,s,o){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(s,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=l.length,d;a.code.indexOf(d=r(i,c))!==-1;)++c;return l[c]=u,d}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var s=0,o=Object.keys(a.tokenStack);function l(u){for(var c=0;c<u.length&&!(s>=o.length);c++){var d=u[c];if(typeof d=="string"||d.content&&typeof d.content=="string"){var p=o[s],f=a.tokenStack[p],h=typeof d=="string"?d:d.content,g=r(i,p),b=h.indexOf(g);if(b>-1){++s;var y=h.substring(0,b),T=new n.Token(i,n.tokenize(f,a.grammar),"language-"+i,f),x=h.substring(b+g.length),k=[];y&&k.push.apply(k,l([y])),k.push(T),x&&k.push.apply(k,l([x])),typeof d=="string"?u.splice.apply(u,[c,1].concat(k)):d.content=k}}else d.content&&l(d.content)}return u}l(a.tokens)}}})})(e)}return Od}var Ld,ix;function zV(){if(ix)return Ld;ix=1;var t=Vt();Ld=e,e.displayName="django",e.aliases=["jinja2"];function e(n){n.register(t),(function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(s){i.buildPlaceholders(s,"django",a)}),r.hooks.add("after-tokenize",function(s){i.tokenizePlaceholders(s,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(s){i.buildPlaceholders(s,"jinja2",a)}),r.hooks.add("after-tokenize",function(s){i.tokenizePlaceholders(s,"jinja2")})})(n)}return Ld}var Dd,sx;function qV(){if(sx)return Dd;sx=1,Dd=t,t.displayName="dnsZoneFile",t.aliases=[];function t(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}return Dd}var Md,ox;function GV(){if(ox)return Md;ox=1,Md=t,t.displayName="docker",t.aliases=["dockerfile"];function t(e){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,s=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return i}),o={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,d){return c=c.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(c,d)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(e)}return Md}var Pd,lx;function WV(){if(lx)return Pd;lx=1,Pd=t,t.displayName="dot",t.aliases=["gv"];function t(e){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(s,o){return RegExp(s.replace(/<ID>/g,function(){return r}),o)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(e)}return Pd}var Fd,ux;function VV(){if(ux)return Fd;ux=1,Fd=t,t.displayName="ebnf",t.aliases=[];function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return Fd}var Bd,cx;function YV(){if(cx)return Bd;cx=1,Bd=t,t.displayName="editorconfig",t.aliases=[];function t(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return Bd}var Ud,dx;function KV(){if(dx)return Ud;dx=1,Ud=t,t.displayName="eiffel",t.aliases=[];function t(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return Ud}var jd,px;function XV(){if(px)return jd;px=1;var t=Vt();jd=e,e.displayName="ejs",e.aliases=["eta"];function e(n){n.register(t),(function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs})(n)}return jd}var Hd,fx;function ZV(){if(fx)return Hd;fx=1,Hd=t,t.displayName="elixir",t.aliases=[];function t(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}return Hd}var $d,hx;function QV(){if(hx)return $d;hx=1,$d=t,t.displayName="elm",t.aliases=[];function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return $d}var zd,mx;function JV(){if(mx)return zd;mx=1;var t=Kl(),e=Vt();zd=n,n.displayName="erb",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var s=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",s)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(r)}return zd}var qd,gx;function eY(){if(gx)return qd;gx=1,qd=t,t.displayName="erlang",t.aliases=[];function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return qd}var Gd,bx;function YR(){if(bx)return Gd;bx=1,Gd=t,t.displayName="lua",t.aliases=[];function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return Gd}var Wd,Ex;function tY(){if(Ex)return Wd;Ex=1;var t=YR(),e=Vt();Wd=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var s=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",s)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(r)}return Wd}var Vd,yx;function nY(){if(yx)return Vd;yx=1,Vd=t,t.displayName="excelFormula",t.aliases=[];function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}return Vd}var Yd,Tx;function rY(){if(Tx)return Yd;Tx=1,Yd=t,t.displayName="factor",t.aliases=[];function t(e){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},s=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(s).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(c){i[c].pattern=o(l[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];i.combinators.pattern=o(u),n.languages.factor=i})(e)}return Yd}var Kd,Sx;function aY(){if(Sx)return Kd;Sx=1,Kd=t,t.displayName="$false",t.aliases=[];function t(e){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}return Kd}var Xd,xx;function iY(){if(xx)return Xd;xx=1,Xd=t,t.displayName="firestoreSecurityRules",t.aliases=[];function t(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return Xd}var Zd,kx;function sY(){if(kx)return Zd;kx=1,Zd=t,t.displayName="flow",t.aliases=[];function t(e){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}return Zd}var Qd,vx;function oY(){if(vx)return Qd;vx=1,Qd=t,t.displayName="fortran",t.aliases=[];function t(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Qd}var Jd,Ax;function lY(){if(Ax)return Jd;Ax=1,Jd=t,t.displayName="fsharp",t.aliases=[];function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return Jd}var ep,_x;function uY(){if(_x)return ep;_x=1;var t=Vt();ep=e,e.displayName="ftl",e.aliases=[];function e(n){n.register(t),(function(r){for(var a=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,/[^\s\S]/.source);var s={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};s.string[1].inside.interpolation.inside.rest=s,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:s}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:s}}}},r.hooks.add("before-tokenize",function(o){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(o,"ftl",l)}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})})(n)}return ep}var tp,Nx;function cY(){if(Nx)return tp;Nx=1,tp=t,t.displayName="gap",t.aliases=[];function t(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}return tp}var np,Cx;function dY(){if(Cx)return np;Cx=1,np=t,t.displayName="gcode",t.aliases=[];function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return np}var rp,wx;function pY(){if(wx)return rp;wx=1,rp=t,t.displayName="gdscript",t.aliases=[];function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return rp}var ap,Ix;function fY(){if(Ix)return ap;Ix=1,ap=t,t.displayName="gedcom",t.aliases=[];function t(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return ap}var ip,Rx;function hY(){if(Rx)return ip;Rx=1,ip=t,t.displayName="gherkin",t.aliases=[];function t(e){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}return ip}var sp,Ox;function mY(){if(Ox)return sp;Ox=1,sp=t,t.displayName="git",t.aliases=[];function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return sp}var op,Lx;function gY(){if(Lx)return op;Lx=1;var t=ga();op=e,e.displayName="glsl",e.aliases=[];function e(n){n.register(t),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return op}var lp,Dx;function bY(){if(Dx)return lp;Dx=1,lp=t,t.displayName="gml",t.aliases=[];function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return lp}var up,Mx;function EY(){if(Mx)return up;Mx=1,up=t,t.displayName="gn",t.aliases=["gni"];function t(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}return up}var cp,Px;function yY(){if(Px)return cp;Px=1,cp=t,t.displayName="goModule",t.aliases=[];function t(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return cp}var dp,Fx;function TY(){if(Fx)return dp;Fx=1,dp=t,t.displayName="go",t.aliases=[];function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}return dp}var pp,Bx;function SY(){if(Bx)return pp;Bx=1,pp=t,t.displayName="graphql",t.aliases=[];function t(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(y){return typeof y!="string"&&y.type!=="comment"&&y.type!=="scalar"}),i=0;function s(y){return a[i+y]}function o(y,T){T=T||0;for(var x=0;x<y.length;x++){var k=s(x+T);if(!k||k.type!==y[x])return!1}return!0}function l(y,T){for(var x=1,k=i;k<a.length;k++){var A=a[k],S=A.content;if(A.type==="punctuation"&&typeof S=="string"){if(y.test(S))x++;else if(T.test(S)&&(x--,x===0))return k}}return-1}function u(y,T){var x=y.alias;x?Array.isArray(x)||(y.alias=x=[x]):y.alias=x=[],x.push(T)}for(;i<a.length;){var c=a[i++];if(c.type==="keyword"&&c.content==="mutation"){var d=[];if(o(["definition-mutation","punctuation"])&&s(1).content==="("){i+=2;var p=l(/^\($/,/^\)$/);if(p===-1)continue;for(;i<p;i++){var f=s(0);f.type==="variable"&&(u(f,"variable-input"),d.push(f.content))}i=p+1}if(o(["punctuation","property-query"])&&s(0).content==="{"&&(i++,u(s(0),"property-mutation"),d.length>0)){var h=l(/^\{$/,/^\}$/);if(h===-1)continue;for(var g=i;g<h;g++){var b=a[g];b.type==="variable"&&d.indexOf(b.content)>=0&&u(b,"variable-input")}}}}})}return pp}var fp,Ux;function xY(){if(Ux)return fp;Ux=1,fp=t,t.displayName="groovy",t.aliases=[];function t(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=e.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:e.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return fp}var hp,jx;function kY(){if(jx)return hp;jx=1;var t=Kl();hp=e,e.displayName="haml",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],s={},o=0,l=i.length;o<l;o++){var u=i[o];u=typeof u=="string"?{filter:u,language:u}:u,r.languages[u.language]&&(s["filter-"+u.filter]={pattern:RegExp(a.replace("{{filter_name}}",function(){return u.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[u.language,"language-"+u.language],inside:r.languages[u.language]}}})}r.languages.insertBefore("haml","filter",s)})(n)}return hp}var mp,Hx;function vY(){if(Hx)return mp;Hx=1;var t=Vt();mp=e,e.displayName="handlebars",e.aliases=["hbs"];function e(n){n.register(t),(function(r){r.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars})(n)}return mp}var gp,$x;function F0(){if($x)return gp;$x=1,gp=t,t.displayName="haskell",t.aliases=["hs"];function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}return gp}var bp,zx;function AY(){if(zx)return bp;zx=1,bp=t,t.displayName="haxe",t.aliases=[];function t(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return bp}var Ep,qx;function _Y(){if(qx)return Ep;qx=1,Ep=t,t.displayName="hcl",t.aliases=[];function t(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Ep}var yp,Gx;function NY(){if(Gx)return yp;Gx=1;var t=ga();yp=e,e.displayName="hlsl",e.aliases=[];function e(n){n.register(t),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return yp}var Tp,Wx;function CY(){if(Wx)return Tp;Wx=1,Tp=t,t.displayName="hoon",t.aliases=[];function t(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Tp}var Sp,Vx;function wY(){if(Vx)return Sp;Vx=1,Sp=t,t.displayName="hpkp",t.aliases=[];function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Sp}var xp,Yx;function IY(){if(Yx)return xp;Yx=1,xp=t,t.displayName="hsts",t.aliases=[];function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return xp}var kp,Kx;function RY(){if(Kx)return kp;Kx=1,kp=t,t.displayName="http",t.aliases=[];function t(e){(function(n){function r(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},s={"application/json":!0,"application/xml":!0};function o(d){var p=d.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+p+"(?![+\\w.-])";return"(?:"+d+"|"+f+")"}var l;for(var u in i)if(i[u]){l=l||{};var c=s[u]?o(u):u;l[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}l&&n.languages.insertBefore("http","header",l)})(e)}return kp}var vp,Xx;function OY(){if(Xx)return vp;Xx=1,vp=t,t.displayName="ichigojam",t.aliases=[];function t(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return vp}var Ap,Zx;function LY(){if(Zx)return Ap;Zx=1,Ap=t,t.displayName="icon",t.aliases=[];function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Ap}var _p,Qx;function DY(){if(Qx)return _p;Qx=1,_p=t,t.displayName="icuMessageFormat",t.aliases=[];function t(e){(function(n){function r(u,c){return c<=0?/[]/.source:u.replace(/<SELF>/g,function(){return r(u,c-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},s={pattern:a,greedy:!0,inside:{escape:i}},o=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return a.source}),8),l={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:s},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(e)}return _p}var Np,Jx;function MY(){if(Jx)return Np;Jx=1;var t=F0();Np=e,e.displayName="idris",e.aliases=["idr"];function e(n){n.register(t),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Np}var Cp,ek;function PY(){if(ek)return Cp;ek=1,Cp=t,t.displayName="iecst",t.aliases=[];function t(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return Cp}var wp,tk;function FY(){if(tk)return wp;tk=1,wp=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"];function t(e){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(e)}return wp}var Ip,nk;function BY(){if(nk)return Ip;nk=1,Ip=t,t.displayName="inform7",t.aliases=[];function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return Ip}var Rp,rk;function UY(){if(rk)return Rp;rk=1,Rp=t,t.displayName="ini",t.aliases=[];function t(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Rp}var Op,ak;function jY(){if(ak)return Op;ak=1,Op=t,t.displayName="io",t.aliases=[];function t(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return Op}var Lp,ik;function HY(){if(ik)return Lp;ik=1,Lp=t,t.displayName="j",t.aliases=[];function t(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Lp}var Dp,sk;function B0(){if(sk)return Dp;sk=1,Dp=t,t.displayName="java",t.aliases=[];function t(e){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}return Dp}var Mp,ok;function Xl(){if(ok)return Mp;ok=1,Mp=t,t.displayName="javadoclike",t.aliases=[];function t(e){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(s,o){var l="doc-comment",u=n.languages[s];if(u){var c=u[l];if(!c){var d={};d[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(s,"comment",d),c=u[l]}if(c instanceof RegExp&&(c=u[l]={pattern:c}),Array.isArray(c))for(var p=0,f=c.length;p<f;p++)c[p]instanceof RegExp&&(c[p]={pattern:c[p]}),o(c[p]);else o(c)}}function i(s,o){typeof s=="string"&&(s=[s]),s.forEach(function(l){a(l,function(u){u.inside||(u.inside={}),u.inside.rest=o})})}Object.defineProperty(r,"addSupport",{value:i}),r.addSupport(["java","javascript","php"],r)})(e)}return Mp}var Pp,lk;function $Y(){if(lk)return Pp;lk=1;var t=B0(),e=Xl();Pp=n,n.displayName="javadoc",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,s=/#\s*\w+(?:\s*\([^()]*\))?/.source,o=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return s});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+o+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)})(r)}return Pp}var Fp,uk;function zY(){if(uk)return Fp;uk=1,Fp=t,t.displayName="javastacktrace",t.aliases=[];function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return Fp}var Bp,ck;function qY(){if(ck)return Bp;ck=1,Bp=t,t.displayName="jexl",t.aliases=[];function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return Bp}var Up,dk;function GY(){if(dk)return Up;dk=1,Up=t,t.displayName="jolie",t.aliases=[];function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return Up}var jp,pk;function WY(){if(pk)return jp;pk=1,jp=t,t.displayName="jq",t.aliases=[];function t(e){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},s=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=s})(e)}return jp}var Hp,fk;function VY(){if(fk)return Hp;fk=1,Hp=t,t.displayName="jsExtras",t.aliases=[];function t(e){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,c){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i<a.length;i++){var s=a[i],o=n.languages.javascript[s];n.util.type(o)==="RegExp"&&(o=n.languages.javascript[s]={pattern:o});var l=o.inside||{};o.inside=l,l["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}return Hp}var $p,hk;function YY(){if(hk)return $p;hk=1,$p=t,t.displayName="jsTemplates",t.aliases=[];function t(e){(function(n){var r=n.languages.javascript["template-string"],a=r.pattern.source,i=r.inside.interpolation,s=i.inside["interpolation-punctuation"],o=i.pattern.source;function l(g,b){if(n.languages[g])return{pattern:RegExp("((?:"+b+")\\s*)"+a),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}n.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),r].filter(Boolean);function u(g,b){return"___"+b.toUpperCase()+"_"+g+"___"}function c(g,b,y){var T={code:g,grammar:b,language:y};return n.hooks.run("before-tokenize",T),T.tokens=n.tokenize(T.code,T.grammar),n.hooks.run("after-tokenize",T),T.tokens}function d(g){var b={};b["interpolation-punctuation"]=s;var y=n.tokenize(g,b);if(y.length===3){var T=[1,1];T.push.apply(T,c(y[1],n.languages.javascript,"javascript")),y.splice.apply(y,T)}return new n.Token("interpolation",y,i.alias,g)}function p(g,b,y){var T=n.tokenize(g,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),x=0,k={},A=T.map(function(_){if(typeof _=="string")return _;for(var C=_.content,L;g.indexOf(L=u(x++,y))!==-1;);return k[L]=C,L}).join(""),S=c(A,b,y),v=Object.keys(k);x=0;function N(_){for(var C=0;C<_.length;C++){if(x>=v.length)return;var L=_[C];if(typeof L=="string"||typeof L.content=="string"){var P=v[x],$=typeof L=="string"?L:L.content,F=$.indexOf(P);if(F!==-1){++x;var M=$.substring(0,F),H=d(k[P]),j=$.substring(F+P.length),B=[];if(M&&B.push(M),B.push(H),j){var Y=[j];N(Y),B.push.apply(B,Y)}typeof L=="string"?(_.splice.apply(_,[C,1].concat(B)),C+=B.length-1):L.content=B}}else{var w=L.content;Array.isArray(w)?N(w):N([w])}}}return N(S),new n.Token(y,S,"language-"+y,g)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(g){if(!(g.language in f))return;function b(y){for(var T=0,x=y.length;T<x;T++){var k=y[T];if(typeof k!="string"){var A=k.content;if(!Array.isArray(A)){typeof A!="string"&&b([A]);continue}if(k.type==="template-string"){var S=A[1];if(A.length===3&&typeof S!="string"&&S.type==="embedded-code"){var v=h(S),N=S.alias,_=Array.isArray(N)?N[0]:N,C=n.languages[_];if(!C)continue;A[1]=p(v,C,_)}}else b(A)}}}b(g.tokens)});function h(g){return typeof g=="string"?g:Array.isArray(g)?g.map(h).join(""):h(g.content)}})(e)}return $p}var zp,mk;function U0(){if(mk)return zp;mk=1,zp=t,t.displayName="typescript",t.aliases=["ts"];function t(e){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(e)}return zp}var qp,gk;function KY(){if(gk)return qp;gk=1;var t=Xl(),e=U0();qp=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=a.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(r)}return qp}var Gp,bk;function j0(){if(bk)return Gp;bk=1,Gp=t,t.displayName="json",t.aliases=["webmanifest"];function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}return Gp}var Wp,Ek;function XY(){if(Ek)return Wp;Ek=1;var t=j0();Wp=e,e.displayName="json5",e.aliases=[];function e(n){n.register(t),(function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return Wp}var Vp,yk;function ZY(){if(yk)return Vp;yk=1;var t=j0();Vp=e,e.displayName="jsonp",e.aliases=[];function e(n){n.register(t),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return Vp}var Yp,Tk;function QY(){if(Tk)return Yp;Tk=1,Yp=t,t.displayName="jsstacktrace",t.aliases=[];function t(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return Yp}var Kp,Sk;function KR(){if(Sk)return Kp;Sk=1,Kp=t,t.displayName="jsx",t.aliases=[];function t(e){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(c,d){return c=c.replace(/<S>/g,function(){return a}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return s}),RegExp(c,d)}s=o(s).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""},u=function(c){for(var d=[],p=0;p<c.length;p++){var f=c[p],h=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?d.length>0&&d[d.length-1].tagName===l(f.content[0].content[1])&&d.pop():f.content[f.content.length-1].content==="/>"||d.push({tagName:l(f.content[0].content[1]),openedBraces:0}):d.length>0&&f.type==="punctuation"&&f.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?d[d.length-1].openedBraces--:h=!0),(h||typeof f=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var g=l(f);p<c.length-1&&(typeof c[p+1]=="string"||c[p+1].type==="plain-text")&&(g+=l(c[p+1]),c.splice(p+1,1)),p>0&&(typeof c[p-1]=="string"||c[p-1].type==="plain-text")&&(g=l(c[p-1])+g,c.splice(p-1,1),p--),c[p]=new n.Token("plain-text",g,null,g)}f.content&&typeof f.content!="string"&&u(f.content)}};n.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(e)}return Kp}var Xp,xk;function JY(){if(xk)return Xp;xk=1,Xp=t,t.displayName="julia",t.aliases=[];function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return Xp}var Zp,kk;function eK(){if(kk)return Zp;kk=1,Zp=t,t.displayName="keepalived",t.aliases=[];function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return Zp}var Qp,vk;function tK(){if(vk)return Qp;vk=1,Qp=t,t.displayName="keyman",t.aliases=[];function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return Qp}var Jp,Ak;function nK(){if(Ak)return Jp;Ak=1,Jp=t,t.displayName="kotlin",t.aliases=["kt","kts"];function t(e){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(e)}return Jp}var ef,_k;function rK(){if(_k)return ef;_k=1,ef=t,t.displayName="kumir",t.aliases=["kum"];function t(e){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,s){return RegExp(i.replace(/<nonId>/g,r),s)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(e)}return ef}var tf,Nk;function aK(){if(Nk)return tf;Nk=1,tf=t,t.displayName="kusto",t.aliases=[];function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return tf}var nf,Ck;function iK(){if(Ck)return nf;Ck=1,nf=t,t.displayName="latex",t.aliases=["tex","context"];function t(e){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(e)}return nf}var rf,wk;function Zl(){if(wk)return rf;wk=1;var t=Vt();rf=e,e.displayName="php",e.aliases=[];function e(n){n.register(t),(function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],s=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:s,operator:o,punctuation:l};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},c=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:c,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:s,operator:o,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(d){if(/<\?/.test(d.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(d,"php",p)}}),r.hooks.add("after-tokenize",function(d){r.languages["markup-templating"].tokenizePlaceholders(d,"php")})})(n)}return rf}var af,Ik;function sK(){if(Ik)return af;Ik=1;var t=Vt(),e=Zl();af=n,n.displayName="latte",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(s){if(s.language==="latte"){var o=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(s,"latte",o),s.grammar=i}}),a.hooks.add("after-tokenize",function(s){a.languages["markup-templating"].tokenizePlaceholders(s,"latte")})})(r)}return af}var sf,Rk;function oK(){if(Rk)return sf;Rk=1,sf=t,t.displayName="less",t.aliases=[];function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return sf}var of,Ok;function H0(){if(Ok)return of;Ok=1,of=t,t.displayName="scheme",t.aliases=[];function t(e){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(s){return"(?:"+a[s].trim()+")"});return a[i]}})(e)}return of}var lf,Lk;function lK(){if(Lk)return lf;Lk=1;var t=H0();lf=e,e.displayName="lilypond",e.aliases=[];function e(n){n.register(t),(function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,i=5,s=0;s<i;s++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,/[^\s\S]/.source);var o=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,r.languages.ly=o})(n)}return lf}var uf,Dk;function uK(){if(Dk)return uf;Dk=1;var t=Vt();uf=e,e.displayName="liquid",e.aliases=[];function e(n){n.register(t),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(s){var o=/^\{%-?\s*(\w+)/.exec(s);if(o){var l=o[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return uf}var cf,Mk;function cK(){if(Mk)return cf;Mk=1,cf=t,t.displayName="lisp",t.aliases=[];function t(e){(function(n){function r(g){return RegExp(/(\()/.source+"(?:"+g+")"+/(?=[\s\)])/.source)}function a(g){return RegExp(/([\s([])/.source+"(?:"+g+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,s="&"+i,o="(\\()",l="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":RegExp(s),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},f="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(o+c+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:p},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=h,d.defun.inside.arguments=n.util.clone(h),d.defun.inside.arguments.inside.sublist=h,n.languages.lisp=d,n.languages.elisp=d,n.languages.emacs=d,n.languages["emacs-lisp"]=d})(e)}return cf}var df,Pk;function dK(){if(Pk)return df;Pk=1,df=t,t.displayName="livescript",t.aliases=[];function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}return df}var pf,Fk;function pK(){if(Fk)return pf;Fk=1,pf=t,t.displayName="llvm",t.aliases=[];function t(e){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}return pf}var ff,Bk;function fK(){if(Bk)return ff;Bk=1,ff=t,t.displayName="log",t.aliases=[];function t(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return ff}var hf,Uk;function hK(){if(Uk)return hf;Uk=1,hf=t,t.displayName="lolcode",t.aliases=[];function t(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return hf}var mf,jk;function mK(){if(jk)return mf;jk=1,mf=t,t.displayName="magma",t.aliases=[];function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return mf}var gf,Hk;function gK(){if(Hk)return gf;Hk=1,gf=t,t.displayName="makefile",t.aliases=[];function t(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return gf}var bf,$k;function bK(){if($k)return bf;$k=1,bf=t,t.displayName="markdown",t.aliases=["md"];function t(e){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+o+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+o+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(f){p!==f&&(n.languages.markdown[p].inside.content.inside[f]=n.languages.markdown[f])})}),n.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function f(h){if(!(!h||typeof h=="string"))for(var g=0,b=h.length;g<b;g++){var y=h[g];if(y.type!=="code"){f(y.content);continue}var T=y.content[1],x=y.content[3];if(T&&x&&T.type==="code-language"&&x.type==="code-block"&&typeof T.content=="string"){var k=T.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");k=(/[a-z][\w-]*/i.exec(k)||[""])[0].toLowerCase();var A="language-"+k;x.alias?typeof x.alias=="string"?x.alias=[x.alias,A]:x.alias.push(A):x.alias=[A]}}}f(p.tokens)}),n.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var f="",h=0,g=p.classes.length;h<g;h++){var b=p.classes[h],y=/language-(.+)/.exec(b);if(y){f=y[1];break}}var T=n.languages[f];if(T)p.content=n.highlight(d(p.content.value),T,f);else if(f&&f!=="none"&&n.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=x,n.plugins.autoloader.loadLanguages(f,function(){var k=document.getElementById(x);k&&(k.innerHTML=n.highlight(k.textContent,n.languages[f],f))})}}});var l=RegExp(n.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function d(p){var f=p.replace(l,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,g){if(g=g.toLowerCase(),g[0]==="#"){var b;return g[1]==="x"?b=parseInt(g.slice(2),16):b=Number(g.slice(1)),c(b)}else{var y=u[g];return y||h}}),f}n.languages.md=n.languages.markdown})(e)}return bf}var Ef,zk;function EK(){if(zk)return Ef;zk=1,Ef=t,t.displayName="matlab",t.aliases=[];function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Ef}var yf,qk;function yK(){if(qk)return yf;qk=1,yf=t,t.displayName="maxscript",t.aliases=[];function t(e){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}return yf}var Tf,Gk;function TK(){if(Gk)return Tf;Gk=1,Tf=t,t.displayName="mel",t.aliases=[];function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}return Tf}var Sf,Wk;function SK(){if(Wk)return Sf;Wk=1,Sf=t,t.displayName="mermaid",t.aliases=[];function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Sf}var xf,Vk;function xK(){if(Vk)return xf;Vk=1,xf=t,t.displayName="mizar",t.aliases=[];function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return xf}var kf,Yk;function kK(){if(Yk)return kf;Yk=1,kf=t,t.displayName="mongodb",t.aliases=[];function t(e){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(s){return s.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(e)}return kf}var vf,Kk;function vK(){if(Kk)return vf;Kk=1,vf=t,t.displayName="monkey",t.aliases=[];function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return vf}var Af,Xk;function AK(){if(Xk)return Af;Xk=1,Af=t,t.displayName="moonscript",t.aliases=["moon"];function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}return Af}var _f,Zk;function _K(){if(Zk)return _f;Zk=1,_f=t,t.displayName="n1ql",t.aliases=[];function t(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return _f}var Nf,Qk;function NK(){if(Qk)return Nf;Qk=1,Nf=t,t.displayName="n4js",t.aliases=["n4jsd"];function t(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}return Nf}var Cf,Jk;function CK(){if(Jk)return Cf;Jk=1,Cf=t,t.displayName="nand2tetrisHdl",t.aliases=[];function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return Cf}var wf,ev;function wK(){if(ev)return wf;ev=1,wf=t,t.displayName="naniscript",t.aliases=[];function t(e){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(o){var l=o.tokens;l.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=s(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var l="[]{}",u=[],c=0;c<o.length;c++){var d=o[c],p=l.indexOf(d);if(p!==-1){if(p%2===0)u.push(p+1);else if(u.pop()!==p)return!1}}return u.length===0}function s(o){return typeof o=="string"?o:Array.isArray(o)?o.map(s).join(""):s(o.content)}})(e)}return wf}var If,tv;function IK(){if(tv)return If;tv=1,If=t,t.displayName="nasm",t.aliases=[];function t(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return If}var Rf,nv;function RK(){if(nv)return Rf;nv=1,Rf=t,t.displayName="neon",t.aliases=[];function t(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return Rf}var Of,rv;function OK(){if(rv)return Of;rv=1,Of=t,t.displayName="nevod",t.aliases=[];function t(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return Of}var Lf,av;function LK(){if(av)return Lf;av=1,Lf=t,t.displayName="nginx",t.aliases=[];function t(e){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(e)}return Lf}var Df,iv;function DK(){if(iv)return Df;iv=1,Df=t,t.displayName="nim",t.aliases=[];function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return Df}var Mf,sv;function MK(){if(sv)return Mf;sv=1,Mf=t,t.displayName="nix",t.aliases=[];function t(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}return Mf}var Pf,ov;function PK(){if(ov)return Pf;ov=1,Pf=t,t.displayName="nsis",t.aliases=[];function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return Pf}var Ff,lv;function FK(){if(lv)return Ff;lv=1;var t=ga();Ff=e,e.displayName="objectivec",e.aliases=["objc"];function e(n){n.register(t),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return Ff}var Bf,uv;function BK(){if(uv)return Bf;uv=1,Bf=t,t.displayName="ocaml",t.aliases=[];function t(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return Bf}var Uf,cv;function UK(){if(cv)return Uf;cv=1;var t=ga();Uf=e,e.displayName="opencl",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))})(n)}return Uf}var jf,dv;function jK(){if(dv)return jf;dv=1,jf=t,t.displayName="openqasm",t.aliases=["qasm"];function t(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}return jf}var Hf,pv;function HK(){if(pv)return Hf;pv=1,Hf=t,t.displayName="oz",t.aliases=[];function t(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return Hf}var $f,fv;function $K(){if(fv)return $f;fv=1,$f=t,t.displayName="parigp",t.aliases=[];function t(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return $f}var zf,hv;function zK(){if(hv)return zf;hv=1,zf=t,t.displayName="parser",t.aliases=[];function t(e){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(e)}return zf}var qf,mv;function qK(){if(mv)return qf;mv=1,qf=t,t.displayName="pascal",t.aliases=["objectpascal"];function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}return qf}var Gf,gv;function GK(){if(gv)return Gf;gv=1,Gf=t,t.displayName="pascaligo",t.aliases=[];function t(e){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},s=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,l){return o[l]=i[l],o},{});i["class-name"].forEach(function(o){o.inside=s})})(e)}return Gf}var Wf,bv;function WK(){if(bv)return Wf;bv=1,Wf=t,t.displayName="pcaxis",t.aliases=["px"];function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}return Wf}var Vf,Ev;function VK(){if(Ev)return Vf;Ev=1,Vf=t,t.displayName="peoplecode",t.aliases=["pcode"];function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}return Vf}var Yf,yv;function YK(){if(yv)return Yf;yv=1,Yf=t,t.displayName="perl",t.aliases=[];function t(e){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}return Yf}var Kf,Tv;function KK(){if(Tv)return Kf;Tv=1;var t=Zl();Kf=e,e.displayName="phpExtras",e.aliases=[];function e(n){n.register(t),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return Kf}var Xf,Sv;function XK(){if(Sv)return Xf;Sv=1;var t=Zl(),e=Xl();Xf=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)})(r)}return Xf}var Zf,xv;function ZK(){if(xv)return Zf;xv=1;var t=M0();Zf=e,e.displayName="plsql",e.aliases=[];function e(n){n.register(t),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return Zf}var Qf,kv;function QK(){if(kv)return Qf;kv=1,Qf=t,t.displayName="powerquery",t.aliases=[];function t(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}return Qf}var Jf,vv;function JK(){if(vv)return Jf;vv=1,Jf=t,t.displayName="powershell",t.aliases=[];function t(e){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(e)}return Jf}var eh,Av;function eX(){if(Av)return eh;Av=1,eh=t,t.displayName="processing",t.aliases=[];function t(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return eh}var th,_v;function tX(){if(_v)return th;_v=1,th=t,t.displayName="prolog",t.aliases=[];function t(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return th}var nh,Nv;function nX(){if(Nv)return nh;Nv=1,nh=t,t.displayName="promql",t.aliases=[];function t(e){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],s=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+s.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}return nh}var rh,Cv;function rX(){if(Cv)return rh;Cv=1,rh=t,t.displayName="properties",t.aliases=[];function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return rh}var ah,wv;function aX(){if(wv)return ah;wv=1,ah=t,t.displayName="protobuf",t.aliases=[];function t(e){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}return ah}var ih,Iv;function iX(){if(Iv)return ih;Iv=1,ih=t,t.displayName="psl",t.aliases=[];function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return ih}var sh,Rv;function sX(){if(Rv)return sh;Rv=1,sh=t,t.displayName="pug",t.aliases=[];function t(e){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},s=0,o=a.length;s<o;s++){var l=a[s];l=typeof l=="string"?{filter:l,language:l}:l,n.languages[l.language]&&(i["filter-"+l.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(e)}return sh}var oh,Ov;function oX(){if(Ov)return oh;Ov=1,oh=t,t.displayName="puppet",t.aliases=[];function t(e){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(e)}return oh}var lh,Lv;function lX(){if(Lv)return lh;Lv=1,lh=t,t.displayName="pure",t.aliases=[];function t(e){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var s=i;if(typeof i!="string"&&(s=i.alias,i=i.lang),n.languages[s]){var o={};o["inline-lang-"+s]={pattern:RegExp(a.replace("<lang>",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},o["inline-lang-"+s].inside.rest=n.util.clone(n.languages[s]),n.languages.insertBefore("pure","inline-lang",o)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(e)}return lh}var uh,Dv;function uX(){if(Dv)return uh;Dv=1,uh=t,t.displayName="purebasic",t.aliases=[];function t(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}return uh}var ch,Mv;function cX(){if(Mv)return ch;Mv=1;var t=F0();ch=e,e.displayName="purescript",e.aliases=["purs"];function e(n){n.register(t),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return ch}var dh,Pv;function dX(){if(Pv)return dh;Pv=1,dh=t,t.displayName="python",t.aliases=["py"];function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}return dh}var ph,Fv;function pX(){if(Fv)return ph;Fv=1,ph=t,t.displayName="q",t.aliases=[];function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return ph}var fh,Bv;function fX(){if(Bv)return fh;Bv=1,fh=t,t.displayName="qml",t.aliases=[];function t(e){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return a}),s=0;s<2;s++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}return fh}var hh,Uv;function hX(){if(Uv)return hh;Uv=1,hh=t,t.displayName="qore",t.aliases=[];function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return hh}var mh,jv;function mX(){if(jv)return mh;jv=1,mh=t,t.displayName="qsharp",t.aliases=["qs"];function t(e){(function(n){function r(h,g){return h.replace(/<<(\d+)>>/g,function(b,y){return"(?:"+g[+y]+")"})}function a(h,g,b){return RegExp(r(h,g),"")}function i(h,g){for(var b=0;b<g;b++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(o(s.type+" "+s.other)),u=/\b[A-Za-z_]\w*\b/.source,c=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),d={keyword:l,punctuation:/[<>()?,.:[\]]/},p=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[p]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:d},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:d}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var f=i(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[p]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}return mh}var gh,Hv;function gX(){if(Hv)return gh;Hv=1,gh=t,t.displayName="r",t.aliases=[];function t(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return gh}var bh,$v;function bX(){if($v)return bh;$v=1;var t=H0();bh=e,e.displayName="racket",e.aliases=["rkt"];function e(n){n.register(t),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return bh}var Eh,zv;function EX(){if(zv)return Eh;zv=1,Eh=t,t.displayName="reason",t.aliases=[];function t(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}return Eh}var yh,qv;function yX(){if(qv)return yh;qv=1,yh=t,t.displayName="regex",t.aliases=[];function t(e){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+a.source+")",l=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":s,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":u}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}return yh}var Th,Gv;function TX(){if(Gv)return Th;Gv=1,Th=t,t.displayName="rego",t.aliases=[];function t(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Th}var Sh,Wv;function SX(){if(Wv)return Sh;Wv=1,Sh=t,t.displayName="renpy",t.aliases=["rpy"];function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}return Sh}var xh,Vv;function xX(){if(Vv)return xh;Vv=1,xh=t,t.displayName="rest",t.aliases=[];function t(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return xh}var kh,Yv;function kX(){if(Yv)return kh;Yv=1,kh=t,t.displayName="rip",t.aliases=[];function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return kh}var vh,Kv;function vX(){if(Kv)return vh;Kv=1,vh=t,t.displayName="roboconf",t.aliases=[];function t(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return vh}var Ah,Xv;function AX(){if(Xv)return Ah;Xv=1,Ah=t,t.displayName="robotframework",t.aliases=[];function t(e){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var p in c)d[p]=c[p];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=a,d.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return u}),"im"),alias:"section",inside:d}}var s={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:s,property:l}),keywords:i("Keywords",{"keyword-name":o,documentation:s,property:l}),tasks:i("Tasks",{"task-name":o,documentation:s,property:l}),comment:r},n.languages.robot=n.languages.robotframework})(e)}return Ah}var _h,Zv;function _X(){if(Zv)return _h;Zv=1,_h=t,t.displayName="rust",t.aliases=[];function t(e){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,a=0;a<2;a++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(e)}return _h}var Nh,Qv;function NX(){if(Qv)return Nh;Qv=1,Nh=t,t.displayName="sas",t.aliases=[];function t(e){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},s={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(r),greedy:!0},d=/[$%@.(){}\[\];,\\]/,p={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:p,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":s,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:d,string:c},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},y={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},T=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return T}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return T}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:p,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:a,"numeric-constant":i,punctuation:d,string:c}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:k,"submit-statement":y,"global-statements":b,number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:k,"submit-statement":y,"global-statements":b,number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:l,keyword:k,function:p,format:h,altformat:g,"global-statements":b,number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:f},"macro-keyword":o,"macro-variable":s,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":s,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":x,comment:u,function:p,format:h,altformat:g,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:c,step:l,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}return Nh}var Ch,Jv;function CX(){if(Jv)return Ch;Jv=1,Ch=t,t.displayName="sass",t.aliases=[];function t(e){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}return Ch}var wh,eA;function wX(){if(eA)return wh;eA=1;var t=B0();wh=e,e.displayName="scala",e.aliases=[];function e(n){n.register(t),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return wh}var Ih,tA;function IX(){if(tA)return Ih;tA=1,Ih=t,t.displayName="scss",t.aliases=[];function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}return Ih}var Rh,nA;function RX(){if(nA)return Rh;nA=1;var t=WR();Rh=e,e.displayName="shellSession",e.aliases=[];function e(n){n.register(t),(function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]})(n)}return Rh}var Oh,rA;function OX(){if(rA)return Oh;rA=1,Oh=t,t.displayName="smali",t.aliases=[];function t(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return Oh}var Lh,aA;function LX(){if(aA)return Lh;aA=1,Lh=t,t.displayName="smalltalk",t.aliases=[];function t(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return Lh}var Dh,iA;function DX(){if(iA)return Dh;iA=1;var t=Vt();Dh=e,e.displayName="smarty",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(s){var o="{literal}",l="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(s,"smarty",i,function(c){return c===l&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"smarty")})})(n)}return Dh}var Mh,sA;function MX(){if(sA)return Mh;sA=1,Mh=t,t.displayName="sml",t.aliases=["smlnj"];function t(e){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(e)}return Mh}var Ph,oA;function PX(){if(oA)return Ph;oA=1,Ph=t,t.displayName="solidity",t.aliases=["sol"];function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}return Ph}var Fh,lA;function FX(){if(lA)return Fh;lA=1,Fh=t,t.displayName="solutionFile",t.aliases=[];function t(e){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(e)}return Fh}var Bh,uA;function BX(){if(uA)return Bh;uA=1;var t=Vt();Bh=e,e.displayName="soy",e.aliases=[];function e(n){n.register(t),(function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(s){var o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",u="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(s,"soy",o,function(d){return d===u&&(c=!1),c?!1:(d===l&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"soy")})})(n)}return Bh}var Uh,cA;function XR(){if(cA)return Uh;cA=1,Uh=t,t.displayName="turtle",t.aliases=[];function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}return Uh}var jh,dA;function UX(){if(dA)return jh;dA=1;var t=XR();jh=e,e.displayName="sparql",e.aliases=["rq"];function e(n){n.register(t),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return jh}var Hh,pA;function jX(){if(pA)return Hh;pA=1,Hh=t,t.displayName="splunkSpl",t.aliases=[];function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return Hh}var $h,fA;function HX(){if(fA)return $h;fA=1,$h=t,t.displayName="sqf",t.aliases=[];function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}return $h}var zh,hA;function $X(){if(hA)return zh;hA=1,zh=t,t.displayName="squirrel",t.aliases=[];function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return zh}var qh,mA;function zX(){if(mA)return qh;mA=1,qh=t,t.displayName="stan",t.aliases=[];function t(e){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(e)}return qh}var Gh,gA;function qX(){if(gA)return Gh;gA=1,Gh=t,t.displayName="stylus",t.aliases=[];function t(e){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}return Gh}var Wh,bA;function GX(){if(bA)return Wh;bA=1,Wh=t,t.displayName="swift",t.aliases=[];function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=e.languages.swift})}return Wh}var Vh,EA;function WX(){if(EA)return Vh;EA=1,Vh=t,t.displayName="systemd",t.aliases=[];function t(e){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r
|
|
194
|
+
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}return Vh}var Yh,yA;function $0(){if(yA)return Yh;yA=1,Yh=t,t.displayName="t4Templating",t.aliases=[];function t(e){(function(n){function r(i,s,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:o}}}}function a(i){var s=n.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",s,o),"class-feature":r("\\+",s,o),standard:r("",s,o)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}return Yh}var Kh,TA;function VX(){if(TA)return Kh;TA=1;var t=$0(),e=Yl();Kh=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(t),r.register(e),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return Kh}var Xh,SA;function ZR(){if(SA)return Xh;SA=1;var t=VR();Xh=e,e.displayName="vbnet",e.aliases=[];function e(n){n.register(t),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return Xh}var Zh,xA;function YX(){if(xA)return Zh;xA=1;var t=$0(),e=ZR();Zh=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(t),r.register(e),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return Zh}var Qh,kA;function QR(){if(kA)return Qh;kA=1,Qh=t,t.displayName="yaml",t.aliases=["yml"];function t(e){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(u,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return u});return RegExp(d,c)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(o),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(e)}return Qh}var Jh,vA;function KX(){if(vA)return Jh;vA=1;var t=QR();Jh=e,e.displayName="tap",e.aliases=[];function e(n){n.register(t),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return Jh}var em,AA;function XX(){if(AA)return em;AA=1,em=t,t.displayName="tcl",t.aliases=[];function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return em}var tm,_A;function ZX(){if(_A)return tm;_A=1,tm=t,t.displayName="textile",t.aliases=[];function t(e){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(p,f){return RegExp(p.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+a+")"}),f||"")}var s={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:s},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:s},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")<MOD>+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=o.phrase.inside,u={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=l.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var d=l.table.inside;d.inline=u.inline,d.link=u.link,d.image=u.image,d.footnote=u.footnote,d.acronym=u.acronym,d.mark=u.mark})(e)}return tm}var nm,NA;function QX(){if(NA)return nm;NA=1,nm=t,t.displayName="toml",t.aliases=[];function t(e){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}return nm}var rm,CA;function JX(){if(CA)return rm;CA=1,rm=t,t.displayName="tremor",t.aliases=[];function t(e){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(e)}return rm}var am,wA;function eZ(){if(wA)return am;wA=1;var t=KR(),e=U0();am=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var s=a.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0})(r)}return am}var im,IA;function tZ(){if(IA)return im;IA=1;var t=Vt();im=e,e.displayName="tt2",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})})(n)}return im}var sm,RA;function nZ(){if(RA)return sm;RA=1;var t=Vt();sm=e,e.displayName="twig",e.aliases=[];function e(n){n.register(t),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return sm}var om,OA;function rZ(){if(OA)return om;OA=1,om=t,t.displayName="typoscript",t.aliases=["tsconfig"];function t(e){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(e)}return om}var lm,LA;function aZ(){if(LA)return lm;LA=1,lm=t,t.displayName="unrealscript",t.aliases=["uc","uscript"];function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}return lm}var um,DA;function iZ(){if(DA)return um;DA=1,um=t,t.displayName="uorazor",t.aliases=[];function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return um}var cm,MA;function sZ(){if(MA)return cm;MA=1,cm=t,t.displayName="uri",t.aliases=["url"];function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}return cm}var dm,PA;function oZ(){if(PA)return dm;PA=1,dm=t,t.displayName="v",t.aliases=[];function t(e){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(e)}return dm}var pm,FA;function lZ(){if(FA)return pm;FA=1,pm=t,t.displayName="vala",t.aliases=[];function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return pm}var fm,BA;function uZ(){if(BA)return fm;BA=1,fm=t,t.displayName="velocity",t.aliases=[];function t(e){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(e)}return fm}var hm,UA;function cZ(){if(UA)return hm;UA=1,hm=t,t.displayName="verilog",t.aliases=[];function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return hm}var mm,jA;function dZ(){if(jA)return mm;jA=1,mm=t,t.displayName="vhdl",t.aliases=[];function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return mm}var gm,HA;function pZ(){if(HA)return gm;HA=1,gm=t,t.displayName="vim",t.aliases=[];function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return gm}var bm,$A;function fZ(){if($A)return bm;$A=1,bm=t,t.displayName="visualBasic",t.aliases=[];function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}return bm}var Em,zA;function hZ(){if(zA)return Em;zA=1,Em=t,t.displayName="warpscript",t.aliases=[];function t(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Em}var ym,qA;function mZ(){if(qA)return ym;qA=1,ym=t,t.displayName="wasm",t.aliases=[];function t(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return ym}var Tm,GA;function gZ(){if(GA)return Tm;GA=1,Tm=t,t.displayName="webIdl",t.aliases=[];function t(e){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var s in n.languages["web-idl"])s!=="class-name"&&(i[s]=n.languages["web-idl"][s]);n.languages.webidl=n.languages["web-idl"]})(e)}return Tm}var Sm,WA;function bZ(){if(WA)return Sm;WA=1,Sm=t,t.displayName="wiki",t.aliases=[];function t(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}return Sm}var xm,VA;function EZ(){if(VA)return xm;VA=1,xm=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"];function t(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}return xm}var km,YA;function yZ(){if(YA)return km;YA=1,km=t,t.displayName="wren",t.aliases=[];function t(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return km}var vm,KA;function TZ(){if(KA)return vm;KA=1,vm=t,t.displayName="xeora",t.aliases=["xeoracube"];function t(e){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(e)}return vm}var Am,XA;function SZ(){if(XA)return Am;XA=1,Am=t,t.displayName="xmlDoc",t.aliases=[];function t(e){(function(n){function r(o,l){n.languages[o]&&n.languages.insertBefore(o,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},s={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",s)})(e)}return Am}var _m,ZA;function xZ(){if(ZA)return _m;ZA=1,_m=t,t.displayName="xojo",t.aliases=[];function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return _m}var Nm,QA;function kZ(){if(QA)return Nm;QA=1,Nm=t,t.displayName="xquery",t.aliases=[];function t(e){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var s=[],o=0;o<i.length;o++){var l=i[o],u=!1;if(typeof l!="string"&&(l.type==="tag"&&l.content[0]&&l.content[0].type==="tag"?l.content[0].content[0].content==="</"?s.length>0&&s[s.length-1].tagName===r(l.content[0].content[1])&&s.pop():l.content[l.content.length-1].content==="/>"||s.push({tagName:r(l.content[0].content[1]),openedBraces:0}):s.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?s[s.length-1].openedBraces++:s.length>0&&s[s.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?s[s.length-1].openedBraces--:l.type!=="comment"&&(u=!0)),(u||typeof l=="string")&&s.length>0&&s[s.length-1].openedBraces===0){var c=r(l);o<i.length-1&&(typeof i[o+1]=="string"||i[o+1].type==="plain-text")&&(c+=r(i[o+1]),i.splice(o+1,1)),o>0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=r(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new n.Token("plain-text",c,null,c)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(e)}return Nm}var Cm,JA;function vZ(){if(JA)return Cm;JA=1,Cm=t,t.displayName="yang",t.aliases=[];function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return Cm}var wm,e_;function AZ(){if(e_)return wm;e_=1,wm=t,t.displayName="zig",t.aliases=[];function t(e){(function(n){function r(c){return function(){return c}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",s=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(s)),l=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(u)).replace(/<ALIGN>/g,r(s))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(u)).replace(/<ALIGN>/g,r(s))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=n.languages.zig)})})(e)}return wm}var Im,t_;function _Z(){if(t_)return Im;t_=1;var t=$W();return Im=t,t.register(qW()),t.register(GW()),t.register(WW()),t.register(VW()),t.register(YW()),t.register(KW()),t.register(XW()),t.register(ZW()),t.register(QW()),t.register(JW()),t.register(eV()),t.register(tV()),t.register(nV()),t.register(rV()),t.register(aV()),t.register(iV()),t.register(sV()),t.register(oV()),t.register(lV()),t.register(uV()),t.register(cV()),t.register(dV()),t.register(WR()),t.register(VR()),t.register(pV()),t.register(fV()),t.register(hV()),t.register(mV()),t.register(gV()),t.register(bV()),t.register(EV()),t.register(yV()),t.register(TV()),t.register(SV()),t.register(ga()),t.register(xV()),t.register(kV()),t.register(vV()),t.register(AV()),t.register(_V()),t.register(NV()),t.register(CV()),t.register(wV()),t.register(IV()),t.register(P0()),t.register(RV()),t.register(Yl()),t.register(OV()),t.register(LV()),t.register(DV()),t.register(MV()),t.register(PV()),t.register(FV()),t.register(BV()),t.register(UV()),t.register(jV()),t.register(HV()),t.register($V()),t.register(zV()),t.register(qV()),t.register(GV()),t.register(WV()),t.register(VV()),t.register(YV()),t.register(KV()),t.register(XV()),t.register(ZV()),t.register(QV()),t.register(JV()),t.register(eY()),t.register(tY()),t.register(nY()),t.register(rY()),t.register(aY()),t.register(iY()),t.register(sY()),t.register(oY()),t.register(lY()),t.register(uY()),t.register(cY()),t.register(dY()),t.register(pY()),t.register(fY()),t.register(hY()),t.register(mY()),t.register(gY()),t.register(bY()),t.register(EY()),t.register(yY()),t.register(TY()),t.register(SY()),t.register(xY()),t.register(kY()),t.register(vY()),t.register(F0()),t.register(AY()),t.register(_Y()),t.register(NY()),t.register(CY()),t.register(wY()),t.register(IY()),t.register(RY()),t.register(OY()),t.register(LY()),t.register(DY()),t.register(MY()),t.register(PY()),t.register(FY()),t.register(BY()),t.register(UY()),t.register(jY()),t.register(HY()),t.register(B0()),t.register($Y()),t.register(Xl()),t.register(zY()),t.register(qY()),t.register(GY()),t.register(WY()),t.register(VY()),t.register(YY()),t.register(KY()),t.register(j0()),t.register(XY()),t.register(ZY()),t.register(QY()),t.register(KR()),t.register(JY()),t.register(eK()),t.register(tK()),t.register(nK()),t.register(rK()),t.register(aK()),t.register(iK()),t.register(sK()),t.register(oK()),t.register(lK()),t.register(uK()),t.register(cK()),t.register(dK()),t.register(pK()),t.register(fK()),t.register(hK()),t.register(YR()),t.register(mK()),t.register(gK()),t.register(bK()),t.register(Vt()),t.register(EK()),t.register(yK()),t.register(TK()),t.register(SK()),t.register(xK()),t.register(kK()),t.register(vK()),t.register(AK()),t.register(_K()),t.register(NK()),t.register(CK()),t.register(wK()),t.register(IK()),t.register(RK()),t.register(OK()),t.register(LK()),t.register(DK()),t.register(MK()),t.register(PK()),t.register(FK()),t.register(BK()),t.register(UK()),t.register(jK()),t.register(HK()),t.register($K()),t.register(zK()),t.register(qK()),t.register(GK()),t.register(WK()),t.register(VK()),t.register(YK()),t.register(KK()),t.register(Zl()),t.register(XK()),t.register(ZK()),t.register(QK()),t.register(JK()),t.register(eX()),t.register(tX()),t.register(nX()),t.register(rX()),t.register(aX()),t.register(iX()),t.register(sX()),t.register(oX()),t.register(lX()),t.register(uX()),t.register(cX()),t.register(dX()),t.register(pX()),t.register(fX()),t.register(hX()),t.register(mX()),t.register(gX()),t.register(bX()),t.register(EX()),t.register(yX()),t.register(TX()),t.register(SX()),t.register(xX()),t.register(kX()),t.register(vX()),t.register(AX()),t.register(Kl()),t.register(_X()),t.register(NX()),t.register(CX()),t.register(wX()),t.register(H0()),t.register(IX()),t.register(RX()),t.register(OX()),t.register(LX()),t.register(DX()),t.register(MX()),t.register(PX()),t.register(FX()),t.register(BX()),t.register(UX()),t.register(jX()),t.register(HX()),t.register(M0()),t.register($X()),t.register(zX()),t.register(qX()),t.register(GX()),t.register(WX()),t.register(VX()),t.register($0()),t.register(YX()),t.register(KX()),t.register(XX()),t.register(ZX()),t.register(QX()),t.register(JX()),t.register(eZ()),t.register(tZ()),t.register(XR()),t.register(nZ()),t.register(U0()),t.register(rZ()),t.register(aZ()),t.register(iZ()),t.register(sZ()),t.register(oZ()),t.register(lZ()),t.register(ZR()),t.register(uZ()),t.register(cZ()),t.register(dZ()),t.register(pZ()),t.register(fZ()),t.register(hZ()),t.register(mZ()),t.register(gZ()),t.register(bZ()),t.register(EZ()),t.register(yZ()),t.register(TZ()),t.register(SZ()),t.register(xZ()),t.register(kZ()),t.register(QR()),t.register(vZ()),t.register(AZ()),Im}var NZ=_Z();const CZ=pb(NZ);var JR=hq(CZ,zW);JR.supportedLanguages=mq;const qg={h1:t=>m.jsx("h1",{...t,className:"text-2xl font-bold mt-6 mb-3 first:mt-0"}),h2:t=>m.jsx("h2",{...t,className:"text-xl font-semibold mt-5 mb-2 first:mt-0"}),h3:t=>m.jsx("h3",{...t,className:"text-lg font-semibold mt-4 mb-2 first:mt-0"}),h4:t=>m.jsx("h4",{...t,className:"text-base font-semibold mt-3 mb-1 first:mt-0"}),p:t=>m.jsx("p",{...t,className:"leading-relaxed text-[14px] mb-2 last:mb-0"}),strong:t=>m.jsx("strong",{...t,className:"font-bold"}),em:t=>m.jsx("em",{...t,className:"italic"}),a:t=>m.jsx("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-primary-dark hover:underline break-all font-medium"}),ul:t=>m.jsx("ul",{...t,className:"list-disc ml-6 my-3 space-y-1.5"}),ol:t=>m.jsx("ol",{...t,className:"list-decimal ml-6 my-3 space-y-1.5"}),li:t=>m.jsx("li",{...t,className:"leading-relaxed text-[14px]"}),blockquote:t=>m.jsx("blockquote",{...t,className:"border-l-4 border-border pl-4 my-3 text-muted-foreground italic"}),hr:t=>m.jsx("hr",{...t,className:"my-4 border-border"}),code:t=>m.jsx("code",{...t,className:"px-1 py-0.5 bg-background border border-border rounded text-[14px] font-mono break-all"}),pre:t=>m.jsx("pre",{...t,className:"flex w-full min-w-0 my-4 bg-background rounded-lg border border-border overflow-hidden",children:m.jsx("code",{className:"flex-1 min-w-0 p-4 text-[14px] font-mono whitespace-pre overflow-x-auto",children:t.children})}),table:t=>m.jsx("div",{className:"overflow-x-auto my-3 rounded-lg border border-border",children:m.jsx("table",{...t,className:"min-w-full border-collapse text-sm"})}),thead:t=>m.jsx("thead",{...t,className:"bg-muted",children:t.children}),tr:t=>m.jsx("tr",{...t,className:"even:bg-muted/50 border-b border-border last:border-0"}),th:t=>m.jsx("th",{...t,className:"px-4 py-2 text-left font-semibold text-muted-foreground border-b border-border"}),td:t=>m.jsx("td",{...t,className:"px-4 py-2 border-b border-border"})},n_=[DR];function Xse(t){const e=W.c(12),{children:n,remarkPlugins:r,rehypePlugins:a,components:i,className:s}=t;let o;e[0]!==r?(o=r?[...n_,...r]:n_,e[0]=r,e[1]=o):o=e[1];const l=o;let u;e[2]!==i?(u=i?{...qg,...i}:qg,e[2]=i,e[3]=u):u=e[3];const c=u,d=s??"max-w-none";let p;e[4]!==n||e[5]!==c||e[6]!==l||e[7]!==a?(p=m.jsx(CI,{remarkPlugins:l,rehypePlugins:a,components:c,children:n}),e[4]=n,e[5]=c,e[6]=l,e[7]=a,e[8]=p):p=e[8];let f;return e[9]!==d||e[10]!==p?(f=m.jsx("div",{className:d,children:p}),e[9]=d,e[10]=p,e[11]=f):f=e[11],f}const r_=.25,_a=1,a_=3;function i_(t,e,n,r){if(!r||n<=_a)return{x:0,y:0};const a=r.offsetWidth,i=r.offsetHeight,s=(n-1)*a/2,o=(n-1)*i/2;return{x:Math.max(-s,Math.min(s,t)),y:Math.max(-o,Math.min(o,e))}}function z0({src:t,alt:e="Image",children:n}){const r=fe(),[a,i]=U.useState(!1),[s,o]=U.useState(1),[l,u]=U.useState({x:0,y:0}),c=U.useRef(null),d=U.useRef(null),p=()=>{const S=document.createElement("a");S.href=t,S.download=e.replace(/[^a-zA-Z0-9-_ ]/g,"")||"image",document.body.appendChild(S),S.click(),document.body.removeChild(S)},f=()=>{o(1),u({x:0,y:0}),i(!0)},h=S=>{const v=Math.min(Math.max(S,_a),a_);u(v===_a?{x:0,y:0}:N=>i_(N.x,N.y,v,c.current)),o(v)},g=()=>h(s+r_),b=()=>h(s-r_),y=S=>{s<=_a||(S.preventDefault(),S.target.setPointerCapture(S.pointerId),d.current={active:!0,startX:S.clientX,startY:S.clientY,startPanX:l.x,startPanY:l.y})},T=S=>{const v=d.current;if(!v?.active)return;const N=v.startPanX+(S.clientX-v.startX),_=v.startPanY+(S.clientY-v.startY);u(i_(N,_,s,c.current))},x=()=>{d.current&&(d.current.active=!1)},k=s>_a,A="flex items-center justify-center size-8 rounded-lg bg-black/60 text-white hover:bg-black/80 backdrop-blur-sm transition-colors";return m.jsxs(lN,{open:a,onOpenChange:i,children:[m.jsx("button",{type:"button",className:"cursor-zoom-in text-left",onClick:f,children:n}),m.jsxs(NL,{children:[m.jsx(CL,{}),m.jsxs(UO,{className:"fixed inset-0 z-50 flex items-center justify-center p-8 focus:outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 duration-200",onClick:()=>i(!1),children:[m.jsx(oN,{className:"sr-only",children:e}),m.jsxs("div",{className:"relative overflow-hidden rounded-lg shadow-2xl",onClick:S=>S.stopPropagation(),children:[m.jsx("img",{ref:c,src:t,alt:e,className:"max-w-[min(800px,85vw)] max-h-[80vh] object-contain select-none",style:{transform:`scale(${s}) translate(${l.x/s}px, ${l.y/s}px)`,transition:d.current?.active?"none":"transform 200ms ease-out",cursor:k?"grab":"default"},draggable:!1,onPointerDown:y,onPointerMove:T,onPointerUp:x,onPointerCancel:x}),m.jsxs("div",{className:"absolute bottom-3 left-3 flex items-center gap-1.5",children:[m.jsx("button",{type:"button",onClick:b,disabled:s<=_a,className:A,"aria-label":r("chat.imageLightbox.zoomOut"),children:m.jsx(YO,{size:16})}),m.jsx("button",{type:"button",onClick:g,disabled:s>=a_,className:A,"aria-label":r("chat.imageLightbox.zoomIn"),children:m.jsx(KO,{size:16})})]}),m.jsx("button",{type:"button",onClick:p,className:ye("absolute bottom-3 right-3",A),"aria-label":r("chat.imageLightbox.downloadImage"),children:m.jsx(Eb,{size:16})})]})]})]})]})}const wZ=/:\d+(?::\d+)?$/,IZ=/\.[A-Za-z0-9]+$/;function e2(t,e,n){const r=t.trim().replace(wZ,"");if(!r||/\s/.test(r)||!r.startsWith("org/")||r.endsWith("/"))return null;const a=r.split("/").filter(Boolean);if(a.length<3)return null;const i=a.at(-1);if(!i||!IZ.test(i))return null;const s=a[1];if(s==="public")return a.length<4?null:a.slice(1).join("/");if(s==="home"||e&&s===e)return`home/${a.slice(2).join("/")}`;if(n){if(s==="output")return`outputs/${n}/${a.slice(2).join("/")}`;if(s==="upload")return`uploads/${n}/${a.slice(2).join("/")}`}return null}const q0=U.createContext(null);function RZ(t,e,n){if(n){const{main:i,...s}=t;return{...s,preview:e}}const{preview:r,...a}=t;return{...a,main:IL(e)}}function Zse(t){const e=W.c(11),{children:n}=t,r=la(),a=wL();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[0]=i):i=e[0];const{org:s,taskId:o}=jO(i);let l;e[1]!==a||e[2]!==r?(l=p=>r({to:".",search:f=>RZ(f,p,a)}),e[1]=a,e[2]=r,e[3]=l):l=e[3];const u=l;let c;e[4]!==u||e[5]!==s||e[6]!==o?(c={orgSlug:s,threadId:o,open:u},e[4]=u,e[5]=s,e[6]=o,e[7]=c):c=e[7];let d;return e[8]!==n||e[9]!==c?(d=m.jsx(q0.Provider,{value:c,children:n}),e[8]=n,e[9]=c,e[10]=d):d=e[10],d}const OZ={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}};function LZ(t){const e=W.c(8),{language:n,content:r,fillHeight:a}=t,i=a===void 0?!1:a,s=n||"text",o=i?"100%":void 0,l=i?"100%":void 0;let u;e[0]!==o||e[1]!==l?(u={margin:0,padding:"1rem",fontSize:"0.8rem",borderRadius:"0.5rem",background:"#282c34",position:"relative",overflowX:"hidden",overflowY:"visible",width:"100%",maxWidth:"100%",display:"block",wordBreak:"break-word",overflowWrap:"break-word",height:o,minHeight:l},e[0]=o,e[1]=l,e[2]=u):u=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={className:"font-mono",style:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"pre-wrap"}},e[3]=c):c=e[3];let d;return e[4]!==r||e[5]!==s||e[6]!==u?(d=m.jsx(JR,{language:s,style:OZ,customStyle:u,codeTagProps:c,wrapLongLines:!0,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=d):d=e[7],d}function t2(){const t=W.c(3),[e,n]=U.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=async s=>{await navigator.clipboard.writeText(s),n(!0),setTimeout(()=>n(!1),2e3)},t[0]=r):r=t[0];const a=r;let i;return t[1]!==e?(i={handleCopy:a,copied:e},t[1]=e,t[2]=i):i=t[2],i}function DZ(t){const e=W.c(18),n=fe(),r=U.useRef(null),{handleCopy:a,copied:i}=t2(),s=MZ;let o;e[0]!==a?(o=async()=>{const g=s(r.current);await a(g)},e[0]=a,e[1]=o):o=e[1];const l=o;let u;e[2]!==n?(u=n("chat.markdown.copyAsCSV"),e[2]=n,e[3]=u):u=e[3];let c;e[4]!==n?(c=n("chat.markdown.copyAsCSV"),e[4]=n,e[5]=c):c=e[5];let d;e[6]!==i?(d=i?m.jsx(fs,{size:12}):m.jsx(El,{size:12}),e[6]=i,e[7]=d):d=e[7];let p;e[8]!==l||e[9]!==u||e[10]!==c||e[11]!==d?(p=m.jsx("div",{className:"flex justify-end items-center",children:m.jsxs(nr,{variant:"ghost",onClick:l,"aria-label":u,className:"text-muted-foreground hover:text-foreground h-6 text-[10px]",type:"button",children:[c,d]})}),e[8]=l,e[9]=u,e[10]=c,e[11]=d,e[12]=p):p=e[12];let f;e[13]!==t?(f=m.jsx("div",{className:"overflow-x-auto mb-4 rounded-lg border border-border",children:m.jsx("table",{ref:r,...t,className:"min-w-full border-collapse text-sm",children:t.children})}),e[13]=t,e[14]=f):f=e[14];let h;return e[15]!==p||e[16]!==f?(h=m.jsxs(m.Fragment,{children:[p,f]}),e[15]=p,e[16]=f,e[17]=h):h=e[17],h}function MZ(t){return t?Array.from(t.querySelectorAll("tr")).map(PZ).join(`
|
|
195
|
+
`):""}function PZ(t){return Array.from(t.querySelectorAll("th,td")).map(FZ).join(",")}function FZ(t){let e=t.textContent||"";return e=e.replace(/"/g,'""'),e.search(/([",\n])/g)>=0&&(e=`"${e}"`),e}function BZ(t){const e=W.c(17),n=fe();let r,a,i;if(e[0]!==t?({src:i,alt:r,...a}=t,e[0]=t,e[1]=r,e[2]=a,e[3]=i):(r=e[1],a=e[2],i=e[3]),!i){let u;return e[4]!==t?(u=m.jsx("img",{...t}),e[4]=t,e[5]=u):u=e[5],u}let s;e[6]!==r||e[7]!==n?(s=r??n("chat.markdown.image"),e[6]=r,e[7]=n,e[8]=s):s=e[8];let o;e[9]!==r||e[10]!==a||e[11]!==i?(o=m.jsx("img",{...a,src:i,alt:r,className:"max-w-full rounded-lg border border-border hover:border-foreground/20 transition-colors"}),e[9]=r,e[10]=a,e[11]=i,e[12]=o):o=e[12];let l;return e[13]!==i||e[14]!==s||e[15]!==o?(l=m.jsx(z0,{src:i,alt:s,children:o}),e[13]=i,e[14]=s,e[15]=o,e[16]=l):l=e[16],l}const UZ=[DR],jZ=[F$],n2={...qg,code:t=>m.jsx($Z,{...t}),a:t=>m.jsx(a2,{...t}),table:t=>m.jsx(DZ,{...t}),img:t=>m.jsx(BZ,{...t})},HZ=/(\s+)/,r2=U.memo(function(e){const n=W.c(6),{text:r}=e;let a;n[0]!==r?(a=r.split(HZ).filter(GZ),n[0]=r,n[1]=a):a=n[1];const i=a;let s;n[2]!==i?(s=i.map(WZ),n[2]=i,n[3]=s):s=n[3];let o;return n[4]!==s?(o=m.jsx(m.Fragment,{children:s}),n[4]=s,n[5]=o):o=n[5],o});r2.displayName="AnimatedText";const Gn=t=>xt.Children.map(t,e=>typeof e=="string"?m.jsx(r2,{text:e}):e),s_="px-1 py-0.5 bg-background border border-border rounded text-[14px] font-mono break-all";function $Z(t){const e=W.c(23);let n,r,a;if(e[0]!==t){const{node:b,className:y,children:T,...x}=t;r=y,n=T,a=x,e[0]=t,e[1]=n,e[2]=r,e[3]=a}else n=e[1],r=e[2],a=e[3];const i=fe(),s=U.useContext(q0);let o;e[4]!==r?(o=typeof r=="string"&&r.includes("language-"),e[4]=r,e[5]=o):o=e[5];const l=o,u=typeof n=="string"?n:null;let c;e[6]!==s||e[7]!==l||e[8]!==u?(c=s&&!l&&u?e2(u,s.orgSlug,s.threadId):null,e[6]=s,e[7]=l,e[8]=u,e[9]=c):c=e[9];const d=c;if(!s||!d){let b;return e[10]!==n||e[11]!==a?(b=m.jsx("code",{className:s_,...a,children:n}),e[10]=n,e[11]=a,e[12]=b):b=e[12],b}let p;e[13]!==d||e[14]!==s?(p=()=>s.open(d),e[13]=d,e[14]=s,e[15]=p):p=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=ye(s_,"text-primary-dark hover:underline cursor-pointer"),e[16]=f):f=e[16];let h;e[17]!==i?(h=i("chat.markdown.openFile"),e[17]=i,e[18]=h):h=e[18];let g;return e[19]!==n||e[20]!==p||e[21]!==h?(g=m.jsx("button",{type:"button",onClick:p,className:f,title:h,children:n}),e[19]=n,e[20]=p,e[21]=h,e[22]=g):g=e[22],g}function a2(t){const e=W.c(12),{node:n,children:r,animate:a,...i}=t,s=U.useContext(q0),o=typeof i.href=="string"?i.href:void 0,l=s&&o?e2(o,s.orgSlug,s.threadId):null;let u;e[0]!==a||e[1]!==r?(u=a?Gn(r):r,e[0]=a,e[1]=r,e[2]=u):u=e[2];const c=u;if(s&&l){let p;e[3]!==l||e[4]!==s?(p=()=>s.open(l),e[3]=l,e[4]=s,e[5]=p):p=e[5];let f;return e[6]!==c||e[7]!==p?(f=m.jsx("button",{type:"button",onClick:p,className:"text-primary-dark hover:underline break-all font-medium cursor-pointer",children:c}),e[6]=c,e[7]=p,e[8]=f):f=e[8],f}let d;return e[9]!==c||e[10]!==i?(d=m.jsx("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"text-primary-dark hover:underline break-all font-medium",children:c}),e[9]=c,e[10]=i,e[11]=d):d=e[11],d}const zZ={...n2,h1:({node:t,children:e,...n})=>m.jsx("h1",{...n,className:"text-2xl font-bold mt-6 mb-3 first:mt-0",children:Gn(e)}),h2:({node:t,children:e,...n})=>m.jsx("h2",{...n,className:"text-xl font-semibold mt-5 mb-2 first:mt-0",children:Gn(e)}),h3:({node:t,children:e,...n})=>m.jsx("h3",{...n,className:"text-lg font-semibold mt-4 mb-2 first:mt-0",children:Gn(e)}),h4:({node:t,children:e,...n})=>m.jsx("h4",{...n,className:"text-base font-semibold mt-3 mb-1 first:mt-0",children:Gn(e)}),p:({node:t,children:e,...n})=>m.jsx("p",{...n,className:"leading-relaxed text-[14px] mb-2 last:mb-0",children:Gn(e)}),strong:({node:t,children:e,...n})=>m.jsx("strong",{...n,className:"font-bold",children:Gn(e)}),em:({node:t,children:e,...n})=>m.jsx("em",{...n,className:"italic",children:Gn(e)}),li:({node:t,children:e,...n})=>m.jsx("li",{...n,className:"leading-relaxed text-[14px]",children:Gn(e)}),a:t=>m.jsx(a2,{...t,animate:!0})},i2=U.memo(t=>{const e=W.c(3),{content:n,animate:r}=t,a=r?zZ:n2;let i;return e[0]!==n||e[1]!==a?(i=m.jsx(CI,{remarkPlugins:UZ,rehypePlugins:jZ,components:a,children:n}),e[0]=n,e[1]=a,e[2]=i):i=e[2],i},(t,e)=>t.content===e.content&&t.animate===e.animate);function qZ(t){const e=W.c(22),{language:n,content:r}=t,a=fe(),{handleCopy:i,copied:s}=t2(),o=n||"text";let l;e[0]!==o?(l=m.jsx("span",{className:"text-xs font-mono uppercase text-muted-foreground tracking-widest select-none",children:o}),e[0]=o,e[1]=l):l=e[1];let u;e[2]!==r||e[3]!==i?(u=()=>i(r),e[2]=r,e[3]=i,e[4]=u):u=e[4];let c;e[5]!==a?(c=a("chat.markdown.copyCode"),e[5]=a,e[6]=c):c=e[6];let d;e[7]!==s?(d=s?m.jsx(fs,{size:14}):m.jsx(El,{size:14}),e[7]=s,e[8]=d):d=e[8];let p;e[9]!==u||e[10]!==c||e[11]!==d?(p=m.jsx(nr,{size:"icon",variant:"ghost",onClick:u,"aria-label":c,className:"text-muted-foreground hover:text-foreground rounded-lg h-8 w-8",children:d}),e[9]=u,e[10]=c,e[11]=d,e[12]=p):p=e[12];let f;e[13]!==l||e[14]!==p?(f=m.jsxs("div",{className:"flex items-center justify-between p-1 pl-4 bg-muted border-b border-border",children:[l,p]}),e[13]=l,e[14]=p,e[15]=f):f=e[15];let h;e[16]!==r||e[17]!==n?(h=m.jsx(LZ,{language:n,content:r}),e[16]=r,e[17]=n,e[18]=h):h=e[18];let g;return e[19]!==f||e[20]!==h?(g=m.jsxs("div",{className:"my-4 rounded-lg bg-muted overflow-hidden border border-border grid min-w-0",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}i2.displayName="MemoizedMarkdownBlock";const Ql=t=>{const e=W.c(9),{id:n,text:r,animate:a}=t;let i;e[0]!==r?(i=Ue.lexer(r),e[0]=r,e[1]=i):i=e[1];const s=i;let o;if(e[2]!==a||e[3]!==s||e[4]!==n){let l;e[6]!==a||e[7]!==n?(l=(u,c)=>u.type==="code"?m.jsx(qZ,{language:u.lang,content:u.text},`${n}-block_${c}`):m.jsx(i2,{content:u.raw,animate:a},`${n}-block_${c}`),e[6]=a,e[7]=n,e[8]=l):l=e[8],o=s.map(l),e[2]=a,e[3]=s,e[4]=n,e[5]=o}else o=e[5];return o};Ql.displayName="MemoizedMarkdown";function GZ(t){return t.length>0}function WZ(t,e){return m.jsx("span",{className:"stream-word",children:t},e)}function Jl(t){const e=W.c(19),{id:n,part:r,copyable:a,extraActions:i,alwaysShowActions:s,animate:o}=t,l=a===void 0?!1:a,u=s===void 0?!1:s,c=o===void 0?!1:o,{handleCopy:d}=sN(),p=fe(),[f,h]=U.useState(!1);let g;e[0]!==d||e[1]!==n||e[2]!==r.text?(g=async()=>{HO("chat_message_copied",{message_id:n,chars:r.text.length}),await d(r.text),h(!0),setTimeout(()=>h(!1),2e3)},e[0]=d,e[1]=n,e[2]=r.text,e[3]=g):g=e[3];const b=g,y=l&&i,T=y||i;let x;e[4]!==c||e[5]!==n||e[6]!==r.text?(x=m.jsx(Ql,{id:n,text:r.text,animate:c}),e[4]=c,e[5]=n,e[6]=r.text,e[7]=x):x=e[7];let k;e[8]!==u||e[9]!==i||e[10]!==b||e[11]!==f||e[12]!==T||e[13]!==y||e[14]!==p?(k=T&&m.jsxs("div",{className:ye("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",u?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[i,y&&i&&m.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),y&&m.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":p("chat.textPart.copyMessage"),children:f?m.jsx(fs,{className:"size-4"}):m.jsx(El,{className:"size-4"})})]}),e[8]=u,e[9]=i,e[10]=b,e[11]=f,e[12]=T,e[13]=y,e[14]=p,e[15]=k):k=e[15];let A;return e[16]!==x||e[17]!==k?(A=m.jsxs("div",{className:"group/part relative",children:[x,k]}),e[16]=x,e[17]=k,e[18]=A):A=e[18],A}function Qse(t,e,n){t.chain().focus().insertContentAt(e,[VZ(n),{type:"text",text:" "}]).run()}function VZ(t){return{type:"file",attrs:t}}function YZ(t){const e=W.c(17),{node:n,selected:r,view:a}=t,{name:i,mimeType:s,data:o}=n.attrs,l=r&&a.editable;let u;e[0]!==s?(u=s.startsWith("image/"),e[0]=s,e[1]=u):u=e[1];const c=u,d=l&&"outline-2 outline-blue-300 outline-offset-0";let p;e[2]!==d?(p=ye("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light","bg-muted text-muted-foreground",d),e[2]=d,e[3]=p):p=e[3];let f;e[4]!==i?(f=m.jsx(Zr,{asChild:!0,children:m.jsx("span",{children:i})}),e[4]=i,e[5]=f):f=e[5];let h;e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==i?(h=m.jsx(Qr,{side:"top",className:"max-w-sm p-1.5",children:c?m.jsx("img",{src:`data:${s};base64,${o}`,alt:i,className:"max-w-full max-h-64 object-contain rounded"}):m.jsxs("div",{className:"text-xs",children:[m.jsx("div",{className:"font-medium",children:i}),m.jsx("div",{className:"text-muted-foreground mt-1",children:s})]})}),e[6]=o,e[7]=c,e[8]=s,e[9]=i,e[10]=h):h=e[10];let g;e[11]!==f||e[12]!==h?(g=m.jsxs(Jr,{children:[f,h]}),e[11]=f,e[12]=h,e[13]=g):g=e[13];let b;return e[14]!==p||e[15]!==g?(b=m.jsx(ww,{className:p,children:g}),e[14]=p,e[15]=g,e[16]=b):b=e[16],b}const KZ=Bt.create({name:"file",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},mimeType:{default:null,parseHTML:t=>t.getAttribute("data-mime-type")||null,renderHTML:t=>t.mimeType?{"data-mime-type":t.mimeType}:{}},size:{default:0,parseHTML:t=>{const e=t.getAttribute("data-size");return e?Number.parseInt(e,10):0},renderHTML:t=>t.size?{"data-size":String(t.size)}:{}},data:{default:null,parseHTML:t=>t.getAttribute("data-data")||null,renderHTML:t=>t.data?{"data-data":t.data}:{}}}},parseHTML(){return[{tag:'span[data-type="file"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"file"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.mimeType&&(n["data-mime-type"]=t.attrs.mimeType),t.attrs.size&&(n["data-size"]=String(t.attrs.size)),t.attrs.data&&(n["data-data"]=t.attrs.data),["span",{...e,...n}]},renderText({node:t}){return`[${t.attrs.name??""}]`},addNodeView(){return Iw(YZ)}});function XZ(t={}){return new Xe({view(e){return new ZZ(e,t)}})}class ZZ{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let i=s=>{this[a](s)};return e.dom.addEventListener(a,i),{name:a,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,a=this.editorView.dom,i=a.getBoundingClientRect(),s=i.width/a.offsetWidth,o=i.height/a.offsetHeight;if(n){let d=e.nodeBefore,p=e.nodeAfter;if(d||p){let f=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(f){let h=f.getBoundingClientRect(),g=d?h.bottom:h.top;d&&p&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let b=this.width/2*o;r={left:h.left,right:h.right,top:g-b,bottom:g+b}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*s;r={left:d.left-p,right:d.left+p,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=l.getBoundingClientRect(),p=d.width/l.offsetWidth,f=d.height/l.offsetHeight;u=d.left-l.scrollLeft*p,c=d.top-l.scrollTop*f}this.element.style.left=(r.left-u)/s+"px",this.element.style.top=(r.top-c)/o+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/o+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,i=typeof a=="function"?a(this.editorView,n,e):a;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let o=qN(this.editorView.state.doc,s,this.editorView.dragging.slice);o!=null&&(s=o)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class Je extends ke{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Je.valid(r)?new Je(r):ke.near(r)}content(){return ae.empty}eq(e){return e instanceof Je&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Je(e.resolve(n.pos))}getBookmark(){return new G0(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!QZ(e)||!JZ(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(e.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Je.valid(e))return e;let a=e.pos,i=null;for(let s=e.depth;;s--){let o=e.node(s);if(n>0?e.indexAfter(s)<o.childCount:e.index(s)>0){i=o.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;a+=n;let l=e.doc.resolve(a);if(Je.valid(l))return l}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!ue.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*n),r=!1;continue e}break}i=s,a+=n;let o=e.doc.resolve(a);if(Je.valid(o))return o}return null}}}Je.prototype.visible=!1;Je.findFrom=Je.findGapCursorFrom;ke.jsonID("gapcursor",Je);class G0{constructor(e){this.pos=e}map(e){return new G0(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Je.valid(n)?new Je(n):ke.near(n)}}function s2(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function QZ(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||s2(a.type))return!0;if(a.inlineContent)return!1}}return!0}function JZ(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||s2(a.type))return!0;if(a.inlineContent)return!1}}return!0}function eQ(){return new Xe({props:{decorations:aQ,createSelectionBetween(t,e,n){return e.pos==n.pos&&Je.valid(n)?new Je(n):null},handleClick:nQ,handleKeyDown:tQ,handleDOMEvents:{beforeinput:rQ}}})}const tQ=GC({ArrowLeft:Vs("horiz",-1),ArrowRight:Vs("horiz",1),ArrowUp:Vs("vert",-1),ArrowDown:Vs("vert",1)});function Vs(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,a,i){let s=r.selection,o=e>0?s.$to:s.$from,l=s.empty;if(s instanceof Ee){if(!i.endOfTextblock(n)||o.depth==0)return!1;l=!1,o=r.doc.resolve(e>0?o.after():o.before())}let u=Je.findGapCursorFrom(o,e,l);return u?(a&&a(r.tr.setSelection(new Je(u))),!0):!1}}function nQ(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Je.valid(r))return!1;let a=t.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&ue.isSelectable(t.state.doc.nodeAt(a.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Je(r))),!0)}function rQ(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Je))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let a=X.empty;for(let s=r.length-1;s>=0;s--)a=X.from(r[s].createAndFill(null,a));let i=t.state.tr.replace(n.pos,n.pos,new ae(a,0,0));return i.setSelection(Ee.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function aQ(t){if(!(t.selection instanceof Je))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Ke.create(t.doc,[Dt.widget(t.selection.head,e,{key:"gapcursor"})])}var Po=200,pt=function(){};pt.prototype.append=function(e){return e.length?(e=pt.from(e),!this.length&&e||e.length<Po&&this.leafAppend(e)||this.length<Po&&e.leafPrepend(this)||this.appendInner(e)):this};pt.prototype.prepend=function(e){return e.length?pt.from(e).append(this):this};pt.prototype.appendInner=function(e){return new iQ(this,e)};pt.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?pt.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};pt.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};pt.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};pt.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var a=[];return this.forEach(function(i,s){return a.push(e(i,s))},n,r),a};pt.from=function(e){return e instanceof pt?e:e&&e.length?new o2(e):pt.empty};var o2=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(a,i){return a==0&&i==this.length?this:new e(this.values.slice(a,i))},e.prototype.getInner=function(a){return this.values[a]},e.prototype.forEachInner=function(a,i,s,o){for(var l=i;l<s;l++)if(a(this.values[l],o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(a,i,s,o){for(var l=i-1;l>=s;l--)if(a(this.values[l],o+l)===!1)return!1},e.prototype.leafAppend=function(a){if(this.length+a.length<=Po)return new e(this.values.concat(a.flatten()))},e.prototype.leafPrepend=function(a){if(this.length+a.length<=Po)return new e(a.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(pt);pt.empty=new o2([]);var iQ=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,a,i,s){var o=this.left.length;if(a<o&&this.left.forEachInner(r,a,Math.min(i,o),s)===!1||i>o&&this.right.forEachInner(r,Math.max(a-o,0),Math.min(this.length,i)-o,s+o)===!1)return!1},e.prototype.forEachInvertedInner=function(r,a,i,s){var o=this.left.length;if(a>o&&this.right.forEachInvertedInner(r,a-o,Math.max(i,o)-o,s+o)===!1||i<o&&this.left.forEachInvertedInner(r,Math.min(a,o),i,s)===!1)return!1},e.prototype.sliceInner=function(r,a){if(r==0&&a==this.length)return this;var i=this.left.length;return a<=i?this.left.slice(r,a):r>=i?this.right.slice(r-i,a-i):this.left.slice(r,i).append(this.right.slice(0,a-i))},e.prototype.leafAppend=function(r){var a=this.right.leafAppend(r);if(a)return new e(this.left,a)},e.prototype.leafPrepend=function(r){var a=this.left.leafPrepend(r);if(a)return new e(a,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(pt);const sQ=500;class mn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let a,i;n&&(a=this.remapping(r,this.items.length),i=a.maps.length);let s=e.tr,o,l,u=[],c=[];return this.items.forEach((d,p)=>{if(!d.step){a||(a=this.remapping(r,p+1),i=a.maps.length),i--,c.push(d);return}if(a){c.push(new _n(d.map));let f=d.step.map(a.slice(i)),h;f&&s.maybeStep(f).doc&&(h=s.mapping.maps[s.mapping.maps.length-1],u.push(new _n(h,void 0,void 0,u.length+c.length))),i--,h&&a.appendMap(h,i)}else s.maybeStep(d.step);if(d.selection)return o=a?d.selection.map(a.slice(i)):d.selection,l=new mn(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:o}}addTransform(e,n,r,a){let i=[],s=this.eventCount,o=this.items,l=!a&&o.length?o.get(o.length-1):null;for(let c=0;c<e.steps.length;c++){let d=e.steps[c].invert(e.docs[c]),p=new _n(e.mapping.maps[c],d,n),f;(f=l&&l.merge(p))&&(p=f,c?i.pop():o=o.slice(0,o.length-1)),i.push(p),n&&(s++,n=void 0),a||(l=p)}let u=s-r.depth;return u>lQ&&(o=oQ(o,u),s-=u),new mn(o.append(i),s)}remapping(e,n){let r=new Yi;return this.items.forEach((a,i)=>{let s=a.mirrorOffset!=null&&i-a.mirrorOffset>=e?r.maps.length-a.mirrorOffset:void 0;r.appendMap(a.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new mn(this.items.append(e.map(n=>new _n(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],a=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(p=>{p.selection&&o--},a);let l=n;this.items.forEach(p=>{let f=i.getMirror(--l);if(f==null)return;s=Math.min(s,f);let h=i.maps[f];if(p.step){let g=e.steps[f].invert(e.docs[f]),b=p.selection&&p.selection.map(i.slice(l+1,f));b&&o++,r.push(new _n(h,g,b))}else r.push(new _n(h))},a);let u=[];for(let p=n;p<s;p++)u.push(new _n(i.maps[p]));let c=this.items.slice(0,a).append(u).append(r),d=new mn(c,o);return d.emptyItemCount()>sQ&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,a=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)a.push(s),s.selection&&i++;else if(s.step){let l=s.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=s.selection&&s.selection.map(n.slice(r));c&&i++;let d=new _n(u.invert(),l,c),p,f=a.length-1;(p=a.length&&a[f].merge(d))?a[f]=p:a.push(d)}}else s.map&&r--},this.items.length,0),new mn(pt.from(a.reverse()),i)}}mn.empty=new mn(pt.empty,0);function oQ(t,e){let n;return t.forEach((r,a)=>{if(r.selection&&e--==0)return n=a,!1}),t.slice(n)}class _n{constructor(e,n,r,a){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=a}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new _n(n.getMap().invert(),n,this.selection)}}}class pr{constructor(e,n,r,a,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=a,this.prevComposition=i}}const lQ=20;function uQ(t,e,n,r){let a=n.getMeta(Xr),i;if(a)return a.historyState;n.getMeta(pQ)&&(t=new pr(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Xr))return s.getMeta(Xr).redo?new pr(t.done.addTransform(n,void 0,r,oo(e)),t.undone,o_(n.mapping.maps),t.prevTime,t.prevComposition):new pr(t.done,t.undone.addTransform(n,void 0,r,oo(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let o=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=o&&(t.prevTime<(n.time||0)-r.newGroupDelay||!cQ(n,t.prevRanges)),u=s?Rm(t.prevRanges,n.mapping):o_(n.mapping.maps);return new pr(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,oo(e)),mn.empty,u,n.time,o??t.prevComposition)}else return(i=n.getMeta("rebased"))?new pr(t.done.rebased(n,i),t.undone.rebased(n,i),Rm(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new pr(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Rm(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function cQ(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,a)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&a>=e[i]&&(n=!0)}),n}function o_(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,a,i,s)=>e.push(i,s));return e}function Rm(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let a=e.map(t[r],1),i=e.map(t[r+1],-1);a<=i&&n.push(a,i)}return n}function dQ(t,e,n){let r=oo(e),a=Xr.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),o=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),a,r),l=new pr(n?o:i.remaining,n?i.remaining:o,null,0,-1);return i.transform.setSelection(s).setMeta(Xr,{redo:n,historyState:l})}let Om=!1,l_=null;function oo(t){let e=t.plugins;if(l_!=e){Om=!1,l_=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Om=!0;break}}return Om}const Xr=new ot("history"),pQ=new ot("closeHistory");function fQ(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Xe({key:Xr,state:{init(){return new pr(mn.empty,mn.empty,null,0,-1)},apply(e,n,r){return uQ(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,a=r=="historyUndo"?u2:r=="historyRedo"?c2:null;return!a||!e.editable?!1:(n.preventDefault(),a(e.state,e.dispatch))}}}})}function l2(t,e){return(n,r)=>{let a=Xr.getState(n);if(!a||(t?a.undone:a.done).eventCount==0)return!1;if(r){let i=dQ(a,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const u2=l2(!1,!0),c2=l2(!0,!0);nt.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new Xe({key:new ot("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const a=this.options.limit;if(a==null||a===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>a){const s=i-a,o=0,l=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(o,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||a>r&&i>r&&i<=a)return!0;if(a>r&&i>r&&i>a||!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,l=i-r,u=o-l,c=o;return e.deleteRange(u,c),!(this.storage.characters({node:e.doc})>r)}})]}});var hQ=nt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[XZ(this.options)]}});nt.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Xe({key:new ot("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=e,i=[];if(!n||!r)return Ke.create(t,[]);let s=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(a>=u&&a<=u+l.nodeSize-1))return!1;s+=1});let o=0;return t.descendants((l,u)=>{if(l.isText||!(a>=u&&a<=u+l.nodeSize-1))return!1;if(o+=1,this.options.mode==="deepest"&&s-o>0||this.options.mode==="shallowest"&&o>1)return this.options.mode==="deepest";i.push(Dt.node(u,u+l.nodeSize,{class:this.options.className}))}),Ke.create(t,i)}}})]}});var mQ=nt.create({name:"gapCursor",addProseMirrorPlugins(){return[eQ()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Fe(le(t,"allowGapCursor",n)))!=null?e:null}}}),u_="placeholder";function gQ(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var Jse=nt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:u_,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${gQ(this.options.dataAttribute)}`:`data-${u_}`;return[new Xe({key:new ot("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:a}=n,i=[];if(!r)return null;const s=this.editor.isEmpty;return e.descendants((o,l)=>{const u=a>=l&&a<=l+o.nodeSize,c=!o.isLeaf&&Rl(o);if((u||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const p=Dt.node(l,l+o.nodeSize,{class:d.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),Ke.create(e,i)}}})]}});nt.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new Xe({key:new ot("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||ow(n.selection)||t.view.dragging?null:Ke.create(n.doc,[Dt.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function c_({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var bQ=nt.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new ot(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,a])=>a).filter(a=>(this.options.notAfter||[]).concat(n).includes(a.name));return[new Xe({key:e,appendTransaction:(a,i,s)=>{const{doc:o,tr:l,schema:u}=s,c=e.getState(s),d=o.content.size,p=u.nodes[n];if(c)return l.insert(d,p.create())},state:{init:(a,i)=>{const s=i.tr.doc.lastChild;return!c_({node:s,types:r})},apply:(a,i)=>{if(!a.docChanged||a.getMeta("__uniqueIDTransaction"))return i;const s=a.doc.lastChild;return!c_({node:s,types:r})}}})]}}),EQ=nt.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>u2(t,e),redo:()=>({state:t,dispatch:e})=>c2(t,e)}},addProseMirrorPlugins(){return[fQ(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Fo=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},yQ=/^\s*>\s$/,TQ=Bt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Fo("blockquote",{...tt(this.options.HTMLAttributes,t),children:Fo("slot",{})})},parseMarkdown:(t,e)=>{var n;const r=(n=e.parseBlockChildren)!=null?n:e.parseChildren;return e.createNode("blockquote",void 0,r(t.tokens||[]))},renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",r=[];return t.content.forEach((a,i)=>{var s,o;const c=((o=(s=e.renderChild)==null?void 0:s.call(e,a,i))!=null?o:e.renderChildren([a])).split(`
|
|
196
|
+
`).map(d=>d.trim()===""?n:`${n} ${d}`);r.push(c.join(`
|
|
197
|
+
`))}),r.join(`
|
|
198
|
+
${n}
|
|
199
|
+
`)},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[za({find:yQ,type:this.type})]}}),SQ=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,xQ=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,kQ=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,vQ=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,AQ=da.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Fo("strong",{...tt(this.options.HTMLAttributes,t),children:Fo("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$a({find:SQ,type:this.type}),$a({find:kQ,type:this.type})]},addPasteRules(){return[aa({find:xQ,type:this.type}),aa({find:vQ,type:this.type})]}}),_Q=/(^|[^`])`([^`]+)`(?!`)$/,NQ=/(^|[^`])`([^`]+)`(?!`)/g,CQ=da.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",tt(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?`\`${e.renderChildren(t.content)}\``:"",addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[$a({find:_Q,type:this.type})]},addPasteRules(){return[aa({find:NQ,type:this.type})]}}),Lm=4,wQ=/^```([a-z]+)?[\s\n]$/,IQ=/^~~~([a-z]+)?[\s\n]$/,RQ=Bt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Lm,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;if(!n)return null;const i=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",tt(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n,r;return((n=t.raw)==null?void 0:n.startsWith("```"))===!1&&((r=t.raw)==null?void 0:r.startsWith("~~~"))===!1&&t.codeBlockStyle!=="indented"?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let r="";const a=((n=t.attrs)==null?void 0:n.language)||"";return t.content?r=[`\`\`\`${a}`,e.renderChildren(t.content),"```"].join(`
|
|
200
|
+
`):r=`\`\`\`${a}
|
|
201
|
+
|
|
202
|
+
\`\`\``,r},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!=null?e:Lm,{state:r}=t,{selection:a}=r,{$from:i,empty:s}=a;if(i.parent.type!==this.type)return!1;const o=" ".repeat(n);return s?t.commands.insertContent(o):t.commands.command(({tr:l})=>{const{from:u,to:c}=a,f=r.doc.textBetween(u,c,`
|
|
203
|
+
`,`
|
|
204
|
+
`).split(`
|
|
205
|
+
`).map(h=>o+h).join(`
|
|
206
|
+
`);return l.replaceWith(u,c,r.schema.text(f)),!0})},"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!=null?e:Lm,{state:r}=t,{selection:a}=r,{$from:i,empty:s}=a;return i.parent.type!==this.type?!1:s?t.commands.command(({tr:o})=>{var l;const{pos:u}=i,c=i.start(),d=i.end(),f=r.doc.textBetween(c,d,`
|
|
207
|
+
`,`
|
|
208
|
+
`).split(`
|
|
209
|
+
`);let h=0,g=0;const b=u-c;for(let S=0;S<f.length;S+=1){if(g+f[S].length>=b){h=S;break}g+=f[S].length+1}const T=((l=f[h].match(/^ */))==null?void 0:l[0])||"",x=Math.min(T.length,n);if(x===0)return!0;let k=c;for(let S=0;S<h;S+=1)k+=f[S].length+1;return o.delete(k,k+x),u-k<=x&&o.setSelection(Ee.create(o.doc,k)),!0}):t.commands.command(({tr:o})=>{const{from:l,to:u}=a,p=r.doc.textBetween(l,u,`
|
|
210
|
+
`,`
|
|
211
|
+
`).split(`
|
|
212
|
+
`).map(f=>{var h;const g=((h=f.match(/^ */))==null?void 0:h[0])||"",b=Math.min(g.length,n);return f.slice(b)}).join(`
|
|
213
|
+
`);return o.replaceWith(l,u,r.schema.text(p)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:a}=n;if(!a||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
|
|
214
|
+
|
|
215
|
+
`);return!i||!s?!1:t.chain().command(({tr:o})=>(o.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:a,empty:i}=n;if(!i||a.parent.type!==this.type||!(a.parentOffset===a.parent.nodeSize-2))return!1;const o=a.after();return o===void 0?!1:r.nodeAt(o)?t.commands.command(({tr:u})=>(u.setSelection(ke.near(r.resolve(o))),!0)):t.commands.exitCode()}}},addInputRules(){return[Tg({find:wQ,type:this.type,getAttributes:t=>({language:t[1]})}),Tg({find:IQ,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Xe({key:new ot("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),a=r?JSON.parse(r):void 0,i=a?.mode;if(!n||!i)return!1;const{tr:s,schema:o}=t.state,l=o.text(n.replace(/\r\n?/g,`
|
|
216
|
+
`));return s.replaceSelectionWith(this.type.create({language:i},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(Ee.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),OQ=Bt.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
217
|
+
|
|
218
|
+
`):""}),LQ=Bt.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",tt(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
219
|
+
`},renderMarkdown:()=>`
|
|
220
|
+
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:a,storedMarks:i}=n;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:o}=r.extensionManager,l=i||a.$to.parentOffset&&a.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(p=>o.includes(p.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),DQ=Bt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,tt(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;const r=(n=t.attrs)!=null&&n.level?parseInt(t.attrs.level,10):1,a="#".repeat(r);return t.content?`${a} ${e.renderChildren(t.content)}`:""},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Tg({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}}),MQ=Bt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",tt(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!bF(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$to:r}=n,a=t();return ow(n)?a.insertContentAt(r.pos,{type:this.name}):a.insertContent({type:this.name}),a.command(({state:i,tr:s,dispatch:o})=>{if(o){const{$to:l}=s.selection,u=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?s.setSelection(Ee.create(s.doc,l.pos+1)):l.nodeAfter.isBlock?s.setSelection(ue.create(s.doc,l.pos)):s.setSelection(Ee.create(s.doc,l.pos));else{const c=i.schema.nodes[this.options.nextNodeType]||l.parent.type.contentMatch.defaultType,d=c?.create();d&&(s.insert(u,d),s.setSelection(Ee.create(s.doc,u+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[mF({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),PQ=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,FQ=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,BQ=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,UQ=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,jQ=da.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",tt(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$a({find:PQ,type:this.type}),$a({find:BQ,type:this.type})]},addPasteRules(){return[aa({find:FQ,type:this.type}),aa({find:UQ,type:this.type})]}});const HQ="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",$Q="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Gg="numeric",Wg="ascii",Vg="alpha",ji="asciinumeric",vi="alphanumeric",Yg="domain",d2="emoji",zQ="scheme",qQ="slashscheme",Dm="whitespace";function GQ(t,e){return t in e||(e[t]=[]),e[t]}function qr(t,e,n){e[Gg]&&(e[ji]=!0,e[vi]=!0),e[Wg]&&(e[ji]=!0,e[Vg]=!0),e[ji]&&(e[vi]=!0),e[Vg]&&(e[vi]=!0),e[vi]&&(e[Yg]=!0),e[d2]&&(e[Yg]=!0);for(const r in e){const a=GQ(r,n);a.indexOf(t)<0&&a.push(t)}}function WQ(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function $t(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}$t.groups={};$t.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const a=e.jr[r][0],i=e.jr[r][1];if(i&&a.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let a=0;a<t.length;a++)this.tt(t[a],e,n,r)},tr(t,e,n,r){r=r||$t.groups;let a;return e&&e.j?a=e:(a=new $t(e),n&&r&&qr(e,n,r)),this.jr.push([t,a]),a},ts(t,e,n,r){let a=this;const i=t.length;if(!i)return a;for(let s=0;s<i-1;s++)a=a.tt(t[s]);return a.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||$t.groups;const a=this;if(e&&e.j)return a.j[t]=e,e;const i=e;let s,o=a.go(t);if(o?(s=new $t,Object.assign(s.j,o.j),s.jr.push.apply(s.jr,o.jr),s.jd=o.jd,s.t=o.t):s=new $t,i){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(WQ(s.t,r),n);qr(i,l,r)}else n&&qr(i,n,r);s.t=i}return a.j[t]=s,s}};const xe=(t,e,n,r,a)=>t.ta(e,n,r,a),Qe=(t,e,n,r,a)=>t.tr(e,n,r,a),d_=(t,e,n,r,a)=>t.ts(e,n,r,a),J=(t,e,n,r,a)=>t.tt(e,n,r,a),Wn="WORD",Kg="UWORD",p2="ASCIINUMERICAL",f2="ALPHANUMERICAL",ss="LOCALHOST",Xg="TLD",Zg="UTLD",lo="SCHEME",Na="SLASH_SCHEME",W0="NUM",Qg="WS",V0="NL",Hi="OPENBRACE",$i="CLOSEBRACE",Bo="OPENBRACKET",Uo="CLOSEBRACKET",jo="OPENPAREN",Ho="CLOSEPAREN",$o="OPENANGLEBRACKET",zo="CLOSEANGLEBRACKET",qo="FULLWIDTHLEFTPAREN",Go="FULLWIDTHRIGHTPAREN",Wo="LEFTCORNERBRACKET",Vo="RIGHTCORNERBRACKET",Yo="LEFTWHITECORNERBRACKET",Ko="RIGHTWHITECORNERBRACKET",Xo="FULLWIDTHLESSTHAN",Zo="FULLWIDTHGREATERTHAN",Qo="AMPERSAND",Jo="APOSTROPHE",el="ASTERISK",fr="AT",tl="BACKSLASH",nl="BACKTICK",rl="CARET",mr="COLON",Y0="COMMA",al="DOLLAR",Nn="DOT",il="EQUALS",K0="EXCLAMATION",rn="HYPHEN",zi="PERCENT",sl="PIPE",ol="PLUS",ll="POUND",qi="QUERY",X0="QUOTE",h2="FULLWIDTHMIDDLEDOT",Z0="SEMI",Cn="SLASH",Gi="TILDE",ul="UNDERSCORE",m2="EMOJI",cl="SYM";var g2=Object.freeze({__proto__:null,ALPHANUMERICAL:f2,AMPERSAND:Qo,APOSTROPHE:Jo,ASCIINUMERICAL:p2,ASTERISK:el,AT:fr,BACKSLASH:tl,BACKTICK:nl,CARET:rl,CLOSEANGLEBRACKET:zo,CLOSEBRACE:$i,CLOSEBRACKET:Uo,CLOSEPAREN:Ho,COLON:mr,COMMA:Y0,DOLLAR:al,DOT:Nn,EMOJI:m2,EQUALS:il,EXCLAMATION:K0,FULLWIDTHGREATERTHAN:Zo,FULLWIDTHLEFTPAREN:qo,FULLWIDTHLESSTHAN:Xo,FULLWIDTHMIDDLEDOT:h2,FULLWIDTHRIGHTPAREN:Go,HYPHEN:rn,LEFTCORNERBRACKET:Wo,LEFTWHITECORNERBRACKET:Yo,LOCALHOST:ss,NL:V0,NUM:W0,OPENANGLEBRACKET:$o,OPENBRACE:Hi,OPENBRACKET:Bo,OPENPAREN:jo,PERCENT:zi,PIPE:sl,PLUS:ol,POUND:ll,QUERY:qi,QUOTE:X0,RIGHTCORNERBRACKET:Vo,RIGHTWHITECORNERBRACKET:Ko,SCHEME:lo,SEMI:Z0,SLASH:Cn,SLASH_SCHEME:Na,SYM:cl,TILDE:Gi,TLD:Xg,UNDERSCORE:ul,UTLD:Zg,UWORD:Kg,WORD:Wn,WS:Qg});const $n=/[a-z]/,mi=new RegExp("\\p{L}","u"),Mm=new RegExp("\\p{Emoji}","u"),zn=/\d/,Pm=/\s/,p_="\r",Fm=`
|
|
221
|
+
`,VQ="️",YQ="",Bm="";let Ys=null,Ks=null;function KQ(t=[]){const e={};$t.groups=e;const n=new $t;Ys==null&&(Ys=f_(HQ)),Ks==null&&(Ks=f_($Q)),J(n,"'",Jo),J(n,"{",Hi),J(n,"}",$i),J(n,"[",Bo),J(n,"]",Uo),J(n,"(",jo),J(n,")",Ho),J(n,"<",$o),J(n,">",zo),J(n,"(",qo),J(n,")",Go),J(n,"「",Wo),J(n,"」",Vo),J(n,"『",Yo),J(n,"』",Ko),J(n,"<",Xo),J(n,">",Zo),J(n,"&",Qo),J(n,"*",el),J(n,"@",fr),J(n,"`",nl),J(n,"^",rl),J(n,":",mr),J(n,",",Y0),J(n,"$",al),J(n,".",Nn),J(n,"=",il),J(n,"!",K0),J(n,"-",rn),J(n,"%",zi),J(n,"|",sl),J(n,"+",ol),J(n,"#",ll),J(n,"?",qi),J(n,'"',X0),J(n,"/",Cn),J(n,";",Z0),J(n,"~",Gi),J(n,"_",ul),J(n,"\\",tl),J(n,"・",h2);const r=Qe(n,zn,W0,{[Gg]:!0});Qe(r,zn,r);const a=Qe(r,$n,p2,{[ji]:!0}),i=Qe(r,mi,f2,{[vi]:!0}),s=Qe(n,$n,Wn,{[Wg]:!0});Qe(s,zn,a),Qe(s,$n,s),Qe(a,zn,a),Qe(a,$n,a);const o=Qe(n,mi,Kg,{[Vg]:!0});Qe(o,$n),Qe(o,zn,i),Qe(o,mi,o),Qe(i,zn,i),Qe(i,$n),Qe(i,mi,i);const l=J(n,Fm,V0,{[Dm]:!0}),u=J(n,p_,Qg,{[Dm]:!0}),c=Qe(n,Pm,Qg,{[Dm]:!0});J(n,Bm,c),J(u,Fm,l),J(u,Bm,c),Qe(u,Pm,c),J(c,p_),J(c,Fm),Qe(c,Pm,c),J(c,Bm,c);const d=Qe(n,Mm,m2,{[d2]:!0});J(d,"#"),Qe(d,Mm,d),J(d,VQ,d);const p=J(d,YQ);J(p,"#"),Qe(p,Mm,d);const f=[[$n,s],[zn,a]],h=[[$n,null],[mi,o],[zn,i]];for(let g=0;g<Ys.length;g++)sr(n,Ys[g],Xg,Wn,f);for(let g=0;g<Ks.length;g++)sr(n,Ks[g],Zg,Kg,h);qr(Xg,{tld:!0,ascii:!0},e),qr(Zg,{utld:!0,alpha:!0},e),sr(n,"file",lo,Wn,f),sr(n,"mailto",lo,Wn,f),sr(n,"http",Na,Wn,f),sr(n,"https",Na,Wn,f),sr(n,"ftp",Na,Wn,f),sr(n,"ftps",Na,Wn,f),qr(lo,{scheme:!0,ascii:!0},e),qr(Na,{slashscheme:!0,ascii:!0},e),t=t.sort((g,b)=>g[0]>b[0]?1:-1);for(let g=0;g<t.length;g++){const b=t[g][0],T=t[g][1]?{[zQ]:!0}:{[qQ]:!0};b.indexOf("-")>=0?T[Yg]=!0:$n.test(b)?zn.test(b)?T[ji]=!0:T[Wg]=!0:T[Gg]=!0,d_(n,b,b,T)}return d_(n,"localhost",ss,{ascii:!0}),n.jd=new $t(cl),{start:n,tokens:Object.assign({groups:e},g2)}}function b2(t,e){const n=XQ(e.replace(/[A-Z]/g,o=>o.toLowerCase())),r=n.length,a=[];let i=0,s=0;for(;s<r;){let o=t,l=null,u=0,c=null,d=-1,p=-1;for(;s<r&&(l=o.go(n[s]));)o=l,o.accepts()?(d=0,p=0,c=o):d>=0&&(d+=n[s].length,p++),u+=n[s].length,i+=n[s].length,s++;i-=d,s-=p,u-=d,a.push({t:c.t,v:e.slice(i-u,i),s:i-u,e:i})}return a}function XQ(t){const e=[],n=t.length;let r=0;for(;r<n;){let a=t.charCodeAt(r),i,s=a<55296||a>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function sr(t,e,n,r,a){let i;const s=e.length;for(let o=0;o<s-1;o++){const l=e[o];t.j[l]?i=t.j[l]:(i=new $t(r),i.jr=a.slice(),t.j[l]=i),t=i}return i=new $t(n),i.jr=a.slice(),t.j[e[s-1]]=i,i}function f_(t){const e=[],n=[];let r=0,a="0123456789";for(;r<t.length;){let i=0;for(;a.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const ls={defaultProtocol:"http",events:null,format:h_,formatHref:h_,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Q0(t,e=null){let n=Object.assign({},ls);t&&(n=Object.assign(n,t instanceof Q0?t.o:t));const r=n.ignoreTags,a=[];for(let i=0;i<r.length;i++)a.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=a}Q0.prototype={o:ls,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let a=this.o[t];return a&&(typeof a=="object"?(a=n.t in a?a[n.t]:ls[t],typeof a=="function"&&r&&(a=a(e,n))):typeof a=="function"&&r&&(a=a(e,n.t,n)),a)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function h_(t){return t}function E2(t,e){this.t="token",this.v=t,this.tk=e}E2.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=ls.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),a=t.get("tagName",n,e),i=this.toFormattedString(t),s={},o=t.get("className",n,e),l=t.get("target",n,e),u=t.get("rel",n,e),c=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=r,o&&(s.class=o),l&&(s.target=l),u&&(s.rel=u),c&&Object.assign(s,c),{tagName:a,attributes:s,content:i,eventListeners:d}}};function eu(t,e){class n extends E2{constructor(a,i){super(a,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const m_=eu("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),g_=eu("text"),ZQ=eu("nl"),Xs=eu("url",{isLink:!0,toHref(t=ls.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ss&&t[1].t===mr}}),nn=t=>new $t(t);function QQ({groups:t}){const e=t.domain.concat([Qo,el,fr,tl,nl,rl,al,il,rn,W0,zi,sl,ol,ll,Cn,cl,Gi,ul]),n=[Jo,mr,Y0,Nn,K0,zi,qi,X0,Z0,$o,zo,Hi,$i,Uo,Bo,jo,Ho,qo,Go,Wo,Vo,Yo,Ko,Xo,Zo],r=[Qo,Jo,el,tl,nl,rl,al,il,rn,Hi,$i,zi,sl,ol,ll,qi,Cn,cl,Gi,ul],a=nn(),i=J(a,Gi);xe(i,r,i),xe(i,t.domain,i);const s=nn(),o=nn(),l=nn();xe(a,t.domain,s),xe(a,t.scheme,o),xe(a,t.slashscheme,l),xe(s,r,i),xe(s,t.domain,s);const u=J(s,fr);J(i,fr,u),J(o,fr,u),J(l,fr,u);const c=J(i,Nn);xe(c,r,i),xe(c,t.domain,i);const d=nn();xe(u,t.domain,d),xe(d,t.domain,d);const p=J(d,Nn);xe(p,t.domain,d);const f=nn(m_);xe(p,t.tld,f),xe(p,t.utld,f),J(u,ss,f);const h=J(d,rn);J(h,rn,h),xe(h,t.domain,d),xe(f,t.domain,d),J(f,Nn,p),J(f,rn,h);const g=J(f,mr);xe(g,t.numeric,m_);const b=J(s,rn),y=J(s,Nn);J(b,rn,b),xe(b,t.domain,s),xe(y,r,i),xe(y,t.domain,s);const T=nn(Xs);xe(y,t.tld,T),xe(y,t.utld,T),xe(T,t.domain,s),xe(T,r,i),J(T,Nn,y),J(T,rn,b),J(T,fr,u);const x=J(T,mr),k=nn(Xs);xe(x,t.numeric,k);const A=nn(Xs),S=nn();xe(A,e,A),xe(A,n,S),xe(S,e,A),xe(S,n,S),J(T,Cn,A),J(k,Cn,A);const v=J(o,mr),N=J(l,mr),_=J(N,Cn),C=J(_,Cn);xe(o,t.domain,s),J(o,Nn,y),J(o,rn,b),xe(l,t.domain,s),J(l,Nn,y),J(l,rn,b),xe(v,t.domain,A),J(v,Cn,A),J(v,qi,A),xe(C,t.domain,A),xe(C,e,A),J(C,Cn,A);const L=[[Hi,$i],[Bo,Uo],[jo,Ho],[$o,zo],[qo,Go],[Wo,Vo],[Yo,Ko],[Xo,Zo]];for(let P=0;P<L.length;P++){const[$,F]=L[P],M=J(A,$);J(S,$,M),J(M,F,A);const H=nn(Xs);xe(M,e,H);const j=nn();xe(M,n),xe(H,e,H),xe(H,n,j),xe(j,e,H),xe(j,n,j),J(H,F,A),J(j,F,A)}return J(a,ss,T),J(a,V0,ZQ),{start:a,tokens:g2}}function JQ(t,e,n){let r=n.length,a=0,i=[],s=[];for(;a<r;){let o=t,l=null,u=null,c=0,d=null,p=-1;for(;a<r&&!(l=o.go(n[a].t));)s.push(n[a++]);for(;a<r&&(u=l||o.go(n[a].t));)l=null,o=u,o.accepts()?(p=0,d=o):p>=0&&p++,a++,c++;if(p<0)a-=c,a<r&&(s.push(n[a]),a++);else{s.length>0&&(i.push(Um(g_,e,s)),s=[]),a-=p,c-=p;const f=d.t,h=n.slice(a-c,a);i.push(Um(f,e,h))}}return s.length>0&&i.push(Um(g_,e,s)),i}function Um(t,e,n){const r=n[0].s,a=n[n.length-1].e,i=e.slice(r,a);return new t(i,n)}const eJ=typeof console<"u"&&console&&console.warn||(()=>{}),tJ="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",We={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function nJ(){return $t.groups={},We.scanner=null,We.parser=null,We.tokenQueue=[],We.pluginQueue=[],We.customSchemes=[],We.initialized=!1,We}function b_(t,e=!1){if(We.initialized&&eJ(`linkifyjs: already initialized - will not register custom scheme "${t}" ${tJ}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
|
|
222
|
+
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
223
|
+
2. Cannot start or end with "-"
|
|
224
|
+
3. "-" cannot repeat`);We.customSchemes.push([t,e])}function rJ(){We.scanner=KQ(We.customSchemes);for(let t=0;t<We.tokenQueue.length;t++)We.tokenQueue[t][1]({scanner:We.scanner});We.parser=QQ(We.scanner.tokens);for(let t=0;t<We.pluginQueue.length;t++)We.pluginQueue[t][1]({scanner:We.scanner,parser:We.parser});return We.initialized=!0,We}function J0(t){return We.initialized||rJ(),JQ(We.parser.start,t,b2(We.scanner.start,t))}J0.scan=b2;function y2(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new Q0(n),a=J0(t),i=[];for(let s=0;s<a.length;s++){const o=a[s];o.isLink&&(!e||o.t===e)&&r.check(o)&&i.push(o.toFormattedObject(r))}return i}var eE="[\0- -\u2029 ]",aJ=new RegExp(eE),iJ=new RegExp(`${eE}$`),sJ=new RegExp(eE,"g");function oJ(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function lJ(t){return new Xe({key:new ot("autolink"),appendTransaction:(e,n,r)=>{const a=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!a||i)return;const{tr:s}=r,o=JC(n.doc,[...e]);if(sw(o).forEach(({newRange:u})=>{const c=m4(r.doc,u,f=>f.isTextblock);let d,p;if(c.length>1)d=c[0],p=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(c.length){const f=r.doc.textBetween(u.from,u.to," "," ");if(!iJ.test(f))return;d=c[0],p=r.doc.textBetween(d.pos,u.to,void 0," ")}if(d&&p){const f=p.split(aJ).filter(Boolean);if(f.length<=0)return!1;const h=f[f.length-1],g=d.pos+p.lastIndexOf(h);if(!h)return!1;const b=J0(h).map(y=>y.toObject(t.defaultProtocol));if(!oJ(b))return!1;b.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{Xb(y.from,y.to,r.doc).some(T=>T.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function uJ(t){return new Xe({key:new ot("handleClickLink"),props:{handleClick:(e,n,r)=>{var a,i;if(r.button!==0||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{const l=r.target;if(!l)return!1;const u=t.editor.view.dom;s=l.closest("a"),s&&!u.contains(s)&&(s=null)}if(!s)return!1;let o=!1;if(t.enableClickSelection&&(o=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){const l=iw(e.state,t.type.name),u=(a=s.href)!=null?a:l.href,c=(i=s.target)!=null?i:l.target;u&&(window.open(u,c),o=!0)}return o}}})}function cJ(t){return new Xe({key:new ot("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{shouldAutoLink:a}=t,{state:i}=e,{selection:s}=i,{empty:o}=s;if(o)return!1;let l="";r.content.forEach(c=>{l+=c.textContent});const u=y2(l,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===l);return!l||!u||a!==void 0&&!a(u.value)?!1:t.editor.commands.setMark(t.type,{href:u.href})}}})}function Pr(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const a=typeof r=="string"?r:r.scheme;a&&n.push(a)}),!t||t.replace(sJ,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var T2=da.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){b_(t);return}b_(t.scheme,t.optionalSlashes)})},onDestroy(){nJ()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Pr(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const a=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(a)||!/\./.test(a))}}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Pr(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Pr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",tt(this.options.HTMLAttributes,t),0]:["a",tt(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,r,a,i;const s=(r=(n=t.attrs)==null?void 0:n.href)!=null?r:"",o=(i=(a=t.attrs)==null?void 0:a.title)!=null?i:"",l=e.renderChildren(t);return o?`[${l}](${s} "${o}")`:`[${l}](${s})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Pr(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!Pr(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[aa({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,a=y2(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Pr(s,n),protocols:n,defaultProtocol:r}));a.length&&a.forEach(i=>{this.options.shouldAutoLink(i.value)&&e.push({text:i.value,data:{href:i.href},index:i.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(lJ({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:a=>!!Pr(a,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),t.push(uJ({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(cJ({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),eoe=T2,dJ=Object.defineProperty,pJ=(t,e)=>{for(var n in e)dJ(t,n,{get:e[n],enumerable:!0})},fJ="listItem",E_="textStyle",y_=/^\s*([-+*])\s$/,S2=Bt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",tt(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
225
|
+
`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(fJ,this.editor.getAttributes(E_)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=za({find:y_,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=za({find:y_,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(E_),editor:this.editor})),[t]}}),x2=Bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",tt(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{var n;if(t.type!=="list_item")return[];const r=(n=e.parseBlockChildren)!=null?n:e.parseChildren;let a=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(s=>s.type==="paragraph"))a=r(t.tokens);else{const s=t.tokens[0];if(s&&s.type==="text"&&s.tokens&&s.tokens.length>0){if(a=[{type:"paragraph",content:e.parseInline(s.tokens)}],t.tokens.length>1){const l=t.tokens.slice(1),u=r(l);a.push(...u)}}else a=r(t.tokens)}return a.length===0&&(a=[{type:"paragraph",content:[]}]),{type:"listItem",content:a}},renderMarkdown:(t,e,n)=>e0(t,e,r=>{var a,i;return r.parentType==="bulletList"?"- ":r.parentType==="orderedList"?`${(((i=(a=r.meta)==null?void 0:a.parentAttrs)==null?void 0:i.start)||1)+r.index}. `:"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),hJ={};pJ(hJ,{findListItemPos:()=>As,getNextListDepth:()=>tE,handleBackspace:()=>Jg,handleDelete:()=>eb,hasListBefore:()=>k2,hasListItemAfter:()=>mJ,hasListItemBefore:()=>v2,listItemHasSubList:()=>A2,nextListIsDeeper:()=>_2,nextListIsHigher:()=>N2});var As=(t,e)=>{const{$from:n}=e.selection,r=st(t,e.schema);let a=null,i=n.depth,s=n.pos,o=null;for(;i>0&&o===null;)a=n.node(i),a.type===r?o=i:(i-=1,s-=1);return o===null?null:{$pos:e.doc.resolve(s),depth:o}},tE=(t,e)=>{const n=As(t,e);if(!n)return!1;const[,r]=_4(e,t,n.$pos.pos+4);return r},k2=(t,e,n)=>{const{$anchor:r}=t.selection,a=Math.max(0,r.pos-2),i=t.doc.resolve(a).node();return!(!i||!n.includes(i.type.name))},v2=(t,e)=>{var n;const{$anchor:r}=e.selection,a=e.doc.resolve(r.pos-2);return!(a.index()===0||((n=a.nodeBefore)==null?void 0:n.type.name)!==t)},A2=(t,e,n)=>{if(!n)return!1;const r=st(t,e.schema);let a=!1;return n.descendants(i=>{i.type===r&&(a=!0)}),a},Jg=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!Nr(t.state,e)&&k2(t.state,e,n)){const{$anchor:o}=t.state.selection,l=t.state.doc.resolve(o.before()-1),u=[];l.node().descendants((p,f)=>{p.type.name===e&&u.push({node:p,pos:f})});const c=u.at(-1);if(!c)return!1;const d=t.state.doc.resolve(l.start()+c.pos+1);return t.chain().cut({from:o.start()-1,to:o.end()+1},d.end()).joinForward().run()}if(!Nr(t.state,e)||!I4(t.state))return!1;const r=As(e,t.state);if(!r)return!1;const i=t.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=A2(e,t.state,i);return v2(e,t.state)&&!s?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},_2=(t,e)=>{const n=tE(t,e),r=As(t,e);return!r||!n?!1:n>r.depth},N2=(t,e)=>{const n=tE(t,e),r=As(t,e);return!r||!n?!1:n<r.depth},eb=(t,e)=>{if(!Nr(t.state,e)||!w4(t.state,e))return!1;const{selection:n}=t.state,{$from:r,$to:a}=n;return!n.empty&&r.sameParent(a)?!1:_2(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():N2(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},mJ=(t,e)=>{var n;const{$anchor:r}=e.selection,a=e.doc.resolve(r.pos-r.parentOffset-2);return!(a.index()===a.parent.childCount-1||((n=a.nodeAfter)==null?void 0:n.type.name)!==t)},C2=nt.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&eb(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&eb(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&Jg(t,n,r)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&Jg(t,n,r)&&(e=!0)}),e}}}}),T_=/^(\s*)(\d+)\.\s+(.*)$/,gJ=/^\s/;function bJ(t){const e=[];let n=0,r=0;for(;n<t.length;){const a=t[n],i=a.match(T_);if(!i)break;const[,s,o,l]=i,u=s.length;let c=l,d=n+1;const p=[a];for(;d<t.length;){const f=t[d];if(f.match(T_))break;if(f.trim()==="")p.push(f),c+=`
|
|
226
|
+
`,d+=1;else if(f.match(gJ))p.push(f),c+=`
|
|
227
|
+
${f.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(o,10),content:c.trim(),raw:p.join(`
|
|
228
|
+
`)}),r=d,n=d}return[e,r]}function w2(t,e,n){var r;const a=[];let i=0;for(;i<t.length;){const s=t[i];if(s.indent===e){const o=s.content.split(`
|
|
229
|
+
`),l=((r=o[0])==null?void 0:r.trim())||"",u=[];l&&u.push({type:"paragraph",raw:l,tokens:n.inlineTokens(l)});const c=o.slice(1).join(`
|
|
230
|
+
`).trim();if(c){const f=n.blockTokens(c);u.push(...f)}let d=i+1;const p=[];for(;d<t.length&&t[d].indent>e;)p.push(t[d]),d+=1;if(p.length>0){const f=Math.min(...p.map(g=>g.indent)),h=w2(p,f,n);u.push({type:"list",ordered:!0,start:p[0].number,items:h,raw:p.map(g=>g.raw).join(`
|
|
231
|
+
`)})}a.push({type:"list_item",raw:s.raw,tokens:u}),i=d}else i+=1}return a}function EJ(t,e){return t.map(n=>{if(n.type!=="list_item")return e.parseChildren([n])[0];const r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(a=>{if(a.type==="paragraph"||a.type==="list"||a.type==="blockquote"||a.type==="code")r.push(...e.parseChildren([a]));else if(a.type==="text"&&a.tokens){const i=e.parseChildren([a]);r.push({type:"paragraph",content:i})}else{const i=e.parseChildren([a]);i.length>0&&r.push(...i)}}),{type:"listItem",content:r}})}var yJ="listItem",S_="textStyle",x_=/^(\d+)\.\s$/,I2=Bt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",tt(this.options.HTMLAttributes,n),0]:["ol",tt(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if(t.type!=="list"||!t.ordered)return[];const n=t.start||1,r=t.items?EJ(t.items,e):[];return n!==1?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
232
|
+
`):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{const e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var r;const a=t.split(`
|
|
233
|
+
`),[i,s]=bJ(a);if(i.length===0)return;const o=w2(i,0,n);return o.length===0?void 0:{type:"list",ordered:!0,start:((r=i[0])==null?void 0:r.number)||1,items:o,raw:a.slice(0,s).join(`
|
|
234
|
+
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(yJ,this.editor.getAttributes(S_)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=za({find:x_,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=za({find:x_,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(S_)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),TJ=/^\s*(\[([( |x])?\])\s$/,SJ=Bt.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",tt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const a=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return e0(t,e,a)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const a=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),o=document.createElement("input"),l=document.createElement("div"),u=d=>{var p,f;o.ariaLabel=((f=(p=this.options.a11y)==null?void 0:p.checkboxLabel)==null?void 0:f.call(p,d,o.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};u(t),i.contentEditable="false",o.type="checkbox",o.addEventListener("mousedown",d=>d.preventDefault()),o.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){o.checked=!o.checked;return}const{checked:p}=d.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{const h=n();if(typeof h!="number")return!1;const g=f.doc.nodeAt(h);return f.setNodeMarkup(h,void 0,{...g?.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,p)||(o.checked=!o.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,p])=>{a.setAttribute(d,p)}),a.dataset.checked=t.attrs.checked,o.checked=t.attrs.checked,i.append(o,s),a.append(i,l),Object.entries(e).forEach(([d,p])=>{a.setAttribute(d,p)});let c=new Set(Object.keys(e));return{dom:a,contentDOM:l,update:d=>{if(d.type!==this.type)return!1;a.dataset.checked=d.attrs.checked,o.checked=d.attrs.checked,u(d);const p=r.extensionManager.attributes,f=Ha(d,p),h=new Set(Object.keys(f)),g=this.options.HTMLAttributes;return c.forEach(b=>{h.has(b)||(b in g?a.setAttribute(b,g[b]):a.removeAttribute(b))}),Object.entries(f).forEach(([b,y])=>{y==null?b in g?a.setAttribute(b,g[b]):a.removeAttribute(b):a.setAttribute(b,y)}),c=h,!0}}}},addInputRules(){return[za({find:TJ,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),xJ=Bt.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",tt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
235
|
+
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const s=Sg(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:o=>({indentLevel:o[1].length,mainContent:o[4],checked:o[3].toLowerCase()==="x"}),createToken:(o,l)=>({type:"taskItem",raw:"",mainContent:o.mainContent,indentLevel:o.indentLevel,checked:o.checked,text:o.mainContent,tokens:n.inlineTokens(o.mainContent),nestedTokens:l}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},a=Sg(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(a)return{type:"taskList",raw:a.raw,items:a.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});nt.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(S2.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(x2.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(C2.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(I2.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(SJ.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(xJ.configure(this.options.taskList)),t}});var k_=" ",kJ=" ",vJ=Bt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",tt(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===k_||r[0].text===kJ)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e,n)=>{var r,a;if(!t)return"";const i=Array.isArray(t.content)?t.content:[];if(i.length===0){const s=Array.isArray((r=n?.previousNode)==null?void 0:r.content)?n.previousNode.content:[];return((a=n?.previousNode)==null?void 0:a.type)==="paragraph"&&s.length===0?k_:""}return e.renderChildren(i)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),AJ=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,_J=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,NJ=da.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",tt(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[$a({find:AJ,type:this.type})]},addPasteRules(){return[aa({find:_J,type:this.type})]}}),CJ=Bt.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),wJ=da.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",tt(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const a=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!a)return;const i=a[2].trim();return{type:"underline",raw:a[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),IJ=nt.create({name:"starterKit",addExtensions(){var t,e,n,r;const a=[];return this.options.bold!==!1&&a.push(AQ.configure(this.options.bold)),this.options.blockquote!==!1&&a.push(TQ.configure(this.options.blockquote)),this.options.bulletList!==!1&&a.push(S2.configure(this.options.bulletList)),this.options.code!==!1&&a.push(CQ.configure(this.options.code)),this.options.codeBlock!==!1&&a.push(RQ.configure(this.options.codeBlock)),this.options.document!==!1&&a.push(OQ.configure(this.options.document)),this.options.dropcursor!==!1&&a.push(hQ.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&a.push(mQ.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&a.push(LQ.configure(this.options.hardBreak)),this.options.heading!==!1&&a.push(DQ.configure(this.options.heading)),this.options.undoRedo!==!1&&a.push(EQ.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&a.push(MQ.configure(this.options.horizontalRule)),this.options.italic!==!1&&a.push(jQ.configure(this.options.italic)),this.options.listItem!==!1&&a.push(x2.configure(this.options.listItem)),this.options.listKeymap!==!1&&a.push(C2.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&a.push(T2.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&a.push(I2.configure(this.options.orderedList)),this.options.paragraph!==!1&&a.push(vJ.configure(this.options.paragraph)),this.options.strike!==!1&&a.push(NJ.configure(this.options.strike)),this.options.text!==!1&&a.push(CJ.configure(this.options.text)),this.options.underline!==!1&&a.push(wJ.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&a.push(bQ.configure((r=this.options)==null?void 0:r.trailingNode)),a}}),RJ=IJ;const Fr=16,tb=2.5,nb=(Fr-tb)/2,jm=2*Math.PI*nb;function R2(t){const e=W.c(29),{usage:n}=t;if(!n)return null;const{totalTokens:r,inputTokens:a,outputTokens:i,cost:s}=n;if(!r&&!a&&!i)return null;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx(XO,{size:12}),e[0]=o):o=e[0];let l;e[1]!==s||e[2]!==r?(l=s>0?`$${s.toFixed(4)}`:r.toLocaleString(),e[1]=s,e[2]=r,e[3]=l):l=e[3];let u;e[4]!==l?(u=m.jsx(Zr,{asChild:!0,children:m.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[o,m.jsx("span",{className:"text-sm font-mono tabular-nums",children:l})]})}),e[4]=l,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=c):c=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=m.jsx("span",{className:"text-muted",children:"in"}),e[7]=d):d=e[7];let p;e[8]!==a?(p=a.toLocaleString(),e[8]=a,e[9]=p):p=e[9];let f;e[10]!==p?(f=m.jsx("span",{className:"text-right tabular-nums",children:p}),e[10]=p,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx("span",{className:"text-muted",children:"out"}),e[12]=h):h=e[12];const g=i-(n.reasoningTokens??0);let b;e[13]!==g?(b=g.toLocaleString(),e[13]=g,e[14]=b):b=e[14];let y;e[15]!==b?(y=m.jsx("span",{className:"text-right tabular-nums",children:b}),e[15]=b,e[16]=y):y=e[16];let T;e[17]!==n?(T=(n.cacheReadTokens>0||n.cacheWriteTokens>0)&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-muted",children:"cache hit"}),m.jsx("span",{className:"text-right tabular-nums",children:`${(kb(n)*100).toFixed(0)}%`})]}),e[17]=n,e[18]=T):T=e[18];let x;e[19]!==s?(x=s>0&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-muted",children:"cost"}),m.jsxs("span",{className:"text-right tabular-nums",children:["$",s.toFixed(4)]})]}),e[19]=s,e[20]=x):x=e[20];let k;e[21]!==y||e[22]!==T||e[23]!==x||e[24]!==f?(k=m.jsxs(Qr,{side:"top",className:"font-mono text-[11px]",children:[c,m.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[d,f,h,y,T,x]})]}),e[21]=y,e[22]=T,e[23]=x,e[24]=f,e[25]=k):k=e[25];let A;return e[26]!==k||e[27]!==u?(A=m.jsxs(Jr,{children:[u,k]}),e[26]=k,e[27]=u,e[28]=A):A=e[28],A}function OJ(t){const e=W.c(19),{usage:n,duration:r}=t,a=r!=null&&r>0,i=n!=null&&(n.cost??0)>0,s=n!=null&&(n.totalTokens??0)>0;if(!a&&!i&&!s)return null;let o;e[0]!==r||e[1]!==a?(o=a?Ar(r/1e3):null,e[0]=r,e[1]=a,e[2]=o):o=e[2];const l=o;let u;e[3]!==r||e[4]!==l||e[5]!==n?(u=l&&m.jsxs(Jr,{children:[m.jsx(Zr,{asChild:!0,children:m.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:l})}),m.jsxs(Qr,{side:"top",className:"font-mono text-[11px]",children:[m.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),m.jsx("span",{className:"tabular-nums",children:Ar(r/1e3)}),(n?.reasoningTokens??0)>0&&m.jsxs("span",{className:"ml-2 opacity-50",children:[n.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=r,e[4]=l,e[5]=n,e[6]=u):u=e[6];let c;e[7]!==i||e[8]!==a||e[9]!==s?(c=a&&(i||s)&&m.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=i,e[8]=a,e[9]=s,e[10]=c):c=e[10];let d;e[11]!==i||e[12]!==s||e[13]!==n?(d=(i||s)&&m.jsxs(Jr,{children:[m.jsx(Zr,{asChild:!0,children:m.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:i?`$${n.cost.toFixed(4)}`:`${n.totalTokens.toLocaleString()} tok`})}),m.jsxs(Qr,{side:"top",className:"font-mono text-[11px]",children:[m.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),m.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[m.jsx("span",{className:"opacity-60",children:"in"}),m.jsx("span",{className:"text-right tabular-nums",children:(n.inputTokens??0).toLocaleString()}),m.jsx("span",{className:"opacity-60",children:"out"}),m.jsx("span",{className:"text-right tabular-nums",children:((n.outputTokens??0)-(n?.reasoningTokens??0)).toLocaleString()}),(n?.reasoningTokens??0)>0&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"opacity-60",children:"think"}),m.jsx("span",{className:"text-right tabular-nums",children:n.reasoningTokens.toLocaleString()})]}),((n?.cacheReadTokens??0)>0||(n?.cacheWriteTokens??0)>0)&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"opacity-60",children:"cache hit"}),m.jsx("span",{className:"text-right tabular-nums",children:`${(kb(n)*100).toFixed(0)}%`})]})]})]})]}),e[11]=i,e[12]=s,e[13]=n,e[14]=d):d=e[14];let p;return e[15]!==u||e[16]!==c||e[17]!==d?(p=m.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[u,c,d]}),e[15]=u,e[16]=c,e[17]=d,e[18]=p):p=e[18],p}function toe(t){const e=W.c(49),{usage:n,totalTokens:r,contextWindow:a,onOpenContextPanel:i}=t,s=Math.min(r/a*100,100),o=jm-s/100*jm,l=n?.cost??0,u=n?.inputTokens??0,c=n?.outputTokens??0;let d;e[0]!==s?(d=s.toFixed(0),e[0]=s,e[1]=d):d=e[1];let p;e[2]!==l?(p=l>0?`, $${l.toFixed(2)}`:"",e[2]=l,e[3]=p):p=e[3];const f=`Context usage: ${d}%${p}`,h=i?"cursor-pointer":"cursor-default";let g;e[4]!==h?(g=ye("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",h),e[4]=h,e[5]=g):g=e[5];let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=m.jsx("circle",{cx:Fr/2,cy:Fr/2,r:nb,fill:"none",stroke:"currentColor",strokeWidth:tb,className:"opacity-15"}),e[6]=b):b=e[6];const y=s>90?"text-destructive":s>70?"text-warning":"text-muted-foreground";let T;e[7]!==y?(T=ye(y),e[7]=y,e[8]=T):T=e[8];let x;e[9]!==o||e[10]!==T?(x=m.jsxs("svg",{width:Fr,height:Fr,className:"-rotate-90",children:[b,m.jsx("circle",{cx:Fr/2,cy:Fr/2,r:nb,fill:"none",stroke:"currentColor",strokeWidth:tb,strokeDasharray:jm,strokeDashoffset:o,strokeLinecap:"round",className:T})]}),e[9]=o,e[10]=T,e[11]=x):x=e[11];let k;e[12]!==s?(k=s.toFixed(0),e[12]=s,e[13]=k):k=e[13];let A;e[14]!==l?(A=l>0?` · $${l.toFixed(2)}`:"",e[14]=l,e[15]=A):A=e[15];let S;e[16]!==k||e[17]!==A?(S=m.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[k,"%",A]}),e[16]=k,e[17]=A,e[18]=S):S=e[18];let v;e[19]!==i||e[20]!==S||e[21]!==f||e[22]!==g||e[23]!==x?(v=m.jsx(Zr,{asChild:!0,children:m.jsxs("button",{type:"button",onClick:i,"aria-label":f,className:g,children:[x,S]})}),e[19]=i,e[20]=S,e[21]=f,e[22]=g,e[23]=x,e[24]=v):v=e[24];let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=m.jsx("span",{className:"text-muted",children:"context"}),e[25]=N):N=e[25];let _;e[26]!==r?(_=r.toLocaleString(),e[26]=r,e[27]=_):_=e[27];let C;e[28]!==a?(C=a.toLocaleString(),e[28]=a,e[29]=C):C=e[29];let L;e[30]!==s?(L=s.toFixed(1),e[30]=s,e[31]=L):L=e[31];let P;e[32]!==_||e[33]!==C||e[34]!==L?(P=m.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",C," (",L,"%)"]}),e[32]=_,e[33]=C,e[34]=L,e[35]=P):P=e[35];let $;e[36]!==l||e[37]!==u||e[38]!==c?($=l>0&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-muted",children:"cost"}),m.jsxs("span",{className:"text-right tabular-nums",children:["$",l.toFixed(4)]}),m.jsx("span",{className:"text-muted",children:"in"}),m.jsx("span",{className:"text-right tabular-nums",children:u.toLocaleString()}),m.jsx("span",{className:"text-muted",children:"out"}),m.jsx("span",{className:"text-right tabular-nums",children:c.toLocaleString()})]}),e[36]=l,e[37]=u,e[38]=c,e[39]=$):$=e[39];let F;e[40]!==n?(F=((n?.cacheReadTokens??0)>0||(n?.cacheWriteTokens??0)>0)&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-muted",children:"cache hit"}),m.jsx("span",{className:"text-right tabular-nums",children:`${(kb(n)*100).toFixed(0)}%`})]}),e[40]=n,e[41]=F):F=e[41];let M;e[42]!==P||e[43]!==$||e[44]!==F?(M=m.jsx(Qr,{side:"top",className:"font-mono text-[11px]",children:m.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[N,P,$,F]})}),e[42]=P,e[43]=$,e[44]=F,e[45]=M):M=e[45];let H;return e[46]!==v||e[47]!==M?(H=m.jsxs(Jr,{children:[v,M]}),e[46]=v,e[47]=M,e[48]=H):H=e[48],H}var tu="Collapsible",[LJ,noe]=z_(tu),[DJ,nE]=LJ(tu),O2=U.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:s,...o}=t,[l,u]=$O({prop:r,defaultProp:a??!1,onChange:s,caller:tu});return m.jsx(DJ,{scope:n,disabled:i,contentId:zO(),open:l,onOpenToggle:U.useCallback(()=>u(c=>!c),[u]),children:m.jsx(Cr.div,{"data-state":sE(l),"data-disabled":i?"":void 0,...o,ref:e})})});O2.displayName=tu;var L2="CollapsibleTrigger",rE=U.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,a=nE(L2,n);return m.jsx(Cr.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":sE(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:e,onClick:Sr(t.onClick,a.onOpenToggle)})});rE.displayName=L2;var aE="CollapsibleContent",iE=U.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=nE(aE,t.__scopeCollapsible);return m.jsx(ds,{present:n||a.open,children:({present:i})=>m.jsx(MJ,{...r,ref:e,present:i})})});iE.displayName=aE;var MJ=U.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=t,s=nE(aE,n),[o,l]=U.useState(r),u=U.useRef(null),c=ua(e,u),d=U.useRef(0),p=d.current,f=U.useRef(0),h=f.current,g=s.open||o,b=U.useRef(g),y=U.useRef(void 0);return U.useEffect(()=>{const T=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(T)},[]),$_(()=>{const T=u.current;if(T){y.current=y.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const x=T.getBoundingClientRect();d.current=x.height,f.current=x.width,b.current||(T.style.transitionDuration=y.current.transitionDuration,T.style.animationName=y.current.animationName),l(r)}},[s.open,r]),m.jsx(Cr.div,{"data-state":sE(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...i,ref:c,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...t.style},children:g&&a})});function sE(t){return t?"open":"closed"}var PJ=O2,roe=rE,aoe=iE;function FJ(t){const e=W.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=m.jsx(PJ,{"data-slot":"collapsible",...n}),e[2]=n,e[3]=r):r=e[3],r}function BJ(t){const e=W.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=m.jsx(rE,{"data-slot":"collapsible-trigger",...n}),e[2]=n,e[3]=r):r=e[3],r}function UJ(t){const e=W.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=m.jsx(iE,{"data-slot":"collapsible-content",...n}),e[2]=n,e[3]=r):r=e[3],r}function Ce({icon:t,title:e,usage:n,summary:r,state:a,detail:i,detailVariant:s="code",forceOpen:o,variant:l="default",trailing:u,iconDestructive:c,alwaysChevron:d,defaultOpen:p,children:f}){const h=fe(),[g,b]=U.useState(p??!1),{handleCopy:y,copied:T}=sN(),x=a==="loading",k=a==="error",S=!!(i&&i.trim())||!!f,v=l==="subtask",N=(o??!1)||g,_=pD({initial:x?"instant":!1}),C=m.jsxs(FJ,{open:N,onOpenChange:o?void 0:b,className:"min-w-0",children:[m.jsxs(BJ,{disabled:!S,className:ye("group/tool flex items-center gap-2 w-full py-2.5 text-left transition-colors",S&&"[@media(hover:hover)]:hover:bg-accent/30",!S&&"cursor-default",x&&"shimmer"),"aria-disabled":!S,children:[m.jsx("div",{className:"relative shrink-0 size-4 flex items-center justify-center",children:d?m.jsx(Zm,{className:ye("size-4 text-foreground/60 transition-transform duration-200 ease-in-out",N&&"rotate-90")}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:ye("absolute inset-0 flex items-center justify-center [&>svg]:size-4 transition-opacity duration-150",c?"[&>svg]:text-destructive/70":k?"[&>svg]:text-warning/70":"[&>svg]:text-muted-foreground/75",S&&(N?"opacity-0":"[@media(hover:hover)]:group-hover/tool:opacity-0")),children:t}),S&&m.jsx("div",{className:ye("absolute inset-0 flex items-center justify-center transition-opacity duration-150",N?"opacity-100":"opacity-0 [@media(hover:hover)]:group-hover/tool:opacity-100"),children:m.jsx(Zm,{className:ye("size-4 text-foreground/60 transition-transform duration-200 ease-in-out",N&&"rotate-90")})})]})}),m.jsx("span",{className:ye("shrink-0 text-[14px] font-normal",k?"text-warning/80":"text-foreground"),children:e}),r?m.jsx("span",{className:"min-w-0 flex-1 truncate",children:m.jsx("span",{className:"text-[12px] text-muted-foreground/60 bg-muted/50 rounded-[3px] px-1 py-px leading-none",children:r})}):m.jsx("div",{className:"flex-1"}),u&&m.jsx("div",{className:"shrink-0 flex items-center gap-1 [&_svg]:size-3.5 [&_svg]:text-muted-foreground/50",children:u}),m.jsx(R2,{usage:n})]}),S&&m.jsx(UJ,{className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",children:f||(s==="prose"?m.jsx("div",{className:"mt-1 mb-1",children:m.jsx("div",{ref:_.scrollRef,className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/30 px-3 py-2",children:m.jsx("p",{ref:_.contentRef,className:"text-xs text-muted-foreground/70 whitespace-pre-wrap leading-relaxed wrap-break-word",children:i})})}):m.jsx("div",{className:"ml-[20px] pl-3 border-l border-border/30 mt-0.5 pb-1",children:m.jsx("div",{ref:_.scrollRef,className:"flex flex-col max-h-48 overflow-y-auto",children:m.jsxs("div",{ref:_.contentRef,className:"flex items-start justify-between gap-2",children:[m.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:m.jsx("pre",{className:"text-xs font-mono text-muted-foreground/70 whitespace-pre-wrap wrap-break-word",children:i})}),m.jsx("button",{type:"button",onClick:()=>y(i),className:"shrink-0 p-1.5 rounded-md text-muted-foreground/50 [@media(hover:hover)]:hover:text-foreground [@media(hover:hover)]:hover:bg-accent/50 transition-colors active:scale-[0.97]","aria-label":h("common.copy"),children:T?m.jsx(fs,{className:"size-3.5"}):m.jsx(El,{className:"size-3.5"})})]})})}))})]});return v?m.jsx("div",{className:"pl-4 border-l border-border/40 ml-1.5",children:C}):C}function Et(t){const e=W.c(4),{latency:n}=t;if(n==null||n<=0)return null;let r;e[0]!==n?(r=Ar(n),e[0]=n,e[1]=r):r=e[1];let a;return e[2]!==r?(a=m.jsx("span",{className:"text-[11px] font-mono tabular-nums text-muted-foreground",children:r}),e[2]=r,e[3]=a):a=e[3],a}const D2=4;function M2(t){const e=W.c(8),{count:n,noun:r,onClick:a}=t,i=fe();let s;e[0]!==n||e[1]!==r||e[2]!==i?(s=i("common.seeAll",{count:n,noun:r}),e[0]=n,e[1]=r,e[2]=i,e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx(iN,{className:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"}),e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==s?(l=m.jsxs("button",{type:"button",onClick:a,className:"group flex w-full items-center justify-center gap-1.5 rounded-lg border border-border bg-card px-3 py-2.5 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[s,o]}),e[5]=a,e[6]=s,e[7]=l):l=e[7],l}function P2(t){const e=W.c(12),{message:n,className:r}=t,a=n.created_at??n.metadata?.created_at??null;let i,s,o,l;if(e[0]!==r||e[1]!==a){l=Symbol.for("react.early_return_sentinel");e:{const c=Tb(a);if(c===null){l=null;break e}const d=new Date(c);i=d.toLocaleString(),e[6]!==r?(s=ye("text-[11px] text-muted-foreground/60 select-none",r),e[6]=r,e[7]=s):s=e[7],o=d.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"})}e[0]=r,e[1]=a,e[2]=i,e[3]=s,e[4]=o,e[5]=l}else i=e[2],s=e[3],o=e[4],l=e[5];if(l!==Symbol.for("react.early_return_sentinel"))return l;let u;return e[8]!==i||e[9]!==s||e[10]!==o?(u=m.jsx("span",{title:i,className:s,children:o}),e[8]=i,e[9]=s,e[10]=o,e[11]=u):u=e[11],u}function rb(t){const e=W.c(9),{since:n}=t;let r;e[0]!==n?(r=()=>FE(n,Date.now()),e[0]=n,e[1]=r):r=e[1];const[a,i]=U.useState(r);let s,o;e[2]!==n?(s=()=>{const d=setInterval(()=>i(FE(n,Date.now())),100);return()=>clearInterval(d)},o=[n],e[2]=n,e[3]=s,e[4]=o):(s=e[3],o=e[4]),U.useEffect(s,o);const l=a/1e3;let u;e[5]!==l?(u=Ar(l),e[5]=l,e[6]=u):u=e[6];let c;return e[7]!==u?(c=m.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground/50",children:u}),e[7]=u,e[8]=c):c=e[8],c}const F2=[{delay:0},{delay:100},{delay:200},{delay:100},{delay:200},{delay:200},{delay:300},{delay:300},{delay:400}];function jJ(){const t=W.c(5),[e]=U.useState(HJ);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={gridTemplateColumns:"repeat(3, 3px)",gap:"1.5px",width:"fit-content"},t[0]=n):n=t[0];let r;t[1]!==e?(r=F2.map((i,s)=>{const{delay:o}=i;return m.jsx("div",{className:"rounded-[1px]",style:{width:3,height:3,"--cell-color":e[s],animation:"grid-ripple 1s ease infinite",animationDelay:`${o}ms`}},s)}),t[1]=e,t[2]=r):r=t[2];let a;return t[3]!==r?(a=m.jsx("div",{className:"grid",style:n,children:r}),t[3]=r,t[4]=a):a=t[4],a}function HJ(){const t=`var(--chart-${Math.ceil(Math.random()*5)})`;return F2.map(()=>Math.random()<.6?"color-mix(in srgb, var(--muted-foreground) 25%, transparent)":t)}function $J(t){return{planning:{icon:m.jsx(QO,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:t("chat.thinkingIndicator.planningLabel"),detail:t("chat.thinkingIndicator.planningDetail")},thinking:{icon:m.jsx(bl,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:t("chat.thinkingIndicator.thinkingLabel"),detail:t("chat.thinkingIndicator.thinkingDetail")}}}const zJ=1200;function ab(t){const e=W.c(8),{icon:n,title:r,summary:a,detail:i,state:s,detailVariant:o,trailing:l}=t,u=o===void 0?"prose":o;let c;return e[0]!==i||e[1]!==u||e[2]!==n||e[3]!==s||e[4]!==a||e[5]!==r||e[6]!==l?(c=m.jsx(Ce,{icon:n,title:r,summary:a,detail:i,state:s,detailVariant:u,trailing:l}),e[0]=i,e[1]=u,e[2]=n,e[3]=s,e[4]=a,e[5]=r,e[6]=l,e[7]=c):c=e[7],c}function qJ(t){const e=W.c(22),{startedAt:n}=t,r=fe(),a=Ka()?.runStatusStage??null,[i,s]=U.useState("planning");let o,l;if(e[0]!==a?(o=()=>{if(a!==null)return;const g=setTimeout(()=>{s("thinking")},zJ);return()=>{clearTimeout(g)}},l=[a],e[0]=a,e[1]=o,e[2]=l):(o=e[1],l=e[2]),U.useEffect(o,l),a!==null){let g;e[3]!==a||e[4]!==r?(g=DL(r,a),e[3]=a,e[4]=r,e[5]=g):g=e[5];const b=g;let y;e[6]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx(bl,{className:"size-4"}),e[6]=y):y=e[6];const T=`${b.label}...`;let x;e[7]!==n?(x=n!==null&&m.jsx(rb,{since:n}),e[7]=n,e[8]=x):x=e[8];let k;return e[9]!==b.detail||e[10]!==T||e[11]!==x?(k=m.jsx(ab,{icon:y,title:T,summary:b.detail,state:"loading",trailing:x}),e[9]=b.detail,e[10]=T,e[11]=x,e[12]=k):k=e[12],k}let u;e[13]!==r?(u=$J(r),e[13]=r,e[14]=u):u=e[14];const d=u[i],p=`${d.label}...`;let f;e[15]!==n?(f=n!==null&&m.jsx(rb,{since:n}),e[15]=n,e[16]=f):f=e[16];let h;return e[17]!==d.detail||e[18]!==d.icon||e[19]!==p||e[20]!==f?(h=m.jsx(ab,{icon:d.icon,title:p,summary:d.detail,state:"loading",trailing:f}),e[17]=d.detail,e[18]=d.icon,e[19]=p,e[20]=f,e[21]=h):h=e[21],h}function GJ(t){const e=W.c(3),{startedAt:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=m.jsx(jJ,{}),e[0]=r):r=e[0];let a;return e[1]!==n?(a=m.jsxs("div",{className:"flex items-center gap-2.5 mt-1 pb-1 text-muted-foreground/40 select-none",children:[r,m.jsx(rb,{since:n})]}),e[1]=n,e[2]=a):a=e[2],a}const WJ=2e4;function VJ(t){const e=W.c(9),{startedAt:n}=t,r=fe();tN(1e3);const a=Ka(),s=(n!==null?Date.now()-n:0)>=WJ;let o;e[0]!==n?(o=m.jsx(qJ,{startedAt:n}),e[0]=n,e[1]=o):o=e[1];let l;e[2]!==s||e[3]!==a||e[4]!==r?(l=s&&a?.stop&&m.jsxs("div",{className:"flex items-center gap-2 pb-1 text-[13px] text-muted-foreground/60",children:[m.jsx("span",{children:r("chat.thinkingIndicator.takingLonger")}),m.jsx("button",{type:"button",onClick:()=>a.stop(),className:"text-muted-foreground hover:text-foreground underline underline-offset-2",children:r("chat.thinkingIndicator.cancel")})]}),e[2]=s,e[3]=a,e[4]=r,e[5]=l):l=e[5];let u;return e[6]!==o||e[7]!==l?(u=m.jsxs("div",{className:"flex flex-col gap-0.5",children:[o,l]}),e[6]=o,e[7]=l,e[8]=u):u=e[8],u}function YJ(t){const e=W.c(24),{duration:n,parts:r,isStreaming:a}=t,i=fe();let s;e[0]!==r?(s=r.every(ZJ),e[0]=r,e[1]=s):s=e[1];const o=s;let l;e[2]!==n||e[3]!==i?(l=n&&n/1e3>1?i("chat.thinkingIndicator.thoughtFor",{duration:Ar(n/1e3)}):i("chat.thinkingIndicator.thought"),e[2]=n,e[3]=i,e[4]=l):l=e[4];const u=l;let c;if(e[5]!==o||e[6]!==a||e[7]!==r){const x=r.map(XJ).join(`
|
|
236
|
+
`).trim().split(`
|
|
237
|
+
`).filter(Boolean),k=a?x[x.length-1]??"":x[0]??"";c=!o&&k?k.length>100?k.slice(0,100)+"…":k:void 0,e[5]=o,e[6]=a,e[7]=r,e[8]=c}else c=e[8];const d=c;let p;if(e[9]!==o||e[10]!==r){const T=r.map(KJ).join(`
|
|
238
|
+
|
|
239
|
+
`);p=!o&&T.trim()?T:null,e[9]=o,e[10]=r,e[11]=p}else p=e[11];const f=p;let h;e[12]!==a?(h=a?m.jsx(bl,{className:"size-4"}):m.jsx(ZO,{className:"size-4"}),e[12]=a,e[13]=h):h=e[13];let g;e[14]!==a||e[15]!==i||e[16]!==u?(g=a?i("chat.thinkingIndicator.thinking"):u,e[14]=a,e[15]=i,e[16]=u,e[17]=g):g=e[17];const b=a?"loading":"idle";let y;return e[18]!==f||e[19]!==d||e[20]!==h||e[21]!==g||e[22]!==b?(y=m.jsx(ab,{icon:h,title:g,summary:d,detail:f,state:b,detailVariant:"prose"}),e[18]=f,e[19]=d,e[20]=h,e[21]=g,e[22]=b,e[23]=y):y=e[23],y}function KJ(t){return t.text??""}function XJ(t){return t.text??""}function ZJ(t){return t.text?.includes("REDACTED")}function QJ(t){const e=W.c(24),{org:n}=Pn(),r=qO(),a=ML(),i=nN();let s;e[0]!==i||e[1]!==t?(s=async g=>{if(!t)throw new Error("useTaskExpandedTools: no task in context");const y=(await i.call("COLLECTION_THREADS_GET",{id:t})).item?.metadata??{},x=(y.expanded_tools??[]).filter(A=>A.toolName!==g.toolName);x.push({...g,expandedAt:new Date().toISOString()});const k={...y,expanded_tools:x};return await i.call("COLLECTION_THREADS_UPDATE",{id:t,data:{metadata:k}}),x},e[0]=i,e[1]=t,e[2]=s):s=e[2];let o,l,u;e[3]!==n||e[4]!==r||e[5]!==t?(o=async g=>{const b=dn.ensureTask(n.id,t??"");await r.cancelQueries({queryKey:b});const y=r.getQueryData(b),x=(y?.metadata?.expanded_tools??[]).filter(k=>k.toolName!==g.toolName);return x.push({...g,expandedAt:new Date().toISOString()}),r.setQueryData(b,k=>k&&{...k,metadata:{...k.metadata??{},expanded_tools:x}}),{previous:y}},l=()=>{r.invalidateQueries({queryKey:dn.ensureTask(n.id,t??"")})},u=(g,b,y)=>{const T=dn.ensureTask(n.id,t??"");y?.previous===void 0?r.removeQueries({queryKey:T,exact:!0}):r.setQueryData(T,y.previous),Xm.error(g instanceof Error?g.message:"Failed to expand tool")},e[3]=n,e[4]=r,e[5]=t,e[6]=o,e[7]=l,e[8]=u):(o=e[6],l=e[7],u=e[8]);let c;e[9]!==s||e[10]!==o||e[11]!==l||e[12]!==u?(c={mutationFn:s,onMutate:o,onSuccess:l,onError:u},e[9]=s,e[10]=o,e[11]=l,e[12]=u,e[13]=c):c=e[13];const d=GO(c);let p;e[14]!==a||e[15]!==d||e[16]!==n||e[17]!==r||e[18]!==t?(p=g=>{if(!t||!a)return;const b=dn.ensureTask(n.id,t),y=r.getQueryData(b),x=(y?.metadata?.expanded_tools??[]).filter(A=>A.toolName!==g.toolName);x.push({...g,expandedAt:new Date().toISOString()});const k={...y?.metadata??{},expanded_tools:x};r.setQueryData(b,A=>A&&{...A,metadata:k}),a.patchThread({id:t,metadata:k}),d.mutate(g)},e[14]=a,e[15]=d,e[16]=n,e[17]=r,e[18]=t,e[19]=p):p=e[19];const f=p;let h;return e[20]!==f||e[21]!==d.isPending||e[22]!==d.mutate?(h={addOrReplace:d.mutate,addOrReplaceEager:f,isPending:d.isPending},e[20]=f,e[21]=d.isPending,e[22]=d.mutate,e[23]=h):h=e[23],h}function JJ(t){if(t<1024)return`${t} B`;if(t<1024*1024){const n=t/1024;return n<10?`${n.toFixed(1)} KB`:`${Math.round(n)} KB`}const e=t/(1024*1024);return e<10?`${e.toFixed(1)} MB`:`${Math.round(e)} MB`}function eee(t,e,n,r){const{data:a,isLoading:i}=ps({queryKey:dn.toolDefinitionLookup(e,n,t),queryFn:async()=>{if(!t||!e)return null;const s=await pL({connectionId:e,orgId:n,orgSlug:r});try{const{tools:o}=await s.listTools(),l=Dw(t);return o.find(u=>u.name===l)??null}finally{await s.close().catch(()=>{})}},enabled:!!t&&!!e,staleTime:6e4,gcTime:3e5,retry:!1});return{toolDef:a??void 0,isLoading:i}}const tee={read:{icon:PE,label:"Read File"},write:{icon:GL,label:"Write File"},edit:{icon:iL,label:"Edit File"},grep:{icon:WL,label:"Search Content"},glob:{icon:aL,label:"Find Files"},bash:{icon:rL,label:"Run Command"},read_tool_output:{icon:PE,label:"Read Tool Output"},read_resource:{icon:nL,label:"Read Resource"},read_prompt:{icon:eg,label:"Read Prompt"},skill:{icon:eg,label:"Load Skill"},enable_tool:{icon:qL,label:"Enable Tool"},open_in_agent:{icon:tL,label:"Open in Agent"},sandbox:{icon:eL,label:"Run Code"},copy_to_sandbox:{icon:Eb,label:"Load File"},share_with_user:{icon:VL,label:"Share with User"},take_screenshot:{icon:Ai,label:"Take Screenshot"},scrape_url:{icon:fo,label:"Scrape URL"},inspect_page:{icon:JO,label:"Inspect Page"}},nee="bash-sleep-start:";function ree(t){const e=nee+t;try{const n=sessionStorage.getItem(e);if(n!==null){const a=Number.parseInt(n,10);if(Number.isFinite(a))return a}const r=Date.now();return sessionStorage.setItem(e,String(r)),r}catch{return Date.now()}}function aee(t,e){const n=W.c(2);let r;n[0]!==t?(r=()=>ree(t),n[0]=t,n[1]=r):r=n[1];const a=U.useState(r)[0];return e??a}function iee(t){const e=Math.ceil(t/1e3);if(e<60)return`${e}s`;const n=Math.floor(e/60),r=e%60;return r?`${n}m ${r}s`:`${n}m`}function see(t){const e=W.c(4),{toolCallId:n,durationMs:r,anchorMs:a}=t;tN(1e3);const s=aee(n,a)+r-Date.now();let o;e[0]!==s?(o=s>0?`Waiting ${iee(s)}`:"Wrapping up…",e[0]=s,e[1]=o):o=e[1];let l;return e[2]!==o?(l=m.jsx("span",{className:"tabular-nums",children:o}),e[2]=o,e[3]=l):l=e[3],l}const oee={s:1e3,m:6e4,h:36e5,d:864e5};function lee(t){const e=/(?:^|[\s;&|(])sleep((?:\s+[\d.]+[smhd]?)+)/g;let n=0,r=!1;for(const a of t.matchAll(e))for(const i of a[1].trim().split(/\s+/)){const s=/^([\d.]+)([smhd]?)$/.exec(i);if(!s)continue;const o=Number.parseFloat(s[1]);Number.isFinite(o)&&(n+=o*(oee[s[2]||"s"]??1e3),r=!0)}return r?n:null}function nu(t,e="An unknown error occurred"){return"errorText"in t&&typeof t.errorText=="string"?t.errorText:e}function Ca(t){if(t==null)return"";try{return JSON.stringify(t)}catch{return"[Non-serializable value]"}}function dl(t){const e=Ca(t);if(e===""||e==="[Non-serializable value]")return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}const uee=t=>t.type==="dynamic-tool"||t.type.startsWith("tool-");function cee(t){if(!t||typeof t!="object")return null;const e=t;if(!Array.isArray(e.parts))return null;const n=[];for(const r of e.parts)if(r.type==="text"&&typeof r.text=="string")n.push(r.text);else if(r.type==="reasoning")n.push(`## Reasoning
|
|
240
|
+
${r.text}`);else if(r.type==="source-url")n.push(`## Source URL
|
|
241
|
+
${r.url}`);else if(r.type==="source-document")n.push(`## Source Document
|
|
242
|
+
${r.title}`);else if(r.type==="file")n.push(`## File
|
|
243
|
+
${r.filename??r.url}`);else if(r.type!=="step-start"){if(uee(r)){const a=r.type.startsWith("tool-")?r.type.slice(5):r.toolName;if(r.state==="input-streaming")n.push(`## ${a}
|
|
244
|
+
Input streaming...`);else if(r.state==="input-available"){const i=Ca(r.input).slice(0,20);n.push(`## ${a}
|
|
245
|
+
### Input
|
|
246
|
+
${i||"[No input]"}...`)}else if(r.state==="approval-requested")n.push(`## ${a}
|
|
247
|
+
Approval requested...`);else if(r.state==="approval-responded")n.push(`## ${a}
|
|
248
|
+
Approval responded...`);else if(r.state==="output-available"){const i=Ca(r.input).slice(0,40),s=Ca(r.output).slice(0,40);n.push(r.output!=null?`## ${a}
|
|
249
|
+
Input: ${i||"[No input]"}...
|
|
250
|
+
Output: ${s||"[No output]"}...`:`## ${a}
|
|
251
|
+
Input: ${i||"[No input]"}...
|
|
252
|
+
Output: Tool responded with no output`)}else if(r.state==="output-error"){const i=Ca(r.input).slice(0,40);n.push(r.errorText?`## ${a}
|
|
253
|
+
Input: ${i||"[No input]"}...
|
|
254
|
+
Error: ${r.errorText}`:`## ${a}
|
|
255
|
+
Input: ${i||"[No input]"}...
|
|
256
|
+
Error: Tool responded with an error`)}else if(r.state==="output-denied"){const i=Ca(r.input).slice(0,40);n.push(`## ${a}
|
|
257
|
+
Input: ${i||"[No input]"}...
|
|
258
|
+
Output: Tool execution was denied`)}}}return n.length>0?n.join(`
|
|
259
|
+
|
|
260
|
+
`):null}function dee(t){const e=t&&typeof t=="object"&&"created_at"in t?t.created_at:void 0;return typeof e=="string"||e instanceof Date?Tb(e):null}function pee(t){const e=t&&typeof t=="object"&&"timeout"in t?t.timeout:void 0;return Math.min(typeof e=="number"?e:3e4,12e4)}function Zs(t){const e=W.c(7),{icon:n,label:r}=t;let a;e[0]!==n?(a=m.jsx(Zr,{asChild:!0,children:m.jsx("span",{className:"flex items-center",children:n})}),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=m.jsx(Qr,{side:"top",children:r}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=m.jsxs(Jr,{children:[a,i]}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function fee(t){const e=W.c(15),{annotations:n,toolMeta:r}=t;let a;e[0]!==r?(a=cN(r),e[0]=r,e[1]=a):a=e[1];const i=!!a;if(!n&&!i)return null;let s;e[2]!==i?(s=i&&m.jsx(Zs,{icon:m.jsx(W_,{}),label:"Interactive"}),e[2]=i,e[3]=s):s=e[3];let o;e[4]!==n?.readOnlyHint?(o=n?.readOnlyHint&&m.jsx(Zs,{icon:m.jsx($L,{}),label:"Read-only — no side effects"}),e[4]=n?.readOnlyHint,e[5]=o):o=e[5];let l;e[6]!==n?.destructiveHint?(l=n?.destructiveHint&&m.jsx(Zs,{icon:m.jsx(dN,{}),label:"May modify or delete data"}),e[6]=n?.destructiveHint,e[7]=l):l=e[7];let u;e[8]!==n?.openWorldHint?(u=n?.openWorldHint&&m.jsx(Zs,{icon:m.jsx(fo,{}),label:"Reaches outside this system"}),e[8]=n?.openWorldHint,e[9]=u):u=e[9];let c;return e[10]!==s||e[11]!==o||e[12]!==l||e[13]!==u?(c=m.jsxs(m.Fragment,{children:[s,o,l,u]}),e[10]=s,e[11]=o,e[12]=l,e[13]=u,e[14]=c):c=e[14],c}function hee(t){return t<1?`${Math.round(t*1e3)}ms`:t<10?`${t.toFixed(1)}s`:`${Math.round(t)}s`}function mee(t){const e=W.c(13),{latency:n,outputBytes:r}=t,a=typeof n=="number"&&n>0,i=typeof r=="number"&&r>=0;if(!a&&!i)return null;let s;e[0]!==a||e[1]!==n?(s=a&&m.jsx("span",{children:hee(n)}),e[0]=a,e[1]=n,e[2]=s):s=e[2];let o;e[3]!==i||e[4]!==a?(o=a&&i&&m.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[3]=i,e[4]=a,e[5]=o):o=e[5];let l;e[6]!==i||e[7]!==r?(l=i&&m.jsx("span",{children:JJ(r)}),e[6]=i,e[7]=r,e[8]=l):l=e[8];let u;return e[9]!==s||e[10]!==o||e[11]!==l?(u=m.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-mono tabular-nums text-muted-foreground/60 px-1 leading-none",children:[s,o,l]}),e[9]=s,e[10]=o,e[11]=l,e[12]=u):u=e[12],u}function gee(t,e,n,r){switch(t){case"input-streaming":case"input-available":return r?r("chat.generic.preparing"):"Preparing...";case"approval-requested":return r?r("chat.generic.waitingForApproval"):"Waiting for your approval";case"output-denied":return r?r("chat.generic.cancelled"):"Cancelled";case"output-error":return n??(r?r("chat.generic.failed"):"Failed");case"output-available":{if(e==null)return r?r("chat.generic.done"):"Done";if(typeof e=="string"){const a=e.trim();return a.length>100?a.slice(0,100)+"…":a}if(typeof e=="object"){for(const a of Object.keys(e)){const i=e[a];if(typeof i=="string"&&i.trim()){const s=i.trim();return s.length>100?s.slice(0,100)+"…":s}}return""}return String(e).slice(0,100)}default:return""}}function v_(t){const e=W.c(76),{part:n,annotations:r,latency:a,outputBytes:i,isLastMessage:s,toolMeta:o}=t,l=fe(),u="toolName"in n&&typeof n.toolName=="string"?n.toolName:n.type==="dynamic-tool"?l("chat.generic.dynamicTool"):n.type.replace("tool-","")||"Tool",c=Dw(u),d=Ka(),p=BL(),{org:f}=Pn(),{openSidePanel:h}=YL(),g=Sb()?.taskId??null,{addOrReplaceEager:b}=QJ(g),y=la(),T=o&&typeof o=="object"&&o!==null&&"connectionId"in o&&o.connectionId!=null&&o.connectionId!==""?String(o.connectionId):p?.selectedVirtualMcp?.id??null,{toolDef:x}=eee(T?u:null,T,f.id,f.slug),k=x?._meta??o,A=vb(k),S=Ab(c,A),v=tee[S],N=x?.title??v?.label??tg(S);let _;e[0]!==k?(_=cN(k),e[0]=k,e[1]=_):_=e[1];const C=_,L=!!C&&n.state==="output-available",P=T?`${T}:${u}`:null,$=!!r?.destructiveHint,F=L&&!!T&&!$&&!!g;let M;e[2]!==b||e[3]!==T||e[4]!==y||e[5]!==n||e[6]!==u?(M=()=>{if(!T)return;const oe="input"in n&&n.input&&typeof n.input=="object"?n.input:{};b({toolName:u,appId:T,args:oe}),y({to:".",search:Ae=>({...Ae,main:RL(T,u)}),replace:!0})},e[2]=b,e[3]=T,e[4]=y,e[5]=n,e[6]=u,e[7]=M):M=e[7];const H=M;let j;e[8]!==F||e[9]!==H?(j=oe=>oe==="fullscreen"&&F?(H(),"fullscreen"):"inline",e[8]=F,e[9]=H,e[10]=j):j=e[10];const B=j;let Y;e[11]!==d||e[12]!==h?(Y=oe=>{const Ae=jL(oe.content);Ae.content.length>0&&(h("chat"),d?.sendMessage(Ae))},e[11]=d,e[12]=h,e[13]=Y):Y=e[13];const w=Y,V=n.state==="approval-requested"&&s===!1,ee=n.state==="output-denied"||V,R=n.state==="output-available"&&typeof n.output=="object"&&n.output!=null&&"isError"in n.output&&n.output.isError===!0;let ne;e[14]!==n.state?(ne=Sn(n.state),e[14]=n.state,e[15]=ne):ne=e[15];const ie=ne,re=V||ie==="approval"?"idle":R?"error":ie;let me,Te;if(e[16]!==re||e[17]!==R||e[18]!==V||e[19]!==n||e[20]!==l||e[21]!==S){me=n.state==="output-error"?nu(n):void 0;const oe=S==="bash"&&re==="loading"&&n.input&&typeof n.input=="object"&&typeof n.input.command=="string"?n.input.command:null;let Ae;e[24]!==oe?(Ae=oe!==null?lee(oe):null,e[24]=oe,e[25]=Ae):Ae=e[25];const Oe=Ae;let yt;e[26]!==n.input||e[27]!==Oe?(yt=Oe!==null?Math.min(Oe,pee(n.input)):null,e[26]=n.input,e[27]=Oe,e[28]=yt):yt=e[28];const en=yt,ft="toolCallId"in n?n.toolCallId:"";Te=en!==null?m.jsx(see,{toolCallId:ft,durationMs:en,anchorMs:dee(n)}):V?l("chat.generic.cancelled"):R?l("chat.generic.failed"):gee(n.state,n.output,me,l),e[16]=re,e[17]=R,e[18]=V,e[19]=n,e[20]=l,e[21]=S,e[22]=me,e[23]=Te}else me=e[22],Te=e[23];const De=Te;let he="";n.input!==void 0&&(he=`# Input
|
|
261
|
+
`+dl(n.input)),n.state==="output-error"?(he&&(he=he+`
|
|
262
|
+
|
|
263
|
+
`),he=he+(`# Error
|
|
264
|
+
`+(me??""))):n.output!==void 0&&!L&&(he&&(he=he+`
|
|
265
|
+
|
|
266
|
+
`),he=he+(`# Output
|
|
267
|
+
`+dl(n.output)));let we;e:{if(ee){let Oe;e[29]===Symbol.for("react.memo_cache_sentinel")?(Oe=m.jsx(zL,{}),e[29]=Oe):Oe=e[29],we=Oe;break e}if(L){let Oe;e[30]===Symbol.for("react.memo_cache_sentinel")?(Oe=m.jsx(W_,{className:"size-4 text-muted-foreground"}),e[30]=Oe):Oe=e[30],we=Oe;break e}const oe=v?.icon;if(oe){let Oe;e[31]!==oe?(Oe=m.jsx(oe,{className:"size-4 text-muted-foreground"}),e[31]=oe,e[32]=Oe):Oe=e[32],we=Oe;break e}let Ae;e[33]===Symbol.for("react.memo_cache_sentinel")?(Ae=m.jsx(oL,{className:"size-4 text-muted-foreground"}),e[33]=Ae):Ae=e[33],we=Ae}let de;e[34]!==r||e[35]!==o?(de=m.jsx(fee,{annotations:r,toolMeta:o}),e[34]=r,e[35]=o,e[36]=de):de=e[36];let ce;e[37]!==a||e[38]!==i?(ce=m.jsx(mee,{latency:a,outputBytes:i}),e[37]=a,e[38]=i,e[39]=ce):ce=e[39];let ve;e[40]!==de||e[41]!==ce?(ve=m.jsxs(m.Fragment,{children:[de,ce]}),e[40]=de,e[41]=ce,e[42]=ve):ve=e[42];const je=he||null;let Re;e[43]!==re||e[44]!==N||e[45]!==ee||e[46]!==De||e[47]!==ve||e[48]!==je||e[49]!==we?(Re=m.jsx(Ce,{icon:we,iconDestructive:ee,trailing:ve,title:N,summary:De,state:re,detail:je}),e[43]=re,e[44]=N,e[45]=ee,e[46]=De,e[47]=ve,e[48]=je,e[49]=we,e[50]=Re):Re=e[50];let Ye;e[51]!==F||e[52]!==H||e[53]!==l?(Ye=F&&m.jsx("div",{className:"flex justify-end mt-1.5 mb-1",children:m.jsxs("button",{type:"button",onClick:H,className:"flex items-center gap-1.5 px-2 py-1 text-xs text-muted-foreground rounded-md [@media(hover:hover)]:hover:bg-accent/50 [@media(hover:hover)]:hover:text-foreground transition-colors",children:[m.jsx(sL,{className:"size-3.5"}),l("chat.generic.openInPanel")]})}),e[51]=F,e[52]=H,e[53]=l,e[54]=Ye):Ye=e[54];let He;e[55]!==F||e[56]!==p||e[57]!==T||e[58]!==N||e[59]!==w||e[60]!==B||e[61]!==L||e[62]!==k||e[63]!==f.id||e[64]!==f.slug||e[65]!==n.input||e[66]!==n.output||e[67]!==P||e[68]!==l||e[69]!==S||e[70]!==C?(He=L&&C&&T&&f?.id&&m.jsx(m.Fragment,{children:m.jsx(q_,{fallback:oe=>{const{resetError:Ae}=oe;return m.jsxs("div",{className:"mt-2 flex items-center gap-2 px-3 py-2.5 border border-dashed border-destructive/30 bg-destructive/5 rounded-lg",children:[m.jsx(dN,{size:16,className:"shrink-0 text-destructive"}),m.jsx("span",{className:"flex-1 text-xs text-destructive font-medium",children:l("chat.generic.failedToLoad",{toolName:N})}),m.jsxs(nr,{size:"sm",variant:"outline",className:"h-7 text-xs gap-1.5 shrink-0",onClick:Ae,children:[m.jsx(G_,{className:"size-3.5"}),l("chat.generic.retry")]})]})},children:m.jsx(U.Suspense,{fallback:m.jsx("div",{className:"mt-2 flex items-center justify-center h-12 border border-border/75 rounded-lg overflow-hidden p-3",children:m.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[m.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),m.jsx("span",{className:"text-sm",children:l("chat.generic.loadingApp")})]})}),children:m.jsx(yee,{uiResourceUri:C,connectionId:T,orgId:f.id,orgSlug:f.slug,toolName:S,toolInput:n.input,toolResult:n.output,toolMeta:k,onMessage:w,onUpdateModelContext:P&&p?oe=>p.setAppContext(P,oe):void 0,onTeardown:P&&p?()=>p.clearAppContext(P):void 0,onRequestDisplayMode:F?B:void 0})})})}),e[55]=F,e[56]=p,e[57]=T,e[58]=N,e[59]=w,e[60]=B,e[61]=L,e[62]=k,e[63]=f.id,e[64]=f.slug,e[65]=n.input,e[66]=n.output,e[67]=P,e[68]=l,e[69]=S,e[70]=C,e[71]=He):He=e[71];let Ze;return e[72]!==Re||e[73]!==Ye||e[74]!==He?(Ze=m.jsxs("div",{children:[Re,Ye,He]}),e[72]=Re,e[73]=Ye,e[74]=He,e[75]=Ze):Ze=e[75],Ze}function B2(t){return typeof t=="object"&&t!=null&&"type"in t&&t.type==="mcpToolCall"}function bee(t){if(t!=null)return B2(t)?t.arguments??void 0:t}function Eee(t){if(t==null)return;if(B2(t)&&t.result!=null)return t.result;if(typeof t=="object"&&"content"in t&&Array.isArray(t.content)){const n=t.content;if(n.length>0&&typeof n[0]=="object"&&n[0]!=null&&"type"in n[0])return t}const e=typeof t=="string"?t:JSON.stringify(t);return{structuredContent:typeof t=="object"&&!Array.isArray(t)?t:void 0,content:[{type:"text",text:e}]}}function yee(t){const e=W.c(27),{uiResourceUri:n,connectionId:r,orgId:a,orgSlug:i,toolName:s,toolInput:o,toolResult:l,toolMeta:u,onMessage:c,onUpdateModelContext:d,onTeardown:p,onRequestDisplayMode:f}=t;let h;e[0]!==r||e[1]!==a||e[2]!==i?(h={connectionId:r,orgId:a,orgSlug:i},e[0]=r,e[1]=a,e[2]=i,e[3]=h):h=e[3];const g=hb(h);let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b={type:"object"},e[4]=b):b=e[4];let y;e[5]!==u?(y=u!=null&&{_meta:u},e[5]=u,e[6]=y):y=e[6];let T;e[7]!==y||e[8]!==s?(T={name:s,inputSchema:b,...y},e[7]=y,e[8]=s,e[9]=T):T=e[9];const x=T;let k;e[10]!==x?(k={tool:x},e[10]=x,e[11]=k):k=e[11];let A;e[12]!==o?(A=bee(o),e[12]=o,e[13]=A):A=e[13];let S;e[14]!==l?(S=Eee(l),e[14]=l,e[15]=S):S=e[15];let v;return e[16]!==g||e[17]!==c||e[18]!==f||e[19]!==p||e[20]!==d||e[21]!==a||e[22]!==k||e[23]!==A||e[24]!==S||e[25]!==n?(v=m.jsx("div",{className:"mt-2 border border-border/75 rounded-lg overflow-hidden p-3",children:m.jsx(HL,{resourceURI:n,orgId:a,toolInfo:k,toolInput:A,toolResult:S,client:g,onMessage:c,onUpdateModelContext:d,onTeardown:p,onRequestDisplayMode:f})}),e[16]=g,e[17]=c,e[18]=f,e[19]=p,e[20]=d,e[21]=a,e[22]=k,e[23]=A,e[24]=S,e[25]=n,e[26]=v):v=e[26],v}const A_="studio-storage://",__="mesh-storage://";function ru(t){return t.startsWith(A_)?t.slice(A_.length):t.startsWith(__)?t.slice(__.length):null}function U2(t,e){const n=ru(t);return n!==null?`/api/${e}/files/${n}`:t}function Tee(t){return Array.isArray(t?.images)?t.images:void 0}function See(t){if(!t?.usage)return null;const e=t.usage.inputTokens??0,n=t.usage.outputTokens??0,r=e+n;return r?{inputTokens:e,outputTokens:n,reasoningTokens:0,totalTokens:r,cost:0,cacheReadTokens:0,cacheWriteTokens:0}:null}function xee(t){const e=W.c(14),{uri:n,orgSlug:r}=t,a=fe();let i;e[0]!==r||e[1]!==n?(i=U2(n,r),e[0]=r,e[1]=n,e[2]=i):i=e[2];const s=i;let o;e[3]!==a||e[4]!==n?(o=ru(n)!==null?n.slice(n.lastIndexOf("/")+1):a("chat.generateImage.reference"),e[3]=a,e[4]=n,e[5]=o):o=e[5];const l=o;let u;e[6]!==l?(u=m.jsx(Zr,{asChild:!0,children:m.jsx("span",{className:"inline-flex items-center gap-1 px-1 py-0.5 rounded bg-muted text-muted-foreground text-xs cursor-default select-none",children:l})}),e[6]=l,e[7]=u):u=e[7];let c;e[8]!==l||e[9]!==s?(c=m.jsx(Qr,{side:"top",className:"max-w-sm p-1.5",children:m.jsx("img",{src:s,alt:l,className:"max-w-full max-h-64 object-contain rounded"})}),e[8]=l,e[9]=s,e[10]=c):c=e[10];let d;return e[11]!==u||e[12]!==c?(d=m.jsxs(Jr,{children:[u,c]}),e[11]=u,e[12]=c,e[13]=d):d=e[13],d}function kee(t){const e=W.c(75),{part:n,latency:r}=t,a=fe(),i=fb();let s;e[0]!==n.state?(s=Sn(n.state),e[0]=n.state,e[1]=s):s=e[1];const o=s,l=n.input,u=n.output;let c,d,p,f,h;if(e[2]!==l||e[3]!==r||e[4]!==i||e[5]!==n||e[6]!==u||e[7]!==o||e[8]!==a){h=Symbol.for("react.early_return_sentinel");e:{const y=Tee(u);let T;e[14]!==u?(T=See(u),e[14]=u,e[15]=T):T=e[15];const x=T,k=u?.model,A=Array.isArray(l?.referenceImages)?l.referenceImages.filter(vee):void 0;let S;e[16]!==r?(S=r!=null&&r>0?m.jsx("span",{className:"text-[11px] font-mono tabular-nums text-muted-foreground/60",children:Ar(r)}):null,e[16]=r,e[17]=S):S=e[17];const v=S;if(o==="loading"){let F;e[18]===Symbol.for("react.memo_cache_sentinel")?(F=m.jsx(Rs,{size:14}),e[18]=F):F=e[18];let M;e[19]!==a?(M=a("chat.generateImage.generatingImage"),e[19]=a,e[20]=M):M=e[20];let H;e[21]!==l?(H=l?.prompt?`"${l.prompt.slice(0,80)}…"`:void 0,e[21]=l,e[22]=H):H=e[22];let j;e[23]!==M||e[24]!==H?(j=m.jsx(Ce,{icon:F,title:M,summary:H,state:"loading"}),e[23]=M,e[24]=H,e[25]=j):j=e[25],h=j;break e}if(u?.background){let F;e[26]===Symbol.for("react.memo_cache_sentinel")?(F=m.jsx(Rs,{size:14}),e[26]=F):F=e[26];let M;e[27]!==a?(M=a("chat.generateImage.imageQueuedGeneratingInBackground"),e[27]=a,e[28]=M):M=e[28];let H;e[29]!==l?(H=l?.prompt?`"${l.prompt.slice(0,80)}…"`:void 0,e[29]=l,e[30]=H):H=e[30];let j;e[31]!==M||e[32]!==H?(j=m.jsx(Ce,{icon:F,title:M,summary:H,state:"idle"}),e[31]=M,e[32]=H,e[33]=j):j=e[33],h=j;break e}if(o==="error"||!y||y.length===0){let F;e[34]!==n||e[35]!==o?(F=o==="error"?nu(n):void 0,e[34]=n,e[35]=o,e[36]=F):F=e[36];const M=F;let H="";l!==void 0&&(H=`# Input
|
|
268
|
+
`+dl(l)),M?(H&&(H=H+`
|
|
269
|
+
|
|
270
|
+
`),H=H+(`# Error
|
|
271
|
+
`+M)):u!==void 0&&(H&&(H=H+`
|
|
272
|
+
|
|
273
|
+
`),H=H+(`# Output
|
|
274
|
+
`+dl(u)));let j;e[37]===Symbol.for("react.memo_cache_sentinel")?(j=m.jsx(Rs,{size:14}),e[37]=j):j=e[37];let B;e[38]!==a?(B=a("chat.generateImage.imageGeneration"),e[38]=a,e[39]=B):B=e[39];let Y;e[40]!==o||e[41]!==a?(Y=a(o==="error"?"chat.generateImage.failed":"chat.generateImage.noImagesGenerated"),e[40]=o,e[41]=a,e[42]=Y):Y=e[42];const w=o==="error"?"error":"idle",V=H||null;let ee;e[43]!==v||e[44]!==B||e[45]!==Y||e[46]!==w||e[47]!==V||e[48]!==x?(ee=m.jsx(Ce,{icon:j,title:B,summary:Y,state:w,usage:x,trailing:v,detail:V}),e[43]=v,e[44]=B,e[45]=Y,e[46]=w,e[47]=V,e[48]=x,e[49]=ee):ee=e[49],h=ee;break e}p="flex flex-col gap-2";let N;e[50]===Symbol.for("react.memo_cache_sentinel")?(N=m.jsx(Rs,{size:14,className:"text-pink-500"}),e[50]=N):N=e[50];let _;e[51]!==a?(_=a("chat.generateImage.generatedImage"),e[51]=a,e[52]=_):_=e[52];let C;e[53]!==l?(C=l?.prompt&&m.jsx("p",{className:"text-xs text-muted-foreground/70 whitespace-pre-wrap wrap-break-word",children:l.prompt}),e[53]=l,e[54]=C):C=e[54];const L=A&&A.length>0&&m.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[m.jsx("span",{className:"text-[11px] text-muted-foreground/50",children:a("chat.generateImage.references")}),A.map((F,M)=>{const H=F.uri??F.url;return m.jsx(xee,{uri:H,orgSlug:i.slug},M)})]});let P;e[55]!==C||e[56]!==L?(P=m.jsxs("div",{className:"flex flex-col gap-1 pb-2 pl-6",children:[C,L]}),e[55]=C,e[56]=L,e[57]=P):P=e[57],e[58]!==v||e[59]!==k||e[60]!==_||e[61]!==P||e[62]!==x?(f=m.jsx(Ce,{icon:N,title:_,summary:k,state:"idle",usage:x,trailing:v,children:P}),e[58]=v,e[59]=k,e[60]=_,e[61]=P,e[62]=x,e[63]=f):f=e[63],c="flex flex-wrap gap-2";let $;e[64]!==l?.prompt||e[65]!==i||e[66]!==a?($=(F,M)=>{const H=F.uri??F.url;if(!H)return null;const j=U2(H,i.slug);return m.jsx(z0,{src:j,alt:l?.prompt??a("chat.generateImage.generatedImageAlt"),children:m.jsx("img",{src:j,alt:l?.prompt??a("chat.generateImage.generatedImageAlt"),className:"max-w-sm max-h-80 object-contain rounded-lg border border-border hover:border-foreground/20 transition-colors"})},M)},e[64]=l?.prompt,e[65]=i,e[66]=a,e[67]=$):$=e[67],d=y.map($)}e[2]=l,e[3]=r,e[4]=i,e[5]=n,e[6]=u,e[7]=o,e[8]=a,e[9]=c,e[10]=d,e[11]=p,e[12]=f,e[13]=h}else c=e[9],d=e[10],p=e[11],f=e[12],h=e[13];if(h!==Symbol.for("react.early_return_sentinel"))return h;let g;e[68]!==c||e[69]!==d?(g=m.jsx("div",{className:c,children:d}),e[68]=c,e[69]=d,e[70]=g):g=e[70];let b;return e[71]!==p||e[72]!==f||e[73]!==g?(b=m.jsxs("div",{className:p,children:[f,g]}),e[71]=p,e[72]=f,e[73]=g,e[74]=b):b=e[74],b}function vee(t){return t.uri??t.url}function Aee(t,e){const n=ru(t);return n!==null?`/api/${e}/files/${n}`:t}function _ee(t){const e=W.c(44),{part:n,latency:r}=t,a=fe(),i=fb(),s=Sn(n.state),o=n.input,l=n.output,u=l?.image?.uri,c=l?.url??o?.url;let d;e[0]!==r?(d=r!=null&&r>0?m.jsx("span",{className:"text-[11px] font-mono tabular-nums text-muted-foreground/60",children:Ar(r)}):null,e[0]=r,e[1]=d):d=e[1];const p=d;if(s==="loading"){let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx(Ai,{size:14}),e[2]=v):v=e[2];let N;e[3]!==a?(N=a("chat.takeScreenshot.taking"),e[3]=a,e[4]=N):N=e[4];let _;return e[5]!==c||e[6]!==N?(_=m.jsx(Ce,{icon:v,title:N,summary:c,state:"loading"}),e[5]=c,e[6]=N,e[7]=_):_=e[7],_}if(s==="error"||l?.success===!1||!u){let v;e[8]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx(Ai,{size:14}),e[8]=v):v=e[8];let N;e[9]!==a?(N=a("chat.takeScreenshot.title"),e[9]=a,e[10]=N):N=e[10];let _;e[11]!==l?.error||e[12]!==a?(_=l?.error??a("chat.takeScreenshot.failed"),e[11]=l?.error,e[12]=a,e[13]=_):_=e[13];let C;return e[14]!==p||e[15]!==N||e[16]!==_?(C=m.jsx(Ce,{icon:v,title:N,summary:_,state:"error",trailing:p}),e[14]=p,e[15]=N,e[16]=_,e[17]=C):C=e[17],C}let f;e[18]!==i.slug||e[19]!==u?(f=Aee(u,i.slug),e[18]=i.slug,e[19]=u,e[20]=f):f=e[20];const h=f;let g;e[21]===Symbol.for("react.memo_cache_sentinel")?(g=m.jsx(Ai,{size:14,className:"text-blue-500"}),e[21]=g):g=e[21];let b;e[22]!==a?(b=a("chat.takeScreenshot.screenshot"),e[22]=a,e[23]=b):b=e[23];let y;e[24]!==p||e[25]!==c||e[26]!==b?(y=m.jsx(Ce,{icon:g,title:b,summary:c,state:"idle",trailing:p}),e[24]=p,e[25]=c,e[26]=b,e[27]=y):y=e[27];let T;e[28]!==c||e[29]!==a?(T=c??a("chat.takeScreenshot.screenshotAlt"),e[28]=c,e[29]=a,e[30]=T):T=e[30];let x;e[31]!==c||e[32]!==a?(x=c??a("chat.takeScreenshot.screenshotAlt"),e[31]=c,e[32]=a,e[33]=x):x=e[33];let k;e[34]!==h||e[35]!==x?(k=m.jsx("img",{src:h,alt:x,className:"max-w-sm max-h-80 object-contain rounded-lg border border-border hover:border-foreground/20 transition-colors"}),e[34]=h,e[35]=x,e[36]=k):k=e[36];let A;e[37]!==h||e[38]!==T||e[39]!==k?(A=m.jsx("div",{className:"flex flex-wrap gap-2",children:m.jsx(z0,{src:h,alt:T,children:k})}),e[37]=h,e[38]=T,e[39]=k,e[40]=A):A=e[40];let S;return e[41]!==y||e[42]!==A?(S=m.jsxs("div",{className:"flex flex-col gap-2",children:[y,A]}),e[41]=y,e[42]=A,e[43]=S):S=e[43],S}function Nee(t,e){const n=ru(t);return n!==null?`/api/${e}/files/${n}`:t}function Cee(t){if(!t?.usage)return null;const e=t.usage.inputTokens??0,n=t.usage.outputTokens??0,r=e+n;if(!r)return null;const a={providerMetadata:t.usage.providerMetadata};return{inputTokens:e,outputTokens:n,reasoningTokens:0,totalTokens:r,cost:mN(a),cacheReadTokens:0,cacheWriteTokens:0}}function wee(t){try{return new URL(t).hostname.replace(/^www\./,"")}catch{return t}}function Iee(t){try{return`${new URL(t).origin}/favicon.ico`}catch{return""}}function Ree(t){const e=W.c(16),{citation:n,index:r}=t;let a;e[0]!==n.url?(a=wee(n.url),e[0]=n.url,e[1]=a):a=e[1];const i=a;let s;e[2]!==n.url?(s=Iee(n.url),e[2]=n.url,e[3]=s):s=e[3];const o=s,l=n.title||i;let u;e[4]!==o?(u=m.jsx("img",{src:o,alt:"",className:"size-3.5 rounded-sm shrink-0",onError:Oee}),e[4]=o,e[5]=u):u=e[5];let c;e[6]!==l?(c=m.jsx("span",{className:"truncate max-w-[180px]",children:l}),e[6]=l,e[7]=c):c=e[7];const d=r+1;let p;e[8]!==d?(p=m.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums shrink-0",children:["[",d,"]"]}),e[8]=d,e[9]=p):p=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(fN,{size:10,className:"shrink-0 opacity-0 group-hover/src:opacity-100 transition-opacity"}),e[10]=f):f=e[10];let h;return e[11]!==n.url||e[12]!==u||e[13]!==c||e[14]!==p?(h=m.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"group/src inline-flex items-center gap-1.5 rounded-md border border-border/50 bg-muted/30 px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted/60 hover:border-border hover:text-foreground",children:[u,c,p,f]}),e[11]=n.url,e[12]=u,e[13]=c,e[14]=p,e[15]=h):h=e[15],h}function Oee(t){t.target.style.display="none"}function Lee(t,e){return t.replace(/\[(\d+)\]/g,(n,r)=>{const a=parseInt(r,10)-1,i=e[a];return i?`[\\[${r}\\]](${i.url})`:n})}const Hm=5;function Dee(t){const e=W.c(13),{citations:n}=t,r=fe(),[a,i]=U.useState(!1),s=n.length>Hm;let o;e[0]!==n||e[1]!==a?(o=a?n:n.slice(0,Hm),e[0]=n,e[1]=a,e[2]=o):o=e[2];const l=o;let u;e[3]!==l?(u=l.map(Pee),e[3]=l,e[4]=u):u=e[4];let c;e[5]!==n.length||e[6]!==a||e[7]!==s||e[8]!==r?(c=s&&m.jsx("button",{type:"button",onClick:()=>i(Mee),className:"inline-flex items-center rounded-md border border-border/50 bg-muted/30 px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted/60 hover:border-border hover:text-foreground",children:a?r("chat.webSearch.showLess"):r("chat.webSearch.showMore",{count:n.length-Hm})}),e[5]=n.length,e[6]=a,e[7]=s,e[8]=r,e[9]=c):c=e[9];let d;return e[10]!==u||e[11]!==c?(d=m.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[u,c]}),e[10]=u,e[11]=c,e[12]=d):d=e[12],d}function Mee(t){return!t}function Pee(t,e){return m.jsx(Ree,{citation:t,index:e},t.url)}function Fee(t){const e=W.c(60),{part:n,latency:r,streamingText:a}=t,i=fe(),s=fb();let o;e[0]!==n.state?(o=Sn(n.state),e[0]=n.state,e[1]=o):o=e[1];const l=o,u=n.input,c=n.output;let d,p,f;e[2]!==s||e[3]!==c?(d=c?.uri?Nee(c.uri,s.slug):void 0,f=ps,p=dn.webSearchBlob(d??""),e[2]=s,e[3]=c,e[4]=d,e[5]=p,e[6]=f):(d=e[4],p=e[5],f=e[6]);let h;e[7]!==d?(h=async()=>{const R=await fetch(d);if(!R.ok)throw new Error(`Failed to fetch: ${R.status}`);return R.text()},e[7]=d,e[8]=h):h=e[8];const g=!!d;let b;e[9]!==p||e[10]!==h||e[11]!==g?(b={queryKey:p,queryFn:h,enabled:g,staleTime:1/0},e[9]=p,e[10]=h,e[11]=g,e[12]=b):b=e[12];const{data:y}=f(b),T=l==="loading",x=l!=="loading"&&l!=="error",k=c?.citations;let A;e[13]!==c?(A=Cee(c),e[13]=c,e[14]=A):A=e[14];const S=A,v=c?.content??y??a;let N;e[15]!==k||e[16]!==v?(N=v&&k?.length?Lee(v,k):v,e[15]=k,e[16]=v,e[17]=N):N=e[17];const _=N;let C;e[18]!==r?(C=r!=null&&r>0?m.jsx("span",{className:"text-[11px] font-mono tabular-nums text-muted-foreground/60",children:Ar(r)}):null,e[18]=r,e[19]=C):C=e[19];const L=C;if(l==="error"){let R;e[20]===Symbol.for("react.memo_cache_sentinel")?(R=m.jsx(fo,{size:14}),e[20]=R):R=e[20];let ne;e[21]!==i?(ne=i("chat.webSearch.title"),e[21]=i,e[22]=ne):ne=e[22];let ie;e[23]!==i?(ie=i("chat.webSearch.failed"),e[23]=i,e[24]=ie):ie=e[24];let re;return e[25]!==L||e[26]!==ne||e[27]!==ie||e[28]!==S?(re=m.jsx(Ce,{icon:R,title:ne,summary:ie,state:"error",usage:S,trailing:L}),e[25]=L,e[26]=ne,e[27]=ie,e[28]=S,e[29]=re):re=e[29],re}const P=T?"animate-pulse":"text-blue-500";let $;e[30]!==P?($=ye(P),e[30]=P,e[31]=$):$=e[31];let F;e[32]!==$?(F=m.jsx(fo,{size:14,className:$}),e[32]=$,e[33]=F):F=e[33];let M;e[34]!==T||e[35]!==i?(M=i(T?"chat.webSearch.researching":"chat.webSearch.title"),e[34]=T,e[35]=i,e[36]=M):M=e[36];let H;e[37]!==u||e[38]!==x||e[39]!==c?.model?(H=x?c?.model??u?.query?.slice(0,60):u?.query?`"${u.query.slice(0,80)}"`:void 0,e[37]=u,e[38]=x,e[39]=c?.model,e[40]=H):H=e[40];const j=T?"loading":"idle";let B;e[41]!==u?(B=u?.query&&m.jsx("p",{className:"text-xs text-muted-foreground/70 whitespace-pre-wrap wrap-break-word",children:u.query}),e[41]=u,e[42]=B):B=e[42];let Y;e[43]!==_||e[44]!==n.toolCallId?(Y=_?m.jsx("div",{className:"max-h-96 overflow-y-auto overflow-x-hidden rounded-lg border border-border/40 bg-muted/20 px-4 py-3 min-w-0",children:m.jsx("div",{className:"prose prose-sm prose-neutral dark:prose-invert max-w-none text-[13px] leading-relaxed break-words",children:m.jsx(Ql,{id:n.toolCallId,text:_})})}):m.jsx("div",{className:"rounded-lg border border-border/40 bg-muted/20 px-4 py-3",children:m.jsxs("div",{className:"space-y-2 animate-pulse",children:[m.jsx("div",{className:"h-3 rounded bg-muted-foreground/10 w-3/4"}),m.jsx("div",{className:"h-3 rounded bg-muted-foreground/10 w-1/2"})]})}),e[43]=_,e[44]=n.toolCallId,e[45]=Y):Y=e[45];let w;e[46]!==k?(w=k&&k.length>0&&m.jsx(Dee,{citations:k}),e[46]=k,e[47]=w):w=e[47];let V;e[48]!==B||e[49]!==Y||e[50]!==w?(V=m.jsxs("div",{className:"pl-6 pb-3 flex flex-col gap-1 min-w-0",children:[B,Y,w]}),e[48]=B,e[49]=Y,e[50]=w,e[51]=V):V=e[51];let ee;return e[52]!==L||e[53]!==F||e[54]!==M||e[55]!==H||e[56]!==j||e[57]!==V||e[58]!==S?(ee=m.jsx(Ce,{icon:F,title:M,summary:H,state:j,usage:S,trailing:L,defaultOpen:!0,children:V}),e[52]=L,e[53]=F,e[54]=M,e[55]=H,e[56]=j,e[57]=V,e[58]=S,e[59]=ee):ee=e[59],ee}function Bee(t){const e=W.c(16),{part:n}=t,r=fe();if(!n.state.startsWith("output-"))return null;let a;e[0]!==n.input?.prompt||e[1]!==r?(a=n.input?.prompt?.trim()||r("chat.userAskQuestion.question"),e[0]=n.input?.prompt,e[1]=r,e[2]=a):a=e[2];const i=a,s=n.state==="output-error"||n.state==="output-denied",o=n.state==="output-denied";let l;e[3]!==o||e[4]!==n||e[5]!==r?(l=o?r("chat.userAskQuestion.skippedAnswer"):n.state==="output-error"?nu(n)??r("chat.subtask.errorLabel"):n.output?.response??"",e[3]=o,e[4]=n,e[5]=r,e[6]=l):l=e[6];const u=l;let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx(xL,{className:"size-4 text-muted-foreground/50 shrink-0 mt-0.5"}),e[7]=c):c=e[7];let d;e[8]!==i?(d=m.jsxs("div",{className:"flex items-start gap-2",children:[c,m.jsx("span",{className:"text-[14px] text-muted-foreground leading-snug",children:i})]}),e[8]=i,e[9]=d):d=e[9];let p;e[10]!==u||e[11]!==s?(p=u&&m.jsx("div",{className:"ml-6 pl-2 border-l border-border/50",children:m.jsx("span",{className:ye("text-[14px] leading-snug",s?"text-muted-foreground/50 italic":"text-foreground/70"),children:u})}),e[10]=u,e[11]=s,e[12]=p):p=e[12];let f;return e[13]!==d||e[14]!==p?(f=m.jsxs("div",{className:"my-1.5 flex flex-col gap-1",children:[d,p]}),e[13]=d,e[14]=p,e[15]=f):f=e[15],f}const j2=U.createContext(new Map);function ioe(t){const e=W.c(5),{messages:n,children:r}=t;let a;if(e[0]!==n){a=new Map;for(const s of n){const o=s.metadata?.subtaskJobId;if(!o)continue;const l=a.get(o);l?l.push(s):a.set(o,[s])}e[0]=n,e[1]=a}else a=e[1];let i;return e[2]!==a||e[3]!==r?(i=m.jsx(j2.Provider,{value:a,children:r}),e[2]=a,e[3]=r,e[4]=i):i=e[4],i}function Uee(t){const e=W.c(3),n=U.useContext(j2);let r;return e[0]!==t||e[1]!==n?(r=t?n.get(t)??[]:[],e[0]=t,e[1]=n,e[2]=r):r=e[2],r}function jee(t){return new ReadableStream({async start(e){const n=t.getReader(),r=new TextDecoder;let a="";try{for(;;){const{done:i,value:s}=await n.read();if(i)break;a+=r.decode(s,{stream:!0});let o;for(;(o=a.indexOf(`
|
|
275
|
+
|
|
276
|
+
`))!==-1;){const l=a.slice(0,o);a=a.slice(o+2);const u=l.split(`
|
|
277
|
+
`).filter(c=>c.startsWith("data:")).map(c=>c.slice(5).trim()).join(`
|
|
278
|
+
`);if(u)try{e.enqueue(JSON.parse(u))}catch{}}}}finally{n.releaseLock(),e.close()}}})}function Hee(t){const{orgSlug:e,threadId:n,jobId:r,enabled:a}=t,[i,s]=U.useState([]),[o,l]=U.useState(!1);return U.useEffect(()=>{if(!a||!r)return;const u=new AbortController;return s([]),l(!0),(async()=>{try{const c=await fetch(`/api/${encodeURIComponent(e)}/decopilot/threads/${encodeURIComponent(n)}/jobs/${encodeURIComponent(r)}/stream`,{headers:{accept:"text/event-stream"},credentials:"include",signal:u.signal});if(!c.ok||!c.body)return;for await(const d of PL({stream:FL(jee(c.body),void 0)})){if(u.signal.aborted)return;s([d])}}catch{}finally{u.signal.aborted||l(!1)}})(),()=>u.abort()},[a,r,n,e]),{messages:i,streaming:o}}function $ee(t,e){if(t&&typeof t=="object"&&!Array.isArray(t)){const n=t;if(typeof n.text=="string"||typeof n.error=="string"||typeof n.finishReason=="string"){if(typeof n.error=="string"&&n.error.length>0)return e("chat.subtask.failedWithError",{error:n.error});const a=typeof n.text=="string"?n.text.trim():"",i=n.finishReason==="length";return a?(i?`${e("chat.subtask.stepLimitPartial")}
|
|
279
|
+
|
|
280
|
+
`:"")+a:e(i?"chat.subtask.stepLimitNoOutput":"chat.subtask.completedNoOutput")}}return cee(t)}function H2(t){return!!t&&typeof t=="object"&&t.background===!0}function $2({part:t,subtaskMeta:e},n){const r=t.state==="input-streaming"||t.state==="input-available",a=t.state==="output-available"&&t.preliminary===!0,i=t.state==="output-available"&&!t.preliminary,s=t.state==="output-error",o=Sn(t.state,"preliminary"in t?t.preliminary:!1),l=o==="approval"?"idle":o,u=n(r?"chat.subtask.startingEllipsis":a?"chat.subtask.runningEllipsis":i?"chat.subtask.completedTitle":s?"chat.subtask.failedTitle":"chat.subtask.subtaskNoun"),c=t.input?.prompt??"",d=t.state==="approval-requested"?n("chat.subtask.awaitingApproval"):c.length>120?c.slice(0,120)+"…":c;return{fallbackTitle:u,summary:d,usage:e?.usage,state:l}}function z2(t){return t.state==="input-available"?!0:t.state==="output-available"?"preliminary"in t&&t.preliminary===!0:!1}function q2(t){const e=W.c(4),{taskId:n}=uN(),{org:r}=Pn();let a;return e[0]!==r.slug||e[1]!==n||e[2]!==t?(a=async()=>{const i=await fetch(`/api/${encodeURIComponent(r.slug)}/decopilot/flip/${encodeURIComponent(n)}`,{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({toolCallId:t})});if(!i.ok)throw new Error(`flip failed: ${i.status}`)},e[0]=r.slug,e[1]=n,e[2]=t,e[3]=a):a=e[3],a}function zee(t){const e=W.c(10),{onFlip:n}=t,r=fe(),[a,i]=U.useState(!1);let s;e[0]!==n?(s=async c=>{c.stopPropagation(),i(!0);try{await n()}catch{i(!1)}},e[0]=n,e[1]=s):s=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=ye("shrink-0 text-[12px] text-muted-foreground/70 px-2 py-1 rounded-md transition-colors","[@media(hover:hover)]:hover:text-foreground [@media(hover:hover)]:hover:bg-accent/40","disabled:opacity-50"),e[2]=o):o=e[2];let l;e[3]!==a||e[4]!==r?(l=r(a?"chat.subtask.flipping":"chat.subtask.flipToBackground"),e[3]=a,e[4]=r,e[5]=l):l=e[5];let u;return e[6]!==a||e[7]!==s||e[8]!==l?(u=m.jsx("button",{type:"button",disabled:a,onClick:s,className:o,children:l}),e[6]=a,e[7]=s,e[8]=l,e[9]=u):u=e[9],u}function oE(t){const e=W.c(54),{icon:n,title:r,summary:a,state:i,usage:s,latency:o,onOpenChange:l,onFlip:u,children:c}=t,[d,p]=U.useState(!1);let f;e[0]!==l?(f=R=>{p(R),l?.(R)},e[0]=l,e[1]=f):f=e[1];const h=f,g=i==="loading",b=i==="error";let y;e[2]!==h?(y=()=>h(!0),e[2]=h,e[3]=y):y=e[3];const T=g&&"shimmer";let x;e[4]!==T?(x=ye("group/tool flex items-center gap-2 flex-1 min-w-0 py-2.5 text-left rounded-md transition-colors","[@media(hover:hover)]:hover:bg-accent/30",T),e[4]=T,e[5]=x):x=e[5];const k=b?"[&>svg]:text-warning/70":"[&>svg]:text-muted-foreground/75";let A;e[6]!==k?(A=ye("relative shrink-0 size-4 flex items-center justify-center [&>svg]:size-4",k),e[6]=k,e[7]=A):A=e[7];let S;e[8]!==n||e[9]!==A?(S=m.jsx("div",{className:A,children:n}),e[8]=n,e[9]=A,e[10]=S):S=e[10];const v=b?"text-warning/80":"text-foreground";let N;e[11]!==v?(N=ye("shrink-0 text-[14px] font-normal",v),e[11]=v,e[12]=N):N=e[12];let _;e[13]!==N||e[14]!==r?(_=m.jsx("span",{className:N,children:r}),e[13]=N,e[14]=r,e[15]=_):_=e[15];let C;e[16]!==a?(C=a?m.jsx("span",{className:"min-w-0 flex-1 truncate",children:m.jsx("span",{className:"text-[12px] text-muted-foreground/60 bg-muted/50 rounded-[3px] px-1 py-px leading-none",children:a})}):m.jsx("div",{className:"flex-1"}),e[16]=a,e[17]=C):C=e[17];let L;e[18]===Symbol.for("react.memo_cache_sentinel")?(L=m.jsx(XL,{className:"size-3.5 shrink-0 text-muted-foreground/40 opacity-0 transition-opacity [@media(hover:hover)]:group-hover/tool:opacity-100"}),e[18]=L):L=e[18];let P;e[19]!==o?(P=m.jsx(Et,{latency:o}),e[19]=o,e[20]=P):P=e[20];let $;e[21]!==s?($=m.jsx(R2,{usage:s}),e[21]=s,e[22]=$):$=e[22];let F;e[23]!==_||e[24]!==C||e[25]!==P||e[26]!==$||e[27]!==y||e[28]!==x||e[29]!==S?(F=m.jsxs("button",{type:"button",onClick:y,className:x,children:[S,_,C,L,P,$]}),e[23]=_,e[24]=C,e[25]=P,e[26]=$,e[27]=y,e[28]=x,e[29]=S,e[30]=F):F=e[30];let M;e[31]!==g||e[32]!==u?(M=u&&g?m.jsx(zee,{onFlip:u}):null,e[31]=g,e[32]=u,e[33]=M):M=e[33];let H;e[34]!==F||e[35]!==M?(H=m.jsxs("div",{className:"flex items-center gap-1 w-full",children:[F,M]}),e[34]=F,e[35]=M,e[36]=H):H=e[36];let j;e[37]!==n?(j=m.jsx("span",{className:"flex items-center [&>svg]:size-4 [&>svg]:text-muted-foreground/75",children:n}),e[37]=n,e[38]=j):j=e[38];let B;e[39]!==j||e[40]!==r?(B=m.jsx(X_,{className:"px-4 py-3 border-b border-border shrink-0",children:m.jsxs(Z_,{className:"flex items-center gap-2 text-sm font-medium",children:[j,r]})}),e[39]=j,e[40]=r,e[41]=B):B=e[41];let Y;e[42]!==c?(Y=m.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 py-4",children:c}),e[42]=c,e[43]=Y):Y=e[43];let w;e[44]!==B||e[45]!==Y?(w=m.jsxs(mb,{side:"right",className:"w-full sm:max-w-2xl flex flex-col p-0 gap-0",children:[B,Y]}),e[44]=B,e[45]=Y,e[46]=w):w=e[46];let V;e[47]!==d||e[48]!==h||e[49]!==w?(V=m.jsx(gb,{open:d,onOpenChange:h,children:w}),e[47]=d,e[48]=h,e[49]=w,e[50]=V):V=e[50];let ee;return e[51]!==H||e[52]!==V?(ee=m.jsxs(m.Fragment,{children:[H,V]}),e[51]=H,e[52]=V,e[53]=ee):ee=e[53],ee}function G2(t){const e=W.c(22),{part:n}=t,r=fe(),a=n.state==="output-error";let i;e[0]!==n.input?.prompt||e[1]!==r?(i=n.input?.prompt??r("chat.subtask.noPromptProvided"),e[0]=n.input?.prompt,e[1]=r,e[2]=i):i=e[2];const s=i;let o;if(e[3]!==a||e[4]!==n||e[5]!==s||e[6]!==r){const l=a?nu(n):$ee(n.output,r)??"";let u;e[8]!==r?(u=r("chat.subtask.taskLabel"),e[8]=r,e[9]=u):u=e[9];let c;e[10]!==u?(c=m.jsx("h3",{className:"text-xs font-medium text-muted-foreground/70 mb-1.5",children:u}),e[10]=u,e[11]=c):c=e[11];let d;e[12]!==s?(d=m.jsx("p",{className:"text-[13px] text-foreground/90 whitespace-pre-wrap wrap-break-word",children:s}),e[12]=s,e[13]=d):d=e[13];let p;e[14]!==c||e[15]!==d?(p=m.jsxs("section",{children:[c,d]}),e[14]=c,e[15]=d,e[16]=p):p=e[16];let f;e[17]!==a||e[18]!==r?(f=r(a?"chat.subtask.errorLabel":"chat.subtask.resultLabel"),e[17]=a,e[18]=r,e[19]=f):f=e[19];let h;e[20]!==f?(h=m.jsx("h3",{className:"text-xs font-medium text-muted-foreground/70 mb-1.5",children:f}),e[20]=f,e[21]=h):h=e[21],o=m.jsxs("div",{className:"flex flex-col gap-4",children:[p,m.jsxs("section",{children:[h,l.trim()?m.jsx(Ql,{id:`${n.toolCallId}-result`,text:l}):m.jsx("p",{className:"text-[13px] text-muted-foreground/60 italic",children:r("chat.subtask.running")})]})]}),e[3]=a,e[4]=n,e[5]=s,e[6]=r,e[7]=o}else o=e[7];return o}const $m=600;function qee(t){const e=W.c(12),{part:n}=t,r=n.type??"";let a;e[0]!==n.toolName||e[1]!==r?(a=r==="dynamic-tool"?n.toolName??"tool":r.slice(5),e[0]=n.toolName,e[1]=r,e[2]=a):a=e[2];const i=a;let s;if(e[3]!==n.input){const p=n.input!=null?JSON.stringify(n.input):"";s=p.length>80?`${p.slice(0,80)}…`:p||void 0,e[3]=n.input,e[4]=s}else s=e[4];const o=s;let l;if(e[5]!==n.input){const p=n.input!=null?JSON.stringify(n.input,null,2):null;l=p&&p.length>$m?`${p.slice(0,$m)}
|
|
281
|
+
… (${p.length-$m} more characters)`:p,e[5]=n.input,e[6]=l}else l=e[6];const u=l;let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx(aN,{}),e[7]=c):c=e[7];let d;return e[8]!==u||e[9]!==i||e[10]!==o?(d=m.jsx(Ce,{icon:c,title:i,summary:o,state:"idle",detail:u,detailVariant:"code"}),e[8]=u,e[9]=i,e[10]=o,e[11]=d):d=e[11],d}function Gee(t){const e=W.c(19),{jobId:n,prompt:r,items:a,streaming:i}=t,s=fe();let o;e[0]!==s?(o=s("chat.subtask.taskLabel"),e[0]=s,e[1]=o):o=e[1];let l;e[2]!==o?(l=m.jsx("h3",{className:"text-xs font-medium text-muted-foreground/70 mb-1.5",children:o}),e[2]=o,e[3]=l):l=e[3];let u;e[4]!==r?(u=m.jsx("p",{className:"text-[13px] text-foreground/90 whitespace-pre-wrap wrap-break-word",children:r}),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==l||e[7]!==u?(c=m.jsxs("section",{children:[l,u]}),e[6]=l,e[7]=u,e[8]=c):c=e[8];let d;e[9]!==a||e[10]!==n||e[11]!==i||e[12]!==s?(d=a.length===0?m.jsx("p",{className:"text-[13px] text-muted-foreground/60 italic py-1",children:s("chat.subtask.runningInBackground")}):a.map((h,g)=>{const b=h,y=b.type??"";return y==="text"?b.text?.trim()?m.jsx(Jl,{id:`${n}-sub-${g}`,part:h,animate:i},`${n}-sub-${g}`):null:y==="dynamic-tool"||y.startsWith("tool-")&&y!=="tool-todo_write"&&y!=="tool-update_interests"?m.jsx(qee,{part:b},`${n}-sub-${g}`):null}),e[9]=a,e[10]=n,e[11]=i,e[12]=s,e[13]=d):d=e[13];let p;e[14]!==d?(p=m.jsx("section",{className:"flex flex-col gap-3 sm:gap-2",children:d}),e[14]=d,e[15]=p):p=e[15];let f;return e[16]!==c||e[17]!==p?(f=m.jsxs("div",{className:"flex flex-col gap-4",children:[c,p]}),e[16]=c,e[17]=p,e[18]=f):f=e[18],f}function W2(t){const e=W.c(32),{part:n}=t,r=fe(),a=n.output?.jobId,{taskId:i}=uN(),{org:s}=Pn(),[o,l]=U.useState(!1),u=Uee(a);let c;e[0]!==a||e[1]!==o||e[2]!==s.slug||e[3]!==i?(c={orgSlug:s.slug,threadId:i,jobId:a,enabled:o},e[0]=a,e[1]=o,e[2]=s.slug,e[3]=i,e[4]=c):c=e[4];const d=Hee(c);let p;e[5]!==d.messages?(p=d.messages.flatMap(Vee),e[5]=d.messages,e[6]=p):p=e[6];const f=p;let h;e[7]!==u?(h=u.flatMap(Wee),e[7]=u,e[8]=h):h=e[8];const g=h,b=f.length>0?f:g;let y;e[9]!==n.input?.prompt||e[10]!==r?(y=n.input?.prompt??r("chat.subtask.noPromptProvided"),e[9]=n.input?.prompt,e[10]=r,e[11]=y):y=e[11];const T=y;let x;e[12]!==T?(x=T.length>120?`${T.slice(0,120)}…`:T,e[12]=T,e[13]=x):x=e[13];const k=x,A=u.length===0;let S;e[14]!==r?(S=r("chat.subtask.subtaskNoun"),e[14]=r,e[15]=S):S=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx(xb,{}),e[16]=v):v=e[16];let N;e[17]!==S?(N=m.jsx(wr,{icon:void 0,name:S,size:"2xs",className:"rounded-xs",fallbackIcon:v}),e[17]=S,e[18]=N):N=e[18];let _;e[19]!==r?(_=r("chat.subtask.subtaskNoun"),e[19]=r,e[20]=_):_=e[20];const C=A?"loading":"idle",L=d.streaming||A;let P;e[21]!==b||e[22]!==a||e[23]!==T||e[24]!==L?(P=m.jsx(Gee,{jobId:a,prompt:T,items:b,streaming:L}),e[21]=b,e[22]=a,e[23]=T,e[24]=L,e[25]=P):P=e[25];let $;return e[26]!==k||e[27]!==C||e[28]!==P||e[29]!==N||e[30]!==_?($=m.jsx(oE,{icon:N,title:_,summary:k,state:C,onOpenChange:l,children:P}),e[26]=k,e[27]=C,e[28]=P,e[29]=N,e[30]=_,e[31]=$):$=e[31],$}function Wee(t){return t.parts??[]}function Vee(t){return t.parts??[]}function Yee(t){const e=W.c(24),n=fe(),r=q2(t.part.toolCallId);if(H2(t.part.output)){let g;return e[0]!==t?(g=m.jsx(W2,{...t}),e[0]=t,e[1]=g):g=e[1],g}let a;e[2]!==t||e[3]!==n?(a=$2(t,n),e[2]=t,e[3]=n,e[4]=a):a=e[4];const{fallbackTitle:i,summary:s,usage:o,state:l}=a;let u;e[5]!==n?(u=n("chat.subtask.subtaskNoun"),e[5]=n,e[6]=u):u=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx(xb,{}),e[7]=c):c=e[7];let d;e[8]!==u?(d=m.jsx(wr,{icon:void 0,name:u,size:"2xs",className:"rounded-xs",fallbackIcon:c}),e[8]=u,e[9]=d):d=e[9];let p;e[10]!==r||e[11]!==t.part?(p=z2(t.part)?r:void 0,e[10]=r,e[11]=t.part,e[12]=p):p=e[12];let f;e[13]!==t.part?(f=m.jsx(G2,{part:t.part}),e[13]=t.part,e[14]=f):f=e[14];let h;return e[15]!==i||e[16]!==t.latency||e[17]!==l||e[18]!==s||e[19]!==d||e[20]!==p||e[21]!==f||e[22]!==o?(h=m.jsx(oE,{icon:d,title:i,summary:s,state:l,usage:o,latency:t.latency,onFlip:p,children:f}),e[15]=i,e[16]=t.latency,e[17]=l,e[18]=s,e[19]=d,e[20]=p,e[21]=f,e[22]=o,e[23]=h):h=e[23],h}function Kee(t){const e=W.c(26),n=fe(),r=K_(t.part.input?.agent_id),a=q2(t.part.toolCallId);if(H2(t.part.output)){let T;return e[0]!==t?(T=m.jsx(W2,{...t}),e[0]=t,e[1]=T):T=e[1],T}let i;e[2]!==t||e[3]!==n?(i=$2(t,n),e[2]=t,e[3]=n,e[4]=i):i=e[4];const{fallbackTitle:s,summary:o,usage:l,state:u}=i,c=r?.icon;let d;e[5]!==n||e[6]!==r?.title?(d=r?.title??n("chat.subtask.subtaskNoun"),e[5]=n,e[6]=r?.title,e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx(xb,{}),e[8]=p):p=e[8];let f;e[9]!==c||e[10]!==d?(f=m.jsx(wr,{icon:c,name:d,size:"2xs",className:"rounded-xs",fallbackIcon:p}),e[9]=c,e[10]=d,e[11]=f):f=e[11];const h=r?.title??s;let g;e[12]!==a||e[13]!==t.part?(g=z2(t.part)?a:void 0,e[12]=a,e[13]=t.part,e[14]=g):g=e[14];let b;e[15]!==t.part?(b=m.jsx(G2,{part:t.part}),e[15]=t.part,e[16]=b):b=e[16];let y;return e[17]!==t.latency||e[18]!==u||e[19]!==o||e[20]!==f||e[21]!==h||e[22]!==g||e[23]!==b||e[24]!==l?(y=m.jsx(oE,{icon:f,title:h,summary:o,state:u,usage:l,latency:t.latency,onFlip:g,children:b}),e[17]=t.latency,e[18]=u,e[19]=o,e[20]=f,e[21]=h,e[22]=g,e[23]=b,e[24]=l,e[25]=y):y=e[25],y}function Xee(t){const e=W.c(28),{part:n}=t,r=fe();if(!n.state.startsWith("output-"))return null;const a=n.input?.plan??"",s=n.output?.approved===!0;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx(eg,{className:"size-4 text-purple-500 shrink-0"}),e[0]=o):o=e[0];let l;e[1]!==r?(l=r("chat.proposePlan.implementationPlan"),e[1]=r,e[2]=l):l=e[2];let u;e[3]!==l?(u=m.jsx("span",{className:"text-[14px] font-medium text-foreground/80",children:l}),e[3]=l,e[4]=u):u=e[4];let c;e[5]!==s||e[6]!==r?(c=s&&m.jsxs("span",{className:"flex items-center gap-1 text-xs text-success bg-success/10 px-1.5 py-0.5 rounded-md",children:[m.jsx(fs,{size:12}),r("chat.proposePlan.approved")]}),e[5]=s,e[6]=r,e[7]=c):c=e[7];let d;e[8]!==s||e[9]!==n.state||e[10]!==r?(d=!s&&n.state==="output-available"&&m.jsx("span",{className:"text-xs text-muted-foreground/70 italic",children:r("chat.proposePlan.rejected")}),e[8]=s,e[9]=n.state,e[10]=r,e[11]=d):d=e[11];let p;e[12]!==u||e[13]!==c||e[14]!==d?(p=m.jsxs("div",{className:"flex items-center gap-2",children:[o,u,c,d]}),e[12]=u,e[13]=c,e[14]=d,e[15]=p):p=e[15];let f;e[16]!==r?(f=r("chat.proposePlan.viewPlan"),e[16]=r,e[17]=f):f=e[17];let h;e[18]!==f?(h=m.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground transition-colors",children:f}),e[18]=f,e[19]=h):h=e[19];let g;e[20]!==a?(g=m.jsx("div",{className:"mt-1 pl-2 border-l-2 border-purple-500/30 prose prose-sm max-w-none text-sm",children:m.jsx(Jl,{id:"plan-content",part:{type:"text",text:a}})}),e[20]=a,e[21]=g):g=e[21];let b;e[22]!==h||e[23]!==g?(b=m.jsxs("details",{className:"ml-6",children:[h,g]}),e[22]=h,e[23]=g,e[24]=b):b=e[24];let y;return e[25]!==b||e[26]!==p?(y=m.jsxs("div",{className:"my-1.5 flex flex-col gap-1",children:[p,b]}),e[25]=b,e[26]=p,e[27]=y):y=e[27],y}function lE(t){return{primary:t("chat.brandContext.colorPrimary"),secondary:t("chat.brandContext.colorSecondary"),accent:t("chat.brandContext.colorAccent"),background:t("chat.brandContext.colorBackground"),foreground:t("chat.brandContext.colorForeground")}}function Zee(t){try{const e=new URL(t.startsWith("http")?t:`https://${t}`);return e.protocol!=="http:"&&e.protocol!=="https:"?"about:blank":e.href}catch{return"about:blank"}}function uE(t){return t?Object.entries(t).filter(([,e])=>typeof e=="string"&&e.trim().length>0):[]}function Qee(t){return t?Object.entries(t).filter(([,e])=>typeof e=="string"&&e.trim().length>0):[]}function N_(t){const e=W.c(2),{children:n}=t;let r;return e[0]!==n?(r=m.jsx("span",{className:"text-sm font-medium text-foreground",children:n}),e[0]=n,e[1]=r):r=e[1],r}function Jee(t){const e=W.c(12),{name:n,value:r}=t;let a;e[0]!==r?(a=m.jsx("span",{className:"size-7 shrink-0 rounded-md border border-border",style:{backgroundColor:r},"aria-hidden":!0}),e[0]=r,e[1]=a):a=e[1];let i;e[2]!==n?(i=m.jsx("span",{className:"text-sm text-foreground",children:n}),e[2]=n,e[3]=i):i=e[3];let s;e[4]!==r?(s=m.jsx("span",{className:"text-xs font-mono tabular-nums text-muted-foreground",children:r}),e[4]=r,e[5]=s):s=e[5];let o;e[6]!==i||e[7]!==s?(o=m.jsxs("div",{className:"flex flex-col leading-tight min-w-0",children:[i,s]}),e[6]=i,e[7]=s,e[8]=o):o=e[8];let l;return e[9]!==a||e[10]!==o?(l=m.jsxs("div",{className:"flex items-center gap-2.5",children:[a,o]}),e[9]=a,e[10]=o,e[11]=l):l=e[11],l}function ete(t){const e=W.c(15),{role:n,family:r}=t;let a;e[0]!==r?(a=m.jsx("span",{className:"text-2xl font-medium leading-none text-foreground shrink-0",style:{fontFamily:r},"aria-hidden":!0,children:"Aa"}),e[0]=r,e[1]=a):a=e[1];let i;e[2]!==n?(i=m.jsx("span",{className:"text-xs text-muted-foreground",children:n}),e[2]=n,e[3]=i):i=e[3];let s;e[4]!==r?(s={fontFamily:r},e[4]=r,e[5]=s):s=e[5];let o;e[6]!==r||e[7]!==s?(o=m.jsx("span",{className:"text-sm text-foreground",style:s,children:r}),e[6]=r,e[7]=s,e[8]=o):o=e[8];let l;e[9]!==i||e[10]!==o?(l=m.jsxs("div",{className:"flex flex-col leading-tight",children:[i,o]}),e[9]=i,e[10]=o,e[11]=l):l=e[11];let u;return e[12]!==a||e[13]!==l?(u=m.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-muted px-4 py-3",children:[a,l]}),e[12]=a,e[13]=l,e[14]=u):u=e[14],u}function tte(t){const e=W.c(3),{logo:n,favicon:r,name:a}=t,i=n??r;if(!i)return null;const s=a?`${a} logo`:"";let o;return e[0]!==i||e[1]!==s?(o=m.jsx("img",{src:i,alt:s,className:"size-16 shrink-0 rounded-lg border border-border bg-background object-contain p-2",onError:nte}),e[0]=i,e[1]=s,e[2]=o):o=e[2],o}function nte(t){t.target.style.display="none"}function V2(t){const e=W.c(12),{colors:n}=t,r=fe();let a;e[0]!==r?(a=lE(r),e[0]=r,e[1]=a):a=e[1];const i=a;let s,o,l;if(e[2]!==i||e[3]!==n){l=Symbol.for("react.early_return_sentinel");e:{const c=uE(n);if(c.length===0){l=null;break e}s="flex h-1.5";let d;e[7]!==i?(d=p=>{const[f,h]=p;return m.jsx("span",{className:"flex-1",style:{backgroundColor:h},title:`${i[f]}: ${h}`,"aria-hidden":!0},f)},e[7]=i,e[8]=d):d=e[8],o=c.map(d)}e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=l}else s=e[4],o=e[5],l=e[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;let u;return e[9]!==s||e[10]!==o?(u=m.jsx("div",{className:s,children:o}),e[9]=s,e[10]=o,e[11]=u):u=e[11],u}function Y2(t){const e=W.c(51),{logo:n,favicon:r,name:a,domain:i,overview:s,colors:o,fonts:l,showDefaultBadge:u,isDefault:c}=t,d=fe();let p;e[0]!==d?(p=lE(d),e[0]=d,e[1]=p):p=e[1];const f=p;let h,g,b,y,T,x,k;if(e[2]!==f||e[3]!==o||e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==c||e[8]!==n||e[9]!==a||e[10]!==s||e[11]!==u||e[12]!==d){const v=uE(o),N=Qee(l);x="mt-2 rounded-lg overflow-hidden border border-border",e[20]!==o?(k=o&&m.jsx(V2,{colors:o}),e[20]=o,e[21]=k):k=e[21],h="p-5 flex flex-col gap-6";let _;e[22]!==r||e[23]!==n||e[24]!==a?(_=m.jsx(tte,{logo:n,favicon:r,name:a}),e[22]=r,e[23]=n,e[24]=a,e[25]=_):_=e[25];let C;e[26]!==c||e[27]!==a||e[28]!==u||e[29]!==d?(C=a&&m.jsxs("span",{className:"inline-flex items-center gap-2 text-lg font-semibold text-foreground truncate",children:[a,u&&c&&m.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground",children:[m.jsx(pN,{className:"size-3 text-amber-500"}),d("chat.brandContext.defaultBadge")]})]}),e[26]=c,e[27]=a,e[28]=u,e[29]=d,e[30]=C):C=e[30];let L;e[31]!==i?(L=i&&m.jsxs("a",{href:Zee(i),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[i,m.jsx(fN,{className:"size-3 shrink-0"})]}),e[31]=i,e[32]=L):L=e[32];let P;e[33]!==C||e[34]!==L?(P=m.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[C,L]}),e[33]=C,e[34]=L,e[35]=P):P=e[35],e[36]!==P||e[37]!==_?(g=m.jsxs("div",{className:"flex items-center gap-4",children:[_,P]}),e[36]=P,e[37]=_,e[38]=g):g=e[38],e[39]!==s?(b=s&&m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s}),e[39]=s,e[40]=b):b=e[40],y=v.length>0&&m.jsxs("div",{className:"flex flex-col gap-3",children:[m.jsx(N_,{children:d("chat.brandContext.colorsSection")}),m.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-x-4 gap-y-3",children:v.map($=>{const[F,M]=$;return m.jsx(Jee,{name:f[F],value:M},F)})})]}),T=N.length>0&&m.jsxs("div",{className:"flex flex-col gap-3",children:[m.jsx(N_,{children:d("chat.brandContext.typographySection")}),m.jsx("div",{className:"flex flex-wrap gap-2.5",children:N.map(rte)})]}),e[2]=f,e[3]=o,e[4]=i,e[5]=r,e[6]=l,e[7]=c,e[8]=n,e[9]=a,e[10]=s,e[11]=u,e[12]=d,e[13]=h,e[14]=g,e[15]=b,e[16]=y,e[17]=T,e[18]=x,e[19]=k}else h=e[13],g=e[14],b=e[15],y=e[16],T=e[17],x=e[18],k=e[19];let A;e[41]!==h||e[42]!==g||e[43]!==b||e[44]!==y||e[45]!==T?(A=m.jsxs("div",{className:h,children:[g,b,y,T]}),e[41]=h,e[42]=g,e[43]=b,e[44]=y,e[45]=T,e[46]=A):A=e[46];let S;return e[47]!==x||e[48]!==k||e[49]!==A?(S=m.jsxs("div",{className:x,children:[k,A]}),e[47]=x,e[48]=k,e[49]=A,e[50]=S):S=e[50],S}function rte(t){const[e,n]=t;return m.jsx(ete,{role:e,family:n},e)}function ate(t){const e=W.c(46),{part:n,latency:r}=t,a=fe();let i;e[0]!==n.state?(i=Sn(n.state),e[0]=n.state,e[1]=i):i=e[1];const s=i;let o,l,u,c,d;if(e[2]!==r||e[3]!==n.input||e[4]!==n.output||e[5]!==s||e[6]!==a){d=Symbol.for("react.early_return_sentinel");e:{l=Xa(n.output);const N=s==="loading",_=s==="error"||l&&l.success===!1;if(N){const C=n.input;let L;e[12]===Symbol.for("react.memo_cache_sentinel")?(L=m.jsx(Rn,{className:"animate-pulse"}),e[12]=L):L=e[12];let P;e[13]!==a?(P=a("chat.brandContext.extractingBrand"),e[13]=a,e[14]=P):P=e[14];let $;e[15]!==C||e[16]!==a?($=C?.domain?a("chat.brandContext.fromDomain",{domain:C.domain}):void 0,e[15]=C,e[16]=a,e[17]=$):$=e[17];let F;e[18]!==P||e[19]!==$?(F=m.jsx(Ce,{icon:L,title:P,summary:$,state:"loading",defaultOpen:!0}),e[18]=P,e[19]=$,e[20]=F):F=e[20],d=F;break e}if(_){let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=m.jsx(Rn,{}),e[21]=C):C=e[21];let L;e[22]!==a?(L=a("chat.brandContext.extractionFailed"),e[22]=a,e[23]=L):L=e[23];let P;e[24]!==r?(P=m.jsx(Et,{latency:r}),e[24]=r,e[25]=P):P=e[25],d=m.jsx(Ce,{icon:C,title:L,summary:l?.error??a("chat.brandContext.unknownError"),state:"error",trailing:P});break e}o=Ce,e[26]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsx(Rn,{className:"text-fuchsia-500"}),e[26]=u):u=e[26],c=l?.name?a("chat.brandContext.brandSet",{name:l.name}):a("chat.brandContext.brandContextSet")}e[2]=r,e[3]=n.input,e[4]=n.output,e[5]=s,e[6]=a,e[7]=o,e[8]=l,e[9]=u,e[10]=c,e[11]=d}else o=e[7],l=e[8],u=e[9],c=e[10],d=e[11];if(d!==Symbol.for("react.early_return_sentinel"))return d;const p=l?.domain;let f;e[27]!==r?(f=m.jsx(Et,{latency:r}),e[27]=r,e[28]=f):f=e[28];let h;e[29]!==o||e[30]!==u||e[31]!==c||e[32]!==p||e[33]!==f?(h=m.jsx(o,{icon:u,title:c,summary:p,state:"idle",trailing:f}),e[29]=o,e[30]=u,e[31]=c,e[32]=p,e[33]=f,e[34]=h):h=e[34];const g=l?.logo,b=l?.favicon,y=l?.name,T=l?.domain,x=l?.overview,k=l?.colors,A=l?.fonts;let S;e[35]!==y||e[36]!==T||e[37]!==x||e[38]!==k||e[39]!==A||e[40]!==g||e[41]!==b?(S=m.jsx(Y2,{logo:g,favicon:b,name:y,domain:T,overview:x,colors:k,fonts:A}),e[35]=y,e[36]=T,e[37]=x,e[38]=k,e[39]=A,e[40]=g,e[41]=b,e[42]=S):S=e[42];let v;return e[43]!==S||e[44]!==h?(v=m.jsxs(m.Fragment,{children:[h,S]}),e[43]=S,e[44]=h,e[45]=v):v=e[45],v}function ite(t){const e=W.c(45),{part:n,latency:r}=t,a=fe();let i;e[0]!==n.state?(i=Sn(n.state),e[0]=n.state,e[1]=i):i=e[1];const s=i;let o,l,u,c,d;if(e[2]!==r||e[3]!==n.output||e[4]!==s||e[5]!==a){d=Symbol.for("react.early_return_sentinel");e:{l=Xa(n.output);const b=s==="loading",y=s==="error"||l&&l.success===!1;if(b){let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=m.jsx(Rn,{className:"animate-pulse"}),e[11]=T):T=e[11];let x;e[12]!==a?(x=a("chat.brandContext.loadingBrand"),e[12]=a,e[13]=x):x=e[13];let k;e[14]!==x?(k=m.jsx(Ce,{icon:T,title:x,state:"loading"}),e[14]=x,e[15]=k):k=e[15],d=k;break e}if(y||!l){let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=m.jsx(Rn,{}),e[16]=T):T=e[16];let x;e[17]!==a?(x=a("chat.brandContext.couldNotLoadBrand"),e[17]=a,e[18]=x):x=e[18];let k;e[19]!==r?(k=m.jsx(Et,{latency:r}),e[19]=r,e[20]=k):k=e[20];let A;e[21]!==x||e[22]!==k?(A=m.jsx(Ce,{icon:T,title:x,state:"error",trailing:k}),e[21]=x,e[22]=k,e[23]=A):A=e[23],d=A;break e}o=Ce,e[24]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsx(Rn,{className:"text-fuchsia-500"}),e[24]=u):u=e[24],c=l.name?a("chat.brandContext.brandWithName",{name:l.name}):a("chat.brandContext.brand")}e[2]=r,e[3]=n.output,e[4]=s,e[5]=a,e[6]=o,e[7]=l,e[8]=u,e[9]=c,e[10]=d}else o=e[6],l=e[7],u=e[8],c=e[9],d=e[10];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[25]!==r?(p=m.jsx(Et,{latency:r}),e[25]=r,e[26]=p):p=e[26];let f;e[27]!==o||e[28]!==l.domain||e[29]!==u||e[30]!==c||e[31]!==p?(f=m.jsx(o,{icon:u,title:c,summary:l.domain,state:"idle",trailing:p}),e[27]=o,e[28]=l.domain,e[29]=u,e[30]=c,e[31]=p,e[32]=f):f=e[32];let h;e[33]!==l.colors||e[34]!==l.domain||e[35]!==l.favicon||e[36]!==l.fonts||e[37]!==l.isDefault||e[38]!==l.logo||e[39]!==l.name||e[40]!==l.overview?(h=m.jsx(Y2,{logo:l.logo,favicon:l.favicon,name:l.name,domain:l.domain,overview:l.overview,colors:l.colors,fonts:l.fonts,showDefaultBadge:!0,isDefault:l.isDefault}),e[33]=l.colors,e[34]=l.domain,e[35]=l.favicon,e[36]=l.fonts,e[37]=l.isDefault,e[38]=l.logo,e[39]=l.name,e[40]=l.overview,e[41]=h):h=e[41];let g;return e[42]!==f||e[43]!==h?(g=m.jsxs(m.Fragment,{children:[f,h]}),e[42]=f,e[43]=h,e[44]=g):g=e[44],g}function ste(t){const e=W.c(49),{part:n,latency:r}=t,a=fe();let i;e[0]!==a?(i=lE(a),e[0]=a,e[1]=i):i=e[1];const s=i;let o;e[2]!==n.state?(o=Sn(n.state),e[2]=n.state,e[3]=o):o=e[3];const l=o;let u,c,d,p;if(e[4]!==s||e[5]!==r||e[6]!==n.output||e[7]!==l||e[8]!==a){p=Symbol.for("react.early_return_sentinel");e:{const g=Xa(n.output),b=Array.isArray(g?.items)?g.items:[],y=l==="loading",T=l==="error";if(y){let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Rn,{className:"animate-pulse"}),e[13]=S):S=e[13];let v;e[14]!==a?(v=a("chat.brandContext.loadingBrands"),e[14]=a,e[15]=v):v=e[15];let N;e[16]!==v?(N=m.jsx(Ce,{icon:S,title:v,state:"loading"}),e[16]=v,e[17]=N):N=e[17],p=N;break e}if(T){let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Rn,{}),e[18]=S):S=e[18];let v;e[19]!==a?(v=a("chat.brandContext.couldNotLoadBrands"),e[19]=a,e[20]=v):v=e[20];let N;e[21]!==r?(N=m.jsx(Et,{latency:r}),e[21]=r,e[22]=N):N=e[22];let _;e[23]!==v||e[24]!==N?(_=m.jsx(Ce,{icon:S,title:v,state:"error",trailing:N}),e[23]=v,e[24]=N,e[25]=_):_=e[25],p=_;break e}if(b.length===0){let S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Rn,{}),e[26]=S):S=e[26];let v;e[27]!==a?(v=a("chat.brandContext.noBrandsYet"),e[27]=a,e[28]=v):v=e[28];let N;e[29]!==a?(N=a("chat.brandContext.noBrandsContext"),e[29]=a,e[30]=N):N=e[30];let _;e[31]!==r?(_=m.jsx(Et,{latency:r}),e[31]=r,e[32]=_):_=e[32];let C;e[33]!==_||e[34]!==v||e[35]!==N?(C=m.jsx(Ce,{icon:S,title:v,summary:N,state:"idle",trailing:_}),e[33]=_,e[34]=v,e[35]=N,e[36]=C):C=e[36],p=C;break e}let x;e[37]===Symbol.for("react.memo_cache_sentinel")?(x=m.jsx(Rn,{className:"text-fuchsia-500"}),e[37]=x):x=e[37];let k;e[38]!==r?(k=m.jsx(Et,{latency:r}),e[38]=r,e[39]=k):k=e[39],d=m.jsx(Ce,{icon:x,title:b.length===1?a("chat.brandContext.oneBrand"):a("chat.brandContext.multipleBrands",{count:b.length}),state:"idle",trailing:k}),u="mt-2 flex flex-col gap-1.5";let A;e[40]!==s||e[41]!==a?(A=(S,v)=>{const N=uE(S.colors);return m.jsxs("div",{className:"rounded-lg border border-border overflow-hidden",children:[S.colors&&m.jsx(V2,{colors:S.colors}),m.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2.5",children:[(S.logo||S.favicon)&&m.jsx("img",{src:S.logo??S.favicon??void 0,alt:"",className:"size-8 shrink-0 rounded-md border border-border bg-background object-contain p-0.5",onError:ote}),m.jsxs("div",{className:"flex flex-col leading-tight min-w-0 flex-1",children:[m.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-foreground truncate",children:[S.name??a("chat.brandContext.untitled"),S.isDefault&&m.jsx(pN,{className:"size-3 text-amber-500 shrink-0"})]}),S.domain&&m.jsx("span",{className:"text-[11px] text-muted-foreground truncate",children:S.domain})]}),N.length>0&&m.jsx("div",{className:"flex items-center gap-0.5 shrink-0",children:N.slice(0,5).map(_=>{const[C,L]=_;return m.jsx("span",{className:"size-3 rounded-full border border-border",style:{backgroundColor:L},title:`${s[C]}: ${L}`,"aria-hidden":!0},C)})})]})]},S.id??`${S.name}-${S.domain}-${v}`)},e[40]=s,e[41]=a,e[42]=A):A=e[42],c=b.map(A)}e[4]=s,e[5]=r,e[6]=n.output,e[7]=l,e[8]=a,e[9]=u,e[10]=c,e[11]=d,e[12]=p}else u=e[9],c=e[10],d=e[11],p=e[12];if(p!==Symbol.for("react.early_return_sentinel"))return p;let f;e[43]!==u||e[44]!==c?(f=m.jsx("div",{className:u,children:c}),e[43]=u,e[44]=c,e[45]=f):f=e[45];let h;return e[46]!==d||e[47]!==f?(h=m.jsxs(m.Fragment,{children:[d,f]}),e[46]=d,e[47]=f,e[48]=h):h=e[48],h}function ote(t){t.target.style.display="none"}function ib(t){const e=W.c(4),{connection_id:n,iconSize:r}=t,a=r===void 0?"xs":r,i=K_(n);if(!i)return null;let s;return e[0]!==i.icon||e[1]!==i.title||e[2]!==a?(s=m.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:m.jsx(wr,{icon:i.icon,name:i.title,size:a})}),e[0]=i.icon,e[1]=i.title,e[2]=a,e[3]=s):s=e[3],s}ib.Fallback=function({iconSize:e="xs"}){const n=e==="sm"?"size-6":"size-5";return m.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:m.jsx("div",{className:ye(n,"rounded bg-muted animate-pulse")})})};function us(t){const e=W.c(18),{connectionIds:n,maxVisibleIcons:r,iconSize:a,className:i}=t,s=r===void 0?2:r,o=a===void 0?"xs":a;if(n.length===0)return null;let l,u,c;if(e[0]!==i||e[1]!==n||e[2]!==o||e[3]!==s){const f=n.slice(0,s);l=n.length-s,e[7]!==i?(u=ye("flex items-center justify-end -space-x-2",i),e[7]=i,e[8]=u):u=e[8];let h;e[9]!==o?(h=g=>m.jsx(U.Suspense,{fallback:m.jsx(ib.Fallback,{iconSize:o}),children:m.jsx(ib,{connection_id:g,iconSize:o})},g),e[9]=o,e[10]=h):h=e[10],c=f.map(h),e[0]=i,e[1]=n,e[2]=o,e[3]=s,e[4]=l,e[5]=u,e[6]=c}else l=e[4],u=e[5],c=e[6];let d;e[11]!==o||e[12]!==l?(d=l>0&&m.jsx("div",{className:ye("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",o==="sm"?"size-8":"size-6"),children:m.jsxs("span",{className:ye(o==="sm"?"text-sm":"text-xs","font-medium text-muted-foreground"),"aria-label":`and ${l} more`,children:["+",l]})}),e[11]=o,e[12]=l,e[13]=d):d=e[13];let p;return e[14]!==u||e[15]!==c||e[16]!==d?(p=m.jsxs("div",{className:u,children:[c,d]}),e[14]=u,e[15]=c,e[16]=d,e[17]=p):p=e[17],p}us.Fallback=function({maxVisibleIcons:e=2,totalCount:n,iconSize:r="xs"}){const a=r==="sm"?"size-6":"size-5",i=r==="sm"?"size-8":"size-6",s=n!==void 0&&n>e;return m.jsxs("div",{className:"flex items-center -space-x-2",children:[Array.from({length:e}).map((o,l)=>m.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:m.jsx("div",{className:ye(a,"rounded bg-muted animate-pulse")})},l)),s&&m.jsx("div",{className:ye("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",i),children:m.jsx("div",{className:ye(r==="sm"?"h-3.5 w-5":"h-3 w-4","rounded bg-muted animate-pulse")})})]})};const lte="This document certifies that the bearer agent has been granted authorized access to the tools and capabilities described herein. The agent is permitted to operate within the scope defined by its instructions and shall act in accordance with the constraints set forth by the issuing organization. This credential remains valid for the duration of the agent's active status. Unauthorized modification of this agent's permissions or scope is prohibited. The issuing authority reserves the right to revoke access at any time. All actions performed by this agent are subject to audit and review by the organization administrator. ",C_=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)"):null;function ute(t){const e=W.c(105),{part:n,latency:r}=t,a=fe(),i=hN(),s=Sn(n.state),o=U.useRef(null),l=U.useRef(null),u=U.useRef(null),c=U.useRef(null),d=U.useRef(null);let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{C_?.matches||(d.current=o.current?.getBoundingClientRect()??null,o.current&&(o.current.style.willChange="transform"))},e[0]=p):p=e[0];const f=p;let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=de=>{if(C_?.matches)return;const ce=d.current,ve=o.current;if(!ce||!ve)return;const je=(de.clientX-ce.left)/ce.width*100,Re=(de.clientY-ce.top)/ce.height*100;ve.style.transform=`perspective(800px) rotateY(${(je-50)*.05}deg) rotateX(${(Re-50)*-.05}deg)`,l.current&&(l.current.style.opacity="1",l.current.style.transform=`translate(${(je-50)*.15}px, ${(Re-50)*.15}px)`),u.current&&(u.current.style.opacity="0.45"),c.current&&(c.current.style.opacity="0.45")},e[1]=h):h=e[1];const g=h;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{const de=o.current;de&&(de.style.transform="none",de.style.willChange="auto"),l.current&&(l.current.style.opacity="0.4",l.current.style.transform="translate(0, 0)"),u.current&&(u.current.style.opacity="0.3"),c.current&&(c.current.style.opacity="0.3"),d.current=null},e[2]=b):b=e[2];const y=b;if(s==="loading"){let de;e[3]===Symbol.for("react.memo_cache_sentinel")?(de=m.jsx(In,{className:"animate-pulse"}),e[3]=de):de=e[3];let ce;e[4]!==a?(ce=a("chat.agentCreate.creating"),e[4]=a,e[5]=ce):ce=e[5];let ve;return e[6]!==ce?(ve=m.jsx(Ce,{icon:de,title:ce,state:"loading",defaultOpen:!0}),e[6]=ce,e[7]=ve):ve=e[7],ve}if(s==="approval"){let de;e[8]===Symbol.for("react.memo_cache_sentinel")?(de=m.jsx(In,{}),e[8]=de):de=e[8];let ce;e[9]!==a?(ce=a("chat.agentCreate.createAgent"),e[9]=a,e[10]=ce):ce=e[10];let ve;return e[11]!==ce?(ve=m.jsx(Ce,{icon:de,title:ce,state:"idle"}),e[11]=ce,e[12]=ve):ve=e[12],ve}if(s==="error"){let de;e[13]===Symbol.for("react.memo_cache_sentinel")?(de=m.jsx(In,{}),e[13]=de):de=e[13];let ce;e[14]!==n.state||e[15]!==a?(ce=n.state==="output-denied"?a("chat.agentCreate.cancelled"):a("chat.agentCreate.couldntCreate"),e[14]=n.state,e[15]=a,e[16]=ce):ce=e[16];let ve;e[17]!==r?(ve=m.jsx(Et,{latency:r}),e[17]=r,e[18]=ve):ve=e[18];let je;return e[19]!==ce||e[20]!==ve?(je=m.jsx(Ce,{icon:de,title:ce,state:"error",trailing:ve}),e[19]=ce,e[20]=ve,e[21]=je):je=e[21],je}let T,x,k,A,S,v,N,_,C,L,P,$,F,M,H,j,B,Y,w,V,ee,R,ne;if(e[22]!==r||e[23]!==i||e[24]!==n.output||e[25]!==a){B=Symbol.for("react.early_return_sentinel");e:{const de=Xa(n.output)?.item;if(!de?.id||!de?.title){let He;e[49]===Symbol.for("react.memo_cache_sentinel")?(He=m.jsx(In,{}),e[49]=He):He=e[49];let Ze;e[50]!==a?(Ze=a("chat.agentCreate.created"),e[50]=a,e[51]=Ze):Ze=e[51];let oe;e[52]!==r?(oe=m.jsx(Et,{latency:r}),e[52]=r,e[53]=oe):oe=e[53];let Ae;e[54]!==Ze||e[55]!==oe?(Ae=m.jsx(Ce,{icon:He,title:Ze,state:"idle",trailing:oe}),e[54]=Ze,e[55]=oe,e[56]=Ae):Ae=e[56],B=Ae;break e}const ce=(de.connections??[]).map(cte);let ve;e[57]===Symbol.for("react.memo_cache_sentinel")?(ve=m.jsx(In,{className:"text-success"}),e[57]=ve):ve=e[57];let je;e[58]!==r?(je=m.jsx(Et,{latency:r}),e[58]=r,e[59]=je):je=e[59],j=m.jsx(Ce,{icon:ve,title:a("chat.agentCreate.agentCreated",{name:de.title}),state:"idle",trailing:je}),H="mt-2 overflow-hidden rounded-xl border-[0.5px] border-border bg-card p-2.5",k=o,A="relative overflow-hidden rounded-lg bg-accent/25 p-2",e[60]===Symbol.for("react.memo_cache_sentinel")?(S={transition:"transform 0.3s ease-out"},e[60]=S):S=e[60],v=f,N=g,_=y,e[61]===Symbol.for("react.memo_cache_sentinel")?(C=m.jsx("div",{ref:l,className:"pointer-events-none absolute inset-[-20%] z-[1] select-none rounded-lg",style:{background:"linear-gradient(135deg, hsla(280, 60%, 80%, 0.35) 0%, transparent 35%), linear-gradient(315deg, hsla(190, 70%, 80%, 0.35) 0%, transparent 35%), linear-gradient(225deg, hsla(140, 55%, 80%, 0.3) 0%, transparent 30%), linear-gradient(45deg, hsla(320, 55%, 82%, 0.3) 0%, transparent 30%)",opacity:.4,transition:"opacity 0.3s ease, transform 0.3s ease-out"},"aria-hidden":"true"}),e[61]=C):C=e[61];let Re;e[62]===Symbol.for("react.memo_cache_sentinel")?(Re={textAlign:"justify",wordBreak:"break-all"},e[62]=Re):Re=e[62],e[63]===Symbol.for("react.memo_cache_sentinel")?(L=m.jsx("p",{className:"pointer-events-none absolute inset-0 z-[1] select-none overflow-hidden text-[6px] font-light leading-[1.5] tracking-[0.06px] text-background opacity-50 mix-blend-overlay",style:Re,"aria-hidden":"true",children:lte.repeat(6)}),P=m.jsx("img",{src:"/stamp.svg",alt:"",className:"pointer-events-none absolute -right-10 -top-10 size-[140px] opacity-50 select-none","aria-hidden":"true"}),e[63]=L,e[64]=P):(L=e[63],P=e[64]),e[65]===Symbol.for("react.memo_cache_sentinel")?($=m.jsx("img",{ref:u,src:"/left-guilloche.png",alt:"",className:"pointer-events-none absolute inset-y-0 left-0 h-full w-auto select-none z-[1] mix-blend-overlay",style:{opacity:.3,transition:"opacity 0.3s ease"},"aria-hidden":"true"}),e[65]=$):$=e[65],e[66]===Symbol.for("react.memo_cache_sentinel")?(F=m.jsx("img",{ref:c,src:"/right-guilloche.png",alt:"",className:"pointer-events-none absolute inset-y-0 right-0 h-full w-auto select-none z-[1] mix-blend-overlay",style:{opacity:.3,transition:"opacity 0.3s ease"},"aria-hidden":"true"}),e[66]=F):F=e[66],M=m.jsxs("div",{className:"relative",children:[m.jsxs("div",{className:"flex items-center gap-2.5 p-2",children:[m.jsx(V_,{icon:de.icon,name:de.title,size:"md"}),m.jsx("div",{className:"flex-1 min-w-0",children:m.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:de.title})})]}),de.description&&m.jsx("div",{className:"px-2 pt-1 pr-16",children:m.jsx("p",{className:"text-sm leading-snug text-muted-foreground line-clamp-2",children:de.description})})]}),ne="relative z-[3] flex items-center gap-2.5 px-2 pt-6 pb-1";const Ye=ce.length>0&&m.jsx(U.Suspense,{fallback:m.jsx(us.Fallback,{iconSize:"xs",maxVisibleIcons:3,totalCount:ce.length}),children:m.jsx(us,{connectionIds:ce,iconSize:"xs",maxVisibleIcons:3,className:"flex items-center justify-start -space-x-1"})});e[67]!==Ye?(x=m.jsx("div",{className:"flex-1 min-w-0",children:Ye}),e[67]=Ye,e[68]=x):x=e[68],R="flex items-center gap-2 shrink-0",T=nr,Y="sm",w="h-7",V=()=>i(de.id),ee=a("chat.agentCreate.seeAgentLabel",{name:de.title})}e[22]=r,e[23]=i,e[24]=n.output,e[25]=a,e[26]=T,e[27]=x,e[28]=k,e[29]=A,e[30]=S,e[31]=v,e[32]=N,e[33]=_,e[34]=C,e[35]=L,e[36]=P,e[37]=$,e[38]=F,e[39]=M,e[40]=H,e[41]=j,e[42]=B,e[43]=Y,e[44]=w,e[45]=V,e[46]=ee,e[47]=R,e[48]=ne}else T=e[26],x=e[27],k=e[28],A=e[29],S=e[30],v=e[31],N=e[32],_=e[33],C=e[34],L=e[35],P=e[36],$=e[37],F=e[38],M=e[39],H=e[40],j=e[41],B=e[42],Y=e[43],w=e[44],V=e[45],ee=e[46],R=e[47],ne=e[48];if(B!==Symbol.for("react.early_return_sentinel"))return B;let ie;e[69]!==a?(ie=a("chat.agentCreate.seeAgent"),e[69]=a,e[70]=ie):ie=e[70];let re;e[71]!==T||e[72]!==ie||e[73]!==Y||e[74]!==w||e[75]!==V||e[76]!==ee?(re=m.jsx(T,{size:Y,className:w,onClick:V,"aria-label":ee,children:ie}),e[71]=T,e[72]=ie,e[73]=Y,e[74]=w,e[75]=V,e[76]=ee,e[77]=re):re=e[77];let me;e[78]!==re||e[79]!==R?(me=m.jsx("div",{className:R,children:re}),e[78]=re,e[79]=R,e[80]=me):me=e[80];let Te;e[81]!==x||e[82]!==me||e[83]!==ne?(Te=m.jsxs("div",{className:ne,children:[x,me]}),e[81]=x,e[82]=me,e[83]=ne,e[84]=Te):Te=e[84];let De;e[85]!==k||e[86]!==A||e[87]!==S||e[88]!==v||e[89]!==N||e[90]!==_||e[91]!==C||e[92]!==L||e[93]!==P||e[94]!==$||e[95]!==F||e[96]!==M||e[97]!==Te?(De=m.jsxs("div",{ref:k,className:A,style:S,onMouseEnter:v,onMouseMove:N,onMouseLeave:_,children:[C,L,P,$,F,M,Te]}),e[85]=k,e[86]=A,e[87]=S,e[88]=v,e[89]=N,e[90]=_,e[91]=C,e[92]=L,e[93]=P,e[94]=$,e[95]=F,e[96]=M,e[97]=Te,e[98]=De):De=e[98];let he;e[99]!==H||e[100]!==De?(he=m.jsx("div",{className:H,children:De}),e[99]=H,e[100]=De,e[101]=he):he=e[101];let we;return e[102]!==j||e[103]!==he?(we=m.jsxs(m.Fragment,{children:[j,he]}),e[102]=j,e[103]=he,e[104]=we):we=e[104],we}function cte(t){return t.connection_id}function dte(t){const e=W.c(24),{agent:n}=t,r=hN();if(!n.id)return null;let a;e[0]!==n.connections?(a=n.connections??[],e[0]=n.connections,e[1]=a):a=e[1];let i;e[2]!==a?(i=a.map(pte),e[2]=a,e[3]=i):i=e[3];const s=i;let o;e[4]!==n.id||e[5]!==r?(o=()=>r(n.id),e[4]=n.id,e[5]=r,e[6]=o):o=e[6];let l;e[7]!==n.icon||e[8]!==n.title?(l=m.jsx(V_,{icon:n.icon,name:n.title,size:"sm"}),e[7]=n.icon,e[8]=n.title,e[9]=l):l=e[9];let u;e[10]!==n.title?(u=m.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:n.title}),e[10]=n.title,e[11]=u):u=e[11];let c;e[12]!==n.description?(c=n.description&&m.jsx("span",{className:"truncate text-xs text-muted-foreground",children:n.description}),e[12]=n.description,e[13]=c):c=e[13];let d;e[14]!==u||e[15]!==c?(d=m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[u,c]}),e[14]=u,e[15]=c,e[16]=d):d=e[16];let p;e[17]!==s?(p=s.length>0&&m.jsx(U.Suspense,{fallback:m.jsx(us.Fallback,{iconSize:"xs",maxVisibleIcons:3,totalCount:s.length}),children:m.jsx(us,{connectionIds:s,iconSize:"xs",maxVisibleIcons:3})}),e[17]=s,e[18]=p):p=e[18];let f;return e[19]!==o||e[20]!==l||e[21]!==d||e[22]!==p?(f=m.jsxs("button",{type:"button",onClick:o,className:"group flex w-full items-center gap-3 rounded-lg border border-border bg-card px-3 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[l,d,p]}),e[19]=o,e[20]=l,e[21]=d,e[22]=p,e[23]=f):f=e[23],f}function pte(t){return t.connection_id}function fte(t){const e=W.c(59),{part:n,latency:r}=t,a=fe(),i=la(),{org:s}=Pn();let o;e[0]!==n.state?(o=Sn(n.state),e[0]=n.state,e[1]=o):o=e[1];const l=o;let u,c,d,p,f,h;if(e[2]!==r||e[3]!==n.output||e[4]!==n.state||e[5]!==l||e[6]!==a){h=Symbol.for("react.early_return_sentinel");e:{const T=Xa(n.output);if(c=Array.isArray(T?.items)?T.items:[],l==="loading"){let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(In,{className:"animate-pulse"}),e[13]=S):S=e[13];let v;e[14]!==a?(v=a("chat.agentList.loading"),e[14]=a,e[15]=v):v=e[15];let N;e[16]!==v?(N=m.jsx(Ce,{icon:S,title:v,state:"loading"}),e[16]=v,e[17]=N):N=e[17],h=N;break e}if(l==="approval"){let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(In,{}),e[18]=S):S=e[18];let v;e[19]!==a?(v=a("chat.agentList.listAgents"),e[19]=a,e[20]=v):v=e[20];let N;e[21]!==v?(N=m.jsx(Ce,{icon:S,title:v,state:"idle"}),e[21]=v,e[22]=N):N=e[22],h=N;break e}if(l==="error"){let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(In,{}),e[23]=S):S=e[23];let v;e[24]!==n.state||e[25]!==a?(v=n.state==="output-denied"?a("chat.agentList.unavailable"):a("chat.agentList.couldntLoad"),e[24]=n.state,e[25]=a,e[26]=v):v=e[26];let N;e[27]!==r?(N=m.jsx(Et,{latency:r}),e[27]=r,e[28]=N):N=e[28];let _;e[29]!==v||e[30]!==N?(_=m.jsx(Ce,{icon:S,title:v,state:"error",trailing:N}),e[29]=v,e[30]=N,e[31]=_):_=e[31],h=_;break e}if(c.length===0){let S;e[32]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(In,{}),e[32]=S):S=e[32];let v;e[33]!==a?(v=a("chat.agentList.noAgents"),e[33]=a,e[34]=v):v=e[34];let N;e[35]!==a?(N=a("chat.agentList.noAgentsDesc"),e[35]=a,e[36]=N):N=e[36];let _;e[37]!==r?(_=m.jsx(Et,{latency:r}),e[37]=r,e[38]=_):_=e[38];let C;e[39]!==v||e[40]!==N||e[41]!==_?(C=m.jsx(Ce,{icon:S,title:v,summary:N,state:"idle",trailing:_}),e[39]=v,e[40]=N,e[41]=_,e[42]=C):C=e[42],h=C;break e}const x=c.slice(0,D2);u=c.length-x.length;let k;e[43]===Symbol.for("react.memo_cache_sentinel")?(k=m.jsx(In,{className:"text-success"}),e[43]=k):k=e[43];let A;e[44]!==r?(A=m.jsx(Et,{latency:r}),e[44]=r,e[45]=A):A=e[45],f=m.jsx(Ce,{icon:k,title:c.length===1?a("chat.agentList.oneAgent"):a("chat.agentList.multiAgents",{count:c.length}),state:"idle",trailing:A}),d="mt-2 flex flex-col gap-1.5",p=x.map(hte)}e[2]=r,e[3]=n.output,e[4]=n.state,e[5]=l,e[6]=a,e[7]=u,e[8]=c,e[9]=d,e[10]=p,e[11]=f,e[12]=h}else u=e[7],c=e[8],d=e[9],p=e[10],f=e[11],h=e[12];if(h!==Symbol.for("react.early_return_sentinel"))return h;let g;e[46]!==u||e[47]!==c||e[48]!==i||e[49]!==s||e[50]!==a?(g=u>0&&m.jsx(M2,{count:c.length,noun:a("chat.agentList.agentsNoun"),onClick:()=>i({to:"/$org/settings/agents",params:{org:s.slug}})}),e[46]=u,e[47]=c,e[48]=i,e[49]=s,e[50]=a,e[51]=g):g=e[51];let b;e[52]!==d||e[53]!==p||e[54]!==g?(b=m.jsxs("div",{className:d,children:[p,g]}),e[52]=d,e[53]=p,e[54]=g,e[55]=b):b=e[55];let y;return e[56]!==f||e[57]!==b?(y=m.jsxs(m.Fragment,{children:[f,b]}),e[56]=f,e[57]=b,e[58]=y):y=e[58],y}function hte(t){return m.jsx(dte,{agent:t},t.id)}const mte={active:"bg-success",inactive:"bg-muted-foreground",error:"bg-destructive"};function gte(t){const e=W.c(27),{connection:n}=t,r=la(),{org:a}=Pn(),i=n.slug,s=n.description||n.app_name,o=!i||void 0;let l;e[0]!==r||e[1]!==a||e[2]!==i?(l=()=>i&&r({to:"/$org/settings/connections/$appSlug",params:{org:a.slug,appSlug:i}}),e[0]=r,e[1]=a,e[2]=i,e[3]=l):l=e[3];let u;e[4]!==n.icon||e[5]!==n.title?(u=m.jsx(wr,{icon:n.icon,name:n.title,size:"sm"}),e[4]=n.icon,e[5]=n.title,e[6]=u):u=e[6];let c;e[7]!==n.title?(c=m.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:n.title}),e[7]=n.title,e[8]=c):c=e[8];let d;e[9]!==s?(d=s&&m.jsx("span",{className:"truncate text-xs text-muted-foreground",children:s}),e[9]=s,e[10]=d):d=e[10];let p;e[11]!==c||e[12]!==d?(p=m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[c,d]}),e[11]=c,e[12]=d,e[13]=p):p=e[13];const f=mte[n.status]??"bg-muted-foreground";let h;e[14]!==f?(h=ye("size-2 shrink-0 rounded-full",f),e[14]=f,e[15]=h):h=e[15];let g;e[16]!==h?(g=m.jsx("span",{className:h,"aria-hidden":"true"}),e[16]=h,e[17]=g):g=e[17];let b;e[18]!==n.status?(b=m.jsx("span",{className:"sr-only",children:n.status}),e[18]=n.status,e[19]=b):b=e[19];let y;return e[20]!==o||e[21]!==b||e[22]!==l||e[23]!==u||e[24]!==p||e[25]!==g?(y=m.jsxs("button",{type:"button","aria-disabled":o,onClick:l,className:"group flex w-full items-center gap-3 rounded-lg border border-border bg-card px-3 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer aria-disabled:cursor-default aria-disabled:hover:bg-card",children:[u,p,g,b]}),e[20]=o,e[21]=b,e[22]=l,e[23]=u,e[24]=p,e[25]=g,e[26]=y):y=e[26],y}function bte(t){const e=W.c(54),{part:n,latency:r}=t,a=fe(),i=la(),{org:s}=Pn();let o;e[0]!==n.state?(o=Sn(n.state),e[0]=n.state,e[1]=o):o=e[1];const l=o;let u,c,d,p,f,h;if(e[2]!==r||e[3]!==n.output||e[4]!==n.state||e[5]!==l||e[6]!==a){h=Symbol.for("react.early_return_sentinel");e:{const T=Xa(n.output);if(c=(Array.isArray(T?.items)?T.items:[]).filter(yte),l==="loading"||l==="approval"){let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Is,{className:"animate-pulse"}),e[13]=S):S=e[13];let v;e[14]!==a?(v=a("chat.connectionList.loadingTitle"),e[14]=a,e[15]=v):v=e[15];let N;e[16]!==v?(N=m.jsx(Ce,{icon:S,title:v,state:"loading"}),e[16]=v,e[17]=N):N=e[17],h=N;break e}if(l==="error"){let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Is,{}),e[18]=S):S=e[18];let v;e[19]!==n.state||e[20]!==a?(v=n.state==="output-denied"?a("chat.connectionList.unavailableTitle"):a("chat.connectionList.errorTitle"),e[19]=n.state,e[20]=a,e[21]=v):v=e[21];let N;e[22]!==r?(N=m.jsx(Et,{latency:r}),e[22]=r,e[23]=N):N=e[23];let _;e[24]!==v||e[25]!==N?(_=m.jsx(Ce,{icon:S,title:v,state:"error",trailing:N}),e[24]=v,e[25]=N,e[26]=_):_=e[26],h=_;break e}if(c.length===0){let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Is,{}),e[27]=S):S=e[27];let v;e[28]!==a?(v=a("chat.connectionList.emptyTitle"),e[28]=a,e[29]=v):v=e[29];let N;e[30]!==a?(N=a("chat.connectionList.emptySummary"),e[30]=a,e[31]=N):N=e[31];let _;e[32]!==r?(_=m.jsx(Et,{latency:r}),e[32]=r,e[33]=_):_=e[33];let C;e[34]!==v||e[35]!==N||e[36]!==_?(C=m.jsx(Ce,{icon:S,title:v,summary:N,state:"idle",trailing:_}),e[34]=v,e[35]=N,e[36]=_,e[37]=C):C=e[37],h=C;break e}const x=c.slice(0,D2);u=c.length-x.length;let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=m.jsx(Is,{className:"text-success"}),e[38]=k):k=e[38];let A;e[39]!==r?(A=m.jsx(Et,{latency:r}),e[39]=r,e[40]=A):A=e[40],f=m.jsx(Ce,{icon:k,title:c.length===1?a("chat.connectionList.singleConnection"):a("chat.connectionList.multipleConnections",{count:c.length}),state:"idle",trailing:A}),d="mt-2 flex flex-col gap-1.5",p=x.map(Ete)}e[2]=r,e[3]=n.output,e[4]=n.state,e[5]=l,e[6]=a,e[7]=u,e[8]=c,e[9]=d,e[10]=p,e[11]=f,e[12]=h}else u=e[7],c=e[8],d=e[9],p=e[10],f=e[11],h=e[12];if(h!==Symbol.for("react.early_return_sentinel"))return h;let g;e[41]!==u||e[42]!==c||e[43]!==i||e[44]!==s||e[45]!==a?(g=u>0&&m.jsx(M2,{count:c.length,noun:a("chat.connectionList.connectionNoun"),onClick:()=>i({to:"/$org/settings/connections",params:{org:s.slug}})}),e[41]=u,e[42]=c,e[43]=i,e[44]=s,e[45]=a,e[46]=g):g=e[46];let b;e[47]!==d||e[48]!==p||e[49]!==g?(b=m.jsxs("div",{className:d,children:[p,g]}),e[47]=d,e[48]=p,e[49]=g,e[50]=b):b=e[50];let y;return e[51]!==f||e[52]!==b?(y=m.jsxs(m.Fragment,{children:[f,b]}),e[51]=f,e[52]=b,e[53]=y):y=e[53],y}function Ete(t){return m.jsx(gte,{connection:t},t.id)}function yte(t){return t.connection_type!=="VIRTUAL"}function Tte(){const t=W.c(42),e=fe(),n=Sb(),{sendMessage:r,isStreaming:a,messages:i}=UL(),{org:s}=Pn(),o=n?.virtualMcpId,{prompts:l}=KL(s.slug),u=o??null;let c;t[0]!==s.id||t[1]!==s.slug||t[2]!==u?(c={connectionId:u,orgId:s.id,orgSlug:s.slug},t[0]=s.id,t[1]=s.slug,t[2]=u,t[3]=c):c=t[3];const d=hb(c),[p,f]=U.useState(null);if(!o||a||!fL(o)||!i.some(Ste))return null;let g;if(t[4]!==l||t[5]!==o){let M;t[7]!==o?(M=H=>H.agentId===o&&H.promptName,t[7]=o,t[8]=M):M=t[8],g=l.find(M),t[4]=l,t[5]=o,t[6]=g}else g=t[6];const b=g;if(!b)return null;let y;t[9]!==d||t[10]!==r||t[11]!==e?(y=async(M,H)=>{if(!d){Xm.error(e("chat.nextActionChip.mcpClientNotAvailable"));return}try{const j=await QL(d,M.name,H);await r({type:"doc",content:[{type:"paragraph",content:[Lw({id:M.name,name:Ab(M.name,vb(M._meta)),metadata:j.messages,char:"/",kind:"prompt",args:H}),{type:"text",text:" "}]}]})}catch(j){console.error("[next-action-chip] failed",j),Xm.error(e("chat.nextActionChip.failedLoadPrompt"))}},t[9]=d,t[10]=r,t[11]=e,t[12]=y):y=t[12];const T=y;let x;t[13]!==b._meta||t[14]!==b.arguments||t[15]!==b.description||t[16]!==b.promptName||t[17]!==b.title||t[18]!==T?(x=()=>{const M={name:b.promptName,title:b.title,description:b.description,arguments:b.arguments,_meta:b._meta};if(M.arguments&&M.arguments.length>0){f(M);return}T(M)},t[13]=b._meta,t[14]=b.arguments,t[15]=b.description,t[16]=b.promptName,t[17]=b.title,t[18]=T,t[19]=x):x=t[19];const k=x;let A;t[20]===Symbol.for("react.memo_cache_sentinel")?(A=m.jsx(ZL,{size:12,className:"shrink-0 text-purple-500"}),t[20]=A):A=t[20];let S;t[21]!==e?(S=e("chat.nextActionChip.next"),t[21]=e,t[22]=S):S=t[22];let v;t[23]!==S?(v=m.jsx("span",{className:"font-medium text-foreground/80",children:S}),t[23]=S,t[24]=v):v=t[24];let N;t[25]!==b.title?(N=m.jsx("span",{className:"truncate",children:b.title}),t[25]=b.title,t[26]=N):N=t[26];let _;t[27]===Symbol.for("react.memo_cache_sentinel")?(_=m.jsx(iN,{size:12,className:"shrink-0 transition-transform duration-150 group-hover:translate-x-0.5"}),t[27]=_):_=t[27];let C;t[28]!==k||t[29]!==v||t[30]!==N?(C=m.jsxs("button",{type:"button",onClick:k,className:"group mt-3 flex items-center gap-2 self-start rounded-full border border-border bg-background px-3 py-1.5 text-xs text-muted-foreground transition-colors hover:border-border hover:bg-accent/40 hover:text-foreground",children:[A,v,N,_]}),t[28]=k,t[29]=v,t[30]=N,t[31]=C):C=t[31];let L;t[32]===Symbol.for("react.memo_cache_sentinel")?(L=M=>f(M),t[32]=L):L=t[32];let P;t[33]!==p||t[34]!==T?(P=async M=>{const H=p;f(null),H&&await T(H,M)},t[33]=p,t[34]=T,t[35]=P):P=t[35];let $;t[36]!==p||t[37]!==P?($=m.jsx(bD,{prompt:p,setPrompt:L,onSubmit:P}),t[36]=p,t[37]=P,t[38]=$):$=t[38];let F;return t[39]!==C||t[40]!==$?(F=m.jsxs(m.Fragment,{children:[C,$]}),t[39]=C,t[40]=$,t[41]=F):F=t[41],F}function Ste(t){return t.role==="user"||t.parts.some(xte)}function xte(t){return t.type==="tool-user_ask"&&t.state==="output-available"}function kte(t){const e=new Map;for(let n=t.length-1;n>=0;n--){const r=t[n]?.parts;if(r)for(const a of r){const i=a;if(i.type!=="data-deck-updated")continue;const s=i.data;if(!s?.path)continue;const o=`deck:${s.path}`;e.has(o)||e.set(o,{tabId:OL(s.path),label:s.name||s.path,kind:s.kind==="page"?"page":"deck"})}}return Array.from(e.values())}function vte(){const t=W.c(9),e=la(),n=Ka()?.messages??[],r=kte(n);if(r.length===0)return null;const a=r.some(_te),i=r.some(Ate),s=a?i?"Slides & pages in this chat":"Slides in this chat":"Pages in this chat",o="flex flex-col gap-1.5 py-2";let l;t[0]!==s?(l=m.jsx("div",{className:"text-[12px] text-muted-foreground/70 uppercase tracking-wide",children:s}),t[0]=s,t[1]=l):l=t[1];const u="flex flex-wrap gap-2";let c;t[2]!==e?(c=h=>m.jsxs("button",{type:"button",onClick:()=>e({to:".",search:g=>({...g,main:h.tabId}),replace:!0}),className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-lg border border-border bg-muted/30 hover:bg-muted/60 text-[13px] transition-colors",children:[h.kind==="deck"?m.jsx(Ai,{className:"size-3.5 shrink-0 text-muted-foreground"}):m.jsx(kL,{className:"size-3.5 shrink-0 text-muted-foreground"}),m.jsx("span",{className:"font-medium text-foreground",children:h.label})]},h.tabId),t[2]=e,t[3]=c):c=t[3];const d=r.map(c);let p;t[4]!==d?(p=m.jsx("div",{className:u,children:d}),t[4]=d,t[5]=p):p=t[5];let f;return t[6]!==l||t[7]!==p?(f=m.jsxs("div",{className:o,children:[l,p]}),t[6]=l,t[7]=p,t[8]=f):f=t[8],f}function Ate(t){return t.kind==="page"}function _te(t){return t.kind==="deck"}async function Nte(t,e){const n=await fetch(`/api/${e}/threads/${encodeURIComponent(t)}/outputs`,{credentials:"include"});if(!n.ok)throw new Error(`Failed to fetch thread outputs: ${n.status}`);return(await n.json()).objects??[]}function soe(){const t=W.c(2),e=Ka()?.messages??[];let n;return t[0]!==e?(n=e.some(Cte),t[0]=e,t[1]=n):n=t[1],n}function Cte(t){return t.parts?.some(wte)}function wte(t){const e=t;return(e.type==="tool-share_with_user"||e.type==="tool-bash"||e.type==="tool-write")&&e.state==="output-available"}function Ite(t,e){const n=W.c(9),{org:r}=Pn();let a;n[0]!==t?(a=dn.threadOutputs(t??""),n[0]=t,n[1]=a):a=n[1];let i;n[2]!==r||n[3]!==t?(i=()=>Nte(t??"",r.slug),n[2]=r,n[3]=t,n[4]=i):i=n[4];const s=!!t&&(e?.enabled??!0);let o;return n[5]!==a||n[6]!==i||n[7]!==s?(o={queryKey:a,queryFn:i,enabled:s,staleTime:0},n[5]=a,n[6]=i,n[7]=s,n[8]=o):o=n[8],ps(o)}const Rte={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},Ote="#475467",Lte={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function ooe(t){const e=K2(t);return e?Lte[e]??`${e.toUpperCase()} file`:"File"}function K2(t){const e=t.lastIndexOf(".");if(e<=0||e===t.length-1)return null;const n=t.slice(e+1).toLowerCase();return n.length>4||!/^[a-z0-9]+$/.test(n)?null:n}function Dte(t){const e=W.c(17);let n,r;e[0]!==t?({filename:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let a,i,s;e[3]!==n?(i=K2(n),a=i?Rte[i]??Ote:null,s=i?.toUpperCase()??"",e[3]=n,e[4]=a,e[5]=i,e[6]=s):(a=e[4],i=e[5],s=e[6]);const o=s,l=Math.min(8+o.length*4.6,28);let u,c;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),c=m.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=u,e[8]=c):(u=e[7],c=e[8]);let d;e[9]!==l||e[10]!==a||e[11]!==i||e[12]!==o?(d=i&&a&&m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"1",y:"20",width:l,height:"12",rx:"3",fill:a}),m.jsx("text",{x:1+l/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:o})]}),e[9]=l,e[10]=a,e[11]=i,e[12]=o,e[13]=d):d=e[13];let p;return e[14]!==r||e[15]!==d?(p=m.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...r,children:[u,c,d]}),e[14]=r,e[15]=d,e[16]=p):p=e[16],p}function Mte(t){const e=W.c(29),{file:n}=t,r=fe(),a=la();let i;e[0]!==n.key||e[1]!==a?(i=()=>a({to:".",search:T=>({...T,main:LL(n.key)}),replace:!0}),e[0]=n.key,e[1]=a,e[2]=i):i=e[2];const s=i;let o;e[3]!==n.filename?(o=m.jsx(Dte,{filename:n.filename,className:"h-5 w-4 shrink-0"}),e[3]=n.filename,e[4]=o):o=e[4];let l;e[5]!==n.filename||e[6]!==s?(l=m.jsx("button",{type:"button",onClick:s,className:"min-w-0 flex-1 truncate text-left text-[13px] font-medium text-foreground hover:underline",title:n.filename,children:n.filename}),e[5]=n.filename,e[6]=s,e[7]=l):l=e[7];const u=n.downloadUrl,c=n.filename;let d;e[8]!==r?(d=r("chat.outputFileRow.download"),e[8]=r,e[9]=d):d=e[9];let p;e[10]!==n.filename||e[11]!==r?(p=r("chat.outputFileRow.downloadFile",{filename:n.filename}),e[10]=n.filename,e[11]=r,e[12]=p):p=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(Eb,{className:"size-3.5"}),e[13]=f):f=e[13];let h;e[14]!==n.downloadUrl||e[15]!==n.filename||e[16]!==d||e[17]!==p?(h=m.jsx("a",{href:u,download:c,className:"hidden shrink-0 text-muted-foreground hover:text-foreground group-hover:block",title:d,"aria-label":p,children:f}),e[14]=n.downloadUrl,e[15]=n.filename,e[16]=d,e[17]=p,e[18]=h):h=e[18];let g;e[19]!==r?(g=r("chat.outputFileRow.open"),e[19]=r,e[20]=g):g=e[20];let b;e[21]!==s||e[22]!==g?(b=m.jsx(nr,{variant:"outline",size:"sm",className:"h-7 shrink-0 px-2.5 text-xs",onClick:s,children:g}),e[21]=s,e[22]=g,e[23]=b):b=e[23];let y;return e[24]!==b||e[25]!==o||e[26]!==l||e[27]!==h?(y=m.jsxs("div",{className:"group flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-2",children:[o,l,h,b]}),e[24]=b,e[25]=o,e[26]=l,e[27]=h,e[28]=y):y=e[28],y}function w_(t){return t.split("/").pop()??t}const Pte=/(^|\/)output\//;function Fte(t){const e=new Set;for(const n of t.parts??[]){const r=n;if(r.state==="output-available"){if(r.type==="tool-share_with_user"){const a=r.output?.filename??r.input?.name??(r.input?.source?w_(r.input.source):null);a&&e.add(a)}else if(r.type==="tool-write"){const a=r.input?.path;a&&Pte.test(a)&&e.add(w_(a))}}}return e}function Bte(t){const e=W.c(4),{threadId:n,message:r}=t,a=Fte(r),i=a.size>0;let s;e[0]!==i?(s={enabled:i},e[0]=i,e[1]=s):s=e[1];const{data:o}=Ite(n,s);if(a.size===0)return null;const l=(o??[]).filter(p=>a.has(p.filename));if(l.length===0)return null;const u="flex flex-col gap-1.5 py-2",c=l.map(Ute);let d;return e[2]!==c?(d=m.jsx("div",{className:u,children:c}),e[2]=c,e[3]=d):d=e[3],d}function Ute(t){return m.jsx(Mte,{file:t},t.key)}function jte(t){return t.type==="reasoning"}function Hte(t){const e=[],n=new Set,r=new Map,a=new Map,i=new Map;if(t){let o=null;for(let l=0;l<t.parts.length;l++){const u=t.parts[l];if(jte(u)){o||(o={parts:[],startIndex:l},e.push(o)),o.parts.push(u),n.add(l);continue}if(o=null,u.type==="data-tool-metadata"&&"id"in u&&"data"in u){const c=u.data,d={};c.annotations&&(d.annotations=c.annotations),typeof c.latencyMs=="number"&&Number.isFinite(c.latencyMs)&&(d.latencySeconds=c.latencyMs/1e3),typeof c.outputBytes=="number"&&Number.isFinite(c.outputBytes)&&c.outputBytes>=0&&(d.outputBytes=c.outputBytes),c._meta&&typeof c._meta=="object"&&(d._meta=c._meta),r.set(u.id,d);continue}if(u.type==="data-tool-subtask-metadata"&&"id"in u){a.set(u.id,u.data);continue}if(u.type==="data-web-search"&&"id"in u&&"data"in u){const c=u.id,d=u.data;i.set(c,d.text??"");continue}}}const s=[];if(t)for(let o=0;o<t.parts.length;o++){const l=t.parts[o];if(l.type!=="step-start"){if(n.has(o)){const u=e.find(c=>c.startIndex===o);u&&s.push({kind:"reasoning-group",group:u});continue}l.type.startsWith("data-")||s.push({kind:"part",index:o})}}return{reasoningGroups:e,renderOrder:s,dataParts:{toolMetadata:r,toolSubtaskMetadata:a,webSearchStreaming:i}}}const $te=3;function zte(t,e){let n=-1;for(let r=t.length-1;r>=0;r--){const a=t[r];if(a.kind==="part"&&e[a.index]?.type==="text"){n=r;break}}return n===-1?{collapsed:[],tail:t}:{collapsed:t.slice(0,n),tail:t.slice(n)}}function qte(t,e){let n=0,r=0;for(const a of t)if(a.kind==="reasoning-group")r++;else{const i=e[a.index]?.type;i==="text"?r++:(i==="dynamic-tool"||i?.startsWith("tool-"))&&i!=="tool-todo_write"&&i!=="tool-update_interests"&&n++}return{toolCalls:n,messages:r}}function Gte(t){const e=W.c(10),{toolCalls:n,messages:r}=t,a=fe();let i;e[0]!==r||e[1]!==a||e[2]!==n?(i=n>0&&m.jsxs(m.Fragment,{children:[m.jsx(aN,{className:"size-3.5 shrink-0"}),m.jsxs("span",{children:[a("chat.assistant.toolCallPlural",{count:n}),r>0?",":""]})]}),e[0]=r,e[1]=a,e[2]=n,e[3]=i):i=e[3];let s;e[4]!==r||e[5]!==a?(s=r>0&&m.jsxs(m.Fragment,{children:[m.jsx(lL,{className:"size-3.5 shrink-0"}),m.jsx("span",{children:a("chat.assistant.messagePlural",{count:r})})]}),e[4]=r,e[5]=a,e[6]=s):s=e[6];let o;return e[7]!==i||e[8]!==s?(o=m.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[i,s]}),e[7]=i,e[8]=s,e[9]=o):o=e[9],o}function Wte(t){const e=W.c(28),{items:n,message:r,reasoningGroups:a,isReasoningActive:i,totalDuration:s,dataParts:o,isLoading:l,isLast:u}=t;let c;e[0]!==n||e[1]!==r.parts?(c=qte(n,r.parts),e[0]=n,e[1]=r.parts,e[2]=c):c=e[2];const{toolCalls:d,messages:p}=c;if(d===0&&p===0)return null;let f;e[3]!==p||e[4]!==d?(f=m.jsx(Gte,{toolCalls:d,messages:p}),e[3]=p,e[4]=d,e[5]=f):f=e[5];let h;if(e[6]!==o||e[7]!==u||e[8]!==l||e[9]!==i||e[10]!==n||e[11]!==r||e[12]!==a||e[13]!==s){let y;e[15]!==o||e[16]!==u||e[17]!==l||e[18]!==i||e[19]!==r||e[20]!==a||e[21]!==s?(y=(T,x)=>X2({item:T,renderIndex:x,message:r,reasoningGroups:a,isReasoningActive:i,totalDuration:s,dataParts:o,isLoading:l,isLast:u,isLastVisiblePart:!1}),e[15]=o,e[16]=u,e[17]=l,e[18]=i,e[19]=r,e[20]=a,e[21]=s,e[22]=y):y=e[22],h=n.map(y),e[6]=o,e[7]=u,e[8]=l,e[9]=i,e[10]=n,e[11]=r,e[12]=a,e[13]=s,e[14]=h}else h=e[14];let g;e[23]!==h?(g=m.jsx("div",{className:"flex flex-col gap-3 sm:gap-2 pt-1",children:h}),e[23]=h,e[24]=g):g=e[24];let b;return e[25]!==f||e[26]!==g?(b=m.jsx(Ce,{icon:null,alwaysChevron:!0,title:f,state:"idle",children:g}),e[25]=f,e[26]=g,e[27]=b):b=e[27],b}function X2({item:t,renderIndex:e,message:n,reasoningGroups:r,isReasoningActive:a,totalDuration:i,dataParts:s,isLoading:o,isLast:l,isLastVisiblePart:u,renderOrder:c}){if(t.kind==="reasoning-group"){const{group:h}=t,g=h===r[r.length-1],b=a&&g;if(!h.parts.some(x=>x.text?.trim())&&!b)return null;const T=r.length===1?i:null;return m.jsx(YJ,{duration:T,parts:h.parts,isStreaming:b},`${n.id}-reasoning-${h.startIndex}`)}const d=n.parts[t.index],p=u||(c?c.findLastIndex(h=>h.kind==="part")===e:!1),f=p?bN(gN(),n.metadata?.usage):null;return m.jsx(Vte,{part:d,id:n.id,usageStats:p&&m.jsx(OJ,{usage:f,duration:i}),dataParts:s,isLoading:o,isLastMessage:l},`${n.id}-${t.index}`)}function Vte(t){const e=W.c(121),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=t;let l;e[0]!==i.toolMetadata?(l=p=>i.toolMetadata.get(p),e[0]=i.toolMetadata,e[1]=l):l=e[1];const u=l;let c;e[2]!==i.toolSubtaskMetadata?(c=p=>i.toolSubtaskMetadata.get(p),e[2]=i.toolSubtaskMetadata,e[3]=c):c=e[3];const d=c;switch(n.type){case"dynamic-tool":{let p;e[4]!==u||e[5]!==n.toolCallId?(p=u(n.toolCallId)?.annotations,e[4]=u,e[5]=n.toolCallId,e[6]=p):p=e[6];let f;e[7]!==u||e[8]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,e[7]=u,e[8]=n.toolCallId,e[9]=f):f=e[9];let h;e[10]!==u||e[11]!==n.toolCallId?(h=u(n.toolCallId)?.outputBytes,e[10]=u,e[11]=n.toolCallId,e[12]=h):h=e[12];let g;e[13]!==u||e[14]!==n.toolCallId?(g=u(n.toolCallId)?._meta,e[13]=u,e[14]=n.toolCallId,e[15]=g):g=e[15];let b;return e[16]!==o||e[17]!==n||e[18]!==p||e[19]!==f||e[20]!==h||e[21]!==g?(b=m.jsx(v_,{part:n,annotations:p,latency:f,outputBytes:h,isLastMessage:o,toolMeta:g}),e[16]=o,e[17]=n,e[18]=p,e[19]=f,e[20]=h,e[21]=g,e[22]=b):b=e[22],b}case"tool-todo_write":return null;case"tool-update_interests":return null;case"tool-user_ask":{let p;e[23]!==u||e[24]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[23]=u,e[24]=n.toolCallId,e[25]=p):p=e[25];let f;return e[26]!==n||e[27]!==p?(f=m.jsx(Bee,{part:n,latency:p}),e[26]=n,e[27]=p,e[28]=f):f=e[28],f}case"tool-propose_plan":{let p;return e[29]!==n?(p=m.jsx(Xee,{part:n}),e[29]=n,e[30]=p):p=e[30],p}case"tool-generate_image":{let p;e[31]!==u||e[32]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[31]=u,e[32]=n.toolCallId,e[33]=p):p=e[33];let f;return e[34]!==n||e[35]!==p?(f=m.jsx(kee,{part:n,latency:p}),e[34]=n,e[35]=p,e[36]=f):f=e[36],f}case"tool-take_screenshot":{let p;e[37]!==u||e[38]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[37]=u,e[38]=n.toolCallId,e[39]=p):p=e[39];let f;return e[40]!==n||e[41]!==p?(f=m.jsx(_ee,{part:n,latency:p}),e[40]=n,e[41]=p,e[42]=f):f=e[42],f}case"tool-web_search":case"tool-deep_research":{let p;e[43]!==u||e[44]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[43]=u,e[44]=n.toolCallId,e[45]=p):p=e[45];let f;e[46]!==i.webSearchStreaming||e[47]!==n.toolCallId?(f=i.webSearchStreaming.get(n.toolCallId),e[46]=i.webSearchStreaming,e[47]=n.toolCallId,e[48]=f):f=e[48];let h;return e[49]!==n||e[50]!==p||e[51]!==f?(h=m.jsx(Fee,{part:n,latency:p,streamingText:f}),e[49]=n,e[50]=p,e[51]=f,e[52]=h):h=e[52],h}case"tool-subtask":{let p;e[53]!==d||e[54]!==n.toolCallId?(p=d(n.toolCallId),e[53]=d,e[54]=n.toolCallId,e[55]=p):p=e[55];let f;e[56]!==u||e[57]!==n.toolCallId?(f=u(n.toolCallId)?.annotations,e[56]=u,e[57]=n.toolCallId,e[58]=f):f=e[58];let h;e[59]!==u||e[60]!==n.toolCallId?(h=u(n.toolCallId)?.latencySeconds,e[59]=u,e[60]=n.toolCallId,e[61]=h):h=e[61];let g;e[62]!==n||e[63]!==p||e[64]!==f||e[65]!==h?(g={part:n,subtaskMeta:p,annotations:f,latency:h},e[62]=n,e[63]=p,e[64]=f,e[65]=h,e[66]=g):g=e[66];const b=g;let y;return e[67]!==b?(y=m.jsx(U.Suspense,{fallback:m.jsx(Yee,{...b}),children:m.jsx(Kee,{...b})}),e[67]=b,e[68]=y):y=e[68],y}case"text":{const p=!!a&&!s,f=s&&o;let h;return e[69]!==r||e[70]!==n||e[71]!==p||e[72]!==f||e[73]!==a?(h=m.jsx(Jl,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:p,animate:f}),e[69]=r,e[70]=n,e[71]=p,e[72]=f,e[73]=a,e[74]=h):h=e[74],h}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":case"data-generate-image":case"data-web-search":return null;default:{const p=n;if(p.type==="tool-brand_context_setup"||p.type==="tool-BRAND_CONTEXT_EXTRACT"){let f;e[75]!==p.toolCallId||e[76]!==u?(f=u(p.toolCallId)?.latencySeconds,e[75]=p.toolCallId,e[76]=u,e[77]=f):f=e[77];let h;return e[78]!==p||e[79]!==f?(h=m.jsx(ate,{part:p,latency:f}),e[78]=p,e[79]=f,e[80]=h):h=e[80],h}if(p.type==="tool-BRAND_CONTEXT_GET"){let f;e[81]!==p.toolCallId||e[82]!==u?(f=u(p.toolCallId)?.latencySeconds,e[81]=p.toolCallId,e[82]=u,e[83]=f):f=e[83];let h;return e[84]!==p||e[85]!==f?(h=m.jsx(ite,{part:p,latency:f}),e[84]=p,e[85]=f,e[86]=h):h=e[86],h}if(p.type==="tool-BRAND_CONTEXT_LIST"){let f;e[87]!==p.toolCallId||e[88]!==u?(f=u(p.toolCallId)?.latencySeconds,e[87]=p.toolCallId,e[88]=u,e[89]=f):f=e[89];let h;return e[90]!==p||e[91]!==f?(h=m.jsx(ste,{part:p,latency:f}),e[90]=p,e[91]=f,e[92]=h):h=e[92],h}if(p.type==="tool-COLLECTION_VIRTUAL_MCP_CREATE"){let f;e[93]!==p.toolCallId||e[94]!==u?(f=u(p.toolCallId)?.latencySeconds,e[93]=p.toolCallId,e[94]=u,e[95]=f):f=e[95];let h;return e[96]!==p||e[97]!==f?(h=m.jsx(ute,{part:p,latency:f}),e[96]=p,e[97]=f,e[98]=h):h=e[98],h}if(p.type==="tool-COLLECTION_VIRTUAL_MCP_LIST"){let f;e[99]!==p.toolCallId||e[100]!==u?(f=u(p.toolCallId)?.latencySeconds,e[99]=p.toolCallId,e[100]=u,e[101]=f):f=e[101];let h;return e[102]!==p||e[103]!==f?(h=m.jsx(fte,{part:p,latency:f}),e[102]=p,e[103]=f,e[104]=h):h=e[104],h}if(p.type==="tool-COLLECTION_CONNECTIONS_LIST"){let f;e[105]!==p.toolCallId||e[106]!==u?(f=u(p.toolCallId)?.latencySeconds,e[105]=p.toolCallId,e[106]=u,e[107]=f):f=e[107];let h;return e[108]!==p||e[109]!==f?(h=m.jsx(bte,{part:p,latency:f}),e[108]=p,e[109]=f,e[110]=h):h=e[110],h}if(p.type.startsWith("tool-")){const f=p.toolCallId;let h;e[111]!==i.toolMetadata||e[112]!==f?(h=i.toolMetadata.get(f),e[111]=i.toolMetadata,e[112]=f,e[113]=h):h=e[113];const g=h,b=g?.annotations,y=g?.latencySeconds,T=g?.outputBytes,x=g?._meta;let k;return e[114]!==p||e[115]!==o||e[116]!==b||e[117]!==y||e[118]!==T||e[119]!==x?(k=m.jsx(v_,{part:p,annotations:b,latency:y,outputBytes:T,isLastMessage:o,toolMeta:x}),e[114]=p,e[115]=o,e[116]=b,e[117]=y,e[118]=T,e[119]=x,e[120]=k):k=e[120],k}if(p.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${p.type}`)}}}function Yte(t){const e=W.c(9),{isRunInProgress:n}=t,r=fe();if(n){let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(bl,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),e[0]=s):s=e[0];let o;e[1]!==r?(o=r("chat.assistant.resumingTask"),e[1]=r,e[2]=o):o=e[2];let l;return e[3]!==o?(l=m.jsx("div",{className:"flex items-center gap-1.5 py-2 opacity-60",children:m.jsxs("span",{className:"flex items-center gap-1.5",children:[s,m.jsx("span",{className:"text-[14px] text-muted-foreground shimmer",children:o})]})}),e[3]=o,e[4]=l):l=e[4],l}let a;e[5]!==r?(a=r("chat.assistant.noResponseGenerated"),e[5]=r,e[6]=a):a=e[6];let i;return e[7]!==a?(i=m.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:a}),e[7]=a,e[8]=i):i=e[8],i}function Kte(t){const e=W.c(7),{className:n,children:r}=t;let a;e[0]!==n?(a=ye("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=m.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:m.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=m.jsx("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function Xte(t){const e=W.c(32),{message:n,turnStartedAt:r,status:a,className:i,isLast:s}=t,o=s===void 0?!1:s,l=fe(),{isRunInProgress:u}=Ka()??{},c=u===void 0?!1:u,d=Sb()?.taskId??null,p=a==="streaming",h=p||a==="submitted";let g;e[0]!==r?(g=Tb(r),e[0]=r,e[1]=g):g=e[1];const b=g;let y;e[2]!==h?(y=()=>h?Date.now():null,e[2]=h,e[3]=y):y=e[3];const[T,x]=U.useState(y),[k,A]=U.useState(h);k!==h&&(A(h),x(h?Date.now():null));const S=b??T,{reasoningGroups:v,renderOrder:N,dataParts:_}=Hte(n),C=n!==null&&N.length>0,L=n&&n.parts.length>0?n.parts[n.parts.length-1]:null,P=p&&L?.type==="reasoning";let $;if(e[4]!==n){const w=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,V=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;$=w!==null?V.getTime()-w.getTime():null,e[4]=n,e[5]=$}else $=e[5];const F=$;let M;e[6]!==o||e[7]!==n?(M=!o||!n||!n.parts.some(Qte),e[6]=o,e[7]=n,e[8]=M):M=e[8];const H=M;let j;e[9]!==C||e[10]!==h||e[11]!==H||e[12]!==n||e[13]!==N?(j=!h&&C&&H&&(()=>{let w=0;for(const V of N)if(V.kind==="part"){const ee=n.parts[V.index]?.type;(ee==="dynamic-tool"||ee?.startsWith("tool-"))&&w++}return w>=$te})(),e[9]=C,e[10]=h,e[11]=H,e[12]=n,e[13]=N,e[14]=j):j=e[14];const B=j;let Y;if(e[15]!==i||e[16]!==_||e[17]!==C||e[18]!==o||e[19]!==h||e[20]!==P||e[21]!==c||e[22]!==H||e[23]!==n||e[24]!==v||e[25]!==N||e[26]!==B||e[27]!==S||e[28]!==l||e[29]!==d||e[30]!==F){const{collapsed:w,tail:V}=B?zte(N,n.parts):{collapsed:[],tail:N};Y=m.jsx(Kte,{className:i,children:C?m.jsxs("div",{className:"flex flex-col gap-3 sm:gap-2",children:[n.metadata?.resumedFromBackground&&m.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] text-muted-foreground/60 select-none",children:[m.jsx(G_,{className:"size-3 shrink-0"}),m.jsx("span",{children:l("chat.assistant.resumedBackgroundTask")})]}),w.length>0&&m.jsx(Wte,{items:w,message:n,reasoningGroups:v,isReasoningActive:P,totalDuration:F,dataParts:_,isLoading:h,isLast:o}),V.map((ee,R)=>{const ne=w.length+R,ie=V.findLastIndex(Zte)===R;return X2({item:ee,renderIndex:ne,message:n,reasoningGroups:v,isReasoningActive:P,totalDuration:F,dataParts:_,isLoading:h,isLast:o,isLastVisiblePart:ie,renderOrder:N})}),d&&m.jsx(Bte,{threadId:d,message:n}),o&&h&&S!==null&&m.jsx(GJ,{startedAt:S}),o&&!h&&d&&m.jsxs(m.Fragment,{children:[m.jsx(vte,{}),H&&m.jsx(Tte,{})]}),!h&&m.jsx(P2,{message:n})]}):h?m.jsx(VJ,{startedAt:S}):m.jsx(Yte,{isRunInProgress:o&&c})}),e[15]=i,e[16]=_,e[17]=C,e[18]=o,e[19]=h,e[20]=P,e[21]=c,e[22]=H,e[23]=n,e[24]=v,e[25]=N,e[26]=B,e[27]=S,e[28]=l,e[29]=d,e[30]=F,e[31]=Y}else Y=e[31];return Y}function Zte(t){return t.kind==="part"}function Qte(t){const e=t.type;if(e!=="dynamic-tool"&&!e?.startsWith("tool-"))return!1;const n=t.state;return n==="input-streaming"||n==="input-available"||n==="approval-requested"}function Jte(t){const e=W.c(25),{event:n}=t,r=fe(),[a,i]=U.useState(!1);let s;e[0]!==n.data?(s=JSON.stringify(n.data,null,2),e[0]=n.data,e[1]=s):s=e[1];const o=s;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>i(ene),e[2]=l):l=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsx(uL,{className:"size-4 shrink-0 text-muted-foreground"}),e[3]=u):u=e[3];let c;e[4]!==r?(c=r("chat.triggerEventPart.triggeredByEvent"),e[4]=r,e[5]=c):c=e[5];let d;e[6]!==c?(d=m.jsx("span",{className:"font-medium",children:c}),e[6]=c,e[7]=d):d=e[7];let p;e[8]!==n.type?(p=m.jsx("span",{className:"min-w-0 truncate text-muted-foreground",children:n.type}),e[8]=n.type,e[9]=p):p=e[9];const f=a&&"rotate-180";let h;e[10]!==f?(h=ye("ml-auto size-4 shrink-0 text-muted-foreground transition-transform",f),e[10]=f,e[11]=h):h=e[11];let g;e[12]!==h?(g=m.jsx(po,{className:h}),e[12]=h,e[13]=g):g=e[13];let b;e[14]!==d||e[15]!==p||e[16]!==g?(b=m.jsxs("button",{type:"button",onClick:l,className:"flex w-full items-center gap-2 px-3 py-2 text-sm cursor-pointer",children:[u,d,p,g]}),e[14]=d,e[15]=p,e[16]=g,e[17]=b):b=e[17];let y;e[18]!==n.source||e[19]!==a||e[20]!==o?(y=a&&m.jsxs("div",{className:"border-t border-border/60 px-3 py-2",children:[m.jsx("div",{className:"mb-2 text-xs text-muted-foreground",children:n.source}),m.jsx("pre",{className:"overflow-auto whitespace-pre-wrap break-words text-xs text-foreground",children:o})]}),e[18]=n.source,e[19]=a,e[20]=o,e[21]=y):y=e[21];let T;return e[22]!==b||e[23]!==y?(T=m.jsxs("div",{className:"rounded-lg border border-border/60 bg-background overflow-hidden text-left",children:[b,y]}),e[22]=b,e[23]=y,e[24]=T):T=e[24],T}function ene(t){return!t}const tne=[RJ.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),O6,KZ];function nne(t){const e=W.c(5),{tiptapDoc:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},e[0]=r):r=e[0];let a;e[1]!==n?(a={extensions:tne,content:n,editable:!1,editorProps:r},e[1]=n,e[2]=a):a=e[2];const i=x6(a);if(!i)return null;let s;return e[3]!==i?(s=m.jsx(_w,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),e[3]=i,e[4]=s):s=e[4],s}function rne(t){const e=W.c(38),{message:n,className:r,onScrollToPair:a}=t,{id:i,parts:s,metadata:o}=n,[l,u]=U.useState(!1),[c,d]=U.useState(!1),p=U.useRef(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=M=>{M&&!p.current&&(p.current=!0,d(M.scrollHeight>M.clientHeight))},e[0]=f):f=e[0];const h=f;if(!s||s.length===0)return null;let g;e[1]!==a?(g=()=>{u(!0),a?.()},e[1]=a,e[2]=g):g=e[2];const b=g,y=o?.tiptapDoc;let T;e[3]!==r?(T=ye("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),e[3]=r,e[4]=T):T=e[4];let x,k;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>u(!0),k=()=>u(!1),e[5]=x,e[6]=k):(x=e[5],k=e[6]);let A;e[7]===Symbol.for("react.memo_cache_sentinel")?(A=m.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),e[7]=A):A=e[7];let S;e[8]!==l||e[9]!==c?(S=ye("z-10 px-4 py-2 flex-1 transition-[max-height,opacity] duration-300 ease-out",l?"max-h-[50vh] overflow-auto opacity-100":ye("max-h-[84px] overflow-hidden opacity-99",c&&"mask-b-from-1%")),e[8]=l,e[9]=c,e[10]=S):S=e[10];let v;if(e[11]!==i||e[12]!==s){let M;e[14]!==i?(M=(H,j)=>H.type==="data-trigger-event"?m.jsx(Jte,{event:H.data},`${i}-${j}`):null,e[14]=i,e[15]=M):M=e[15],v=s.map(M),e[11]=i,e[12]=s,e[13]=v}else v=e[13];let N;e[16]!==y||e[17]!==i||e[18]!==o||e[19]!==s?(N=y?m.jsx(nne,{tiptapDoc:o.tiptapDoc}):s.map((M,H)=>M.type==="text"?s[H-1]?.type==="data-trigger-event"?null:m.jsx(Jl,{id:i,part:M},`${i}-${H}`):null),e[16]=y,e[17]=i,e[18]=o,e[19]=s,e[20]=N):N=e[20];let _;e[21]!==v||e[22]!==N?(_=m.jsxs("div",{className:"flex flex-col gap-2",children:[v,N]}),e[21]=v,e[22]=N,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==S?(C=m.jsx("div",{ref:h,className:S,children:_}),e[24]=_,e[25]=S,e[26]=C):C=e[26];let L;e[27]!==b||e[28]!==C?(L=m.jsxs("div",{tabIndex:0,onClick:b,onFocus:x,onBlur:k,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[A,C]}),e[27]=b,e[28]=C,e[29]=L):L=e[29];let P;e[30]!==n?(P=m.jsx(P2,{message:n,className:"mt-1 mr-1 self-end"}),e[30]=n,e[31]=P):P=e[31];let $;e[32]!==L||e[33]!==P?($=m.jsxs("div",{className:"w-full min-w-0 flex flex-col",children:[L,P]}),e[32]=L,e[33]=P,e[34]=$):$=e[34];let F;return e[35]!==$||e[36]!==T?(F=m.jsx(m.Fragment,{children:m.jsx("div",{className:T,children:$})}),e[35]=$,e[36]=T,e[37]=F):F=e[37],F}function ane(t){const e=[],n=t.filter(r=>r.role!=="system"&&!r.metadata?.internal&&!r.metadata?.subtaskJobId);for(let r=0;r<n.length;r++){const a=n[r];if(a)if(a.role==="user"){const i=n[r+1];i&&i.role==="assistant"?(e.push({user:a,assistant:i}),r++):e.push({user:a,assistant:null})}else a.role==="assistant"&&e.push({user:null,assistant:a})}return e}function ine(t){const e=W.c(19),{pair:n,isLastPair:r,status:a}=t,i=U.useRef(null),s=U.useRef(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},e[0]=o):o=e[0];const l=o;let u;e[1]!==r||e[2]!==n.assistant?.metadata?.resumedFromBackground||e[3]!==a?(u=y=>{if(i.current=y,!r||!y||s.current||(s.current=!0,n.assistant?.metadata?.resumedFromBackground))return;if(a==="submitted"||a==="streaming"){y.scrollIntoView({behavior:"smooth",block:"start"});return}const T=y.closest("[data-chat-scroller]");T?T.scrollTop=T.scrollHeight:y.scrollIntoView({behavior:"instant",block:"start"})},e[1]=r,e[2]=n.assistant?.metadata?.resumedFromBackground,e[3]=a,e[4]=u):u=e[4];const c=u,d=!n.user&&"pt-8 sm:pt-6";let p;e[5]!==d?(p=ye("flex flex-col pb-2 sm:pb-2",d),e[5]=d,e[6]=p):p=e[6];let f;e[7]!==n.user?(f=n.user&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),m.jsx("div",{className:"sticky mb-8 sm:mb-6 top-4 z-50",children:m.jsx(rne,{message:n.user,onScrollToPair:l})})]}),e[7]=n.user,e[8]=f):f=e[8];const h=n.user?.created_at??null;let g;e[9]!==r||e[10]!==n.assistant||e[11]!==a||e[12]!==h?(g=m.jsx(Xte,{message:n.assistant,turnStartedAt:h,status:a,isLast:r}),e[9]=r,e[10]=n.assistant,e[11]=a,e[12]=h,e[13]=g):g=e[13];let b;return e[14]!==c||e[15]!==p||e[16]!==f||e[17]!==g?(b=m.jsxs("div",{ref:c,className:p,children:[f,g]}),e[14]=c,e[15]=p,e[16]=f,e[17]=g,e[18]=b):b=e[18],b}function sne(t,e){return U.useReducer((n,r)=>e[n][r]??n,t)}var cE="ScrollArea",[Z2]=z_(cE),[one,hn]=Z2(cE),Q2=U.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:i=600,...s}=t,[o,l]=U.useState(null),[u,c]=U.useState(null),[d,p]=U.useState(null),[f,h]=U.useState(null),[g,b]=U.useState(null),[y,T]=U.useState(0),[x,k]=U.useState(0),[A,S]=U.useState(!1),[v,N]=U.useState(!1),_=ua(e,L=>l(L)),C=WO(a);return m.jsx(one,{scope:n,type:r,dir:C,scrollHideDelay:i,scrollArea:o,viewport:u,onViewportChange:c,content:d,onContentChange:p,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:A,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:v,onScrollbarYEnabledChange:N,onCornerWidthChange:T,onCornerHeightChange:k,children:m.jsx(Cr.div,{dir:C,...s,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...t.style}})})});Q2.displayName=cE;var J2="ScrollAreaViewport",eO=U.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:r,nonce:a,...i}=t,s=hn(J2,n),o=U.useRef(null),l=ua(e,o,s.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),m.jsx(Cr.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...t.style},children:m.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});eO.displayName=J2;var Un="ScrollAreaScrollbar",tO=U.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=hn(Un,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,o=t.orientation==="horizontal";return U.useEffect(()=>(o?i(!0):s(!0),()=>{o?i(!1):s(!1)}),[o,i,s]),a.type==="hover"?m.jsx(lne,{...r,ref:e,forceMount:n}):a.type==="scroll"?m.jsx(une,{...r,ref:e,forceMount:n}):a.type==="auto"?m.jsx(nO,{...r,ref:e,forceMount:n}):a.type==="always"?m.jsx(dE,{...r,ref:e}):null});tO.displayName=Un;var lne=U.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=hn(Un,t.__scopeScrollArea),[i,s]=U.useState(!1);return U.useEffect(()=>{const o=a.scrollArea;let l=0;if(o){const u=()=>{window.clearTimeout(l),s(!0)},c=()=>{l=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return o.addEventListener("pointerenter",u),o.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),o.removeEventListener("pointerenter",u),o.removeEventListener("pointerleave",c)}}},[a.scrollArea,a.scrollHideDelay]),m.jsx(ds,{present:n||i,children:m.jsx(nO,{"data-state":i?"visible":"hidden",...r,ref:e})})}),une=U.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=hn(Un,t.__scopeScrollArea),i=t.orientation==="horizontal",s=iu(()=>l("SCROLL_END"),100),[o,l]=sne("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return U.useEffect(()=>{if(o==="idle"){const u=window.setTimeout(()=>l("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[o,a.scrollHideDelay,l]),U.useEffect(()=>{const u=a.viewport,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c];const p=()=>{const f=u[c];d!==f&&(l("SCROLL"),s()),d=f};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[a.viewport,i,l,s]),m.jsx(ds,{present:n||o!=="hidden",children:m.jsx(dE,{"data-state":o==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Sr(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Sr(t.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),nO=U.forwardRef((t,e)=>{const n=hn(Un,t.__scopeScrollArea),{forceMount:r,...a}=t,[i,s]=U.useState(!1),o=t.orientation==="horizontal",l=iu(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,c=n.viewport.offsetHeight<n.viewport.scrollHeight;s(o?u:c)}},10);return Va(n.viewport,l),Va(n.content,l),m.jsx(ds,{present:r||i,children:m.jsx(dE,{"data-state":i?"visible":"hidden",...a,ref:e})})}),dE=U.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,a=hn(Un,t.__scopeScrollArea),i=U.useRef(null),s=U.useRef(0),[o,l]=U.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=oO(o.viewport,o.content),c={...r,sizes:o,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:p=>i.current=p,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:p=>s.current=p};function d(p,f){return mne(p,s.current,o,f)}return n==="horizontal"?m.jsx(cne,{...c,ref:e,onThumbPositionChange:()=>{if(a.viewport&&i.current){const p=a.viewport.scrollLeft,f=I_(p,o,a.dir);i.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:p=>{a.viewport&&(a.viewport.scrollLeft=p)},onDragScroll:p=>{a.viewport&&(a.viewport.scrollLeft=d(p,a.dir))}}):n==="vertical"?m.jsx(dne,{...c,ref:e,onThumbPositionChange:()=>{if(a.viewport&&i.current){const p=a.viewport.scrollTop,f=I_(p,o);i.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:p=>{a.viewport&&(a.viewport.scrollTop=p)},onDragScroll:p=>{a.viewport&&(a.viewport.scrollTop=d(p))}}):null}),cne=U.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...a}=t,i=hn(Un,t.__scopeScrollArea),[s,o]=U.useState(),l=U.useRef(null),u=ua(e,l,i.onScrollbarXChange);return U.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),m.jsx(aO,{"data-orientation":"horizontal",...a,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":au(n)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(i.viewport){const p=i.viewport.scrollLeft+c.deltaX;t.onWheelScroll(p),uO(p,d)&&c.preventDefault()}},onResize:()=>{l.current&&i.viewport&&s&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:fl(s.paddingLeft),paddingEnd:fl(s.paddingRight)}})}})}),dne=U.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...a}=t,i=hn(Un,t.__scopeScrollArea),[s,o]=U.useState(),l=U.useRef(null),u=ua(e,l,i.onScrollbarYChange);return U.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),m.jsx(aO,{"data-orientation":"vertical",...a,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":au(n)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(i.viewport){const p=i.viewport.scrollTop+c.deltaY;t.onWheelScroll(p),uO(p,d)&&c.preventDefault()}},onResize:()=>{l.current&&i.viewport&&s&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:fl(s.paddingTop),paddingEnd:fl(s.paddingBottom)}})}})}),[pne,rO]=Z2(Un),aO=U.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:o,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...p}=t,f=hn(Un,n),[h,g]=U.useState(null),b=ua(e,_=>g(_)),y=U.useRef(null),T=U.useRef(""),x=f.viewport,k=r.content-r.viewport,A=Ur(c),S=Ur(l),v=iu(d,10);function N(_){if(y.current){const C=_.clientX-y.current.left,L=_.clientY-y.current.top;u({x:C,y:L})}}return U.useEffect(()=>{const _=C=>{const L=C.target;h?.contains(L)&&A(C,k)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[x,h,k,A]),U.useEffect(S,[r,S]),Va(h,v),Va(f.content,v),m.jsx(pne,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:Ur(i),onThumbPointerUp:Ur(s),onThumbPositionChange:S,onThumbPointerDown:Ur(o),children:m.jsx(Cr.div,{...p,ref:b,style:{position:"absolute",...p.style},onPointerDown:Sr(t.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),y.current=h.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),N(_))}),onPointerMove:Sr(t.onPointerMove,N),onPointerUp:Sr(t.onPointerUp,_=>{const C=_.target;C.hasPointerCapture(_.pointerId)&&C.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=T.current,f.viewport&&(f.viewport.style.scrollBehavior=""),y.current=null})})})}),pl="ScrollAreaThumb",iO=U.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=rO(pl,t.__scopeScrollArea);return m.jsx(ds,{present:n||a.hasThumb,children:m.jsx(fne,{ref:e,...r})})}),fne=U.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:r,...a}=t,i=hn(pl,n),s=rO(pl,n),{onThumbPositionChange:o}=s,l=ua(e,d=>s.onThumbChange(d)),u=U.useRef(void 0),c=iu(()=>{u.current&&(u.current(),u.current=void 0)},100);return U.useEffect(()=>{const d=i.viewport;if(d){const p=()=>{if(c(),!u.current){const f=gne(d,o);u.current=f,o()}};return o(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[i.viewport,c,o]),m.jsx(Cr.div,{"data-state":s.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Sr(t.onPointerDownCapture,d=>{const f=d.target.getBoundingClientRect(),h=d.clientX-f.left,g=d.clientY-f.top;s.onThumbPointerDown({x:h,y:g})}),onPointerUp:Sr(t.onPointerUp,s.onThumbPointerUp)})});iO.displayName=pl;var pE="ScrollAreaCorner",sO=U.forwardRef((t,e)=>{const n=hn(pE,t.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(hne,{...t,ref:e}):null});sO.displayName=pE;var hne=U.forwardRef((t,e)=>{const{__scopeScrollArea:n,...r}=t,a=hn(pE,n),[i,s]=U.useState(0),[o,l]=U.useState(0),u=!!(i&&o);return Va(a.scrollbarX,()=>{const c=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(c),l(c)}),Va(a.scrollbarY,()=>{const c=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(c),s(c)}),u?m.jsx(Cr.div,{...r,ref:e,style:{width:i,height:o,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function fl(t){return t?parseInt(t,10):0}function oO(t,e){const n=t/e;return isNaN(n)?0:n}function au(t){const e=oO(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function mne(t,e,n,r="ltr"){const a=au(n),i=a/2,s=e||i,o=a-s,l=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-o,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return lO([l,u],d)(t)}function I_(t,e,n="ltr"){const r=au(e),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-a,s=e.content-e.viewport,o=i-r,l=n==="ltr"?[0,s]:[s*-1,0],u=VO(t,l);return lO([0,s],[0,o])(u)}function lO(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function uO(t,e){return t>0&&t<e}var gne=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function a(){const i={left:t.scrollLeft,top:t.scrollTop},s=n.left!==i.left,o=n.top!==i.top;(s||o)&&e(),n=i,r=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(r)};function iu(t,e){const n=Ur(t),r=U.useRef(0);return U.useEffect(()=>()=>window.clearTimeout(r.current),[]),U.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,e)},[n,e])}function Va(t,e){const n=Ur(e);$_(()=>{let r=0;if(t){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(t),()=>{window.cancelAnimationFrame(r),a.unobserve(t)}}},[t,n])}var bne=Q2,Ene=eO,yne=sO;function loe(t){const e=W.c(21);let n,r,a,i,s;e[0]!==t?({className:r,children:n,hideScrollbar:i,viewportRef:s,...a}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=a,e[4]=i,e[5]=s):(n=e[1],r=e[2],a=e[3],i=e[4],s=e[5]);const o=i===void 0?!1:i;let l;e[6]!==r?(l=ye("relative h-full w-full",r),e[6]=r,e[7]=l):l=e[7];let u;e[8]!==n?(u=m.jsx("div",{className:"flex min-w-0 flex-col",children:n}),e[8]=n,e[9]=u):u=e[9];let c;e[10]!==u||e[11]!==s?(c=m.jsx(Ene,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=c):c=e[12];let d;e[13]!==o?(d=m.jsx(Tne,{hideScrollbar:o}),e[13]=o,e[14]=d):d=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx(yne,{}),e[15]=p):p=e[15];let f;return e[16]!==a||e[17]!==l||e[18]!==c||e[19]!==d?(f=m.jsxs(bne,{"data-slot":"scroll-area",className:l,...a,children:[c,d,p]}),e[16]=a,e[17]=l,e[18]=c,e[19]=d,e[20]=f):f=e[20],f}function Tne(t){const e=W.c(15);let n,r,a,i;e[0]!==t?({className:n,orientation:a,hideScrollbar:i,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=a,e[4]=i):(n=e[1],r=e[2],a=e[3],i=e[4]);const s=a===void 0?"vertical":a,o=i===void 0?!1:i,l=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",c=o&&"hidden";let d;e[5]!==n||e[6]!==l||e[7]!==u||e[8]!==c?(d=ye("select-none touch-none p-px transition-colors",l,u,c,n),e[5]=n,e[6]=l,e[7]=u,e[8]=c,e[9]=d):d=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx(iO,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=p):p=e[10];let f;return e[11]!==s||e[12]!==r||e[13]!==d?(f=m.jsx(tO,{"data-slot":"scroll-area-scrollbar",orientation:s,className:d,...r,children:p}),e[11]=s,e[12]=r,e[13]=d,e[14]=f):f=e[14],f}function Le(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function Jt(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Ot(t,e){const n=Le(t);return isNaN(e)?Jt(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function yn(t,e){const n=Le(t);if(isNaN(e))return Jt(t,NaN);if(!e)return n;const r=n.getDate(),a=Jt(t,n.getTime());a.setMonth(n.getMonth()+e+1,0);const i=a.getDate();return r>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}const fE=6048e5,Sne=864e5;let xne={};function _s(){return xne}function Mn(t,e){const n=_s(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Le(t),i=a.getDay(),s=(i<r?7:0)+i-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function oa(t){return Mn(t,{weekStartsOn:1})}function cO(t){const e=Le(t),n=e.getFullYear(),r=Jt(t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=oa(r),i=Jt(t,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=oa(i);return e.getTime()>=a.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function Ya(t){const e=Le(t);return e.setHours(0,0,0,0),e}function hl(t){const e=Le(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function On(t,e){const n=Ya(t),r=Ya(e),a=+n-hl(n),i=+r-hl(r);return Math.round((a-i)/Sne)}function kne(t){const e=cO(t),n=Jt(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),oa(n)}function sb(t,e){const n=e*7;return Ot(t,n)}function vne(t,e){return yn(t,e*12)}function Ane(t){let e;return t.forEach(function(n){const r=Le(n);(e===void 0||e<r||isNaN(Number(r)))&&(e=r)}),e||new Date(NaN)}function _ne(t){let e;return t.forEach(n=>{const r=Le(n);(!e||e>r||isNaN(+r))&&(e=r)}),e||new Date(NaN)}function zt(t,e){const n=Ya(t),r=Ya(e);return+n==+r}function hE(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Nne(t){if(!hE(t)&&typeof t!="number")return!1;const e=Le(t);return!isNaN(Number(e))}function cs(t,e){const n=Le(t),r=Le(e),a=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return a*12+i}function Cne(t,e,n){const r=Mn(t,n),a=Mn(e,n),i=+r-hl(r),s=+a-hl(a);return Math.round((i-s)/fE)}function mE(t){const e=Le(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Gt(t){const e=Le(t);return e.setDate(1),e.setHours(0,0,0,0),e}function dO(t){const e=Le(t),n=Jt(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function gE(t,e){const n=_s(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Le(t),i=a.getDay(),s=(i<r?-7:0)+6-(i-r);return a.setDate(a.getDate()+s),a.setHours(23,59,59,999),a}function pO(t){return gE(t,{weekStartsOn:1})}const wne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ine=(t,e,n)=>{let r;const a=wne[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function zm(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Rne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},One={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Lne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dne={date:zm({formats:Rne,defaultWidth:"full"}),time:zm({formats:One,defaultWidth:"full"}),dateTime:zm({formats:Lne,defaultWidth:"full"})},Mne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pne=(t,e,n,r)=>Mne[t];function gi(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,o=n?.width?String(n.width):s;a=t.formattingValues[o]||t.formattingValues[s]}else{const s=t.defaultWidth,o=n?.width?String(n.width):t.defaultWidth;a=t.values[o]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(e):e;return a[i]}}const Fne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Une={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$ne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zne=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},qne={ordinalNumber:zne,era:gi({values:Fne,defaultWidth:"wide"}),quarter:gi({values:Bne,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gi({values:Une,defaultWidth:"wide"}),day:gi({values:jne,defaultWidth:"wide"}),dayPeriod:gi({values:Hne,defaultWidth:"wide",formattingValues:$ne,defaultFormattingWidth:"wide"})};function bi(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;const s=i[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?Wne(o,d=>d.test(s)):Gne(o,d=>d.test(s));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(s.length);return{value:u,rest:c}}}function Gne(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Wne(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Vne(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const o=e.slice(a.length);return{value:s,rest:o}}}const Yne=/^(\d+)(th|st|nd|rd)?/i,Kne=/\d+/i,Xne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zne={any:[/^b/i,/^(a|c)/i]},Qne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jne={any:[/1/i,/2/i,/3/i,/4/i]},ere={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tre={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nre={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rre={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},are={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ire={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},sre={ordinalNumber:Vne({matchPattern:Yne,parsePattern:Kne,valueCallback:t=>parseInt(t,10)}),era:bi({matchPatterns:Xne,defaultMatchWidth:"wide",parsePatterns:Zne,defaultParseWidth:"any"}),quarter:bi({matchPatterns:Qne,defaultMatchWidth:"wide",parsePatterns:Jne,defaultParseWidth:"any",valueCallback:t=>t+1}),month:bi({matchPatterns:ere,defaultMatchWidth:"wide",parsePatterns:tre,defaultParseWidth:"any"}),day:bi({matchPatterns:nre,defaultMatchWidth:"wide",parsePatterns:rre,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:are,defaultMatchWidth:"any",parsePatterns:ire,defaultParseWidth:"any"})},fO={code:"en-US",formatDistance:Ine,formatLong:Dne,formatRelative:Pne,localize:qne,match:sre,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ore(t){const e=Le(t);return On(e,dO(e))+1}function hO(t){const e=Le(t),n=+oa(e)-+kne(e);return Math.round(n/fE)+1}function mO(t,e){const n=Le(t),r=n.getFullYear(),a=_s(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=Jt(t,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const o=Mn(s,e),l=Jt(t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Mn(l,e);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function lre(t,e){const n=_s(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=mO(t,e),i=Jt(t,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),Mn(i,e)}function gO(t,e){const n=Le(t),r=+Mn(n,e)-+lre(n,e);return Math.round(r/fE)+1}function Be(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const or={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Be(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Be(n+1,2)},d(t,e){return Be(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Be(t.getHours()%12||12,e.length)},H(t,e){return Be(t.getHours(),e.length)},m(t,e){return Be(t.getMinutes(),e.length)},s(t,e){return Be(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Be(a,e.length)}},xa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R_={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return or.y(t,e)},Y:function(t,e,n,r){const a=mO(t,r),i=a>0?a:1-a;if(e==="YY"){const s=i%100;return Be(s,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Be(i,e.length)},R:function(t,e){const n=cO(t);return Be(n,e.length)},u:function(t,e){const n=t.getFullYear();return Be(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Be(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Be(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return or.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Be(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=gO(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):Be(a,e.length)},I:function(t,e,n){const r=hO(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Be(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):or.d(t,e)},D:function(t,e,n){const r=ore(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Be(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Be(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Be(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return Be(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=xa.noon:r===0?a=xa.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=xa.evening:r>=12?a=xa.afternoon:r>=4?a=xa.morning:a=xa.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return or.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):or.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):or.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):or.s(t,e)},S:function(t,e){return or.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return L_(r);case"XXXX":case"XX":return Br(r);default:return Br(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return L_(r);case"xxxx":case"xx":return Br(r);default:return Br(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+O_(r,":");default:return"GMT"+Br(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+O_(r,":");default:return"GMT"+Br(r,":")}},t:function(t,e,n){const r=Math.trunc(t.getTime()/1e3);return Be(r,e.length)},T:function(t,e,n){const r=t.getTime();return Be(r,e.length)}};function O_(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+e+Be(i,2)}function L_(t,e){return t%60===0?(t>0?"-":"+")+Be(Math.abs(t)/60,2):Br(t,e)}function Br(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Be(Math.trunc(r/60),2),i=Be(r%60,2);return n+a+e+i}const D_=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},bO=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ure=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return D_(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",D_(r,e)).replace("{{time}}",bO(a,e))},cre={p:bO,P:ure},dre=/^D+$/,pre=/^Y+$/,fre=["D","DD","YY","YYYY"];function hre(t){return dre.test(t)}function mre(t){return pre.test(t)}function gre(t,e,n){const r=bre(t,e,n);if(console.warn(r),fre.includes(t))throw new RangeError(r)}function bre(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ere=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yre=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tre=/^'([^]*?)'?$/,Sre=/''/g,xre=/[a-zA-Z]/;function ba(t,e,n){const r=_s(),a=n?.locale??r.locale??fO,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Le(t);if(!Nne(o))throw new RangeError("Invalid time value");let l=e.match(yre).map(c=>{const d=c[0];if(d==="p"||d==="P"){const p=cre[d];return p(c,a.formatLong)}return c}).join("").match(Ere).map(c=>{if(c==="''")return{isToken:!1,value:"'"};const d=c[0];if(d==="'")return{isToken:!1,value:kre(c)};if(R_[d])return{isToken:!0,value:c};if(d.match(xre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:c}});a.localize.preprocessor&&(l=a.localize.preprocessor(o,l));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return l.map(c=>{if(!c.isToken)return c.value;const d=c.value;(!n?.useAdditionalWeekYearTokens&&mre(d)||!n?.useAdditionalDayOfYearTokens&&hre(d))&&gre(d,e,String(t));const p=R_[d[0]];return p(o,d,a.localize,u)}).join("")}function kre(t){const e=t.match(Tre);return e?e[1].replace(Sre,"'"):t}function vre(t){const e=Le(t),n=e.getFullYear(),r=e.getMonth(),a=Jt(t,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function Are(t){return Math.trunc(+Le(t)/1e3)}function _re(t){const e=Le(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function Nre(t,e){return Cne(_re(t),Gt(t),e)+1}function ob(t,e){const n=Le(t),r=Le(e);return n.getTime()>r.getTime()}function EO(t,e){const n=Le(t),r=Le(e);return+n<+r}function bE(t,e){const n=Le(t),r=Le(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Cre(t,e){const n=Le(t),r=Le(e);return n.getFullYear()===r.getFullYear()}function qm(t,e){return Ot(t,-e)}function Gm(t,e){const n=Le(t),r=n.getFullYear(),a=n.getDate(),i=Jt(t,0);i.setFullYear(r,e,15),i.setHours(0,0,0,0);const s=vre(i);return n.setMonth(e,Math.min(a,s)),n}function M_(t,e){const n=Le(t);return isNaN(+n)?Jt(t,NaN):(n.setFullYear(e),n)}var ge=function(){return ge=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ge.apply(this,arguments)};function wre(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function yO(t,e,n){for(var r=0,a=e.length,i;r<a;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function Ns(t){return t.mode==="multiple"}function Cs(t){return t.mode==="range"}function su(t){return t.mode==="single"}var Ire={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Rre(t,e){return ba(t,"LLLL y",e)}function Ore(t,e){return ba(t,"d",e)}function Lre(t,e){return ba(t,"LLLL",e)}function Dre(t){return"".concat(t)}function Mre(t,e){return ba(t,"cccccc",e)}function Pre(t,e){return ba(t,"yyyy",e)}var Fre=Object.freeze({__proto__:null,formatCaption:Rre,formatDay:Ore,formatMonthCaption:Lre,formatWeekNumber:Dre,formatWeekdayName:Mre,formatYearCaption:Pre}),Bre=function(t,e,n){return ba(t,"do MMMM (EEEE)",n)},Ure=function(){return"Month: "},jre=function(){return"Go to next month"},Hre=function(){return"Go to previous month"},$re=function(t,e){return ba(t,"cccc",e)},zre=function(t){return"Week n. ".concat(t)},qre=function(){return"Year: "},Gre=Object.freeze({__proto__:null,labelDay:Bre,labelMonthDropdown:Ure,labelNext:jre,labelPrevious:Hre,labelWeekNumber:zre,labelWeekday:$re,labelYearDropdown:qre});function Wre(){var t="buttons",e=Ire,n=fO,r={},a={},i=1,s={},o=new Date;return{captionLayout:t,classNames:e,formatters:Fre,labels:Gre,locale:n,modifiersClassNames:r,modifiers:a,numberOfMonths:i,styles:s,today:o,mode:"default"}}function Vre(t){var e=t.fromYear,n=t.toYear,r=t.fromMonth,a=t.toMonth,i=t.fromDate,s=t.toDate;return r?i=Gt(r):e&&(i=new Date(e,0,1)),a?s=mE(a):n&&(s=new Date(n,11,31)),{fromDate:i?Ya(i):void 0,toDate:s?Ya(s):void 0}}var TO=U.createContext(void 0);function Yre(t){var e,n=t.initialProps,r=Wre(),a=Vre(n),i=a.fromDate,s=a.toDate,o=(e=n.captionLayout)!==null&&e!==void 0?e:r.captionLayout;o!=="buttons"&&(!i||!s)&&(o="buttons");var l;(su(n)||Ns(n)||Cs(n))&&(l=n.onSelect);var u=ge(ge(ge({},r),n),{captionLayout:o,classNames:ge(ge({},r.classNames),n.classNames),components:ge({},n.components),formatters:ge(ge({},r.formatters),n.formatters),fromDate:i,labels:ge(ge({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:ge(ge({},r.modifiers),n.modifiers),modifiersClassNames:ge(ge({},r.modifiersClassNames),n.modifiersClassNames),onSelect:l,styles:ge(ge({},r.styles),n.styles),toDate:s});return m.jsx(TO.Provider,{value:u,children:t.children})}function Ge(){var t=U.useContext(TO);if(!t)throw new Error("useDayPicker must be used within a DayPickerProvider.");return t}function SO(t){var e=Ge(),n=e.locale,r=e.classNames,a=e.styles,i=e.formatters.formatCaption;return m.jsx("div",{className:r.caption_label,style:a.caption_label,"aria-live":"polite",role:"presentation",id:t.id,children:i(t.displayMonth,{locale:n})})}function Kre(t){return m.jsx("svg",ge({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},t,{children:m.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function xO(t){var e,n,r=t.onChange,a=t.value,i=t.children,s=t.caption,o=t.className,l=t.style,u=Ge(),c=(n=(e=u.components)===null||e===void 0?void 0:e.IconDropdown)!==null&&n!==void 0?n:Kre;return m.jsxs("div",{className:o,style:l,children:[m.jsx("span",{className:u.classNames.vhidden,children:t["aria-label"]}),m.jsx("select",{name:t.name,"aria-label":t["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:a,onChange:r,children:i}),m.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[s,m.jsx(c,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function Xre(t){var e,n=Ge(),r=n.fromDate,a=n.toDate,i=n.styles,s=n.locale,o=n.formatters.formatMonthCaption,l=n.classNames,u=n.components,c=n.labels.labelMonthDropdown;if(!r)return m.jsx(m.Fragment,{});if(!a)return m.jsx(m.Fragment,{});var d=[];if(Cre(r,a))for(var p=Gt(r),f=r.getMonth();f<=a.getMonth();f++)d.push(Gm(p,f));else for(var p=Gt(new Date),f=0;f<=11;f++)d.push(Gm(p,f));var h=function(b){var y=Number(b.target.value),T=Gm(Gt(t.displayMonth),y);t.onChange(T)},g=(e=u?.Dropdown)!==null&&e!==void 0?e:xO;return m.jsx(g,{name:"months","aria-label":c(),className:l.dropdown_month,style:i.dropdown_month,onChange:h,value:t.displayMonth.getMonth(),caption:o(t.displayMonth,{locale:s}),children:d.map(function(b){return m.jsx("option",{value:b.getMonth(),children:o(b,{locale:s})},b.getMonth())})})}function Zre(t){var e,n=t.displayMonth,r=Ge(),a=r.fromDate,i=r.toDate,s=r.locale,o=r.styles,l=r.classNames,u=r.components,c=r.formatters.formatYearCaption,d=r.labels.labelYearDropdown,p=[];if(!a)return m.jsx(m.Fragment,{});if(!i)return m.jsx(m.Fragment,{});for(var f=a.getFullYear(),h=i.getFullYear(),g=f;g<=h;g++)p.push(M_(dO(new Date),g));var b=function(T){var x=M_(Gt(n),Number(T.target.value));t.onChange(x)},y=(e=u?.Dropdown)!==null&&e!==void 0?e:xO;return m.jsx(y,{name:"years","aria-label":d(),className:l.dropdown_year,style:o.dropdown_year,onChange:b,value:n.getFullYear(),caption:c(n,{locale:s}),children:p.map(function(T){return m.jsx("option",{value:T.getFullYear(),children:c(T,{locale:s})},T.getFullYear())})})}function Qre(t,e){var n=U.useState(t),r=n[0],a=n[1],i=e===void 0?r:e;return[i,a]}function Jre(t){var e=t.month,n=t.defaultMonth,r=t.today,a=e||n||r||new Date,i=t.toDate,s=t.fromDate,o=t.numberOfMonths,l=o===void 0?1:o;if(i&&cs(i,a)<0){var u=-1*(l-1);a=yn(i,u)}return s&&cs(a,s)<0&&(a=s),Gt(a)}function eae(){var t=Ge(),e=Jre(t),n=Qre(e,t.month),r=n[0],a=n[1],i=function(s){var o;if(!t.disableNavigation){var l=Gt(s);a(l),(o=t.onMonthChange)===null||o===void 0||o.call(t,l)}};return[r,i]}function tae(t,e){for(var n=e.reverseMonths,r=e.numberOfMonths,a=Gt(t),i=Gt(yn(a,r)),s=cs(i,a),o=[],l=0;l<s;l++){var u=yn(a,l);o.push(u)}return n&&(o=o.reverse()),o}function nae(t,e){if(!e.disableNavigation){var n=e.toDate,r=e.pagedNavigation,a=e.numberOfMonths,i=a===void 0?1:a,s=r?i:1,o=Gt(t);if(!n)return yn(o,s);var l=cs(n,t);if(!(l<i))return yn(o,s)}}function rae(t,e){if(!e.disableNavigation){var n=e.fromDate,r=e.pagedNavigation,a=e.numberOfMonths,i=a===void 0?1:a,s=r?i:1,o=Gt(t);if(!n)return yn(o,-s);var l=cs(o,n);if(!(l<=0))return yn(o,-s)}}var kO=U.createContext(void 0);function aae(t){var e=Ge(),n=eae(),r=n[0],a=n[1],i=tae(r,e),s=nae(r,e),o=rae(r,e),l=function(d){return i.some(function(p){return bE(d,p)})},u=function(d,p){l(d)||(p&&EO(d,p)?a(yn(d,1+e.numberOfMonths*-1)):a(d))},c={currentMonth:r,displayMonths:i,goToMonth:a,goToDate:u,previousMonth:o,nextMonth:s,isDateDisplayed:l};return m.jsx(kO.Provider,{value:c,children:t.children})}function ws(){var t=U.useContext(kO);if(!t)throw new Error("useNavigation must be used within a NavigationProvider");return t}function P_(t){var e,n=Ge(),r=n.classNames,a=n.styles,i=n.components,s=ws().goToMonth,o=function(c){s(yn(c,t.displayIndex?-t.displayIndex:0))},l=(e=i?.CaptionLabel)!==null&&e!==void 0?e:SO,u=m.jsx(l,{id:t.id,displayMonth:t.displayMonth});return m.jsxs("div",{className:r.caption_dropdowns,style:a.caption_dropdowns,children:[m.jsx("div",{className:r.vhidden,children:u}),m.jsx(Xre,{onChange:o,displayMonth:t.displayMonth}),m.jsx(Zre,{onChange:o,displayMonth:t.displayMonth})]})}function iae(t){return m.jsx("svg",ge({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:m.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function sae(t){return m.jsx("svg",ge({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:m.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var ml=U.forwardRef(function(t,e){var n=Ge(),r=n.classNames,a=n.styles,i=[r.button_reset,r.button];t.className&&i.push(t.className);var s=i.join(" "),o=ge(ge({},a.button_reset),a.button);return t.style&&Object.assign(o,t.style),m.jsx("button",ge({},t,{ref:e,type:"button",className:s,style:o}))});function oae(t){var e,n,r=Ge(),a=r.dir,i=r.locale,s=r.classNames,o=r.styles,l=r.labels,u=l.labelPrevious,c=l.labelNext,d=r.components;if(!t.nextMonth&&!t.previousMonth)return m.jsx(m.Fragment,{});var p=u(t.previousMonth,{locale:i}),f=[s.nav_button,s.nav_button_previous].join(" "),h=c(t.nextMonth,{locale:i}),g=[s.nav_button,s.nav_button_next].join(" "),b=(e=d?.IconRight)!==null&&e!==void 0?e:sae,y=(n=d?.IconLeft)!==null&&n!==void 0?n:iae;return m.jsxs("div",{className:s.nav,style:o.nav,children:[!t.hidePrevious&&m.jsx(ml,{name:"previous-month","aria-label":p,className:f,style:o.nav_button_previous,disabled:!t.previousMonth,onClick:t.onPreviousClick,children:a==="rtl"?m.jsx(b,{className:s.nav_icon,style:o.nav_icon}):m.jsx(y,{className:s.nav_icon,style:o.nav_icon})}),!t.hideNext&&m.jsx(ml,{name:"next-month","aria-label":h,className:g,style:o.nav_button_next,disabled:!t.nextMonth,onClick:t.onNextClick,children:a==="rtl"?m.jsx(y,{className:s.nav_icon,style:o.nav_icon}):m.jsx(b,{className:s.nav_icon,style:o.nav_icon})})]})}function F_(t){var e=Ge().numberOfMonths,n=ws(),r=n.previousMonth,a=n.nextMonth,i=n.goToMonth,s=n.displayMonths,o=s.findIndex(function(h){return bE(t.displayMonth,h)}),l=o===0,u=o===s.length-1,c=e>1&&(l||!u),d=e>1&&(u||!l),p=function(){r&&i(r)},f=function(){a&&i(a)};return m.jsx(oae,{displayMonth:t.displayMonth,hideNext:c,hidePrevious:d,nextMonth:a,previousMonth:r,onPreviousClick:p,onNextClick:f})}function lae(t){var e,n=Ge(),r=n.classNames,a=n.disableNavigation,i=n.styles,s=n.captionLayout,o=n.components,l=(e=o?.CaptionLabel)!==null&&e!==void 0?e:SO,u;return a?u=m.jsx(l,{id:t.id,displayMonth:t.displayMonth}):s==="dropdown"?u=m.jsx(P_,{displayMonth:t.displayMonth,id:t.id}):s==="dropdown-buttons"?u=m.jsxs(m.Fragment,{children:[m.jsx(P_,{displayMonth:t.displayMonth,displayIndex:t.displayIndex,id:t.id}),m.jsx(F_,{displayMonth:t.displayMonth,displayIndex:t.displayIndex,id:t.id})]}):u=m.jsxs(m.Fragment,{children:[m.jsx(l,{id:t.id,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),m.jsx(F_,{displayMonth:t.displayMonth,id:t.id})]}),m.jsx("div",{className:r.caption,style:i.caption,children:u})}function uae(t){var e=Ge(),n=e.footer,r=e.styles,a=e.classNames.tfoot;return n?m.jsx("tfoot",{className:a,style:r.tfoot,children:m.jsx("tr",{children:m.jsx("td",{colSpan:8,children:n})})}):m.jsx(m.Fragment,{})}function cae(t,e,n){for(var r=n?oa(new Date):Mn(new Date,{locale:t,weekStartsOn:e}),a=[],i=0;i<7;i++){var s=Ot(r,i);a.push(s)}return a}function dae(){var t=Ge(),e=t.classNames,n=t.styles,r=t.showWeekNumber,a=t.locale,i=t.weekStartsOn,s=t.ISOWeek,o=t.formatters.formatWeekdayName,l=t.labels.labelWeekday,u=cae(a,i,s);return m.jsxs("tr",{style:n.head_row,className:e.head_row,children:[r&&m.jsx("td",{style:n.head_cell,className:e.head_cell}),u.map(function(c,d){return m.jsx("th",{scope:"col",className:e.head_cell,style:n.head_cell,"aria-label":l(c,{locale:a}),children:o(c,{locale:a})},d)})]})}function pae(){var t,e=Ge(),n=e.classNames,r=e.styles,a=e.components,i=(t=a?.HeadRow)!==null&&t!==void 0?t:dae;return m.jsx("thead",{style:r.head,className:n.head,children:m.jsx(i,{})})}function fae(t){var e=Ge(),n=e.locale,r=e.formatters.formatDay;return m.jsx(m.Fragment,{children:r(t.date,{locale:n})})}var EE=U.createContext(void 0);function hae(t){if(!Ns(t.initialProps)){var e={selected:void 0,modifiers:{disabled:[]}};return m.jsx(EE.Provider,{value:e,children:t.children})}return m.jsx(mae,{initialProps:t.initialProps,children:t.children})}function mae(t){var e=t.initialProps,n=t.children,r=e.selected,a=e.min,i=e.max,s=function(u,c,d){var p,f;(p=e.onDayClick)===null||p===void 0||p.call(e,u,c,d);var h=!!(c.selected&&a&&r?.length===a);if(!h){var g=!!(!c.selected&&i&&r?.length===i);if(!g){var b=r?yO([],r):[];if(c.selected){var y=b.findIndex(function(T){return zt(u,T)});b.splice(y,1)}else b.push(u);(f=e.onSelect)===null||f===void 0||f.call(e,b,u,c,d)}}},o={disabled:[]};r&&o.disabled.push(function(u){var c=i&&r.length>i-1,d=r.some(function(p){return zt(p,u)});return!!(c&&!d)});var l={selected:r,onDayClick:s,modifiers:o};return m.jsx(EE.Provider,{value:l,children:n})}function yE(){var t=U.useContext(EE);if(!t)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return t}function gae(t,e){var n=e||{},r=n.from,a=n.to;return r&&a?zt(a,t)&&zt(r,t)?void 0:zt(a,t)?{from:a,to:void 0}:zt(r,t)?void 0:ob(r,t)?{from:t,to:a}:{from:r,to:t}:a?ob(t,a)?{from:a,to:t}:{from:t,to:a}:r?EO(t,r)?{from:t,to:r}:{from:r,to:t}:{from:t,to:void 0}}var TE=U.createContext(void 0);function bae(t){if(!Cs(t.initialProps)){var e={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return m.jsx(TE.Provider,{value:e,children:t.children})}return m.jsx(Eae,{initialProps:t.initialProps,children:t.children})}function Eae(t){var e=t.initialProps,n=t.children,r=e.selected,a=r||{},i=a.from,s=a.to,o=e.min,l=e.max,u=function(f,h,g){var b,y;(b=e.onDayClick)===null||b===void 0||b.call(e,f,h,g);var T=gae(f,r);(y=e.onSelect)===null||y===void 0||y.call(e,T,f,h,g)},c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(c.range_start=[i],s?(c.range_end=[s],zt(i,s)||(c.range_middle=[{after:i,before:s}])):c.range_end=[i]):s&&(c.range_start=[s],c.range_end=[s]),o&&(i&&!s&&c.disabled.push({after:qm(i,o-1),before:Ot(i,o-1)}),i&&s&&c.disabled.push({after:i,before:Ot(i,o-1)}),!i&&s&&c.disabled.push({after:qm(s,o-1),before:Ot(s,o-1)})),l){if(i&&!s&&(c.disabled.push({before:Ot(i,-l+1)}),c.disabled.push({after:Ot(i,l-1)})),i&&s){var d=On(s,i)+1,p=l-d;c.disabled.push({before:qm(i,p)}),c.disabled.push({after:Ot(s,p)})}!i&&s&&(c.disabled.push({before:Ot(s,-l+1)}),c.disabled.push({after:Ot(s,l-1)}))}return m.jsx(TE.Provider,{value:{selected:r,onDayClick:u,modifiers:c},children:n})}function SE(){var t=U.useContext(TE);if(!t)throw new Error("useSelectRange must be used within a SelectRangeProvider");return t}function uo(t){return Array.isArray(t)?yO([],t):t!==void 0?[t]:[]}function yae(t){var e={};return Object.entries(t).forEach(function(n){var r=n[0],a=n[1];e[r]=uo(a)}),e}var Tn;(function(t){t.Outside="outside",t.Disabled="disabled",t.Selected="selected",t.Hidden="hidden",t.Today="today",t.RangeStart="range_start",t.RangeEnd="range_end",t.RangeMiddle="range_middle"})(Tn||(Tn={}));var Tae=Tn.Selected,qn=Tn.Disabled,Sae=Tn.Hidden,xae=Tn.Today,Wm=Tn.RangeEnd,Vm=Tn.RangeMiddle,Ym=Tn.RangeStart,kae=Tn.Outside;function vae(t,e,n){var r,a=(r={},r[Tae]=uo(t.selected),r[qn]=uo(t.disabled),r[Sae]=uo(t.hidden),r[xae]=[t.today],r[Wm]=[],r[Vm]=[],r[Ym]=[],r[kae]=[],r);return t.fromDate&&a[qn].push({before:t.fromDate}),t.toDate&&a[qn].push({after:t.toDate}),Ns(t)?a[qn]=a[qn].concat(e.modifiers[qn]):Cs(t)&&(a[qn]=a[qn].concat(n.modifiers[qn]),a[Ym]=n.modifiers[Ym],a[Vm]=n.modifiers[Vm],a[Wm]=n.modifiers[Wm]),a}var vO=U.createContext(void 0);function Aae(t){var e=Ge(),n=yE(),r=SE(),a=vae(e,n,r),i=yae(e.modifiers),s=ge(ge({},a),i);return m.jsx(vO.Provider,{value:s,children:t.children})}function AO(){var t=U.useContext(vO);if(!t)throw new Error("useModifiers must be used within a ModifiersProvider");return t}function _ae(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function Nae(t){return!!(t&&typeof t=="object"&&"from"in t)}function Cae(t){return!!(t&&typeof t=="object"&&"after"in t)}function wae(t){return!!(t&&typeof t=="object"&&"before"in t)}function Iae(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function Rae(t,e){var n,r=e.from,a=e.to;if(r&&a){var i=On(a,r)<0;i&&(n=[a,r],r=n[0],a=n[1]);var s=On(t,r)>=0&&On(a,t)>=0;return s}return a?zt(a,t):r?zt(r,t):!1}function Oae(t){return hE(t)}function Lae(t){return Array.isArray(t)&&t.every(hE)}function Dae(t,e){return e.some(function(n){if(typeof n=="boolean")return n;if(Oae(n))return zt(t,n);if(Lae(n))return n.includes(t);if(Nae(n))return Rae(t,n);if(Iae(n))return n.dayOfWeek.includes(t.getDay());if(_ae(n)){var r=On(n.before,t),a=On(n.after,t),i=r>0,s=a<0,o=ob(n.before,n.after);return o?s&&i:i||s}return Cae(n)?On(t,n.after)>0:wae(n)?On(n.before,t)>0:typeof n=="function"?n(t):!1})}function xE(t,e,n){var r=Object.keys(e).reduce(function(i,s){var o=e[s];return Dae(t,o)&&i.push(s),i},[]),a={};return r.forEach(function(i){return a[i]=!0}),n&&!bE(t,n)&&(a.outside=!0),a}function Mae(t,e){for(var n=Gt(t[0]),r=mE(t[t.length-1]),a,i,s=n;s<=r;){var o=xE(s,e),l=!o.disabled&&!o.hidden;if(!l){s=Ot(s,1);continue}if(o.selected)return s;o.today&&!i&&(i=s),a||(a=s),s=Ot(s,1)}return i||a}var Pae=365;function _O(t,e){var n=e.moveBy,r=e.direction,a=e.context,i=e.modifiers,s=e.retry,o=s===void 0?{count:0,lastFocused:t}:s,l=a.weekStartsOn,u=a.fromDate,c=a.toDate,d=a.locale,p={day:Ot,week:sb,month:yn,year:vne,startOfWeek:function(b){return a.ISOWeek?oa(b):Mn(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return a.ISOWeek?pO(b):gE(b,{locale:d,weekStartsOn:l})}},f=p[n](t,r==="after"?1:-1);r==="before"&&u?f=Ane([u,f]):r==="after"&&c&&(f=_ne([c,f]));var h=!0;if(i){var g=xE(f,i);h=!g.disabled&&!g.hidden}return h?f:o.count>Pae?o.lastFocused:_O(f,{moveBy:n,direction:r,context:a,modifiers:i,retry:ge(ge({},o),{count:o.count+1})})}var NO=U.createContext(void 0);function Fae(t){var e=ws(),n=AO(),r=U.useState(),a=r[0],i=r[1],s=U.useState(),o=s[0],l=s[1],u=Mae(e.displayMonths,n),c=a??(o&&e.isDateDisplayed(o))?o:u,d=function(){l(a),i(void 0)},p=function(b){i(b)},f=Ge(),h=function(b,y){if(a){var T=_O(a,{moveBy:b,direction:y,context:f,modifiers:n});zt(a,T)||(e.goToDate(T,a),p(T))}},g={focusedDay:a,focusTarget:c,blur:d,focus:p,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return m.jsx(NO.Provider,{value:g,children:t.children})}function kE(){var t=U.useContext(NO);if(!t)throw new Error("useFocusContext must be used within a FocusProvider");return t}function Bae(t,e){var n=AO(),r=xE(t,n,e);return r}var vE=U.createContext(void 0);function Uae(t){if(!su(t.initialProps)){var e={selected:void 0};return m.jsx(vE.Provider,{value:e,children:t.children})}return m.jsx(jae,{initialProps:t.initialProps,children:t.children})}function jae(t){var e=t.initialProps,n=t.children,r=function(i,s,o){var l,u,c;if((l=e.onDayClick)===null||l===void 0||l.call(e,i,s,o),s.selected&&!e.required){(u=e.onSelect)===null||u===void 0||u.call(e,void 0,i,s,o);return}(c=e.onSelect)===null||c===void 0||c.call(e,i,i,s,o)},a={selected:e.selected,onDayClick:r};return m.jsx(vE.Provider,{value:a,children:n})}function CO(){var t=U.useContext(vE);if(!t)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return t}function Hae(t,e){var n=Ge(),r=CO(),a=yE(),i=SE(),s=kE(),o=s.focusDayAfter,l=s.focusDayBefore,u=s.focusWeekAfter,c=s.focusWeekBefore,d=s.blur,p=s.focus,f=s.focusMonthBefore,h=s.focusMonthAfter,g=s.focusYearBefore,b=s.focusYearAfter,y=s.focusStartOfWeek,T=s.focusEndOfWeek,x=function(j){var B,Y,w,V;su(n)?(B=r.onDayClick)===null||B===void 0||B.call(r,t,e,j):Ns(n)?(Y=a.onDayClick)===null||Y===void 0||Y.call(a,t,e,j):Cs(n)?(w=i.onDayClick)===null||w===void 0||w.call(i,t,e,j):(V=n.onDayClick)===null||V===void 0||V.call(n,t,e,j)},k=function(j){var B;p(t),(B=n.onDayFocus)===null||B===void 0||B.call(n,t,e,j)},A=function(j){var B;d(),(B=n.onDayBlur)===null||B===void 0||B.call(n,t,e,j)},S=function(j){var B;(B=n.onDayMouseEnter)===null||B===void 0||B.call(n,t,e,j)},v=function(j){var B;(B=n.onDayMouseLeave)===null||B===void 0||B.call(n,t,e,j)},N=function(j){var B;(B=n.onDayPointerEnter)===null||B===void 0||B.call(n,t,e,j)},_=function(j){var B;(B=n.onDayPointerLeave)===null||B===void 0||B.call(n,t,e,j)},C=function(j){var B;(B=n.onDayTouchCancel)===null||B===void 0||B.call(n,t,e,j)},L=function(j){var B;(B=n.onDayTouchEnd)===null||B===void 0||B.call(n,t,e,j)},P=function(j){var B;(B=n.onDayTouchMove)===null||B===void 0||B.call(n,t,e,j)},$=function(j){var B;(B=n.onDayTouchStart)===null||B===void 0||B.call(n,t,e,j)},F=function(j){var B;(B=n.onDayKeyUp)===null||B===void 0||B.call(n,t,e,j)},M=function(j){var B;switch(j.key){case"ArrowLeft":j.preventDefault(),j.stopPropagation(),n.dir==="rtl"?o():l();break;case"ArrowRight":j.preventDefault(),j.stopPropagation(),n.dir==="rtl"?l():o();break;case"ArrowDown":j.preventDefault(),j.stopPropagation(),u();break;case"ArrowUp":j.preventDefault(),j.stopPropagation(),c();break;case"PageUp":j.preventDefault(),j.stopPropagation(),j.shiftKey?g():f();break;case"PageDown":j.preventDefault(),j.stopPropagation(),j.shiftKey?b():h();break;case"Home":j.preventDefault(),j.stopPropagation(),y();break;case"End":j.preventDefault(),j.stopPropagation(),T();break}(B=n.onDayKeyDown)===null||B===void 0||B.call(n,t,e,j)},H={onClick:x,onFocus:k,onBlur:A,onKeyDown:M,onKeyUp:F,onMouseEnter:S,onMouseLeave:v,onPointerEnter:N,onPointerLeave:_,onTouchCancel:C,onTouchEnd:L,onTouchMove:P,onTouchStart:$};return H}function $ae(){var t=Ge(),e=CO(),n=yE(),r=SE(),a=su(t)?e.selected:Ns(t)?n.selected:Cs(t)?r.selected:void 0;return a}function zae(t){return Object.values(Tn).includes(t)}function qae(t,e){var n=[t.classNames.day];return Object.keys(e).forEach(function(r){var a=t.modifiersClassNames[r];if(a)n.push(a);else if(zae(r)){var i=t.classNames["day_".concat(r)];i&&n.push(i)}}),n}function Gae(t,e){var n=ge({},t.styles.day);return Object.keys(e).forEach(function(r){var a;n=ge(ge({},n),(a=t.modifiersStyles)===null||a===void 0?void 0:a[r])}),n}function Wae(t,e,n){var r,a,i,s=Ge(),o=kE(),l=Bae(t,e),u=Hae(t,l),c=$ae(),d=!!(s.onDayClick||s.mode!=="default");U.useEffect(function(){var S;l.outside||o.focusedDay&&d&&zt(o.focusedDay,t)&&((S=n.current)===null||S===void 0||S.focus())},[o.focusedDay,t,n,d,l.outside]);var p=qae(s,l).join(" "),f=Gae(s,l),h=!!(l.outside&&!s.showOutsideDays||l.hidden),g=(i=(a=s.components)===null||a===void 0?void 0:a.DayContent)!==null&&i!==void 0?i:fae,b=m.jsx(g,{date:t,displayMonth:e,activeModifiers:l}),y={style:f,className:p,children:b,role:"gridcell"},T=o.focusTarget&&zt(o.focusTarget,t)&&!l.outside,x=o.focusedDay&&zt(o.focusedDay,t),k=ge(ge(ge({},y),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=x||T?0:-1,r)),u),A={isButton:d,isHidden:h,activeModifiers:l,selectedDays:c,buttonProps:k,divProps:y};return A}function Vae(t){var e=U.useRef(null),n=Wae(t.date,t.displayMonth,e);return n.isHidden?m.jsx("div",{role:"gridcell"}):n.isButton?m.jsx(ml,ge({name:"day",ref:e},n.buttonProps)):m.jsx("div",ge({},n.divProps))}function Yae(t){var e=t.number,n=t.dates,r=Ge(),a=r.onWeekNumberClick,i=r.styles,s=r.classNames,o=r.locale,l=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,c=u(Number(e),{locale:o});if(!a)return m.jsx("span",{className:s.weeknumber,style:i.weeknumber,children:c});var d=l(Number(e),{locale:o}),p=function(f){a(e,n,f)};return m.jsx(ml,{name:"week-number","aria-label":d,className:s.weeknumber,style:i.weeknumber,onClick:p,children:c})}function Kae(t){var e,n,r=Ge(),a=r.styles,i=r.classNames,s=r.showWeekNumber,o=r.components,l=(e=o?.Day)!==null&&e!==void 0?e:Vae,u=(n=o?.WeekNumber)!==null&&n!==void 0?n:Yae,c;return s&&(c=m.jsx("td",{className:i.cell,style:a.cell,children:m.jsx(u,{number:t.weekNumber,dates:t.dates})})),m.jsxs("tr",{className:i.row,style:a.row,children:[c,t.dates.map(function(d){return m.jsx("td",{className:i.cell,style:a.cell,role:"presentation",children:m.jsx(l,{displayMonth:t.displayMonth,date:d})},Are(d))})]})}function B_(t,e,n){for(var r=n?.ISOWeek?pO(e):gE(e,n),a=n?.ISOWeek?oa(t):Mn(t,n),i=On(r,a),s=[],o=0;o<=i;o++)s.push(Ot(a,o));var l=s.reduce(function(u,c){var d=n?.ISOWeek?hO(c):gO(c,n),p=u.find(function(f){return f.weekNumber===d});return p?(p.dates.push(c),u):(u.push({weekNumber:d,dates:[c]}),u)},[]);return l}function Xae(t,e){var n=B_(Gt(t),mE(t),e);if(e?.useFixedWeeks){var r=Nre(t,e);if(r<6){var a=n[n.length-1],i=a.dates[a.dates.length-1],s=sb(i,6-r),o=B_(sb(i,1),s,e);n.push.apply(n,o)}}return n}function Zae(t){var e,n,r,a=Ge(),i=a.locale,s=a.classNames,o=a.styles,l=a.hideHead,u=a.fixedWeeks,c=a.components,d=a.weekStartsOn,p=a.firstWeekContainsDate,f=a.ISOWeek,h=Xae(t.displayMonth,{useFixedWeeks:!!u,ISOWeek:f,locale:i,weekStartsOn:d,firstWeekContainsDate:p}),g=(e=c?.Head)!==null&&e!==void 0?e:pae,b=(n=c?.Row)!==null&&n!==void 0?n:Kae,y=(r=c?.Footer)!==null&&r!==void 0?r:uae;return m.jsxs("table",{id:t.id,className:s.table,style:o.table,role:"grid","aria-labelledby":t["aria-labelledby"],children:[!l&&m.jsx(g,{}),m.jsx("tbody",{className:s.tbody,style:o.tbody,children:h.map(function(T){return m.jsx(b,{displayMonth:t.displayMonth,dates:T.dates,weekNumber:T.weekNumber},T.weekNumber)})}),m.jsx(y,{displayMonth:t.displayMonth})]})}function Qae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Jae=Qae()?U.useLayoutEffect:U.useEffect,Km=!1,eie=0;function U_(){return"react-day-picker-".concat(++eie)}function tie(t){var e,n=t??(Km?U_():null),r=U.useState(n),a=r[0],i=r[1];return Jae(function(){a===null&&i(U_())},[]),U.useEffect(function(){Km===!1&&(Km=!0)},[]),(e=t??a)!==null&&e!==void 0?e:void 0}function nie(t){var e,n,r=Ge(),a=r.dir,i=r.classNames,s=r.styles,o=r.components,l=ws().displayMonths,u=tie(r.id?"".concat(r.id,"-").concat(t.displayIndex):void 0),c=r.id?"".concat(r.id,"-grid-").concat(t.displayIndex):void 0,d=[i.month],p=s.month,f=t.displayIndex===0,h=t.displayIndex===l.length-1,g=!f&&!h;a==="rtl"&&(e=[f,h],h=e[0],f=e[1]),f&&(d.push(i.caption_start),p=ge(ge({},p),s.caption_start)),h&&(d.push(i.caption_end),p=ge(ge({},p),s.caption_end)),g&&(d.push(i.caption_between),p=ge(ge({},p),s.caption_between));var b=(n=o?.Caption)!==null&&n!==void 0?n:lae;return m.jsxs("div",{className:d.join(" "),style:p,children:[m.jsx(b,{id:u,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),m.jsx(Zae,{id:c,"aria-labelledby":u,displayMonth:t.displayMonth})]},t.displayIndex)}function rie(t){var e=Ge(),n=e.classNames,r=e.styles;return m.jsx("div",{className:n.months,style:r.months,children:t.children})}function aie(t){var e,n,r=t.initialProps,a=Ge(),i=kE(),s=ws(),o=U.useState(!1),l=o[0],u=o[1];U.useEffect(function(){a.initialFocus&&i.focusTarget&&(l||(i.focus(i.focusTarget),u(!0)))},[a.initialFocus,l,i.focus,i.focusTarget,i]);var c=[a.classNames.root,a.className];a.numberOfMonths>1&&c.push(a.classNames.multiple_months),a.showWeekNumber&&c.push(a.classNames.with_weeknumber);var d=ge(ge({},a.styles.root),a.style),p=Object.keys(r).filter(function(h){return h.startsWith("data-")}).reduce(function(h,g){var b;return ge(ge({},h),(b={},b[g]=r[g],b))},{}),f=(n=(e=r.components)===null||e===void 0?void 0:e.Months)!==null&&n!==void 0?n:rie;return m.jsx("div",ge({className:c.join(" "),style:d,dir:a.dir,id:a.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:m.jsx(f,{children:s.displayMonths.map(function(h,g){return m.jsx(nie,{displayIndex:g,displayMonth:h},g)})})}))}function iie(t){var e=t.children,n=wre(t,["children"]);return m.jsx(Yre,{initialProps:n,children:m.jsx(aae,{children:m.jsx(Uae,{initialProps:n,children:m.jsx(hae,{initialProps:n,children:m.jsx(bae,{initialProps:n,children:m.jsx(Aae,{children:m.jsx(Fae,{children:e})})})})})})})}function sie(t){return m.jsx(iie,ge({},t,{children:m.jsx(aie,{initialProps:t})}))}function uoe(t){const e=W.c(20);let n,r,a,i;e[0]!==t?({className:n,classNames:r,showOutsideDays:i,...a}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=a,e[4]=i):(n=e[1],r=e[2],a=e[3],i=e[4]);const s=i===void 0?!0:i;let o;e[5]!==n?(o=ye("p-3",n),e[5]=n,e[6]=o):o=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=ye(ME({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),e[7]=l):l=e[7];const u=a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md";let c;e[8]!==u?(c=ye("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",u),e[8]=u,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=ye(ME({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),e[10]=d):d=e[10];let p;e[11]!==r||e[12]!==c?(p={months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:l,nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:c,day:d,day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...r},e[11]=r,e[12]=c,e[13]=p):p=e[13];let f;e[14]===Symbol.for("react.memo_cache_sentinel")?(f={IconLeft:lie,IconRight:oie},e[14]=f):f=e[14];let h;return e[15]!==a||e[16]!==s||e[17]!==o||e[18]!==p?(h=m.jsx(sie,{showOutsideDays:s,className:o,classNames:p,components:f,...a}),e[15]=a,e[16]=s,e[17]=o,e[18]=p,e[19]=h):h=e[19],h}function oie(t){const{className:e,...n}=t;return m.jsx(Zm,{className:ye("size-4",e),...n})}function lie(t){const{className:e,...n}=t;return m.jsx(cL,{className:ye("size-4",e),...n})}const wO=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],uie=40;function coe(t){const n=(t.endDate.getTime()-t.startDate.getTime())/uie;return wO.find(a=>a.ms>=n)?.label??"1d"}function AE(t){const e=wO.find(i=>i.label===t);if(e)return e.ms;const n=/^(\d+)([mhd])$/.exec(t);if(!n)return 6e4;const r=parseInt(n[1],10),a=n[2];return a==="h"?r*36e5:a==="d"?r*864e5:r*6e4}function cie(t,e){const n=new Date(t);return AE(e)>=864e5?n.toLocaleDateString([],{month:"short",day:"numeric"}):n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function j_(t,e){const n=AE(e);return new Date(Math.floor(t.getTime()/n)*n)}function die(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function _E(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function NE(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function doe(t,e,n){const r=AE(n),a=j_(e.startDate,n).getTime(),i=e.endDate.getTime(),s=new Map(t.map(l=>[j_(new Date(l.timestamp),n).getTime(),l])),o=[];for(let l=a;l<=i;l+=r){const u=s.get(l),c=new Date(l).toISOString();o.push({t:c,ts:l,label:cie(c,n),calls:u?.calls??0,errors:u?.errors??0,errorRate:u?.errorRate??0,avg:u?.avg??0,p50:u?.p50??0,p95:u?.p95??0,inputTokens:u?.inputTokens??0,outputTokens:u?.outputTokens??0,totalTokens:u?.totalTokens??0,costUsd:u?.costUsd??0})}return o}function poe(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function foe(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:die(t.avgDurationMs)}function CE(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function wE(t,e,n,r){if(!t)return r;const a=e.find(s=>s.id===t)??n?.find(s=>s.id===t);if(a?.title)return a.title;const i=hL(t);return i?mL(i).title??r:t}function IE(t,e,n){return t?(e.find(a=>a.id===t)??n?.find(a=>a.id===t))?.icon??null:null}function IO(t){return t?.data?.members??[]}function lb(t){const e=W.c(39),{thread:n,connections:r,virtualMcps:a,selectedIndex:i,total:s,onPrev:o,onNext:l}=t,u=fe();let c,d;if(e[0]!==r||e[1]!==n||e[2]!==a){const F=CE(n);c=wE(F,a,r,""),d=IE(F,a,r),e[0]=r,e[1]=n,e[2]=a,e[3]=c,e[4]=d}else c=e[3],d=e[4];const p=d,f=c||n.title;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx(yb,{}),e[5]=h):h=e[5];let g;e[6]!==p||e[7]!==f?(g=m.jsx(wr,{icon:p,name:f,size:"sm",fallbackIcon:h,className:"shadow-sm shrink-0 rounded-md"}),e[6]=p,e[7]=f,e[8]=g):g=e[8];let b;e[9]!==n.title?(b=m.jsx(Z_,{className:"text-sm leading-snug truncate",children:n.title}),e[9]=n.title,e[10]=b):b=e[10];let y;e[11]!==c?(y=c&&m.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:c}),e[11]=c,e[12]=y):y=e[12];let T;e[13]!==b||e[14]!==y?(T=m.jsxs("div",{className:"min-w-0",children:[b,y]}),e[13]=b,e[14]=y,e[15]=T):T=e[15];let x;e[16]!==g||e[17]!==T?(x=m.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[g,T]}),e[16]=g,e[17]=T,e[18]=x):x=e[18];const k=i===0;let A;e[19]!==u?(A=u("orgs.threads.previousChat"),e[19]=u,e[20]=A):A=e[20];let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=m.jsx(Jm,{size:14}),e[21]=S):S=e[21];let v;e[22]!==o||e[23]!==A||e[24]!==k?(v=m.jsx(nr,{size:"icon",variant:"ghost",onClick:o,disabled:k,className:"h-7 w-7 text-muted-foreground","aria-label":A,children:S}),e[22]=o,e[23]=A,e[24]=k,e[25]=v):v=e[25];const N=i===s-1;let _;e[26]!==u?(_=u("orgs.threads.nextChat"),e[26]=u,e[27]=_):_=e[27];let C;e[28]===Symbol.for("react.memo_cache_sentinel")?(C=m.jsx(po,{size:14}),e[28]=C):C=e[28];let L;e[29]!==l||e[30]!==N||e[31]!==_?(L=m.jsx(nr,{size:"icon",variant:"ghost",onClick:l,disabled:N,className:"h-7 w-7 text-muted-foreground","aria-label":_,children:C}),e[29]=l,e[30]=N,e[31]=_,e[32]=L):L=e[32];let P;e[33]!==v||e[34]!==L?(P=m.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[v,L]}),e[33]=v,e[34]=L,e[35]=P):P=e[35];let $;return e[36]!==P||e[37]!==x?($=m.jsx(X_,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:m.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[x,P]})}),e[36]=P,e[37]=x,e[38]=$):$=e[38],$}function pie(t){const e=W.c(67),{thread:n,connections:r,virtualMcps:a,members:i}=t,s=fe();let o,l;if(e[0]!==r||e[1]!==n||e[2]!==a){const ee=CE(n);o=wE(ee,a,r,""),l=IE(ee,a,r),e[0]=r,e[1]=n,e[2]=a,e[3]=o,e[4]=l}else o=e[3],l=e[4];const u=l;let c;if(e[5]!==i||e[6]!==n.created_by){const ee=IO(i);let R;e[8]!==n.created_by?(R=ne=>ne.userId===n.created_by,e[8]=n.created_by,e[9]=R):R=e[9],c=ee.find(R),e[5]=i,e[6]=n.created_by,e[7]=c}else c=e[7];const d=c;let p;e[10]!==d?.user.email||e[11]!==d?.user.name||e[12]!==n.created_by?(p=d?.user.name??d?.user.email??n.created_by?.substring(0,8)??"—",e[10]=d?.user.email,e[11]=d?.user.name,e[12]=n.created_by,e[13]=p):p=e[13];const f=p,h=d?.user.image??void 0;let g;e[14]!==n.created_at?(g=new Date(n.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=n.created_at,e[15]=g):g=e[15];const b=g,y=Ma[n.status]??Ma.completed,T=y.icon;let x;e[16]!==s?(x=s("orgs.threads.status"),e[16]=s,e[17]=x):x=e[17];let k;e[18]!==x?(k=m.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:x}),e[18]=x,e[19]=k):k=e[19];let A;e[20]!==T||e[21]!==y.iconClassName?(A=m.jsx(T,{size:13,className:y.iconClassName}),e[20]=T,e[21]=y.iconClassName,e[22]=A):A=e[22];let S;e[23]!==y.labelColor?(S=ye("text-sm",y.labelColor),e[23]=y.labelColor,e[24]=S):S=e[24];let v;e[25]!==y.label||e[26]!==S?(v=m.jsx("span",{className:S,children:y.label}),e[25]=y.label,e[26]=S,e[27]=v):v=e[27];let N;e[28]!==A||e[29]!==v?(N=m.jsxs("div",{className:"flex items-center gap-1.5",children:[A,v]}),e[28]=A,e[29]=v,e[30]=N):N=e[30];let _;e[31]!==N||e[32]!==k?(_=m.jsxs("div",{children:[k,N]}),e[31]=N,e[32]=k,e[33]=_):_=e[33];let C;e[34]!==s?(C=s("orgs.threads.date"),e[34]=s,e[35]=C):C=e[35];let L;e[36]!==C?(L=m.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:C}),e[36]=C,e[37]=L):L=e[37];let P;e[38]!==b?(P=m.jsx("div",{className:"text-sm text-foreground",children:b}),e[38]=b,e[39]=P):P=e[39];let $;e[40]!==L||e[41]!==P?($=m.jsxs("div",{children:[L,P]}),e[40]=L,e[41]=P,e[42]=$):$=e[42];let F;e[43]!==s?(F=s("orgs.threads.user"),e[43]=s,e[44]=F):F=e[44];let M;e[45]!==F?(M=m.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:F}),e[45]=F,e[46]=M):M=e[46];let H;e[47]!==h||e[48]!==f?(H=m.jsx(rN,{url:h,fallback:f,shape:"circle",size:"2xs",className:"shrink-0"}),e[47]=h,e[48]=f,e[49]=H):H=e[49];let j;e[50]!==f?(j=m.jsx("span",{className:"text-sm text-foreground",children:f}),e[50]=f,e[51]=j):j=e[51];let B;e[52]!==H||e[53]!==j?(B=m.jsxs("div",{className:"flex items-center gap-2",children:[H,j]}),e[52]=H,e[53]=j,e[54]=B):B=e[54];let Y;e[55]!==M||e[56]!==B?(Y=m.jsxs("div",{children:[M,B]}),e[55]=M,e[56]=B,e[57]=Y):Y=e[57];let w;e[58]!==u||e[59]!==o||e[60]!==s?(w=o&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:s("orgs.threads.agent")}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(wr,{icon:u,name:o,size:"xs",fallbackIcon:m.jsx(yb,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),m.jsx("span",{className:"text-sm text-foreground",children:o})]})]}),e[58]=u,e[59]=o,e[60]=s,e[61]=w):w=e[61];let V;return e[62]!==_||e[63]!==$||e[64]!==Y||e[65]!==w?(V=m.jsxs("div",{className:"px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm",children:[_,$,Y,w]}),e[62]=_,e[63]=$,e[64]=Y,e[65]=w,e[66]=V):V=e[66],V}function fie(t){const e=W.c(72),{thread:n,usage:r,members:a,connections:i,virtualMcps:s,onClick:o,lastRowRef:l}=t;let u,c;if(e[0]!==i||e[1]!==n||e[2]!==s){const re=CE(n);u=wE(re,s,i,"—"),c=IE(re,s,i),e[0]=i,e[1]=n,e[2]=s,e[3]=u,e[4]=c}else u=e[3],c=e[4];const d=c;let p;if(e[5]!==a||e[6]!==n.created_by){const re=IO(a);let me;e[8]!==n.created_by?(me=Te=>Te.userId===n.created_by,e[8]=n.created_by,e[9]=me):me=e[9],p=re.find(me),e[5]=a,e[6]=n.created_by,e[7]=p}else p=e[7];const f=p;let h;e[10]!==f?.user.email||e[11]!==f?.user.name||e[12]!==n.created_by?(h=f?.user.name??f?.user.email??n.created_by?.substring(0,8)??"—",e[10]=f?.user.email,e[11]=f?.user.name,e[12]=n.created_by,e[13]=h):h=e[13];const g=h,b=f?.user.image??void 0;let y,T;if(e[14]!==n.created_at){const re=new Date(n.created_at);y=re.toLocaleDateString("en-US",{month:"short",day:"numeric"}),T=re.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),e[14]=n.created_at,e[15]=y,e[16]=T}else y=e[15],T=e[16];const x=T,k=Ma[n.status]??Ma.completed,A=k.icon;let S;e[17]!==n.title?(S=m.jsx(sn,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:m.jsx("div",{className:"font-medium text-foreground truncate",children:n.title})}),e[17]=n.title,e[18]=S):S=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx(yb,{}),e[19]=v):v=e[19];let N;e[20]!==d||e[21]!==u?(N=m.jsx(wr,{icon:d,name:u,size:"xs",fallbackIcon:v,className:"shrink-0 size-5! min-w-5! rounded-md"}),e[20]=d,e[21]=u,e[22]=N):N=e[22];let _;e[23]!==u?(_=m.jsx("span",{className:"truncate",children:u}),e[23]=u,e[24]=_):_=e[24];let C;e[25]!==N||e[26]!==_?(C=m.jsx(sn,{className:"w-36 px-3 text-muted-foreground",children:m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[N,_]})}),e[25]=N,e[26]=_,e[27]=C):C=e[27];let L;e[28]!==b||e[29]!==g?(L=m.jsx(rN,{url:b,fallback:g,shape:"circle",size:"2xs",className:"shrink-0"}),e[28]=b,e[29]=g,e[30]=L):L=e[30];let P;e[31]!==g?(P=m.jsx("span",{className:"truncate",children:g}),e[31]=g,e[32]=P):P=e[32];let $;e[33]!==L||e[34]!==P?($=m.jsx(sn,{className:"w-28 px-3 text-muted-foreground",children:m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[L,P]})}),e[33]=L,e[34]=P,e[35]=$):$=e[35];let F;e[36]!==A||e[37]!==k.iconClassName?(F=m.jsx(A,{size:14,className:k.iconClassName}),e[36]=A,e[37]=k.iconClassName,e[38]=F):F=e[38];let M;e[39]!==k.labelColor?(M=ye("text-sm",k.labelColor),e[39]=k.labelColor,e[40]=M):M=e[40];let H;e[41]!==k.label||e[42]!==M?(H=m.jsx("span",{className:M,children:k.label}),e[41]=k.label,e[42]=M,e[43]=H):H=e[43];let j;e[44]!==F||e[45]!==H?(j=m.jsx(sn,{className:"w-24 px-3",children:m.jsxs("div",{className:"flex items-center gap-1.5",children:[F,H]})}),e[44]=F,e[45]=H,e[46]=j):j=e[46];let B;e[47]!==r?(B=r?_E(r.totalTokens):"—",e[47]=r,e[48]=B):B=e[48];let Y;e[49]!==B?(Y=m.jsx(sn,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:B}),e[49]=B,e[50]=Y):Y=e[50];let w;e[51]!==r?(w=r&&r.costUsd>0?NE(r.costUsd):"—",e[51]=r,e[52]=w):w=e[52];let V;e[53]!==w?(V=m.jsx(sn,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:w}),e[53]=w,e[54]=V):V=e[54];let ee;e[55]!==y?(ee=m.jsx("div",{children:y}),e[55]=y,e[56]=ee):ee=e[56];let R;e[57]!==x?(R=m.jsx("div",{className:"text-xs text-muted-foreground/60",children:x}),e[57]=x,e[58]=R):R=e[58];let ne;e[59]!==ee||e[60]!==R?(ne=m.jsxs(sn,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[ee,R]}),e[59]=ee,e[60]=R,e[61]=ne):ne=e[61];let ie;return e[62]!==l||e[63]!==o||e[64]!==$||e[65]!==j||e[66]!==Y||e[67]!==V||e[68]!==ne||e[69]!==S||e[70]!==C?(ie=m.jsxs(gl,{ref:l,className:"h-14 md:h-16 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",onClick:o,children:[S,C,$,j,Y,V,ne]}),e[62]=l,e[63]=o,e[64]=$,e[65]=j,e[66]=Y,e[67]=V,e[68]=ne,e[69]=S,e[70]=C,e[71]=ie):ie=e[71],ie}const ub=100;function hie(){const t=W.c(4),e=fe();let n;t[0]!==e?(n=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=m.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}function mie(){const t=W.c(4),e=fe();let n;t[0]!==e?(n=e("orgs.threads.loadingMore"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=m.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}function gie(t){const e=W.c(37),{client:n,locator:r,thread:a,connections:i,virtualMcps:s,members:o,selectedIndex:l,total:u,onPrev:c,onNext:d}=t;let p;e[0]!==r||e[1]!==a.id?(p=dn.threadMessages(r,a.id),e[0]=r,e[1]=a.id,e[2]=p):p=e[2];let f;e[3]!==n||e[4]!==a.id?(f=async P=>{const{pageParam:$}=P,F=$===void 0?0:$;if(!n)throw new Error("MCP client is not available");const M=await n.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:a.id,limit:ub,offset:F}});return M.structuredContent??M},e[3]=n,e[4]=a.id,e[5]=f):f=e[5];let h;e[6]!==p||e[7]!==f?(h={queryKey:p,queryFn:f,initialPageParam:0,getNextPageParam:yie,staleTime:6e4},e[6]=p,e[7]=f,e[8]=h):h=e[8];const{data:g,fetchNextPage:b,hasNextPage:y,isFetchingNextPage:T}=SL(h);let x;e[9]!==g.pages?(x=g.pages.flatMap(Eie).filter(bie),e[9]=g.pages,e[10]=x):x=e[10];const k=x,A=ane(k);let S;e[11]!==b||e[12]!==y||e[13]!==T?(S=()=>{y&&!T&&b()},e[11]=b,e[12]=y,e[13]=T,e[14]=S):S=e[14];const v=bb(S,y??!1,T);let N;e[15]!==i||e[16]!==d||e[17]!==c||e[18]!==l||e[19]!==a||e[20]!==u||e[21]!==s?(N=m.jsx(lb,{thread:a,connections:i,virtualMcps:s,selectedIndex:l,total:u,onPrev:c,onNext:d}),e[15]=i,e[16]=d,e[17]=c,e[18]=l,e[19]=a,e[20]=u,e[21]=s,e[22]=N):N=e[22];let _;e[23]!==i||e[24]!==o||e[25]!==a||e[26]!==s?(_=m.jsx(pie,{thread:a,connections:i,virtualMcps:s,members:o}),e[23]=i,e[24]=o,e[25]=a,e[26]=s,e[27]=_):_=e[27];let C;e[28]!==T||e[29]!==v||e[30]!==A||e[31]!==k.length?(C=k.length===0?m.jsx(hie,{}):m.jsx("div",{className:"flex-1 overflow-y-auto min-h-0",children:m.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[A.map((P,$)=>m.jsx("div",{ref:$===A.length-1?v:void 0,children:m.jsx(ine,{pair:P,isLastPair:$===A.length-1,status:"ready"})},`pair-${P.user?.id??P.assistant?.id}`)),T&&m.jsx(mie,{})]})}),e[28]=T,e[29]=v,e[30]=A,e[31]=k.length,e[32]=C):C=e[32];let L;return e[33]!==N||e[34]!==_||e[35]!==C?(L=m.jsxs(m.Fragment,{children:[N,_,C]}),e[33]=N,e[34]=_,e[35]=C,e[36]=L):L=e[36],L}function bie(t){return t.role==="user"||t.role==="assistant"}function Eie(t){return t.items??[]}function yie(t,e){const n=t,r=e;if(!((n?.items?.length??0)<ub))return r.length*ub}function Tie(){const t=W.c(4),e=fe();let n;t[0]!==e?(n=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=m.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}function Sie(){const t=W.c(4),e=fe();let n;t[0]!==e?(n=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=m.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}function RO(t){const e=W.c(39),{thread:n,client:r,locator:a,connections:i,virtualMcps:s,members:o,selectedIndex:l,total:u,onPrev:c,onNext:d}=t;let p;e[0]!==i||e[1]!==d||e[2]!==c||e[3]!==l||e[4]!==n||e[5]!==u||e[6]!==s?(p=m.jsx(lb,{thread:n,connections:i,virtualMcps:s,selectedIndex:l,total:u,onPrev:c,onNext:d}),e[0]=i,e[1]=d,e[2]=c,e[3]=l,e[4]=n,e[5]=u,e[6]=s,e[7]=p):p=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(Tie,{}),e[8]=f):f=e[8];let h;e[9]!==p?(h=m.jsxs(m.Fragment,{children:[p,f]}),e[9]=p,e[10]=h):h=e[10];let g;e[11]!==i||e[12]!==d||e[13]!==c||e[14]!==l||e[15]!==n||e[16]!==u||e[17]!==s?(g=m.jsx(lb,{thread:n,connections:i,virtualMcps:s,selectedIndex:l,total:u,onPrev:c,onNext:d}),e[11]=i,e[12]=d,e[13]=c,e[14]=l,e[15]=n,e[16]=u,e[17]=s,e[18]=g):g=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=m.jsx(Sie,{}),e[19]=b):b=e[19];let y;e[20]!==g?(y=m.jsxs(m.Fragment,{children:[g,b]}),e[20]=g,e[21]=y):y=e[21];let T;e[22]!==r||e[23]!==i||e[24]!==a||e[25]!==o||e[26]!==d||e[27]!==c||e[28]!==l||e[29]!==n||e[30]!==u||e[31]!==s?(T=m.jsx(gie,{client:r,locator:a,thread:n,connections:i,virtualMcps:s,members:o,selectedIndex:l,total:u,onPrev:c,onNext:d}),e[22]=r,e[23]=i,e[24]=a,e[25]=o,e[26]=d,e[27]=c,e[28]=l,e[29]=n,e[30]=u,e[31]=s,e[32]=T):T=e[32];let x;e[33]!==y||e[34]!==T?(x=m.jsx(U.Suspense,{fallback:y,children:T}),e[33]=y,e[34]=T,e[35]=x):x=e[35];let k;return e[36]!==h||e[37]!==x?(k=m.jsx(q_,{fallback:h,children:x}),e[36]=h,e[37]=x,e[38]=k):k=e[38],k}function xie(){const t=W.c(4),e=fe();let n;t[0]!==e?(n=e("orgs.threads.loading"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=m.jsx("div",{className:"flex flex-1 items-center justify-center py-20",children:m.jsx("span",{className:"text-sm text-muted-foreground",children:n})}),t[2]=n,t[3]=r):r=t[3],r}function kie(t){const e=W.c(9),{hasActiveFilters:n,t:r}=t,a=n?"orgs.threads.noMatchingChats":"orgs.threads.noChatsInTimeRange";let i;e[0]!==r||e[1]!==a?(i=r(a),e[0]=r,e[1]=a,e[2]=i):i=e[2];const s=n?"orgs.threads.tryAdjustingFilters":"orgs.threads.tryExpandingTimeRange";let o;e[3]!==r||e[4]!==s?(o=r(s),e[3]=r,e[4]=s,e[5]=o):o=e[5];let l;return e[6]!==i||e[7]!==o?(l=m.jsx("div",{className:"flex flex-1 items-center justify-center py-20",children:m.jsx(Qm,{title:i,description:o})}),e[6]=i,e[7]=o,e[8]=l):l=e[8],l}function vie(){const t=W.c(4),e=fe();let n;t[0]!==e?(n=e("orgs.threads.loadingMore"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=m.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}const cb=50;function hoe(t){const e=W.c(29),{client:n,locator:r,membersData:a,allConnections:i,allVirtualMcps:s,dateRange:o,searchQuery:l,filterAgentIds:u,filterUserIds:c,filterStatus:d}=t,p=fe(),[f,h]=U.useState(null),g=o.startDate.toISOString(),b=o.endDate.toISOString(),y=JSON.stringify({startDate:g,endDate:b,search:l,agentIds:u,userIds:c,status:d}),{data:T,fetchNextPage:x,hasNextPage:k,isFetchingNextPage:A,isLoading:S}=Y_({queryKey:dn.threadsInfinite(r,y),queryFn:async oe=>{const{pageParam:Ae}=oe,Oe=Ae===void 0?0:Ae;if(!n)throw new Error("MCP client is not available");const yt=await n.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:cb,offset:Oe,startDate:g,endDate:b,...l?{search:l}:{},...u&&u.length>0?{agentId:u[0]}:{},...c&&c.length>0?{userId:c[0]}:{},...d&&d!=="all"?{status:d}:{}}});return yt.structuredContent??yt},initialPageParam:0,getNextPageParam:Iie,staleTime:3e4}),v=(T?.pages??[]).flatMap(wie),N=v.map(Cie),{data:_}=ps({queryKey:dn.monitoringThreadUsage(r,JSON.stringify({ids:N,startDate:g,endDate:b})),queryFn:async()=>{if(!n)throw new Error("MCP client is not available");const oe=await n.callTool({name:"MONITORING_THREAD_USAGE",arguments:{threadIds:N,startDate:g,endDate:b}});return oe.structuredContent??oe},enabled:!!n&&N.length>0,staleTime:3e4}),C=new Map((_?.items??[]).map(Nie)),[L,P]=U.useState(null),[$,F]=U.useState("desc");let M;e[0]!==L?(M=oe=>{L===oe?F(_ie):(P(oe),F("desc"))},e[0]=L,e[1]=M):M=e[1];const H=M,j=oe=>{const Ae=C.get(oe);return Ae?L==="cost"?Ae.costUsd:Ae.totalTokens:0},B=L?[...v].sort((oe,Ae)=>{const Oe=j(oe.id),yt=j(Ae.id);return $==="desc"?yt-Oe:Oe-yt}):v,Y=f!==null?B[f]??null:null;let w;e[2]!==x||e[3]!==k||e[4]!==A?(w=()=>{k&&!A&&x()},e[2]=x,e[3]=k,e[4]=A,e[5]=w):w=e[5];const ee=bb(w,k??!1,A),R=!!l||(u?.length??0)>0||(c?.length??0)>0||!!(d&&d!=="all");let ne;e[6]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>h(Aie),e[6]=ne):ne=e[6];const ie=ne,re=()=>h(oe=>oe!==null&&oe<B.length-1?oe+1:oe),me="flex-1 flex flex-col overflow-auto min-w-0",Te="mx-auto w-full max-w-[1200px] px-4 md:px-10 flex flex-col flex-1 min-h-0",De="flex-1 flex flex-col min-w-0",he="flex-1 min-w-0 pt-1",we="min-w-0",de=S?m.jsx(xie,{}):v.length===0?m.jsx(kie,{hasActiveFilters:R,t:p}):m.jsxs(m.Fragment,{children:[m.jsxs(Q_,{className:"w-full border-collapse",children:[m.jsx(J_,{className:"border-b-0 z-20",children:m.jsxs(gl,{className:"h-9 hover:bg-transparent border-b border-border",children:[m.jsx(an,{className:"pl-4 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:p("orgs.threads.title")}),m.jsx(an,{className:"w-36 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:p("orgs.threads.agent")}),m.jsx(an,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:p("orgs.threads.user")}),m.jsx(an,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:p("orgs.threads.status")}),m.jsx(an,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:m.jsxs("button",{type:"button",onClick:()=>H("tokens"),className:"inline-flex items-center gap-1 ml-auto hover:text-foreground transition-colors uppercase",children:[p("orgs.threads.tokens"),L==="tokens"&&($==="desc"?m.jsx(po,{size:12}):m.jsx(Jm,{size:12}))]})}),m.jsx(an,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:m.jsxs("button",{type:"button",onClick:()=>H("cost"),className:"inline-flex items-center gap-1 ml-auto hover:text-foreground transition-colors uppercase",children:[p("orgs.threads.cost"),L==="cost"&&($==="desc"?m.jsx(po,{size:12}):m.jsx(Jm,{size:12}))]})}),m.jsx(an,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:p("orgs.threads.date")})]})}),m.jsx(eN,{children:B.map((oe,Ae)=>m.jsx(fie,{thread:oe,usage:C.get(oe.id),members:a,connections:i,virtualMcps:s,onClick:()=>h(Ae),lastRowRef:Ae===B.length-1?ee:void 0},oe.id))})]}),A&&m.jsx(vie,{})]});let ce;e[7]!==de?(ce=m.jsx("div",{className:Te,children:m.jsx("div",{className:De,children:m.jsx("div",{className:he,children:m.jsx("div",{className:we,children:de})})})}),e[7]=de,e[8]=ce):ce=e[8];const ve=f!==null;let je;e[9]===Symbol.for("react.memo_cache_sentinel")?(je=oe=>{oe||h(null)},e[9]=je):je=e[9];let Re;e[10]!==i||e[11]!==s||e[12]!==n||e[13]!==B||e[14]!==re||e[15]!==ie||e[16]!==r||e[17]!==a||e[18]!==Y||e[19]!==f?(Re=Y&&f!==null&&m.jsx(RO,{thread:Y,client:n,locator:r,connections:i,virtualMcps:s,members:a,selectedIndex:f,total:B.length,onPrev:ie,onNext:re}),e[10]=i,e[11]=s,e[12]=n,e[13]=B,e[14]=re,e[15]=ie,e[16]=r,e[17]=a,e[18]=Y,e[19]=f,e[20]=Re):Re=e[20];let Ye;e[21]!==Re?(Ye=m.jsx(mb,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:Re}),e[21]=Re,e[22]=Ye):Ye=e[22];let He;e[23]!==ve||e[24]!==Ye?(He=m.jsx(gb,{open:ve,onOpenChange:je,children:Ye}),e[23]=ve,e[24]=Ye,e[25]=He):He=e[25];let Ze;return e[26]!==ce||e[27]!==He?(Ze=m.jsxs("div",{className:me,children:[ce,He]}),e[26]=ce,e[27]=He,e[28]=Ze):Ze=e[28],Ze}function Aie(t){return t!==null&&t>0?t-1:t}function _ie(t){return t==="desc"?"asc":"desc"}function Nie(t){return[t.threadId,{calls:t.calls,inputTokens:t.inputTokens,outputTokens:t.outputTokens,totalTokens:t.totalTokens,costUsd:t.costUsd}]}function Cie(t){return t.id}function wie(t){return t.items??[]}function Iie(t,e){const n=t,r=e;if(!((n?.items?.length??0)<cb))return r.length*cb}const db=50;function Qs(t){const e=W.c(10),{title:n,value:r,subtitle:a}=t;let i;e[0]!==n?(i=m.jsx("span",{className:"text-sm text-foreground/70",children:n}),e[0]=n,e[1]=i):i=e[1];let s;e[2]!==r?(s=m.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),e[2]=r,e[3]=s):s=e[3];let o;e[4]!==a?(o=a&&m.jsx("span",{className:"text-xs text-muted-foreground",children:a}),e[4]=a,e[5]=o):o=e[5];let l;return e[6]!==i||e[7]!==s||e[8]!==o?(l=m.jsxs(EL,{className:"pt-4 px-4 pb-5 gap-1",children:[i,s,o]}),e[6]=i,e[7]=s,e[8]=o,e[9]=l):l=e[9],l}function Rie(t){const e=W.c(45),{automationId:n,range:r}=t,a=fe(),{data:i,isLoading:s}=TL(n,r),o=i?.runs,l=i?.usage;let u;e[0]!==o?(u=o&&o.total>0?`${Math.round(o.completed/o.total*100)}%`:"—",e[0]=o,e[1]=u):u=e[1];const c=u;let d;e[2]!==a||e[3]!==l?(d=l&&l.truncated?a("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,e[2]=a,e[3]=l,e[4]=d):d=e[4];const p=d;let f;e[5]!==a?(f=a("automations.automationRuns.runsTitle"),e[5]=a,e[6]=f):f=e[6];let h;e[7]!==s||e[8]!==o?.total?(h=s?"…":o?.total.toLocaleString()??"0",e[7]=s,e[8]=o?.total,e[9]=h):h=e[9];let g;e[10]!==o||e[11]!==a?(g=o?`${o.completed} ${a("automations.automationRuns.ok")} · ${o.failed} ${a("automations.automationRuns.failed")}${o.inProgress>0?` · ${o.inProgress} ${a("automations.automationRuns.running")}`:""}`:void 0,e[10]=o,e[11]=a,e[12]=g):g=e[12];let b;e[13]!==f||e[14]!==h||e[15]!==g?(b=m.jsx(Qs,{title:f,value:h,subtitle:g}),e[13]=f,e[14]=h,e[15]=g,e[16]=b):b=e[16];let y;e[17]!==a?(y=a("automations.automationRuns.successRateTitle"),e[17]=a,e[18]=y):y=e[18];const T=s?"…":c;let x;e[19]!==y||e[20]!==T?(x=m.jsx(Qs,{title:y,value:T}),e[19]=y,e[20]=T,e[21]=x):x=e[21];let k;e[22]!==a?(k=a("automations.automationRuns.tokensTitle"),e[22]=a,e[23]=k):k=e[23];let A;e[24]!==s||e[25]!==l?.totalTokens?(A=s?"…":_E(l?.totalTokens??0),e[24]=s,e[25]=l?.totalTokens,e[26]=A):A=e[26];let S;e[27]!==k||e[28]!==A||e[29]!==p?(S=m.jsx(Qs,{title:k,value:A,subtitle:p}),e[27]=k,e[28]=A,e[29]=p,e[30]=S):S=e[30];let v;e[31]!==a?(v=a("automations.automationRuns.costTitle"),e[31]=a,e[32]=v):v=e[32];let N;e[33]!==s||e[34]!==l?(N=s?"…":l&&l.costUsd>0?NE(l.costUsd):"—",e[33]=s,e[34]=l,e[35]=N):N=e[35];let _;e[36]!==v||e[37]!==N||e[38]!==p?(_=m.jsx(Qs,{title:v,value:N,subtitle:p}),e[36]=v,e[37]=N,e[38]=p,e[39]=_):_=e[39];let C;return e[40]!==S||e[41]!==_||e[42]!==b||e[43]!==x?(C=m.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[b,x,S,_]}),e[40]=S,e[41]=_,e[42]=b,e[43]=x,e[44]=C):C=e[44],C}function Oie(t){const e=W.c(39),{run:n,usage:r,onClick:a,lastRowRef:i}=t;let s,o;if(e[0]!==n.created_at){const N=new Date(n.created_at);s=N.toLocaleDateString("en-US",{month:"short",day:"numeric"}),o=N.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),e[0]=n.created_at,e[1]=s,e[2]=o}else s=e[1],o=e[2];const l=o,u=Ma[n.status]??Ma.completed,c=u.icon;let d;e[3]!==n.title?(d=m.jsx(sn,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:m.jsx("div",{className:"font-medium text-foreground truncate",children:n.title})}),e[3]=n.title,e[4]=d):d=e[4];let p;e[5]!==c||e[6]!==u.iconClassName?(p=m.jsx(c,{size:14,className:u.iconClassName}),e[5]=c,e[6]=u.iconClassName,e[7]=p):p=e[7];let f;e[8]!==u.labelColor?(f=ye("text-sm",u.labelColor),e[8]=u.labelColor,e[9]=f):f=e[9];let h;e[10]!==u.label||e[11]!==f?(h=m.jsx("span",{className:f,children:u.label}),e[10]=u.label,e[11]=f,e[12]=h):h=e[12];let g;e[13]!==p||e[14]!==h?(g=m.jsx(sn,{className:"w-28 px-3",children:m.jsxs("div",{className:"flex items-center gap-1.5",children:[p,h]})}),e[13]=p,e[14]=h,e[15]=g):g=e[15];let b;e[16]!==r?(b=r?_E(r.totalTokens):"—",e[16]=r,e[17]=b):b=e[17];let y;e[18]!==b?(y=m.jsx(sn,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:b}),e[18]=b,e[19]=y):y=e[19];let T;e[20]!==r?(T=r&&r.costUsd>0?NE(r.costUsd):"—",e[20]=r,e[21]=T):T=e[21];let x;e[22]!==T?(x=m.jsx(sn,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:T}),e[22]=T,e[23]=x):x=e[23];let k;e[24]!==s?(k=m.jsx("div",{children:s}),e[24]=s,e[25]=k):k=e[25];let A;e[26]!==l?(A=m.jsx("div",{className:"text-xs text-muted-foreground/60",children:l}),e[26]=l,e[27]=A):A=e[27];let S;e[28]!==k||e[29]!==A?(S=m.jsxs(sn,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[k,A]}),e[28]=k,e[29]=A,e[30]=S):S=e[30];let v;return e[31]!==i||e[32]!==a||e[33]!==x||e[34]!==S||e[35]!==d||e[36]!==g||e[37]!==y?(v=m.jsxs(gl,{ref:i,className:"h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",onClick:a,children:[d,g,y,x,S]}),e[31]=i,e[32]=a,e[33]=x,e[34]=S,e[35]=d,e[36]=g,e[37]=y,e[38]=v):v=e[38],v}function moe(t){const e=W.c(49),{automationId:n,triggerIds:r,range:a}=t,i=fe(),{org:s,locator:o}=Pn();let l;e[0]!==s.id||e[1]!==s.slug?(l={connectionId:gL,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l):l=e[2];const u=hb(l),c=nN(),d=dL(),p=bL(),{data:f}=yL(),[h,g]=U.useState(null),b=r.length>0;let y;e[3]!==n||e[4]!==s.id||e[5]!==r?(y=dn.automationRuns(s.id,n,r),e[3]=n,e[4]=s.id,e[5]=r,e[6]=y):y=e[6];let T;e[7]!==c||e[8]!==r?(T=async he=>{const{pageParam:we}=he,de=we===void 0?0:we;return await c.call("COLLECTION_THREADS_LIST",{limit:db,offset:de,where:{trigger_ids:r}})},e[7]=c,e[8]=r,e[9]=T):T=e[9];let x;e[10]!==b||e[11]!==y||e[12]!==T?(x={queryKey:y,queryFn:T,initialPageParam:0,getNextPageParam:Fie,enabled:b,staleTime:3e4},e[10]=b,e[11]=y,e[12]=T,e[13]=x):x=e[13];const{data:k,fetchNextPage:A,hasNextPage:S,isFetchingNextPage:v,isLoading:N}=Y_(x),_=(k?.pages??[]).flatMap(Pie),C=_.map(Mie),{data:L}=ps({queryKey:dn.monitoringThreadUsage(o,JSON.stringify({ids:C,...a})),queryFn:async()=>await c.call("MONITORING_THREAD_USAGE",{threadIds:C,...a.startDate?{startDate:a.startDate}:{},...a.endDate?{endDate:a.endDate}:{}}),enabled:C.length>0,staleTime:3e4});let P;e[14]!==L?.items?(P=new Map((L?.items??[]).map(Die)),e[14]=L?.items,e[15]=P):P=e[15];const $=P;let F;e[16]!==A||e[17]!==S||e[18]!==v?(F=()=>{S&&!v&&A()},e[16]=A,e[17]=S,e[18]=v,e[19]=F):F=e[19];const M=bb(F,S??!1,v),H=h!==null?_[h]??null:null;let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j=()=>g(Lie),e[20]=j):j=e[20];const B=j,Y=()=>g(he=>he!==null&&he<_.length-1?he+1:he),w="flex flex-col gap-5";let V;e[21]!==n||e[22]!==a?(V=m.jsx(Rie,{automationId:n,range:a}),e[21]=n,e[22]=a,e[23]=V):V=e[23];const ee=b?N?m.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:i("automations.automationRuns.loadingRuns")}):_.length===0?m.jsx("div",{className:"py-16",children:m.jsx(Qm,{title:i("automations.automationRuns.noRunsTitle"),description:i("automations.automationRuns.noRunsDescription")})}):m.jsxs(Q_,{className:"w-full border-collapse",children:[m.jsx(J_,{className:"border-b-0",children:m.jsxs(gl,{className:"h-9 hover:bg-transparent border-b border-border",children:[m.jsx(an,{className:"pl-4 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:i("automations.automationRuns.runHeader")}),m.jsx(an,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:i("automations.automationRuns.statusHeader")}),m.jsx(an,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:i("automations.automationRuns.tokensHeader")}),m.jsx(an,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:i("automations.automationRuns.costHeader")}),m.jsx(an,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:i("automations.automationRuns.startedHeader")})]})}),m.jsx(eN,{children:_.map((he,we)=>m.jsx(Oie,{run:he,usage:$.get(he.id),onClick:()=>g(we),lastRowRef:we===_.length-1?M:void 0},he.id))})]}):m.jsx("div",{className:"py-16",children:m.jsx(Qm,{title:i("automations.automationRuns.noStartersTitle"),description:i("automations.automationRuns.noStartersDescription")})});let R;e[24]!==v||e[25]!==i?(R=v&&m.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:i("automations.automationRuns.loadingMore")}),e[24]=v,e[25]=i,e[26]=R):R=e[26];const ne=h!==null;let ie;e[27]===Symbol.for("react.memo_cache_sentinel")?(ie=he=>{he||g(null)},e[27]=ie):ie=e[27];let re;e[28]!==d||e[29]!==p||e[30]!==u||e[31]!==Y||e[32]!==B||e[33]!==o||e[34]!==f||e[35]!==_||e[36]!==H||e[37]!==h?(re=H&&h!==null&&m.jsx(RO,{thread:H,client:u,locator:o,connections:d,virtualMcps:p,members:f,selectedIndex:h,total:_.length,onPrev:B,onNext:Y}),e[28]=d,e[29]=p,e[30]=u,e[31]=Y,e[32]=B,e[33]=o,e[34]=f,e[35]=_,e[36]=H,e[37]=h,e[38]=re):re=e[38];let me;e[39]!==re?(me=m.jsx(mb,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:re}),e[39]=re,e[40]=me):me=e[40];let Te;e[41]!==ne||e[42]!==me?(Te=m.jsx(gb,{open:ne,onOpenChange:ie,children:me}),e[41]=ne,e[42]=me,e[43]=Te):Te=e[43];let De;return e[44]!==ee||e[45]!==R||e[46]!==Te||e[47]!==V?(De=m.jsxs("div",{className:w,children:[V,ee,R,Te]}),e[44]=ee,e[45]=R,e[46]=Te,e[47]=V,e[48]=De):De=e[48],De}function Lie(t){return t!==null&&t>0?t-1:t}function Die(t){return[t.threadId,{calls:t.calls,inputTokens:t.inputTokens,outputTokens:t.outputTokens,totalTokens:t.totalTokens,costUsd:t.costUsd}]}function Mie(t){return t.id}function Pie(t){return t.items??[]}function Fie(t,e){const n=t,r=e;if(!((n?.items?.length??0)<db))return r.length*db}export{Bt as $,Ite as A,Dte as B,loe as C,Ke as D,t0 as E,KZ as F,ke as G,uM as H,X as I,ae as J,GC as K,YC as L,Jl as M,qse as N,Mte as O,bD as P,ue as Q,nt as R,toe as S,Ee as T,x4 as U,aw as V,E6 as W,WC as X,Vb as Y,le as Z,zse as _,Dw as a,Iw as a0,tt as a1,ww as a2,mF as a3,Gse as a4,eoe as a5,Ql as a6,uoe as a7,Xse as a8,roe as a9,noe as aa,PJ as ab,aoe as ac,jJ as ad,da as ae,FJ as af,BJ as ag,UJ as ah,moe as ai,ooe as aj,Zse as ak,JJ as al,coe as am,doe as an,die as ao,_E as ap,NE as aq,foe as ar,poe as as,IO as at,hoe as au,ot as b,Lw as c,hD as d,Xe as e,Jse as f,vb as g,Dt as h,Qse as i,Wse as j,Yse as k,I6 as l,Kse as m,Vse as n,O6 as o,RJ as p,_w as q,Hse as r,Ab as s,tg as t,x6 as u,ane as v,pD as w,ioe as x,ine as y,soe as z};
|