@chaibuilder/pages 0.16.8 → 0.16.10
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/{2AITGKQY-BkyIOFBN.cjs → 2AITGKQY-C0A7leVc.cjs} +1 -1
- package/dist/{2AITGKQY-BXiVm60u.js → 2AITGKQY-LtoYzpXb.js} +2 -2
- package/dist/{NCMVHL6D-CnBMv9bF.cjs → NCMVHL6D-BbCiXTDR.cjs} +1 -1
- package/dist/{NCMVHL6D-C0JGE8Qr.js → NCMVHL6D-BqKNTZhH.js} +2 -2
- package/dist/{ZDWCUMSJ-Cs-CWvpw.js → ZDWCUMSJ-CudD-G3A.js} +1 -1
- package/dist/{ZDWCUMSJ-jR6OAwVS.cjs → ZDWCUMSJ-DEjMuvHw.cjs} +1 -1
- package/dist/_arrayEach-7nw56Qes.cjs +1 -0
- package/dist/_arrayEach-CBNlJl8q.js +44 -0
- package/dist/abap-DV7Q1lGP.cjs +1 -0
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DXOxkRa2.cjs +1 -0
- package/dist/actionscript-3-DZzbMeqX.js +6 -0
- package/dist/ada-D46EKCNf.cjs +1 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/{add-new-language-page-CKwMwrAg.js → add-new-language-page-C3R8vwOA.js} +2 -2
- package/dist/{add-new-language-page-UatKeIR2.cjs → add-new-language-page-CTZglguY.cjs} +1 -1
- package/dist/{add-new-page-BZ2av8fu.cjs → add-new-page-ByCsABU-.cjs} +1 -1
- package/dist/{add-new-page-BzBMJ3Cn.js → add-new-page-Dn-jphFf.js} +1 -1
- package/dist/ai-panel-content-CF7-wrq0.js +54 -0
- package/dist/ai-panel-content-VYS5Bn3a.cjs +1 -0
- package/dist/ai-panel-default-lang-C_zJzkZ4.js +313 -0
- package/dist/ai-panel-default-lang-D5vpT3cL.cjs +3 -0
- package/dist/ai-panel-other-lang-5Hdkr4eJ.js +130 -0
- package/dist/ai-panel-other-lang-BFnghH5Z.cjs +1 -0
- package/dist/ai-prompt-input-BXp7SxcJ.cjs +45 -0
- package/dist/ai-prompt-input-CrBweB8X.js +4027 -0
- package/dist/{ai-translation-prompt-DH7gwfqx.cjs → ai-translation-prompt-BYubvAxO.cjs} +1 -1
- package/dist/{ai-translation-prompt-B8VdHfLY.js → ai-translation-prompt-E3TEDobP.js} +1 -1
- package/dist/andromeeda-BIpZ7gaU.js +4 -0
- package/dist/andromeeda-DVDxRwp5.cjs +1 -0
- package/dist/angular-html-DPB4Rf0C.js +32 -0
- package/dist/angular-html-KMf2QdtP.cjs +1 -0
- package/dist/angular-ts-BxIbo3R1.cjs +1 -0
- package/dist/angular-ts-CTOR2ofC.js +21 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apache-DL1xuH1f.cjs +1 -0
- package/dist/apex-CtcXmQ6V.js +6 -0
- package/dist/apex-UUd3Occv.cjs +1 -0
- package/dist/apl-CjNiDgad.js +16 -0
- package/dist/apl-Dj2G2M9w.cjs +1 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/applescript-COilsSrZ.cjs +1 -0
- package/dist/ara-B6Lpq1YJ.cjs +1 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/arc-CuYV2Z4i.js +83 -0
- package/dist/arc-Dzs-yn9V.cjs +1 -0
- package/dist/architecture-U656AL7Q-BFW69Rn1.js +5 -0
- package/dist/architecture-U656AL7Q-C1RBosC-.cjs +1 -0
- package/dist/architectureDiagram-VXUJARFQ-C7E-J7qp.js +4669 -0
- package/dist/architectureDiagram-VXUJARFQ-i1olysFf.cjs +36 -0
- package/dist/asciidoc-B-pCoB3G.js +6 -0
- package/dist/asciidoc-DcKqW72n.cjs +1 -0
- package/dist/asm-BTWLY5ym.js +6 -0
- package/dist/asm-DYMFy-sD.cjs +1 -0
- package/dist/astro-CFFExE8Q.js +18 -0
- package/dist/astro-DAOP_Xq6.cjs +1 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/aurora-x-C5IpmIOG.cjs +1 -0
- package/dist/awk-Fb0P9dkn.js +6 -0
- package/dist/awk-IEszImW6.cjs +1 -0
- package/dist/ayu-dark-Cv7nTiif.cjs +1 -0
- package/dist/ayu-dark-CxPZkpb2.js +4 -0
- package/dist/ballerina-Dr6dU4hP.cjs +1 -0
- package/dist/ballerina-oZK-YekG.js +6 -0
- package/dist/bat-0FvbqU9S.js +6 -0
- package/dist/bat-DGkUhhn2.cjs +1 -0
- package/dist/beancount-Bv1Sweoy.cjs +1 -0
- package/dist/beancount-DqJEb89h.js +6 -0
- package/dist/berry-DZkhZ7K3.cjs +1 -0
- package/dist/berry-PwsHPR_K.js +6 -0
- package/dist/bibtex-BgA36Z3k.cjs +1 -0
- package/dist/bibtex-EULQRLY5.js +6 -0
- package/dist/bicep-BorU73w0.js +6 -0
- package/dist/bicep-DL0zb-7W.cjs +1 -0
- package/dist/blade-BYkiyM-T.cjs +1 -0
- package/dist/blade-CRa6j5zS.js +20 -0
- package/dist/blockDiagram-VD42YOAC-8bGFphRU.js +2368 -0
- package/dist/blockDiagram-VD42YOAC-DG8nN7FI.cjs +122 -0
- package/dist/blocks.d.ts +12 -0
- package/dist/bsl-9bVgFeM9.cjs +1 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/builder.d.ts +12 -0
- package/dist/c-CtlmKnPF.cjs +1 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/c4Diagram-YG6GDRKO-C5vTWKII.js +1581 -0
- package/dist/c4Diagram-YG6GDRKO-ojLwrHAZ.cjs +10 -0
- package/dist/cadence-02UX7mW8.js +6 -0
- package/dist/cadence-DcbmM5v3.cjs +1 -0
- package/dist/cairo-DM6WF2e3.js +8 -0
- package/dist/cairo-li7sQsxU.cjs +1 -0
- package/dist/catppuccin-frappe-Bn4lgmUk.cjs +1 -0
- package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
- package/dist/catppuccin-latte-BPtsb8jD.cjs +1 -0
- package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
- package/dist/catppuccin-macchiato-BLfpQWhT.cjs +1 -0
- package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
- package/dist/catppuccin-mocha-COMta283.cjs +1 -0
- package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
- package/dist/channel-Cdlcq82Q.js +5 -0
- package/dist/channel-D8SQrHOQ.cjs +1 -0
- package/dist/chunk-4BX2VUAB-D0Nkkvke.cjs +1 -0
- package/dist/chunk-4BX2VUAB-kRXCJxGQ.js +9 -0
- package/dist/chunk-55IACEB6-Ya_-e5Gj.cjs +1 -0
- package/dist/chunk-55IACEB6-xzVewFKl.js +8 -0
- package/dist/chunk-B4BG7PRW-C8Sj4Rta.cjs +165 -0
- package/dist/chunk-B4BG7PRW-DG5qX3ch.js +1376 -0
- package/dist/chunk-DI55MBZ5-C9He0Rku.cjs +220 -0
- package/dist/chunk-DI55MBZ5-CI_Ti_F2.js +1382 -0
- package/dist/chunk-FMBD7UC4-9Wx_99-Q.js +19 -0
- package/dist/chunk-FMBD7UC4-Be12B01Q.cjs +15 -0
- package/dist/chunk-QN33PNHL-B65aZfT8.cjs +1 -0
- package/dist/chunk-QN33PNHL-qSV2Zj2E.js +20 -0
- package/dist/chunk-QZHKN3VN-Dcw61eWf.js +15 -0
- package/dist/chunk-QZHKN3VN-V8GIXVhC.cjs +1 -0
- package/dist/chunk-TZMSLE5B-BUsuXR8P.cjs +1 -0
- package/dist/chunk-TZMSLE5B-De8BBIp6.js +64 -0
- package/dist/clarity-PKm5CwqM.js +6 -0
- package/dist/clarity-gPuvqtpF.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-DD8PWOat.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-DYXMSnp5.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-DD8PWOat.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-DYXMSnp5.js +16 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/clojure-OUsr1SUl.cjs +1 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cmake-jM6P58qY.cjs +1 -0
- package/dist/cobol-CcrsCSUZ.cjs +1 -0
- package/dist/cobol-HihOMwht.js +10 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeowners-QhPK6lIJ.cjs +1 -0
- package/dist/codeql-D9-TdUN8.cjs +1 -0
- package/dist/codeql-DHkodjjI.js +6 -0
- package/dist/coffee-DGBR_nr_.js +8 -0
- package/dist/coffee-DycxIFwY.cjs +1 -0
- package/dist/common-lisp-C77gR-8i.cjs +1 -0
- package/dist/common-lisp-EVqT9Zhp.js +6 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/coq-vlPdR5hP.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-BzynRFve.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-C0LrMYq9.js +2609 -0
- package/dist/cpp-Cj177cuW.js +18 -0
- package/dist/cpp-DvI2Eoso.cjs +1 -0
- package/dist/crystal-B_WXhL2O.cjs +1 -0
- package/dist/crystal-CRJyc4G-.js +18 -0
- package/dist/csharp-C902_8Dy.cjs +1 -0
- package/dist/csharp-COJ2mCKr.js +6 -0
- package/dist/css-CECN5uSL.js +6 -0
- package/dist/css-Do0mp2lm.cjs +1 -0
- package/dist/csv-CmYOceLb.js +6 -0
- package/dist/csv-DiEdJzSJ.cjs +1 -0
- package/dist/cue-D1vJRJEx.cjs +1 -0
- package/dist/cue-ZzumE7IT.js +6 -0
- package/dist/cypher-atSM3NsM.cjs +1 -0
- package/dist/cypher-jpdmjtA6.js +6 -0
- package/dist/cytoscape.esm-DdQZKk9f.js +18735 -0
- package/dist/cytoscape.esm-DkGgpG6d.cjs +331 -0
- package/dist/d-2qe3NhmZ.cjs +1 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/dagre-6UL2VRFP-CJe6baLS.cjs +4 -0
- package/dist/dagre-6UL2VRFP-DK7rwVEg.js +445 -0
- package/dist/dark-plus-CRFsux2L.js +4 -0
- package/dist/dark-plus-DwC1RSst.cjs +1 -0
- package/dist/dart-6ObCrKr9.js +6 -0
- package/dist/dart-Ds0_0fwe.cjs +1 -0
- package/dist/dax-CcDT-8dH.js +6 -0
- package/dist/dax-DbkQa40E.cjs +1 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
- package/dist/{delete-page-Ck7tD4Hf.js → delete-page-BtWRzpTh.js} +1 -1
- package/dist/{delete-page-Crpwn0Wk.cjs → delete-page-CecAr8Ev.cjs} +1 -1
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/desktop-tn3MFXCZ.cjs +1 -0
- package/dist/diagram-PSM6KHXK-C_A00ng9.js +534 -0
- package/dist/diagram-PSM6KHXK-X4v5dsQ4.cjs +24 -0
- package/dist/diagram-QEK2KX5R-rhfU6qwd.cjs +43 -0
- package/dist/diagram-QEK2KX5R-tTChUtDg.js +221 -0
- package/dist/diagram-S2PKOQOG-CJixlBq7.js +143 -0
- package/dist/diagram-S2PKOQOG-XyZUZk_b.cjs +24 -0
- package/dist/diff-BxzP2J8R.js +6 -0
- package/dist/diff-CA31fCOg.cjs +1 -0
- package/dist/{digital-asset-manager-DgLKRrYj.js → digital-asset-manager-CyBlpHrq.js} +1 -1
- package/dist/{digital-asset-manager-BVrv1-r1.cjs → digital-asset-manager-Y8YMABE1.cjs} +1 -1
- package/dist/docker-CsHqm9tx.js +6 -0
- package/dist/docker-zJpMwmYa.cjs +1 -0
- package/dist/dotenv-BMjVjUL1.js +6 -0
- package/dist/dotenv-DpcNCNek.cjs +1 -0
- package/dist/dracula-BNgwAJ-d.cjs +1 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BHZ7sHFu.cjs +1 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-BkijXDkm.cjs +1 -0
- package/dist/dream-maker-PAx17jaB.js +6 -0
- package/dist/{duplicate-page-C7d1f7Ii.js → duplicate-page-3Dv56tPR.js} +2 -2
- package/dist/{duplicate-page-CXUueWfr.cjs → duplicate-page-nGQAYVQc.cjs} +1 -1
- package/dist/{dynamic-page-selector-DcWDnam4.cjs → dynamic-page-selector-B9XaZMxt.cjs} +1 -1
- package/dist/{dynamic-page-selector-D544FjmW.js → dynamic-page-selector-BapENUmp.js} +1 -1
- package/dist/edge-BYQkOzbF.js +12 -0
- package/dist/edge-DaIYN5Mx.cjs +1 -0
- package/dist/elixir-BH_wmMK4.cjs +1 -0
- package/dist/elixir-Dh036GMp.js +8 -0
- package/dist/elm-BtNbw_Cd.js +8 -0
- package/dist/elm-Dc4sEBjc.cjs +1 -0
- package/dist/emacs-lisp-C1UCIjUO.cjs +1 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erDiagram-Q2GNP2WA-B1QcX93p.js +842 -0
- package/dist/erDiagram-Q2GNP2WA-Up8_IT91.cjs +60 -0
- package/dist/erb-BqFQADjR.cjs +1 -0
- package/dist/erb-CS4zioBv.js +10 -0
- package/dist/erlang-CB2cfp6Z.cjs +1 -0
- package/dist/erlang-DNcDT8Hi.js +8 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-dark-_sBMomR1.cjs +1 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/everforest-light-H0xoYxl0.cjs +1 -0
- package/dist/fennel-Bz9-EMMc.cjs +1 -0
- package/dist/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-BTDEUgqH.js +6 -0
- package/dist/fish-DwmQKRZi.cjs +1 -0
- package/dist/flowDiagram-NV44I4VS-BJffdKk6.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-Dq0-N_i3.js +1627 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fluent-CJtpNuaO.cjs +1 -0
- package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
- package/dist/fortran-fixed-form-rAbNFykM.cjs +1 -0
- package/dist/fortran-free-form-DPIT_jbP.js +6 -0
- package/dist/fortran-free-form-DRAcQkel.cjs +1 -0
- package/dist/fsharp-CYOiIVNx.js +8 -0
- package/dist/fsharp-DVcRF7k-.cjs +1 -0
- package/dist/ganttDiagram-LVOFAZNH-CndRZUwp.cjs +267 -0
- package/dist/ganttDiagram-LVOFAZNH-DCuouHg6.js +2506 -0
- package/dist/gdresource-BwtMIoBm.js +10 -0
- package/dist/gdresource-CcLusmd_.cjs +1 -0
- package/dist/gdscript-BifyeYhI.js +6 -0
- package/dist/gdscript-DSegQKMB.cjs +1 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/gdshader-DsmqQl4t.cjs +1 -0
- package/dist/genie-Dy2rU8CF.cjs +1 -0
- package/dist/genie-DzUvd7U9.js +6 -0
- package/dist/gherkin-BmiEVBJ1.cjs +1 -0
- package/dist/gherkin-DHRaV0YP.js +6 -0
- package/dist/git-commit-Bd32YZ0K.js +8 -0
- package/dist/git-commit-DlVDzq9L.cjs +1 -0
- package/dist/git-rebase-Bn4RLd7u.cjs +1 -0
- package/dist/git-rebase-ZWUFO_T4.js +8 -0
- package/dist/gitGraph-F6HP7TQM-1lOuaCHS.cjs +1 -0
- package/dist/gitGraph-F6HP7TQM-Bwgh2Tgj.js +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-BFpRv9B4.js +712 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cc8RVspd.cjs +65 -0
- package/dist/github-dark-BKL9xNgN.cjs +1 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-default-Dsv5MuSi.cjs +1 -0
- package/dist/github-dark-dimmed-CtB9hz8U.cjs +1 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-BqZVM-jF.cjs +1 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-BFTOhCbz.cjs +1 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-BZoWH9dH.cjs +1 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/github-light-high-contrast-Ks3kPGJU.cjs +1 -0
- package/dist/gleam-Bv284lvN.js +6 -0
- package/dist/gleam-DHVuTCr7.cjs +1 -0
- package/dist/glimmer-js-CzmC7OX8.cjs +1 -0
- package/dist/glimmer-js-DkxNrfPT.js +14 -0
- package/dist/glimmer-ts-D6YZEmK_.js +14 -0
- package/dist/glimmer-ts-DLN2_wRt.cjs +1 -0
- package/dist/glsl-CQekZ3Zq.cjs +1 -0
- package/dist/glsl-CkUcVZNK.js +8 -0
- package/dist/gnuplot-CDPKvI9X.cjs +1 -0
- package/dist/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-ChxJuLYK.js +6 -0
- package/dist/go-epHseFUa.cjs +1 -0
- package/dist/graph-BJDrjORS.js +244 -0
- package/dist/graph-BLd2spTm.cjs +1 -0
- package/dist/graphql-BnP1YhXQ.cjs +1 -0
- package/dist/graphql-CBu2ehBn.js +14 -0
- package/dist/groovy-CJQTphOW.js +6 -0
- package/dist/groovy-D7VuDBXz.cjs +1 -0
- package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
- package/dist/gruvbox-dark-hard-CUGefKS6.cjs +1 -0
- package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +1 -0
- package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
- package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
- package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +1 -0
- package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
- package/dist/gruvbox-light-hard-De4IuseP.cjs +1 -0
- package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
- package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +1 -0
- package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
- package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +1 -0
- package/dist/hack-BaDv2o40.cjs +1 -0
- package/dist/hack-ItRNKiEb.js +10 -0
- package/dist/haml-Bk21rGjP.cjs +1 -0
- package/dist/haml-NZLVzu_R.js +10 -0
- package/dist/handlebars-CJJi3lrU.cjs +1 -0
- package/dist/handlebars-mxStpSE7.js +14 -0
- package/dist/haskell-BShesV2P.cjs +1 -0
- package/dist/haskell-WeIwNIP6.js +6 -0
- package/dist/haxe-Bo5XuRS0.cjs +1 -0
- package/dist/haxe-TztHsm5T.js +6 -0
- package/dist/hcl-CrZnvm-1.cjs +1 -0
- package/dist/hcl-D438OF-I.js +6 -0
- package/dist/hjson-CEESwTUP.cjs +1 -0
- package/dist/hjson-DYBUbqOl.js +6 -0
- package/dist/hlsl-Bk8TCZNL.js +6 -0
- package/dist/hlsl-CyvYRIb9.cjs +1 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/houston-T57H3gQZ.cjs +1 -0
- package/dist/html-B50bmoVb.js +10 -0
- package/dist/html-C62Zf2h4.cjs +1 -0
- package/dist/html-derivative-C6bxFbFW.js +8 -0
- package/dist/html-derivative-NDb86jON.cjs +1 -0
- package/dist/http-BPlLI56k.cjs +1 -0
- package/dist/http-DLvAkeD-.js +14 -0
- package/dist/hurl-BQGBr8gH.cjs +1 -0
- package/dist/hurl-CgkFN90t.js +12 -0
- package/dist/hxml-GbqSQCLa.js +8 -0
- package/dist/hxml-vnw7fzrV.cjs +1 -0
- package/dist/hy-Brt5EZ7-.js +6 -0
- package/dist/hy-a1E2Ed6P.cjs +1 -0
- package/dist/{image-editor-CnDnY97s.cjs → image-editor-EmBN_Nn_.cjs} +1 -1
- package/dist/imba-CR1Q6r17.cjs +1 -0
- package/dist/imba-CimUv-Uh.js +6 -0
- package/dist/index-C1bimRWu.cjs +5 -0
- package/dist/{index-DdQbaicX.js → index-C_34q9jG.js} +121 -114
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +6 -6
- package/dist/info-NVLQJR56-C3piIB8L.cjs +1 -0
- package/dist/info-NVLQJR56-DxpWS9Ek.js +5 -0
- package/dist/infoDiagram-ER5ION4S-DqXS6eRb.cjs +2 -0
- package/dist/infoDiagram-ER5ION4S-iBX13SKY.js +24 -0
- package/dist/ini-BZIuRIvJ.js +6 -0
- package/dist/ini-Dpu3Xy2p.cjs +1 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/java--6gf61wy.cjs +1 -0
- package/dist/java-DY6VlHhP.js +6 -0
- package/dist/javascript-C25yR2R2.js +6 -0
- package/dist/javascript-DgmXW4Ha.cjs +1 -0
- package/dist/jinja-6NmewwV8.cjs +1 -0
- package/dist/jinja-CFW5uAwY.js +11 -0
- package/dist/jison-CD9Qsaj0.cjs +1 -0
- package/dist/jison-DdreslRX.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q-CIELmZlO.js +836 -0
- package/dist/journeyDiagram-XKPGCS4Q-CJX0XVNj.cjs +139 -0
- package/dist/json-DxJze_jm.js +6 -0
- package/dist/json-YkPizm35.cjs +1 -0
- package/dist/{json-diff-viewer-KCkYwJMA.cjs → json-diff-viewer-B9kQEwcr.cjs} +2 -2
- package/dist/{json-diff-viewer-BhWTP1YY.js → json-diff-viewer-D2tCblUU.js} +1 -1
- package/dist/json5-BT4Fjg39.js +6 -0
- package/dist/json5-CCgFZiQn.cjs +1 -0
- package/dist/jsonc-CHjZD8gR.js +6 -0
- package/dist/jsonc-CKPHIcXW.cjs +1 -0
- package/dist/jsonl-BGuvDmy9.js +6 -0
- package/dist/jsonl-Dq56Hab-.cjs +1 -0
- package/dist/jsonnet-Bx2cfsXg.js +6 -0
- package/dist/jsonnet-Csh7E68F.cjs +1 -0
- package/dist/jssm-BcADi6EI.js +6 -0
- package/dist/jssm-D0M9iZPY.cjs +1 -0
- package/dist/jsx-BtKADgXT.js +6 -0
- package/dist/jsx-DLX6UGgg.cjs +1 -0
- package/dist/julia--2-efCjg.js +16 -0
- package/dist/julia-DimQn8rn.cjs +1 -0
- package/dist/kanagawa-dragon-BJZF7xDr.cjs +1 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-lotus-BhgzmRV4.cjs +1 -0
- package/dist/kanagawa-wave-BgJip59C.cjs +1 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kanban-definition-3W4ZIXB7-DnhdFt_Y.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-WK7l1gdb.js +721 -0
- package/dist/kdl-BNOv9TC3.js +6 -0
- package/dist/kdl-CDG1p2Qi.cjs +1 -0
- package/dist/kotlin-BHZjvNqT.cjs +1 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-BgZ0fOqg.cjs +1 -0
- package/dist/kusto-VWFLl2T0.js +6 -0
- package/dist/{lang-panel-tOddhH70.cjs → lang-panel-ClCAoE4L.cjs} +1 -1
- package/dist/{lang-panel-by1VOWvc.js → lang-panel-CsA6jzez.js} +33 -33
- package/dist/laserwave--izBLY1I.cjs +1 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-CO8r39zT.js +8 -0
- package/dist/latex-Xma1qZep.cjs +1 -0
- package/dist/layout-AXx0t5i6.cjs +1 -0
- package/dist/layout-B6VyrpKo.js +1223 -0
- package/dist/lean-BCqiTZhG.cjs +1 -0
- package/dist/lean-k2QBx9cb.js +6 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/less-Dtg8mm6P.cjs +1 -0
- package/dist/light-plus-B5D0le0o.cjs +1 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/linear-CdbmJ0kA.cjs +1 -0
- package/dist/linear-CebAae2s.js +259 -0
- package/dist/liquid-CHzkx3jT.js +14 -0
- package/dist/liquid-DjlCV7Vm.cjs +1 -0
- package/dist/llvm-DcRvQ_r8.cjs +1 -0
- package/dist/llvm-co1rIKs3.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/log-CjTZ0gSB.cjs +1 -0
- package/dist/logo-BAktp_5i.cjs +1 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-BfOnSJPp.cjs +1 -0
- package/dist/lua-kX5WP_P5.js +8 -0
- package/dist/luau-DTep-u3e.cjs +1 -0
- package/dist/luau-DtBSxLyz.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/make-NcdIe21U.cjs +1 -0
- package/dist/{mark-as-template-ngqCvlhA.js → mark-as-template-BsOhlLYx.js} +1 -1
- package/dist/{mark-as-template-BUCysjr2.cjs → mark-as-template-DUeGBAgn.cjs} +1 -1
- package/dist/markdown-Byu9Sdmq.cjs +1 -0
- package/dist/markdown-CrScaQ96.js +6 -0
- package/dist/marko-Cvx4TamJ.cjs +1 -0
- package/dist/marko-ls0Jg2j8.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-Dj0-OyRN.cjs +1 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-darker-Dvfs29ir.cjs +1 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-lighter-EU3ZGl_r.cjs +1 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-ocean-px_3Pwqa.cjs +1 -0
- package/dist/material-theme-palenight-38jxvsGX.cjs +1 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BOAaUVP0.js +6 -0
- package/dist/matlab-CHTOL9Kx.cjs +1 -0
- package/dist/mdc-DEPKJPdx.cjs +1 -0
- package/dist/mdc-uaivvctV.js +12 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mdx-CjwI68TB.cjs +1 -0
- package/dist/mermaid-B0ixDHKN.js +6 -0
- package/dist/mermaid-XEfjk_VN.cjs +1 -0
- package/dist/mermaid-parser.core-DKJdj2_U.cjs +128 -0
- package/dist/mermaid-parser.core-GitSl6co.js +13256 -0
- package/dist/mermaid.core-3NhAXOzj.js +14260 -0
- package/dist/mermaid.core-Cop_RRH4.cjs +196 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-dark-tt5o_I5e.cjs +1 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/min-light-tmTHl_CQ.cjs +1 -0
- package/dist/mindmap-definition-VGOIOE7T-BOk1rAbB.js +787 -0
- package/dist/mindmap-definition-VGOIOE7T-cJsasSc0.cjs +68 -0
- package/dist/mipsasm-BSlRcFIy.cjs +1 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-BD611d7o.js +6 -0
- package/dist/mojo-BQ8pQfYA.cjs +1 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/monokai-DMIxv6MM.cjs +1 -0
- package/dist/move-Bm1vlCWg.cjs +1 -0
- package/dist/move-F-dICmj2.js +6 -0
- package/dist/narrat-CBeKHgTl.cjs +1 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-0_vzQJwQ.cjs +1 -0
- package/dist/nextflow-BAAEJxI_.js +6 -0
- package/dist/nginx-5vhPAEw3.js +8 -0
- package/dist/nginx-ByVOUyIE.cjs +1 -0
- package/dist/night-owl-BN78kThQ.cjs +1 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-Bqmp5Of3.cjs +1 -0
- package/dist/nim-QAjRdh9w.js +20 -0
- package/dist/nix-B_7Vy2bT.js +6 -0
- package/dist/nix-BoOZl1xr.cjs +1 -0
- package/dist/{no-language-page-content-Dz3GSvnO.js → no-language-page-content-DveHrqZF.js} +1 -1
- package/dist/{no-language-page-content-CzTbZ07M.cjs → no-language-page-content-KLiCVKWw.cjs} +1 -1
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nord-Ca5AGUWc.cjs +1 -0
- package/dist/nushell-D8j3dhT-.js +6 -0
- package/dist/nushell-nGrB_wpI.cjs +1 -0
- package/dist/objective-c-Itk8tzmv.js +6 -0
- package/dist/objective-c-RjkWwFge.cjs +1 -0
- package/dist/objective-cpp-DGt5UKRO.js +6 -0
- package/dist/objective-cpp-HnfhWwRe.cjs +1 -0
- package/dist/ocaml-Cx8ewW_A.cjs +1 -0
- package/dist/ocaml-eSVK32Eg.js +6 -0
- package/dist/one-dark-pro-C09VQHwB.cjs +1 -0
- package/dist/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-020-h_lv.cjs +1 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-BFZMPI3H-B0uDu6gg.cjs +1 -0
- package/dist/packet-BFZMPI3H-tS-CKRal.js +5 -0
- package/dist/{page-creator-D2iEu92e.js → page-creator-Du1tv5PL.js} +2 -2
- package/dist/{page-creator-BICVMC59.cjs → page-creator-I5z6OA-y.cjs} +1 -1
- package/dist/{page-lock-request-DjfV2kmK.js → page-lock-request-C_FjXr4-.js} +5 -5
- package/dist/{page-lock-request-hlvjC2uX.cjs → page-lock-request-DSCZ2b9Y.cjs} +1 -1
- package/dist/{page-locked-by-dialog-m6K_uaE8.js → page-locked-by-dialog-DAJlxcUt.js} +1 -1
- package/dist/{page-locked-by-dialog-NpUOJvWZ.cjs → page-locked-by-dialog-Daefw0-2.cjs} +1 -1
- package/dist/{page-manager-new-DshyH-mV.js → page-manager-new-BNk_0XVK.js} +56 -56
- package/dist/{page-manager-new-C2jmBaFF.cjs → page-manager-new-DmA0Ka0c.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-D_g51CM8.cjs → page-manager-search-and-filter-DkR8sFPh.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-DCg7Fqi_.js → page-manager-search-and-filter-heV_U9x0.js} +1 -1
- package/dist/{page-revisions-content-N_qdjfDX.cjs → page-revisions-content-BIhjzS21.cjs} +1 -1
- package/dist/{page-revisions-content-DZzxttKH.js → page-revisions-content-BVg59skx.js} +18 -18
- package/dist/pages.css +1 -1
- package/dist/pascal-DBu9vQ2o.cjs +1 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-CxWZPeDZ.cjs +1 -0
- package/dist/perl-DkVrgJBg.js +16 -0
- package/dist/php-BLXVJphD.cjs +1 -0
- package/dist/php-j2zCzTEz.js +18 -0
- package/dist/pie-7BOR55EZ-CcDzfu0_.js +5 -0
- package/dist/pie-7BOR55EZ-CqYqIXXG.cjs +1 -0
- package/dist/pieDiagram-ADFJNKIX-CFfE-HG7.js +162 -0
- package/dist/pieDiagram-ADFJNKIX-DWVdC3zW.cjs +30 -0
- package/dist/pkl-C-zSNmaA.js +6 -0
- package/dist/pkl-Dvyry4Rm.cjs +1 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plastic-r5piqq-S.cjs +1 -0
- package/dist/plsql-IJkoPJ9P.cjs +1 -0
- package/dist/plsql-pVbGZfOv.js +6 -0
- package/dist/po-BNfHvqmm.js +6 -0
- package/dist/po-Rhu6MvnX.cjs +1 -0
- package/dist/poimandres-BLP3NNjc.cjs +1 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-BtWqSUq2.cjs +1 -0
- package/dist/polar-CAZahv3u.js +6 -0
- package/dist/postcss-05aHdL-n.js +6 -0
- package/dist/postcss-Dh97DcaJ.cjs +1 -0
- package/dist/powerquery-BGL6VIw7.cjs +1 -0
- package/dist/powerquery-DI9HkTvs.js +6 -0
- package/dist/powershell-BiEPMjy-.cjs +1 -0
- package/dist/powershell-Clc4ydu-.js +6 -0
- package/dist/prisma-Dp473sn0.cjs +1 -0
- package/dist/prisma-FZjmVtSl.js +6 -0
- package/dist/prolog-C5-yg4TO.js +6 -0
- package/dist/prolog-N1U-3UeF.cjs +1 -0
- package/dist/proto-MmCPeFAD.js +6 -0
- package/dist/proto-kd7Vn2fe.cjs +1 -0
- package/dist/{publish-pages-content-CRvy9fwt.js → publish-pages-content-BhJ_uRxQ.js} +6 -6
- package/dist/{publish-pages-content-Dtu7807d.cjs → publish-pages-content-CKydxoZ_.cjs} +1 -1
- package/dist/pug-DiGNE7sm.cjs +1 -0
- package/dist/pug-XOw9Q1Ho.js +12 -0
- package/dist/puppet-CUJHmnxV.js +6 -0
- package/dist/puppet-cDQP_ZC_.cjs +1 -0
- package/dist/purescript-DMxb59gF.cjs +1 -0
- package/dist/purescript-rUfGld-4.js +6 -0
- package/dist/python-BFNSHbwJ.js +6 -0
- package/dist/python-s9jfVbew.cjs +1 -0
- package/dist/qml-beorq0E4.cjs +1 -0
- package/dist/qml-rTNXsquU.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qmldir-DNF9H2ir.cjs +1 -0
- package/dist/qss-AeJTysr_.js +6 -0
- package/dist/qss-DwA_oiAM.cjs +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-6xSOcCxL.js +1024 -0
- package/dist/quadrantDiagram-AYHSOK5B-J0R9fpox.cjs +7 -0
- package/dist/r-Bm0uF0U2.js +6 -0
- package/dist/r-ChIwckeM.cjs +1 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/racket-D4laxZit.cjs +1 -0
- package/dist/radar-NHE76QYJ-C4G7hzu6.js +5 -0
- package/dist/radar-NHE76QYJ-EznHmPEg.cjs +1 -0
- package/dist/raku-DHySPsLw.cjs +1 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-DgCbant-.cjs +1 -0
- package/dist/razor-Dh1wKTmh.js +10 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/red-BQGOv1D5.cjs +1 -0
- package/dist/reg-CevkCKuZ.cjs +1 -0
- package/dist/reg-m_s_Kiip.js +6 -0
- package/dist/regexp-BazyLpPg.js +6 -0
- package/dist/regexp-DabTWNLE.cjs +1 -0
- package/dist/rel-BS5APza7.cjs +1 -0
- package/dist/rel-BcRfyd6Q.js +6 -0
- package/dist/render.d.ts +12 -0
- package/dist/requirementDiagram-UZGBJVZJ-DXq0f3Op.cjs +64 -0
- package/dist/requirementDiagram-UZGBJVZJ-p2d3AnQ8.js +852 -0
- package/dist/riscv-BnGFr6V7.cjs +1 -0
- package/dist/riscv-Ce8MAQLP.js +6 -0
- package/dist/rose-pine-Cr4kwgAY.js +4 -0
- package/dist/rose-pine-Dynd1SQq.cjs +1 -0
- package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
- package/dist/rose-pine-dawn-DwrpEjkh.cjs +1 -0
- package/dist/rose-pine-moon-8HmiewSG.cjs +1 -0
- package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
- package/dist/rosmsg-C7VSFzUC.cjs +1 -0
- package/dist/rosmsg-Cz0w1km8.js +6 -0
- package/dist/rst-CcbeA9zE.js +22 -0
- package/dist/rst-D08gsKw8.cjs +1 -0
- package/dist/ruby-B5H7kBtd.cjs +1 -0
- package/dist/ruby-DMPw6uKF.js +30 -0
- package/dist/runtime.d.ts +12 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/rust-CNeTMPbB.cjs +1 -0
- package/dist/sankeyDiagram-TZEHDZUN-CLBuuob-.cjs +10 -0
- package/dist/sankeyDiagram-TZEHDZUN-CbASga1e.js +810 -0
- package/dist/sas-D5Fn8Q38.cjs +1 -0
- package/dist/sas-fpEvgATw.js +8 -0
- package/dist/sass-DxHp5rTx.js +6 -0
- package/dist/sass-vyo-bUwh.cjs +1 -0
- package/dist/{save-to-lib-BE0-MXVv.js → save-to-lib-Byfa7tCG.js} +1 -1
- package/dist/{save-to-lib-XnTNVHzy.cjs → save-to-lib-C3mx8iXu.cjs} +1 -1
- package/dist/scala-D4grkFkl.js +6 -0
- package/dist/scala-ZSekD-8-.cjs +1 -0
- package/dist/scheme-BCRWuEm4.js +6 -0
- package/dist/scheme-vM0LdD-_.cjs +1 -0
- package/dist/scss-B1FaCqwR.js +8 -0
- package/dist/scss-CKlduTMv.cjs +1 -0
- package/dist/sdbl-B7T8abf4.js +6 -0
- package/dist/sdbl-DeWT5r4i.cjs +1 -0
- package/dist/selected-block-display-CZ3zwgqL.js +43632 -0
- package/dist/selected-block-display-GwQBADhp.cjs +541 -0
- package/dist/{seo-panel-dIE8Wi40.js → seo-panel-CrpYigIp.js} +17 -17
- package/dist/{seo-panel-Ce3uf7XT.cjs → seo-panel-DxaEiunO.cjs} +1 -1
- package/dist/sequenceDiagram-WL72ISMW-3T2mzAhA.js +2522 -0
- package/dist/sequenceDiagram-WL72ISMW-DmS_WEPR.cjs +145 -0
- package/dist/server.cjs +206 -121
- package/dist/server.d.ts +12 -0
- package/dist/server.js +776 -691
- package/dist/shaderlab-Cr62-Wb4.js +8 -0
- package/dist/shaderlab-DGJjQHxC.cjs +1 -0
- package/dist/{shared-json-ld-DiVirR4t.cjs → shared-json-ld-CcUhox6j.cjs} +1 -1
- package/dist/{shared-json-ld-UCI8GeFi.js → shared-json-ld-DczSLaqw.js} +48 -48
- package/dist/shellscript-DYWjN7qW.cjs +1 -0
- package/dist/shellscript-InADTalH.js +6 -0
- package/dist/shellsession-DMUSXX8m.cjs +1 -0
- package/dist/shellsession-DiDJNQdy.js +8 -0
- package/dist/slack-dark-akqwQ7ED.cjs +1 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-BoQQWmTv.cjs +1 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/{slug-input-DTA7c8c6.js → slug-input-CjagPxIn.js} +1 -1
- package/dist/{slug-input-BbkCbVMY.cjs → slug-input-CsniBgYf.cjs} +1 -1
- package/dist/smalltalk-BNs6hxu4.cjs +1 -0
- package/dist/smalltalk-BlI1_OkM.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/snazzy-light-D_IwRieF.cjs +1 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-dark-gmm-WbDC.cjs +1 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solarized-light-DzcxRSZP.cjs +1 -0
- package/dist/solidity-CYggdHYd.cjs +1 -0
- package/dist/solidity-CneOhxmR.js +6 -0
- package/dist/soy-C1-6njHa.js +8 -0
- package/dist/soy-CDFPDtGX.cjs +1 -0
- package/dist/sparql-6Cg9ppCl.cjs +1 -0
- package/dist/sparql-B0KWFEri.js +8 -0
- package/dist/splunk-CRXR8A9s.js +6 -0
- package/dist/splunk-CWPivao_.cjs +1 -0
- package/dist/sql-Cn_v3PB0.js +6 -0
- package/dist/sql-DhUUVgH1.cjs +1 -0
- package/dist/ssh-config-B93wBIBa.cjs +1 -0
- package/dist/ssh-config-DP-hNVbF.js +6 -0
- package/dist/stata-B8c5fTjX.js +8 -0
- package/dist/stata-DCWFCQQG.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-BmMX9umD.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-D9lkyJcL.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3-BwQkMtRv.cjs +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-D0yq-_gB.js +16 -0
- package/dist/stylus-B64Bt0D4.cjs +1 -0
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/svelte-5UasyOg7.js +14 -0
- package/dist/svelte-DFg_x5i4.cjs +1 -0
- package/dist/swift-9UzSvamq.js +6 -0
- package/dist/swift-BMbGdc3j.cjs +1 -0
- package/dist/synthwave-84-BBRLOmNT.cjs +1 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-BCm7smPJ.js +6 -0
- package/dist/system-verilog-BFclLo9e.cjs +1 -0
- package/dist/systemd-C-4qm6XH.js +6 -0
- package/dist/systemd-Dtw7P4tb.cjs +1 -0
- package/dist/tailwind.d.ts +12 -0
- package/dist/talonscript-CFF3LF_O.js +6 -0
- package/dist/talonscript-D8SvZJVc.cjs +1 -0
- package/dist/tasl--DC4oX-L.cjs +1 -0
- package/dist/tasl-Cg_WBUAe.js +6 -0
- package/dist/tcl-0Q0H86Yn.cjs +1 -0
- package/dist/tcl-DN7buRTF.js +6 -0
- package/dist/templ-BDNMUns0.cjs +1 -0
- package/dist/templ-peLZIM2D.js +12 -0
- package/dist/terraform-C0RDrmWi.cjs +1 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-BUUuwxQS.js +8 -0
- package/dist/tex-By7qnogv.cjs +1 -0
- package/dist/{theme-panel-footer-uGKDjNbs.cjs → theme-panel-footer-BYI0_a19.cjs} +1 -1
- package/dist/{theme-panel-footer-BjRPU7lq.js → theme-panel-footer-C-uSbeOf.js} +1 -1
- package/dist/timeline-definition-IT6M3QCI-Bi9IiYMF.cjs +61 -0
- package/dist/timeline-definition-IT6M3QCI-LtkAohDp.js +801 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/tokyo-night-GOhjzM5y.cjs +1 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/toml-Q64DoSvG.cjs +1 -0
- package/dist/treemap-KMMF4GRG-DAuFMsAI.cjs +1 -0
- package/dist/treemap-KMMF4GRG-vy1iI8-N.js +5 -0
- package/dist/ts-tags-DILCom6A.cjs +1 -0
- package/dist/ts-tags-ioVe2PKw.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsv-DqNGnuVj.cjs +1 -0
- package/dist/tsx-B8rCNbgL.js +6 -0
- package/dist/tsx-DIpfUf9u.cjs +1 -0
- package/dist/turtle-DipIidr5.cjs +1 -0
- package/dist/turtle-_H59FV7D.js +6 -0
- package/dist/twig-B42NGISI.cjs +1 -0
- package/dist/twig-CcRLVyUg.js +18 -0
- package/dist/typescript-RycA9KXf.js +6 -0
- package/dist/typescript-b48wo4zk.cjs +1 -0
- package/dist/typespec-CLqB-2XS.cjs +1 -0
- package/dist/typespec-Djmco60m.js +6 -0
- package/dist/typst-Cqq4j4V-.cjs +1 -0
- package/dist/typst-D_1QKWns.js +6 -0
- package/dist/{unmark-as-template-BWviVI2t.js → unmark-as-template-CGKkAZPZ.js} +1 -1
- package/dist/{unmark-as-template-Dbhko_72.cjs → unmark-as-template-GuUssCYI.cjs} +1 -1
- package/dist/{unpublish-page-D0EmMryc.cjs → unpublish-page-D67IrGmd.cjs} +1 -1
- package/dist/{unpublish-page-BzI9EFF9.js → unpublish-page-ow8e1CXO.js} +1 -1
- package/dist/use-page-expand-manager-B5Y2KS1c.cjs +1 -0
- package/dist/utils.d.ts +12 -0
- package/dist/v-81C2s01-.cjs +1 -0
- package/dist/v-BPCNiyYe.js +6 -0
- package/dist/vala-CsAYdCD2.cjs +1 -0
- package/dist/vala-uxaPR7d1.js +6 -0
- package/dist/vb-AiTMb16X.cjs +1 -0
- package/dist/vb-D8_c5-KN.js +6 -0
- package/dist/verilog-AMohXZcN.cjs +1 -0
- package/dist/verilog-B-bybjPF.js +6 -0
- package/dist/vesper-B59Iw4gV.cjs +1 -0
- package/dist/vesper-BckBta1U.js +4 -0
- package/dist/vhdl-CUlNa8ac.js +6 -0
- package/dist/vhdl-DIdR1NA5.cjs +1 -0
- package/dist/viml-D01eKeA4.cjs +1 -0
- package/dist/viml-DsfA-sWm.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-black-MF-1S1MG.cjs +1 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-dark-SIffJYSe.cjs +1 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vitesse-light-U63SkYGT.cjs +1 -0
- package/dist/vue-DUYfTwgV.cjs +1 -0
- package/dist/vue-DrinnB8Y.js +31 -0
- package/dist/vue-html-B8T_zUQ-.cjs +1 -0
- package/dist/vue-html-CQOyCFnQ.js +10 -0
- package/dist/vue-vine-CAyeVfAj.js +20 -0
- package/dist/vue-vine-ClEtVpt5.cjs +1 -0
- package/dist/vyper-CPQuu50u.js +6 -0
- package/dist/vyper-DTzyzn3a.cjs +1 -0
- package/dist/wasm-BBXxrAl7.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wasm-Dp-QrJpp.cjs +1 -0
- package/dist/wasm-Dw4u1m6u.cjs +1 -0
- package/dist/web-blocks.d.ts +12 -0
- package/dist/{web-preview-CSV-DXpI.cjs → web-preview-Dm8A9E8S.cjs} +1 -1
- package/dist/{web-preview-SIUM1SWa.js → web-preview-NCfHy3pB.js} +2 -2
- package/dist/wenyan-CRNx8UP3.cjs +1 -0
- package/dist/wenyan-pbVjoM9_.js +6 -0
- package/dist/wgsl-DF5qc9dd.cjs +1 -0
- package/dist/wgsl-DY4iK1q1.js +6 -0
- package/dist/wikitext-D7uzEIfK.cjs +1 -0
- package/dist/wikitext-Z-MoUasO.js +6 -0
- package/dist/wit-BjWgLsJj.cjs +1 -0
- package/dist/wit-CQMQOlTg.js +6 -0
- package/dist/wolfram-BR4t3Ffc.cjs +1 -0
- package/dist/wolfram-Dz4KXISs.js +6 -0
- package/dist/xml-BpsKWkuV.cjs +1 -0
- package/dist/xml-C2J0sS9M.js +8 -0
- package/dist/xsl-BmSZphgC.js +8 -0
- package/dist/xsl-D-3VYix6.cjs +1 -0
- package/dist/xychartDiagram-PRI3JC2R-d5V8_6ka.cjs +7 -0
- package/dist/xychartDiagram-PRI3JC2R-ggiHJXU7.js +1340 -0
- package/dist/yaml-DaO7k5B1.js +6 -0
- package/dist/yaml-XVBmpKh-.cjs +1 -0
- package/dist/zenscript-CxBjpf9c.js +6 -0
- package/dist/zenscript-fNvwKexi.cjs +1 -0
- package/dist/zig-BAyIAcWK.cjs +1 -0
- package/dist/zig-Vm0PO9wB.js +6 -0
- package/package.json +28 -12
- package/dist/ai-panel-content-B7VWN9Hp.js +0 -54
- package/dist/ai-panel-content-DvNWlTtZ.cjs +0 -1
- package/dist/ai-panel-default-lang-DRkJegQm.js +0 -178
- package/dist/ai-panel-default-lang-Dnfg53l_.cjs +0 -1
- package/dist/ai-panel-message-bubble-Bl-aUeU4.cjs +0 -1
- package/dist/ai-panel-message-bubble-DPAaAMAZ.js +0 -38
- package/dist/ai-panel-other-lang-0_g52R_I.cjs +0 -1
- package/dist/ai-panel-other-lang-CQVkWTd3.js +0 -150
- package/dist/ai-panel-quick-prompts-BfMsNuRu.js +0 -46
- package/dist/ai-panel-quick-prompts-CGKAAn9A.cjs +0 -1
- package/dist/ai-prompt-input-C3TnCYfz.js +0 -222
- package/dist/ai-prompt-input-CffQQOKA.cjs +0 -1
- package/dist/index-B1OACNv-.cjs +0 -5
- package/dist/prompt-helper-D0QRFyFX.js +0 -187
- package/dist/prompt-helper-DIy7u3rt.cjs +0 -51
- package/dist/use-page-expand-manager-2KjeYfVS.cjs +0 -1
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
"use strict";var E3=Object.defineProperty;var v3=Object.getPrototypeOf;var T3=Reflect.get;var Hc=e=>{throw TypeError(e)};var w3=(e,t,r)=>t in e?E3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var q=(e,t,r)=>w3(e,typeof t!="symbol"?t+"":t,r),Yo=(e,t,r)=>t.has(e)||Hc("Cannot "+r);var Et=(e,t,r)=>(Yo(e,t,"read from private field"),r?r.call(e):t.get(e)),Rn=(e,t,r)=>t.has(e)?Hc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),rr=(e,t,r,n)=>(Yo(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Xo=(e,t,r)=>(Yo(e,t,"access private method"),r);var zc=(e,t,r)=>T3(v3(e),r,t);const D=require("react/jsx-runtime"),qt=require("lucide-react"),j=require("react"),k3=require("react-dom"),am=require("tailwind-merge"),S3=require("framer-motion"),el=require("./index-C1bimRWu.cjs"),Uc=require("@chaibuilder/sdk"),A3=require("@chaibuilder/sdk/ui");function sm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const U=sm(j),om=sm(k3);function e0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uo(...e){return t=>{let r=!1;const n=e.map(i=>{const a=qc(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():qc(e[i],null)}}}}function Jr(...e){return U.useCallback(uo(...e),e)}var C3=Symbol.for("react.lazy"),Cs=U[" use ".trim().toString()];function _3(e){return typeof e=="object"&&e!==null&&"then"in e}function um(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===C3&&"_payload"in e&&_3(e._payload)}function lm(e){const t=I3(e),r=U.forwardRef((n,i)=>{let{children:a,...s}=n;um(a)&&typeof Cs=="function"&&(a=Cs(a._payload));const o=U.Children.toArray(a),u=o.find(P3);if(u){const l=u.props.children,h=o.map(c=>c===u?U.Children.count(l)>1?U.Children.only(null):U.isValidElement(l)?l.props.children:null:c);return D.jsx(t,{...s,ref:i,children:U.isValidElement(l)?U.cloneElement(l,void 0,h):null})}return D.jsx(t,{...s,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var N3=lm("Slot");function I3(e){const t=U.forwardRef((r,n)=>{let{children:i,...a}=r;if(um(i)&&typeof Cs=="function"&&(i=Cs(i._payload)),U.isValidElement(i)){const s=D3(i),o=L3(a,i.props);return i.type!==U.Fragment&&(o.ref=n?uo(n,s):s),U.cloneElement(i,o)}return U.Children.count(i)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R3=Symbol("radix.slottable");function P3(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R3}function L3(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...o)=>{const u=a(...o);return i(...o),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function D3(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=cm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function t0(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=cm(e))&&(n&&(n+=" "),n+=t);return n}const $c=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jc=t0,hm=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return jc(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(l=>{const h=r==null?void 0:r[l],c=a==null?void 0:a[l];if(h===null)return null;const d=$c(h)||$c(c);return i[l][d]}),o=r&&Object.entries(r).reduce((l,h)=>{let[c,d]=h;return d===void 0||(l[c]=d),l},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,h)=>{let{class:c,className:d,...f}=h;return Object.entries(f).every(g=>{let[y,T]=g;return Array.isArray(T)?T.includes({...a,...o}[y]):{...a,...o}[y]===T})?[...l,c,d]:l},[]);return jc(e,s,u,r==null?void 0:r.class,r==null?void 0:r.className)};function dt(...e){return am.twMerge(t0(e))}const M3=hm("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),r0=U.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const s=n?N3:"button";return D.jsx(s,{className:dt(M3({variant:t,size:r,className:e})),ref:a,...i})});r0.displayName="Button";/*!---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) StackBlitz. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/const O3={damping:.7,stiffness:.05,mass:1.25},B3=70,F3=1e3/60,H3=350;let lo=!1;var rm;(rm=globalThis.document)==null||rm.addEventListener("mousedown",()=>{lo=!0});var nm;(nm=globalThis.document)==null||nm.addEventListener("mouseup",()=>{lo=!1});var im;(im=globalThis.document)==null||im.addEventListener("click",()=>{lo=!1});const z3=(e={})=>{const[t,r]=j.useState(!1),[n,i]=j.useState(e.initial!==!1),[a,s]=j.useState(!1),o=j.useRef(null);o.current=e;const u=j.useCallback(()=>{var R;if(!lo)return!1;const v=window.getSelection();if(!v||!v.rangeCount)return!1;const k=v.getRangeAt(0);return k.commonAncestorContainer.contains(T.current)||((R=T.current)==null?void 0:R.contains(k.commonAncestorContainer))},[]),l=j.useCallback(v=>{c.isAtBottom=v,i(v)},[]),h=j.useCallback(v=>{c.escapedFromLock=v,r(v)},[]),c=j.useMemo(()=>{let v;return{escapedFromLock:t,isAtBottom:n,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){var k;return((k=T.current)==null?void 0:k.scrollTop)??0},set scrollTop(k){T.current&&(T.current.scrollTop=k,c.ignoreScrollToTop=T.current.scrollTop)},get targetScrollTop(){return!T.current||!x.current?0:T.current.scrollHeight-1-T.current.clientHeight},get calculatedTargetScrollTop(){if(!T.current||!x.current)return 0;const{targetScrollTop:k}=this;if(!e.targetScrollTop)return k;if((v==null?void 0:v.targetScrollTop)===k)return v.calculatedScrollTop;const R=Math.max(Math.min(e.targetScrollTop(k,{scrollElement:T.current,contentElement:x.current}),k),0);return v={targetScrollTop:k,calculatedScrollTop:R},requestAnimationFrame(()=>{v=void 0}),R},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=B3}}},[]),d=j.useCallback((v={})=>{var Y;typeof v=="string"&&(v={animation:v}),v.preserveScrollPosition||l(!0);const k=Date.now()+(Number(v.wait)||0),R=Ko(o.current,v.animation),{ignoreEscapes:O=!1}=v;let I,F=c.calculatedTargetScrollTop;v.duration instanceof Promise?v.duration.finally(()=>{I=Date.now()}):I=k+(v.duration??0);const G=async()=>{const B=new Promise(requestAnimationFrame).then(()=>{var Q;if(!c.isAtBottom)return c.animation=void 0,!1;const{scrollTop:X}=c,V=performance.now(),ue=(V-(c.lastTick??V))/F3;if(c.animation||(c.animation={behavior:R,promise:B,ignoreEscapes:O}),c.animation.behavior===R&&(c.lastTick=V),u()||k>Date.now())return G();if(X<Math.min(F,c.calculatedTargetScrollTop)){if(((Q=c.animation)==null?void 0:Q.behavior)===R){if(R==="instant")return c.scrollTop=c.calculatedTargetScrollTop,G();c.velocity=(R.damping*c.velocity+R.stiffness*c.scrollDifference)/R.mass,c.accumulated+=c.velocity*ue,c.scrollTop+=c.accumulated,c.scrollTop!==X&&(c.accumulated=0)}return G()}return I>Date.now()?(F=c.calculatedTargetScrollTop,G()):(c.animation=void 0,c.scrollTop<c.calculatedTargetScrollTop?d({animation:Ko(o.current,o.current.resize),ignoreEscapes:O,duration:Math.max(0,I-Date.now())||void 0}):c.isAtBottom)});return B.then(X=>(requestAnimationFrame(()=>{c.animation||(c.lastTick=void 0,c.velocity=0)}),X))};return v.wait!==!0&&(c.animation=void 0),((Y=c.animation)==null?void 0:Y.behavior)===R?c.animation.promise:G()},[l,u,c]),f=j.useCallback(()=>{h(!0),l(!1)},[h,l]),g=j.useCallback(({target:v})=>{if(v!==T.current)return;const{scrollTop:k,ignoreScrollToTop:R}=c;let{lastScrollTop:O=k}=c;c.lastScrollTop=k,c.ignoreScrollToTop=void 0,R&&R>k&&(O=R),s(c.isNearBottom),setTimeout(()=>{var G;if(c.resizeDifference||k===R)return;if(u()){h(!0),l(!1);return}const I=k>O,F=k<O;if((G=c.animation)!=null&&G.ignoreEscapes){c.scrollTop=O;return}F&&(h(!0),l(!1)),I&&h(!1),!c.escapedFromLock&&c.isNearBottom&&l(!0)},1)},[h,l,u,c]),y=j.useCallback(({target:v,deltaY:k})=>{var O;let R=v;for(;!["scroll","auto"].includes(getComputedStyle(R).overflow);){if(!R.parentElement)return;R=R.parentElement}R===T.current&&k<0&&T.current.scrollHeight>T.current.clientHeight&&!((O=c.animation)!=null&&O.ignoreEscapes)&&(h(!0),l(!1))},[h,l,c]),T=Gc(v=>{var k,R;(k=T.current)==null||k.removeEventListener("scroll",g),(R=T.current)==null||R.removeEventListener("wheel",y),v==null||v.addEventListener("scroll",g,{passive:!0}),v==null||v.addEventListener("wheel",y,{passive:!0})},[]),x=Gc(v=>{var R,O;if((R=c.resizeObserver)==null||R.disconnect(),!v)return;let k;c.resizeObserver=new ResizeObserver(([I])=>{const{height:F}=I.contentRect,G=F-(k??F);if(c.resizeDifference=G,c.scrollTop>c.targetScrollTop&&(c.scrollTop=c.targetScrollTop),s(c.isNearBottom),G>=0){const Y=Ko(o.current,k?o.current.resize:o.current.initial);d({animation:Y,wait:!0,preserveScrollPosition:!0,duration:Y==="instant"?void 0:H3})}else c.isNearBottom&&(h(!1),l(!0));k=F,requestAnimationFrame(()=>{setTimeout(()=>{c.resizeDifference===G&&(c.resizeDifference=0)},1)})}),(O=c.resizeObserver)==null||O.observe(v)},[]);return{contentRef:x,scrollRef:T,scrollToBottom:d,stopScroll:f,isAtBottom:n||a,isNearBottom:a,escapedFromLock:t,state:c}};function Gc(e,t){const r=j.useCallback(n=>(r.current=n,e(n)),t);return r}const Qo=new Map;function Ko(...e){const t={...O3};let r=!1;for(const i of e){if(i==="instant"){r=!0;continue}typeof i=="object"&&(r=!1,t.damping=i.damping??t.damping,t.stiffness=i.stiffness??t.stiffness,t.mass=i.mass??t.mass)}const n=JSON.stringify(t);return Qo.has(n)||Qo.set(n,Object.freeze(t)),r?"instant":Qo.get(n)}const dm=j.createContext(null),U3=typeof window<"u"?j.useLayoutEffect:j.useEffect;function n0({instance:e,children:t,resize:r,initial:n,mass:i,damping:a,stiffness:s,targetScrollTop:o,contextRef:u,...l}){const h=j.useRef(null),c=U.useCallback((O,I)=>{const F=(R==null?void 0:R.targetScrollTop)??o;return(F==null?void 0:F(O,I))??O},[o]),d=z3({mass:i,damping:a,stiffness:s,resize:r,initial:n,targetScrollTop:c}),{scrollRef:f,contentRef:g,scrollToBottom:y,stopScroll:T,isAtBottom:x,escapedFromLock:v,state:k}=e??d,R=j.useMemo(()=>({scrollToBottom:y,stopScroll:T,scrollRef:f,isAtBottom:x,escapedFromLock:v,contentRef:g,state:k,get targetScrollTop(){return h.current},set targetScrollTop(O){h.current=O}}),[y,x,g,f,T,v,k]);return j.useImperativeHandle(u,()=>R,[R]),U3(()=>{f.current&&getComputedStyle(f.current).overflow==="visible"&&(f.current.style.overflow="auto")},[]),D.jsx(dm.Provider,{value:R,children:D.jsx("div",{...l,children:typeof t=="function"?t(R):t})})}(function(e){function t({children:r,...n}){const i=fm();return D.jsx("div",{ref:i.scrollRef,style:{height:"100%",width:"100%"},children:D.jsx("div",{...n,ref:i.contentRef,children:typeof r=="function"?r(i):r})})}e.Content=t})(n0);function fm(){const e=j.useContext(dm);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}const q3=({className:e,...t})=>D.jsx(n0,{className:dt("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),$3=({className:e,...t})=>D.jsx(n0.Content,{className:dt("flex flex-col gap-8 p-4",e),...t}),j3=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:n,children:i,...a})=>D.jsx("div",{className:dt("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...a,children:i??D.jsxs(D.Fragment,{children:[n&&D.jsx("div",{className:"text-muted-foreground",children:n}),D.jsxs("div",{className:"space-y-1",children:[D.jsx("h3",{className:"font-medium text-sm",children:t}),r&&D.jsx("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),G3=({className:e,...t})=>{const{isAtBottom:r,scrollToBottom:n}=fm(),i=j.useCallback(()=>{n()},[n]);return!r&&D.jsx(r0,{className:dt("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:i,size:"icon",type:"button",variant:"outline",...t,children:D.jsx(qt.ArrowDownIcon,{className:"size-4"})})};var V3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W3=V3.reduce((e,t)=>{const r=lm(`Primitive.${t}`),n=U.forwardRef((i,a)=>{const{asChild:s,...o}=i,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(u,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Y3="Separator",Vc="horizontal",X3=["horizontal","vertical"],mm=U.forwardRef((e,t)=>{const{decorative:r,orientation:n=Vc,...i}=e,a=Q3(n)?n:Vc,o=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return D.jsx(W3.div,{"data-orientation":a,...o,...i,ref:t})});mm.displayName=Y3;function Q3(e){return X3.includes(e)}var pm=mm;const K3=U.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},i)=>D.jsx(pm,{ref:i,decorative:r,orientation:t,className:dt("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));K3.displayName=pm.displayName;function ir(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Z3(e,t){const r=U.createContext(t),n=a=>{const{children:s,...o}=a,u=U.useMemo(()=>o,Object.values(o));return D.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function i(a){const s=U.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function co(e,t=[]){let r=[];function n(a,s){const o=U.createContext(s),u=r.length;r=[...r,s];const l=c=>{var x;const{scope:d,children:f,...g}=c,y=((x=d==null?void 0:d[e])==null?void 0:x[u])||o,T=U.useMemo(()=>g,Object.values(g));return D.jsx(y.Provider,{value:T,children:f})};l.displayName=a+"Provider";function h(c,d){var y;const f=((y=d==null?void 0:d[e])==null?void 0:y[u])||o,g=U.useContext(f);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,h]}const i=()=>{const a=r.map(s=>U.createContext(s));return function(o){const u=(o==null?void 0:o[e])||a;return U.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[n,J3(i,...t)]}function J3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=n.reduce((o,{useScope:u,scopeName:l})=>{const c=u(a)[`__scope${l}`];return{...o,...c}},{});return U.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function gm(e){const t=e6(e),r=U.forwardRef((n,i)=>{const{children:a,...s}=n,o=U.Children.toArray(a),u=o.find(r6);if(u){const l=u.props.children,h=o.map(c=>c===u?U.Children.count(l)>1?U.Children.only(null):U.isValidElement(l)?l.props.children:null:c);return D.jsx(t,{...s,ref:i,children:U.isValidElement(l)?U.cloneElement(l,void 0,h):null})}return D.jsx(t,{...s,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function e6(e){const t=U.forwardRef((r,n)=>{const{children:i,...a}=r;if(U.isValidElement(i)){const s=i6(i),o=n6(a,i.props);return i.type!==U.Fragment&&(o.ref=n?uo(n,s):s),U.cloneElement(i,o)}return U.Children.count(i)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bm=Symbol("radix.slottable");function t6(e){const t=({children:r})=>D.jsx(D.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=bm,t}function r6(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bm}function n6(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...o)=>{const u=a(...o);return i(...o),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function i6(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var a6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cr=a6.reduce((e,t)=>{const r=gm(`Primitive.${t}`),n=U.forwardRef((i,a)=>{const{asChild:s,...o}=i,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(u,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ym(e,t){e&&om.flushSync(()=>e.dispatchEvent(t))}function Pa(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function s6(e,t=globalThis==null?void 0:globalThis.document){const r=Pa(e);U.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var o6="DismissableLayer",tl="dismissableLayer.update",u6="dismissableLayer.pointerDownOutside",l6="dismissableLayer.focusOutside",Wc,xm=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),i0=U.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...u}=e,l=U.useContext(xm),[h,c]=U.useState(null),d=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=U.useState({}),g=Jr(t,F=>c(F)),y=Array.from(l.layers),[T]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(T),v=h?y.indexOf(h):-1,k=l.layersWithOutsidePointerEventsDisabled.size>0,R=v>=x,O=d6(F=>{const G=F.target,Y=[...l.branches].some(B=>B.contains(G));!R||Y||(i==null||i(F),s==null||s(F),F.defaultPrevented||o==null||o())},d),I=f6(F=>{const G=F.target;[...l.branches].some(B=>B.contains(G))||(a==null||a(F),s==null||s(F),F.defaultPrevented||o==null||o())},d);return s6(F=>{v===l.layers.size-1&&(n==null||n(F),!F.defaultPrevented&&o&&(F.preventDefault(),o()))},d),U.useEffect(()=>{if(h)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Wc=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(h)),l.layers.add(h),Yc(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Wc)}},[h,d,r,l]),U.useEffect(()=>()=>{h&&(l.layers.delete(h),l.layersWithOutsidePointerEventsDisabled.delete(h),Yc())},[h,l]),U.useEffect(()=>{const F=()=>f({});return document.addEventListener(tl,F),()=>document.removeEventListener(tl,F)},[]),D.jsx(cr.div,{...u,ref:g,style:{pointerEvents:k?R?"auto":"none":void 0,...e.style},onFocusCapture:ir(e.onFocusCapture,I.onFocusCapture),onBlurCapture:ir(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ir(e.onPointerDownCapture,O.onPointerDownCapture)})});i0.displayName=o6;var c6="DismissableLayerBranch",h6=U.forwardRef((e,t)=>{const r=U.useContext(xm),n=U.useRef(null),i=Jr(t,n);return U.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),D.jsx(cr.div,{...e,ref:i})});h6.displayName=c6;function d6(e,t=globalThis==null?void 0:globalThis.document){const r=Pa(e),n=U.useRef(!1),i=U.useRef(()=>{});return U.useEffect(()=>{const a=o=>{if(o.target&&!n.current){let u=function(){Em(u6,r,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function f6(e,t=globalThis==null?void 0:globalThis.document){const r=Pa(e),n=U.useRef(!1);return U.useEffect(()=>{const i=a=>{a.target&&!n.current&&Em(l6,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Yc(){const e=new CustomEvent(tl);document.dispatchEvent(e)}function Em(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?ym(i,a):i.dispatchEvent(a)}var Wr=globalThis!=null&&globalThis.document?U.useLayoutEffect:()=>{},m6=U[" useId ".trim().toString()]||(()=>{}),p6=0;function vm(e){const[t,r]=U.useState(m6());return Wr(()=>{r(n=>n??String(p6++))},[e]),t?`radix-${t}`:""}const g6=["top","right","bottom","left"],xn=Math.min,Bt=Math.max,_s=Math.round,Ya=Math.floor,wr=e=>({x:e,y:e}),b6={left:"right",right:"left",bottom:"top",top:"bottom"},y6={start:"end",end:"start"};function rl(e,t,r){return Bt(e,xn(t,r))}function Yr(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Si(e){return e.split("-")[1]}function a0(e){return e==="x"?"y":"x"}function s0(e){return e==="y"?"height":"width"}const x6=new Set(["top","bottom"]);function xr(e){return x6.has(Xr(e))?"y":"x"}function o0(e){return a0(xr(e))}function E6(e,t,r){r===void 0&&(r=!1);const n=Si(e),i=o0(e),a=s0(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ns(s)),[s,Ns(s)]}function v6(e){const t=Ns(e);return[nl(e),t,nl(t)]}function nl(e){return e.replace(/start|end/g,t=>y6[t])}const Xc=["left","right"],Qc=["right","left"],T6=["top","bottom"],w6=["bottom","top"];function k6(e,t,r){switch(e){case"top":case"bottom":return r?t?Qc:Xc:t?Xc:Qc;case"left":case"right":return t?T6:w6;default:return[]}}function S6(e,t,r,n){const i=Si(e);let a=k6(Xr(e),r==="start",n);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(nl)))),a}function Ns(e){return e.replace(/left|right|bottom|top/g,t=>b6[t])}function A6(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tm(e){return typeof e!="number"?A6(e):{top:e,right:e,bottom:e,left:e}}function Is(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Kc(e,t,r){let{reference:n,floating:i}=e;const a=xr(t),s=o0(t),o=s0(s),u=Xr(t),l=a==="y",h=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2,d=n[o]/2-i[o]/2;let f;switch(u){case"top":f={x:h,y:n.y-i.height};break;case"bottom":f={x:h,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:c};break;case"left":f={x:n.x-i.width,y:c};break;default:f={x:n.x,y:n.y}}switch(Si(t)){case"start":f[s]-=d*(r&&l?-1:1);break;case"end":f[s]+=d*(r&&l?-1:1);break}return f}const C6=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,o=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:c}=Kc(l,n,u),d=n,f={},g=0;for(let y=0;y<o.length;y++){const{name:T,fn:x}=o[y],{x:v,y:k,data:R,reset:O}=await x({x:h,y:c,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:l,platform:s,elements:{reference:e,floating:t}});h=v??h,c=k??c,f={...f,[T]:{...f[T],...R}},O&&g<=50&&(g++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(l=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:h,y:c}=Kc(l,d,u)),y=-1)}return{x:h,y:c,placement:d,strategy:i,middlewareData:f}};async function ba(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:s,elements:o,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:d=!1,padding:f=0}=Yr(t,e),g=Tm(f),T=o[d?c==="floating"?"reference":"floating":c],x=Is(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(T)))==null||r?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:l,rootBoundary:h,strategy:u})),v=c==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),R=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},O=Is(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:k,strategy:u}):v);return{top:(x.top-O.top+g.top)/R.y,bottom:(O.bottom-x.bottom+g.bottom)/R.y,left:(x.left-O.left+g.left)/R.x,right:(O.right-x.right+g.right)/R.x}}const _6=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:s,elements:o,middlewareData:u}=t,{element:l,padding:h=0}=Yr(e,t)||{};if(l==null)return{};const c=Tm(h),d={x:r,y:n},f=o0(i),g=s0(f),y=await s.getDimensions(l),T=f==="y",x=T?"top":"left",v=T?"bottom":"right",k=T?"clientHeight":"clientWidth",R=a.reference[g]+a.reference[f]-d[f]-a.floating[g],O=d[f]-a.reference[f],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let F=I?I[k]:0;(!F||!await(s.isElement==null?void 0:s.isElement(I)))&&(F=o.floating[k]||a.floating[g]);const G=R/2-O/2,Y=F/2-y[g]/2-1,B=xn(c[x],Y),X=xn(c[v],Y),V=B,ue=F-y[g]-X,Q=F/2-y[g]/2+G,K=rl(V,Q,ue),ce=!u.arrow&&Si(i)!=null&&Q!==K&&a.reference[g]/2-(Q<V?B:X)-y[g]/2<0,ge=ce?Q<V?Q-V:Q-ue:0;return{[f]:d[f]+ge,data:{[f]:K,centerOffset:Q-K-ge,...ce&&{alignmentOffset:ge}},reset:ce}}}),N6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:u,elements:l}=t,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...T}=Yr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Xr(i),v=xr(o),k=Xr(o)===o,R=await(u.isRTL==null?void 0:u.isRTL(l.floating)),O=d||(k||!y?[Ns(o)]:v6(o)),I=g!=="none";!d&&I&&O.push(...S6(o,y,g,R));const F=[o,...O],G=await ba(t,T),Y=[];let B=((n=a.flip)==null?void 0:n.overflows)||[];if(h&&Y.push(G[x]),c){const Q=E6(i,s,R);Y.push(G[Q[0]],G[Q[1]])}if(B=[...B,{placement:i,overflows:Y}],!Y.every(Q=>Q<=0)){var X,V;const Q=(((X=a.flip)==null?void 0:X.index)||0)+1,K=F[Q];if(K&&(!(c==="alignment"?v!==xr(K):!1)||B.every(de=>xr(de.placement)===v?de.overflows[0]>0:!0)))return{data:{index:Q,overflows:B},reset:{placement:K}};let ce=(V=B.filter(ge=>ge.overflows[0]<=0).sort((ge,de)=>ge.overflows[1]-de.overflows[1])[0])==null?void 0:V.placement;if(!ce)switch(f){case"bestFit":{var ue;const ge=(ue=B.filter(de=>{if(I){const Ie=xr(de.placement);return Ie===v||Ie==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(Ie=>Ie>0).reduce((Ie,P)=>Ie+P,0)]).sort((de,Ie)=>de[1]-Ie[1])[0])==null?void 0:ue[0];ge&&(ce=ge);break}case"initialPlacement":ce=o;break}if(i!==ce)return{reset:{placement:ce}}}return{}}}};function Zc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jc(e){return g6.some(t=>e[t]>=0)}const I6=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=Yr(e,t);switch(n){case"referenceHidden":{const a=await ba(t,{...i,elementContext:"reference"}),s=Zc(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Jc(s)}}}case"escaped":{const a=await ba(t,{...i,altBoundary:!0}),s=Zc(a,r.floating);return{data:{escapedOffsets:s,escaped:Jc(s)}}}default:return{}}}}},wm=new Set(["left","top"]);async function R6(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Xr(r),o=Si(r),u=xr(r)==="y",l=wm.has(s)?-1:1,h=a&&u?-1:1,c=Yr(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return o&&typeof g=="number"&&(f=o==="end"?g*-1:g),u?{x:f*h,y:d*l}:{x:d*l,y:f*h}}const P6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:s,middlewareData:o}=t,u=await R6(t,e);return s===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},L6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:T=>{let{x,y:v}=T;return{x,y:v}}},...u}=Yr(e,t),l={x:r,y:n},h=await ba(t,u),c=xr(Xr(i)),d=a0(c);let f=l[d],g=l[c];if(a){const T=d==="y"?"top":"left",x=d==="y"?"bottom":"right",v=f+h[T],k=f-h[x];f=rl(v,f,k)}if(s){const T=c==="y"?"top":"left",x=c==="y"?"bottom":"right",v=g+h[T],k=g-h[x];g=rl(v,g,k)}const y=o.fn({...t,[d]:f,[c]:g});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[d]:a,[c]:s}}}}}},D6=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:u=!0,crossAxis:l=!0}=Yr(e,t),h={x:r,y:n},c=xr(i),d=a0(c);let f=h[d],g=h[c];const y=Yr(o,t),T=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const k=d==="y"?"height":"width",R=a.reference[d]-a.floating[k]+T.mainAxis,O=a.reference[d]+a.reference[k]-T.mainAxis;f<R?f=R:f>O&&(f=O)}if(l){var x,v;const k=d==="y"?"width":"height",R=wm.has(Xr(i)),O=a.reference[c]-a.floating[k]+(R&&((x=s.offset)==null?void 0:x[c])||0)+(R?0:T.crossAxis),I=a.reference[c]+a.reference[k]+(R?0:((v=s.offset)==null?void 0:v[c])||0)-(R?T.crossAxis:0);g<O?g=O:g>I&&(g=I)}return{[d]:f,[c]:g}}}},M6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:s,elements:o}=t,{apply:u=()=>{},...l}=Yr(e,t),h=await ba(t,l),c=Xr(i),d=Si(i),f=xr(i)==="y",{width:g,height:y}=a.floating;let T,x;c==="top"||c==="bottom"?(T=c,x=d===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(x=c,T=d==="end"?"top":"bottom");const v=y-h.top-h.bottom,k=g-h.left-h.right,R=xn(y-h[T],v),O=xn(g-h[x],k),I=!t.middlewareData.shift;let F=R,G=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(G=k),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(F=v),I&&!d){const B=Bt(h.left,0),X=Bt(h.right,0),V=Bt(h.top,0),ue=Bt(h.bottom,0);f?G=g-2*(B!==0||X!==0?B+X:Bt(h.left,h.right)):F=y-2*(V!==0||ue!==0?V+ue:Bt(h.top,h.bottom))}await u({...t,availableWidth:G,availableHeight:F});const Y=await s.getDimensions(o.floating);return g!==Y.width||y!==Y.height?{reset:{rects:!0}}:{}}}};function ho(){return typeof window<"u"}function Ai(e){return km(e)?(e.nodeName||"").toLowerCase():"#document"}function Ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sr(e){var t;return(t=(km(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function km(e){return ho()?e instanceof Node||e instanceof Ht(e).Node:!1}function ur(e){return ho()?e instanceof Element||e instanceof Ht(e).Element:!1}function kr(e){return ho()?e instanceof HTMLElement||e instanceof Ht(e).HTMLElement:!1}function eh(e){return!ho()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ht(e).ShadowRoot}const O6=new Set(["inline","contents"]);function La(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!O6.has(i)}const B6=new Set(["table","td","th"]);function F6(e){return B6.has(Ai(e))}const H6=[":popover-open",":modal"];function fo(e){return H6.some(t=>{try{return e.matches(t)}catch{return!1}})}const z6=["transform","translate","scale","rotate","perspective"],U6=["transform","translate","scale","rotate","perspective","filter"],q6=["paint","layout","strict","content"];function u0(e){const t=l0(),r=ur(e)?lr(e):e;return z6.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||U6.some(n=>(r.willChange||"").includes(n))||q6.some(n=>(r.contain||"").includes(n))}function $6(e){let t=En(e);for(;kr(t)&&!bi(t);){if(u0(t))return t;if(fo(t))return null;t=En(t)}return null}function l0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const j6=new Set(["html","body","#document"]);function bi(e){return j6.has(Ai(e))}function lr(e){return Ht(e).getComputedStyle(e)}function mo(e){return ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function En(e){if(Ai(e)==="html")return e;const t=e.assignedSlot||e.parentNode||eh(e)&&e.host||Sr(e);return eh(t)?t.host:t}function Sm(e){const t=En(e);return bi(t)?e.ownerDocument?e.ownerDocument.body:e.body:kr(t)&&La(t)?t:Sm(t)}function ya(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Sm(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=Ht(i);if(a){const o=il(s);return t.concat(s,s.visualViewport||[],La(i)?i:[],o&&r?ya(o):[])}return t.concat(i,ya(i,[],r))}function il(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Am(e){const t=lr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=kr(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,o=_s(r)!==a||_s(n)!==s;return o&&(r=a,n=s),{width:r,height:n,$:o}}function c0(e){return ur(e)?e:e.contextElement}function hi(e){const t=c0(e);if(!kr(t))return wr(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=Am(t);let s=(a?_s(r.width):r.width)/n,o=(a?_s(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const G6=wr(0);function Cm(e){const t=Ht(e);return!l0()||!t.visualViewport?G6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function V6(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ht(e)?!1:t}function qn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=c0(e);let s=wr(1);t&&(n?ur(n)&&(s=hi(n)):s=hi(e));const o=V6(a,r,n)?Cm(a):wr(0);let u=(i.left+o.x)/s.x,l=(i.top+o.y)/s.y,h=i.width/s.x,c=i.height/s.y;if(a){const d=Ht(a),f=n&&ur(n)?Ht(n):n;let g=d,y=il(g);for(;y&&n&&f!==g;){const T=hi(y),x=y.getBoundingClientRect(),v=lr(y),k=x.left+(y.clientLeft+parseFloat(v.paddingLeft))*T.x,R=x.top+(y.clientTop+parseFloat(v.paddingTop))*T.y;u*=T.x,l*=T.y,h*=T.x,c*=T.y,u+=k,l+=R,g=Ht(y),y=il(g)}}return Is({width:h,height:c,x:u,y:l})}function po(e,t){const r=mo(e).scrollLeft;return t?t.left+r:qn(Sr(e)).left+r}function _m(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-po(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function W6(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",s=Sr(n),o=t?fo(t.floating):!1;if(n===s||o&&a)return r;let u={scrollLeft:0,scrollTop:0},l=wr(1);const h=wr(0),c=kr(n);if((c||!c&&!a)&&((Ai(n)!=="body"||La(s))&&(u=mo(n)),kr(n))){const f=qn(n);l=hi(n),h.x=f.x+n.clientLeft,h.y=f.y+n.clientTop}const d=s&&!c&&!a?_m(s,u):wr(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+h.x+d.x,y:r.y*l.y-u.scrollTop*l.y+h.y+d.y}}function Y6(e){return Array.from(e.getClientRects())}function X6(e){const t=Sr(e),r=mo(e),n=e.ownerDocument.body,i=Bt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Bt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+po(e);const o=-r.scrollTop;return lr(n).direction==="rtl"&&(s+=Bt(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:o}}const th=25;function Q6(e,t){const r=Ht(e),n=Sr(e),i=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;const h=l0();(!h||h&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}const l=po(n);if(l<=0){const h=n.ownerDocument,c=h.body,d=getComputedStyle(c),f=h.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-c.clientWidth-f);g<=th&&(a-=g)}else l<=th&&(a+=l);return{width:a,height:s,x:o,y:u}}const K6=new Set(["absolute","fixed"]);function Z6(e,t){const r=qn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=kr(e)?hi(e):wr(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,u=i*a.x,l=n*a.y;return{width:s,height:o,x:u,y:l}}function rh(e,t,r){let n;if(t==="viewport")n=Q6(e,r);else if(t==="document")n=X6(Sr(e));else if(ur(t))n=Z6(t,r);else{const i=Cm(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Is(n)}function Nm(e,t){const r=En(e);return r===t||!ur(r)||bi(r)?!1:lr(r).position==="fixed"||Nm(r,t)}function J6(e,t){const r=t.get(e);if(r)return r;let n=ya(e,[],!1).filter(o=>ur(o)&&Ai(o)!=="body"),i=null;const a=lr(e).position==="fixed";let s=a?En(e):e;for(;ur(s)&&!bi(s);){const o=lr(s),u=u0(s);!u&&o.position==="fixed"&&(i=null),(a?!u&&!i:!u&&o.position==="static"&&!!i&&K6.has(i.position)||La(s)&&!u&&Nm(e,s))?n=n.filter(h=>h!==s):i=o,s=En(s)}return t.set(e,n),n}function eb(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?fo(t)?[]:J6(t,this._c):[].concat(r),n],o=s[0],u=s.reduce((l,h)=>{const c=rh(t,h,i);return l.top=Bt(c.top,l.top),l.right=xn(c.right,l.right),l.bottom=xn(c.bottom,l.bottom),l.left=Bt(c.left,l.left),l},rh(t,o,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function tb(e){const{width:t,height:r}=Am(e);return{width:t,height:r}}function rb(e,t,r){const n=kr(t),i=Sr(t),a=r==="fixed",s=qn(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const u=wr(0);function l(){u.x=po(i)}if(n||!n&&!a)if((Ai(t)!=="body"||La(i))&&(o=mo(t)),n){const f=qn(t,!0,a,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else i&&l();a&&!n&&i&&l();const h=i&&!n&&!a?_m(i,o):wr(0),c=s.left+o.scrollLeft-u.x-h.x,d=s.top+o.scrollTop-u.y-h.y;return{x:c,y:d,width:s.width,height:s.height}}function Zo(e){return lr(e).position==="static"}function nh(e,t){if(!kr(e)||lr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Sr(e)===r&&(r=r.ownerDocument.body),r}function Im(e,t){const r=Ht(e);if(fo(e))return r;if(!kr(e)){let i=En(e);for(;i&&!bi(i);){if(ur(i)&&!Zo(i))return i;i=En(i)}return r}let n=nh(e,t);for(;n&&F6(n)&&Zo(n);)n=nh(n,t);return n&&bi(n)&&Zo(n)&&!u0(n)?r:n||$6(e)||r}const nb=async function(e){const t=this.getOffsetParent||Im,r=this.getDimensions,n=await r(e.floating);return{reference:rb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ib(e){return lr(e).direction==="rtl"}const ab={convertOffsetParentRelativeRectToViewportRelativeRect:W6,getDocumentElement:Sr,getClippingRect:eb,getOffsetParent:Im,getElementRects:nb,getClientRects:Y6,getDimensions:tb,getScale:hi,isElement:ur,isRTL:ib};function Rm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sb(e,t){let r=null,n;const i=Sr(e);function a(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function s(o,u){o===void 0&&(o=!1),u===void 0&&(u=1),a();const l=e.getBoundingClientRect(),{left:h,top:c,width:d,height:f}=l;if(o||t(),!d||!f)return;const g=Ya(c),y=Ya(i.clientWidth-(h+d)),T=Ya(i.clientHeight-(c+f)),x=Ya(h),k={rootMargin:-g+"px "+-y+"px "+-T+"px "+-x+"px",threshold:Bt(0,xn(1,u))||1};let R=!0;function O(I){const F=I[0].intersectionRatio;if(F!==u){if(!R)return s();F?s(!1,F):n=setTimeout(()=>{s(!1,1e-7)},1e3)}F===1&&!Rm(l,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(O,{...k,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,k)}r.observe(e)}return s(!0),a}function ob(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=c0(e),h=i||a?[...l?ya(l):[],...ya(t)]:[];h.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const c=l&&o?sb(l,r):null;let d=-1,f=null;s&&(f=new ResizeObserver(x=>{let[v]=x;v&&v.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var k;(k=f)==null||k.observe(t)})),r()}),l&&!u&&f.observe(l),f.observe(t));let g,y=u?qn(e):null;u&&T();function T(){const x=qn(e);y&&!Rm(y,x)&&r(),y=x,g=requestAnimationFrame(T)}return r(),()=>{var x;h.forEach(v=>{i&&v.removeEventListener("scroll",r),a&&v.removeEventListener("resize",r)}),c==null||c(),(x=f)==null||x.disconnect(),f=null,u&&cancelAnimationFrame(g)}}const ub=P6,lb=L6,cb=N6,hb=M6,db=I6,ih=_6,fb=D6,mb=(e,t,r)=>{const n=new Map,i={platform:ab,...r},a={...i.platform,_c:n};return C6(e,t,{...i,platform:a})};var pb=typeof document<"u",gb=function(){},xs=pb?j.useLayoutEffect:gb;function Rs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Rs(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Rs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Pm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ah(e,t){const r=Pm(e);return Math.round(t*r)/r}function Jo(e){const t=U.useRef(e);return xs(()=>{t.current=e}),t}function bb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:u,open:l}=e,[h,c]=U.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,f]=U.useState(n);Rs(d,n)||f(n);const[g,y]=U.useState(null),[T,x]=U.useState(null),v=U.useCallback(de=>{de!==I.current&&(I.current=de,y(de))},[]),k=U.useCallback(de=>{de!==F.current&&(F.current=de,x(de))},[]),R=a||g,O=s||T,I=U.useRef(null),F=U.useRef(null),G=U.useRef(h),Y=u!=null,B=Jo(u),X=Jo(i),V=Jo(l),ue=U.useCallback(()=>{if(!I.current||!F.current)return;const de={placement:t,strategy:r,middleware:d};X.current&&(de.platform=X.current),mb(I.current,F.current,de).then(Ie=>{const P={...Ie,isPositioned:V.current!==!1};Q.current&&!Rs(G.current,P)&&(G.current=P,om.flushSync(()=>{c(P)}))})},[d,t,r,X,V]);xs(()=>{l===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,c(de=>({...de,isPositioned:!1})))},[l]);const Q=U.useRef(!1);xs(()=>(Q.current=!0,()=>{Q.current=!1}),[]),xs(()=>{if(R&&(I.current=R),O&&(F.current=O),R&&O){if(B.current)return B.current(R,O,ue);ue()}},[R,O,ue,B,Y]);const K=U.useMemo(()=>({reference:I,floating:F,setReference:v,setFloating:k}),[v,k]),ce=U.useMemo(()=>({reference:R,floating:O}),[R,O]),ge=U.useMemo(()=>{const de={position:r,left:0,top:0};if(!ce.floating)return de;const Ie=ah(ce.floating,h.x),P=ah(ce.floating,h.y);return o?{...de,transform:"translate("+Ie+"px, "+P+"px)",...Pm(ce.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Ie,top:P}},[r,o,ce.floating,h.x,h.y]);return U.useMemo(()=>({...h,update:ue,refs:K,elements:ce,floatingStyles:ge}),[h,ue,K,ce,ge])}const yb=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?ih({element:n.current,padding:i}).fn(r):{}:n?ih({element:n,padding:i}).fn(r):{}}}},xb=(e,t)=>({...ub(e),options:[e,t]}),Eb=(e,t)=>({...lb(e),options:[e,t]}),vb=(e,t)=>({...fb(e),options:[e,t]}),Tb=(e,t)=>({...cb(e),options:[e,t]}),wb=(e,t)=>({...hb(e),options:[e,t]}),kb=(e,t)=>({...db(e),options:[e,t]}),Sb=(e,t)=>({...yb(e),options:[e,t]});var Ab="Arrow",Lm=U.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return D.jsx(cr.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lm.displayName=Ab;var Cb=Lm;function _b(e){const[t,r]=U.useState(void 0);return Wr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,o=l.blockSize}else s=e.offsetWidth,o=e.offsetHeight;r({width:s,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var h0="Popper",[Dm,d0]=co(h0),[Nb,Mm]=Dm(h0),Om=e=>{const{__scopePopper:t,children:r}=e,[n,i]=U.useState(null);return D.jsx(Nb,{scope:t,anchor:n,onAnchorChange:i,children:r})};Om.displayName=h0;var Bm="PopperAnchor",Fm=U.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=Mm(Bm,r),s=U.useRef(null),o=Jr(t,s),u=U.useRef(null);return U.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||s.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:D.jsx(cr.div,{...i,ref:o})});Fm.displayName=Bm;var f0="PopperContent",[Ib,Rb]=Dm(f0),Hm=U.forwardRef((e,t)=>{var xt,it,At,Ct,Rr,ei;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:h=0,sticky:c="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:g,...y}=e,T=Mm(f0,r),[x,v]=U.useState(null),k=Jr(t,Pr=>v(Pr)),[R,O]=U.useState(null),I=_b(R),F=(I==null?void 0:I.width)??0,G=(I==null?void 0:I.height)??0,Y=n+(a!=="center"?"-"+a:""),B=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},X=Array.isArray(l)?l:[l],V=X.length>0,ue={padding:B,boundary:X.filter(Lb),altBoundary:V},{refs:Q,floatingStyles:K,placement:ce,isPositioned:ge,middlewareData:de}=bb({strategy:"fixed",placement:Y,whileElementsMounted:(...Pr)=>ob(...Pr,{animationFrame:f==="always"}),elements:{reference:T.anchor},middleware:[xb({mainAxis:i+G,alignmentAxis:s}),u&&Eb({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?vb():void 0,...ue}),u&&Tb({...ue}),wb({...ue,apply:({elements:Pr,rects:rn,availableWidth:_n,availableHeight:Nn})=>{const{width:nn,height:an}=rn.reference,jt=Pr.floating.style;jt.setProperty("--radix-popper-available-width",`${_n}px`),jt.setProperty("--radix-popper-available-height",`${Nn}px`),jt.setProperty("--radix-popper-anchor-width",`${nn}px`),jt.setProperty("--radix-popper-anchor-height",`${an}px`)}}),R&&Sb({element:R,padding:o}),Db({arrowWidth:F,arrowHeight:G}),d&&kb({strategy:"referenceHidden",...ue})]}),[Ie,P]=qm(ce),Fe=Pa(g);Wr(()=>{ge&&(Fe==null||Fe())},[ge,Fe]);const He=(xt=de.arrow)==null?void 0:xt.x,L=(it=de.arrow)==null?void 0:it.y,lt=((At=de.arrow)==null?void 0:At.centerOffset)!==0,[ft,je]=U.useState();return Wr(()=>{x&&je(window.getComputedStyle(x).zIndex)},[x]),D.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:ge?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ft,"--radix-popper-transform-origin":[(Ct=de.transformOrigin)==null?void 0:Ct.x,(Rr=de.transformOrigin)==null?void 0:Rr.y].join(" "),...((ei=de.hide)==null?void 0:ei.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(Ib,{scope:r,placedSide:Ie,onArrowChange:O,arrowX:He,arrowY:L,shouldHideArrow:lt,children:D.jsx(cr.div,{"data-side":Ie,"data-align":P,...y,ref:k,style:{...y.style,animation:ge?void 0:"none"}})})})});Hm.displayName=f0;var zm="PopperArrow",Pb={top:"bottom",right:"left",bottom:"top",left:"right"},Um=U.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=Rb(zm,n),s=Pb[a.placedSide];return D.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:D.jsx(Cb,{...i,ref:r,style:{...i.style,display:"block"}})})});Um.displayName=zm;function Lb(e){return e!==null}var Db=e=>({name:"transformOrigin",options:e,fn(t){var T,x,v;const{placement:r,rects:n,middlewareData:i}=t,s=((T=i.arrow)==null?void 0:T.centerOffset)!==0,o=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,h]=qm(r),c={start:"0%",center:"50%",end:"100%"}[h],d=(((x=i.arrow)==null?void 0:x.x)??0)+o/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+u/2;let g="",y="";return l==="bottom"?(g=s?c:`${d}px`,y=`${-u}px`):l==="top"?(g=s?c:`${d}px`,y=`${n.floating.height+u}px`):l==="right"?(g=`${-u}px`,y=s?c:`${f}px`):l==="left"&&(g=`${n.floating.width+u}px`,y=s?c:`${f}px`),{data:{x:g,y}}}});function qm(e){const[t,r="center"]=e.split("-");return[t,r]}var Mb=Om,$m=Fm,jm=Hm,Gm=Um;function Ob(e,t){return U.useReducer((r,n)=>t[r][n]??r,e)}var go=e=>{const{present:t,children:r}=e,n=Bb(t),i=typeof r=="function"?r({present:n.isPresent}):U.Children.only(r),a=Jr(n.ref,Fb(i));return typeof r=="function"||n.isPresent?U.cloneElement(i,{ref:a}):null};go.displayName="Presence";function Bb(e){const[t,r]=U.useState(),n=U.useRef(null),i=U.useRef(e),a=U.useRef("none"),s=e?"mounted":"unmounted",[o,u]=Ob(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect(()=>{const l=Xa(n.current);a.current=o==="mounted"?l:"none"},[o]),Wr(()=>{const l=n.current,h=i.current;if(h!==e){const d=a.current,f=Xa(l);e?u("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(h&&d!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Wr(()=>{if(t){let l;const h=t.ownerDocument.defaultView??window,c=f=>{const y=Xa(n.current).includes(CSS.escape(f.animationName));if(f.target===t&&y&&(u("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",l=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},d=f=>{f.target===t&&(a.current=Xa(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{h.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:U.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Xa(e){return(e==null?void 0:e.animationName)||"none"}function Fb(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Hb=U[" useInsertionEffect ".trim().toString()]||Wr;function Ps({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,s]=zb({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:i;{const h=U.useRef(e!==void 0);U.useEffect(()=>{const c=h.current;c!==o&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=o},[o,n])}const l=U.useCallback(h=>{var c;if(o){const d=Ub(h)?h(e):h;d!==e&&((c=s.current)==null||c.call(s,d))}else a(h)},[o,e,a,s]);return[u,l]}function zb({defaultProp:e,onChange:t}){const[r,n]=U.useState(e),i=U.useRef(r),a=U.useRef(t);return Hb(()=>{a.current=t},[t]),U.useEffect(()=>{var s;i.current!==r&&((s=a.current)==null||s.call(a,r),i.current=r)},[r,i]),[r,n,a]}function Ub(e){return typeof e=="function"}var Vm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qb="VisuallyHidden",Wm=U.forwardRef((e,t)=>D.jsx(cr.span,{...e,ref:t,style:{...Vm,...e.style}}));Wm.displayName=qb;var $b=Wm,[bo,NL]=co("Tooltip",[d0]),m0=d0(),jb="TooltipProvider",sh="tooltip.open",[IL,Ym]=bo(jb),Xm="Tooltip",[RL,yo]=bo(Xm),al="TooltipTrigger",Gb=U.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=yo(al,r),a=Ym(al,r),s=m0(r),o=U.useRef(null),u=Jr(t,o,i.onTriggerChange),l=U.useRef(!1),h=U.useRef(!1),c=U.useCallback(()=>l.current=!1,[]);return U.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),D.jsx($m,{asChild:!0,...s,children:D.jsx(cr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:u,onPointerMove:ir(e.onPointerMove,d=>{d.pointerType!=="touch"&&!h.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),h.current=!0)}),onPointerLeave:ir(e.onPointerLeave,()=>{i.onTriggerLeave(),h.current=!1}),onPointerDown:ir(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ir(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:ir(e.onBlur,i.onClose),onClick:ir(e.onClick,i.onClose)})})});Gb.displayName=al;var Vb="TooltipPortal",[PL,Wb]=bo(Vb,{forceMount:void 0}),yi="TooltipContent",Qm=U.forwardRef((e,t)=>{const r=Wb(yi,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=e,s=yo(yi,e.__scopeTooltip);return D.jsx(go,{present:n||s.open,children:s.disableHoverableContent?D.jsx(Km,{side:i,...a,ref:t}):D.jsx(Yb,{side:i,...a,ref:t})})}),Yb=U.forwardRef((e,t)=>{const r=yo(yi,e.__scopeTooltip),n=Ym(yi,e.__scopeTooltip),i=U.useRef(null),a=Jr(t,i),[s,o]=U.useState(null),{trigger:u,onClose:l}=r,h=i.current,{onPointerInTransitChange:c}=n,d=U.useCallback(()=>{o(null),c(!1)},[c]),f=U.useCallback((g,y)=>{const T=g.currentTarget,x={x:g.clientX,y:g.clientY},v=Jb(x,T.getBoundingClientRect()),k=e5(x,v),R=t5(y.getBoundingClientRect()),O=n5([...k,...R]);o(O),c(!0)},[c]);return U.useEffect(()=>()=>d(),[d]),U.useEffect(()=>{if(u&&h){const g=T=>f(T,h),y=T=>f(T,u);return u.addEventListener("pointerleave",g),h.addEventListener("pointerleave",y),()=>{u.removeEventListener("pointerleave",g),h.removeEventListener("pointerleave",y)}}},[u,h,f,d]),U.useEffect(()=>{if(s){const g=y=>{const T=y.target,x={x:y.clientX,y:y.clientY},v=(u==null?void 0:u.contains(T))||(h==null?void 0:h.contains(T)),k=!r5(x,s);v?d():k&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[u,h,s,l,d]),D.jsx(Km,{...e,ref:a})}),[Xb,Qb]=bo(Xm,{isInside:!1}),Kb=t6("TooltipContent"),Km=U.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,u=yo(yi,r),l=m0(r),{onClose:h}=u;return U.useEffect(()=>(document.addEventListener(sh,h),()=>document.removeEventListener(sh,h)),[h]),U.useEffect(()=>{if(u.trigger){const c=d=>{const f=d.target;f!=null&&f.contains(u.trigger)&&h()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[u.trigger,h]),D.jsx(i0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:h,children:D.jsxs(jm,{"data-state":u.stateAttribute,...l,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[D.jsx(Kb,{children:n}),D.jsx(Xb,{scope:r,isInside:!0,children:D.jsx($b,{id:u.contentId,role:"tooltip",children:i||n})})]})})});Qm.displayName=yi;var Zm="TooltipArrow",Zb=U.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=m0(r);return Qb(Zm,r).isInside?null:D.jsx(Gm,{...i,...n,ref:t})});Zb.displayName=Zm;function Jb(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function e5(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function t5(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function r5(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a],u=t[s],l=o.x,h=o.y,c=u.x,d=u.y;h>n!=d>n&&r<(c-l)*(n-h)/(d-h)+l&&(i=!i)}return i}function n5(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),i5(t)}function i5(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Jm=Qm;const a5=U.forwardRef(({className:e,sideOffset:t=4,...r},n)=>D.jsx(Jm,{ref:n,sideOffset:t,className:dt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...r}));a5.displayName=Jm.displayName;function oh(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&t.push(s),i=n+1,n=r.indexOf(",",i)}return t}function p0(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const s5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,u5={};function uh(e,t){return(u5.jsx?o5:s5).test(e)}const l5=/[ \t\n\f\r]/g;function xo(e){return typeof e=="object"?e.type==="text"?lh(e.value):!1:lh(e)}function lh(e){return e.replace(l5,"")===""}let Da=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};Da.prototype.normal={};Da.prototype.property={};Da.prototype.space=void 0;function e1(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Da(r,n,t)}function xa(e){return e.toLowerCase()}let Pt=class{constructor(t,r){this.attribute=r,this.property=t}};Pt.prototype.attribute="";Pt.prototype.booleanish=!1;Pt.prototype.boolean=!1;Pt.prototype.commaOrSpaceSeparated=!1;Pt.prototype.commaSeparated=!1;Pt.prototype.defined=!1;Pt.prototype.mustUseProperty=!1;Pt.prototype.number=!1;Pt.prototype.overloadedBoolean=!1;Pt.prototype.property="";Pt.prototype.spaceSeparated=!1;Pt.prototype.space=void 0;let c5=0;const Ee=Wn(),Qe=Wn(),sl=Wn(),ne=Wn(),Me=Wn(),di=Wn(),Mt=Wn();function Wn(){return 2**++c5}const ol=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:Qe,commaOrSpaceSeparated:Mt,commaSeparated:di,number:ne,overloadedBoolean:sl,spaceSeparated:Me},Symbol.toStringTag,{value:"Module"})),eu=Object.keys(ol);let g0=class extends Pt{constructor(t,r,n,i){let a=-1;if(super(t,r),ch(this,"space",i),typeof n=="number")for(;++a<eu.length;){const s=eu[a];ch(this,eu[a],(n&ol[s])===ol[s])}}};g0.prototype.defined=!0;function ch(e,t,r){r&&(e[t]=r)}function Ci(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new g0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[xa(n)]=n,r[xa(a.attribute)]=n}return new Da(t,r,e.space)}const t1=Ci({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:ne,ariaColIndex:ne,ariaColSpan:ne,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Me,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:ne,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:ne,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Me,ariaRowCount:ne,ariaRowIndex:ne,ariaRowSpan:ne,ariaSelected:Qe,ariaSetSize:ne,ariaSort:null,ariaValueMax:ne,ariaValueMin:ne,ariaValueNow:ne,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function r1(e,t){return t in e?e[t]:t}function n1(e,t){return r1(e,t.toLowerCase())}const h5=Ci({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:di,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Me,autoFocus:Ee,autoPlay:Ee,blocking:Me,capture:null,charSet:null,checked:Ee,cite:null,className:Me,cols:ne,colSpan:null,content:null,contentEditable:Qe,controls:Ee,controlsList:Me,coords:ne|di,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:sl,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Me,height:ne,hidden:sl,high:ne,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Me,itemRef:Me,itemScope:Ee,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:ne,manifest:null,max:null,maxLength:ne,media:null,method:null,min:null,minLength:ne,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:ne,pattern:null,ping:Me,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Me,required:Ee,reversed:Ee,rows:ne,rowSpan:ne,sandbox:Me,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:ne,sizes:null,slot:null,span:ne,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ne,step:null,style:null,tabIndex:ne,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:Qe,width:ne,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:ne,borderColor:null,bottomMargin:ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:ne,leftMargin:ne,link:null,longDesc:null,lowSrc:null,marginHeight:ne,marginWidth:ne,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:ne,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ne,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:ne,security:null,unselectable:null},space:"html",transform:n1}),d5=Ci({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:Mt,accentHeight:ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ne,amplitude:ne,arabicForm:null,ascent:ne,attributeName:null,attributeType:null,azimuth:ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ne,by:null,calcMode:null,capHeight:ne,className:Me,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:ne,diffuseConstant:ne,direction:null,display:null,dur:null,divisor:ne,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:ne,enableBackground:null,end:null,event:null,exponent:ne,externalResourcesRequired:null,fill:null,fillOpacity:ne,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:di,g2:di,glyphName:di,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ne,horizOriginX:ne,horizOriginY:ne,id:null,ideographic:ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ne,k:ne,k1:ne,k2:ne,k3:ne,k4:ne,kernelMatrix:Mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ne,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:ne,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:ne,overlineThickness:ne,paintOrder:null,panose1:null,path:null,pathLength:ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ne,pointsAtY:ne,pointsAtZ:ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mt,rev:Mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mt,requiredFeatures:Mt,requiredFonts:Mt,requiredFormats:Mt,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:ne,specularExponent:ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ne,strikethroughThickness:ne,string:null,stroke:null,strokeDashArray:Mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ne,strokeOpacity:ne,strokeWidth:null,style:null,surfaceScale:ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mt,tabIndex:ne,tableValues:null,target:null,targetX:ne,targetY:ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ne,underlineThickness:ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ne,values:null,vAlphabetic:ne,vMathematical:ne,vectorEffect:null,vHanging:ne,vIdeographic:ne,version:null,vertAdvY:ne,vertOriginX:ne,vertOriginY:ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:r1}),i1=Ci({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),a1=Ci({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:n1}),s1=Ci({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),f5={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"},m5=/[A-Z]/g,hh=/-[a-z]/g,p5=/^data[-\w.:]+$/i;function Eo(e,t){const r=xa(t);let n=t,i=Pt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&p5.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(hh,b5);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!hh.test(a)){let s=a.replace(m5,g5);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=g0}return new i(n,t)}function g5(e){return"-"+e.toLowerCase()}function b5(e){return e.charAt(1).toUpperCase()}const Ma=e1([t1,h5,i1,a1,s1],"html"),Sn=e1([t1,d5,i1,a1,s1],"svg");function dh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function b0(e){return e.join(" ").trim()}var qi={},tu,fh;function y5(){if(fh)return tu;fh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
5
|
+
`,l="/",h="*",c="",d="comment",f="declaration";function g(T,x){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];x=x||{};var v=1,k=1;function R(Q){var K=Q.match(t);K&&(v+=K.length);var ce=Q.lastIndexOf(u);k=~ce?Q.length-ce:k+Q.length}function O(){var Q={line:v,column:k};return function(K){return K.position=new I(Q),Y(),K}}function I(Q){this.start=Q,this.end={line:v,column:k},this.source=x.source}I.prototype.content=T;function F(Q){var K=new Error(x.source+":"+v+":"+k+": "+Q);if(K.reason=Q,K.filename=x.source,K.line=v,K.column=k,K.source=T,!x.silent)throw K}function G(Q){var K=Q.exec(T);if(K){var ce=K[0];return R(ce),T=T.slice(ce.length),K}}function Y(){G(r)}function B(Q){var K;for(Q=Q||[];K=X();)K!==!1&&Q.push(K);return Q}function X(){var Q=O();if(!(l!=T.charAt(0)||h!=T.charAt(1))){for(var K=2;c!=T.charAt(K)&&(h!=T.charAt(K)||l!=T.charAt(K+1));)++K;if(K+=2,c===T.charAt(K-1))return F("End of comment missing");var ce=T.slice(2,K-2);return k+=2,R(ce),T=T.slice(K),k+=2,Q({type:d,comment:ce})}}function V(){var Q=O(),K=G(n);if(K){if(X(),!G(i))return F("property missing ':'");var ce=G(a),ge=Q({type:f,property:y(K[0].replace(e,c)),value:ce?y(ce[0].replace(e,c)):c});return G(s),ge}}function ue(){var Q=[];B(Q);for(var K;K=V();)K!==!1&&(Q.push(K),B(Q));return Q}return Y(),ue()}function y(T){return T?T.replace(o,c):c}return tu=g,tu}var mh;function x5(){if(mh)return qi;mh=1;var e=qi.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=r;const t=e(y5());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const s=(0,t.default)(n),o=typeof i=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:h}=u;o?i(l,h,u):h&&(a=a||{},a[l]=h)}),a}return qi}var $i={},ph;function E5(){if(ph)return $i;ph=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||r.test(l)||e.test(l)},s=function(l,h){return h.toUpperCase()},o=function(l,h){return"".concat(h,"-")},u=function(l,h){return h===void 0&&(h={}),a(l)?l:(l=l.toLowerCase(),h.reactCompat?l=l.replace(i,o):l=l.replace(n,o),l.replace(t,s))};return $i.camelCase=u,$i}var ji,gh;function v5(){if(gh)return ji;gh=1;var e=ji&&ji.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(x5()),r=E5();function n(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,r.camelCase)(o,a)]=u)}),s}return n.default=n,ji=n,ji}var T5=v5();const w5=e0(T5),vo=o1("end"),Ar=o1("start");function o1(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function k5(e){const t=Ar(e),r=vo(e);if(t&&r)return{start:t,end:r}}function na(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bh(e.position):"start"in e||"end"in e?bh(e):"line"in e||"column"in e?ul(e):""}function ul(e){return yh(e&&e.line)+":"+yh(e&&e.column)}function bh(e){return ul(e&&e.start)+"-"+ul(e&&e.end)}function yh(e){return e&&typeof e=="number"?e:1}class bt extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?a.ruleId=n:(a.source=n.slice(0,u),a.ruleId=n.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=na(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bt.prototype.file="";bt.prototype.name="";bt.prototype.reason="";bt.prototype.message="";bt.prototype.stack="";bt.prototype.column=void 0;bt.prototype.line=void 0;bt.prototype.ancestors=void 0;bt.prototype.cause=void 0;bt.prototype.fatal=void 0;bt.prototype.place=void 0;bt.prototype.ruleId=void 0;bt.prototype.source=void 0;const y0={}.hasOwnProperty,S5=new Map,A5=/[A-Z]/g,C5=new Set(["table","tbody","thead","tfoot","tr"]),_5=new Set(["td","th"]),u1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function N5(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=B5(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=O5(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Sn:Ma,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=l1(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function l1(e,t,r){if(t.type==="element")return I5(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return R5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return L5(e,t,r);if(t.type==="mdxjsEsm")return P5(e,t);if(t.type==="root")return D5(e,t,r);if(t.type==="text")return M5(e,t)}function I5(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=Sn,e.schema=i),e.ancestors.push(t);const a=h1(e,t.tagName,!1),s=F5(e,t);let o=E0(e,t);return C5.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!xo(u):!0})),c1(e,s,a,t),x0(s,o),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function R5(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ea(e,t.position)}function P5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ea(e,t.position)}function L5(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=Sn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:h1(e,t.name,!0),s=H5(e,t),o=E0(e,t);return c1(e,s,a,t),x0(s,o),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function D5(e,t,r){const n={};return x0(n,E0(e,t)),e.create(t,e.Fragment,n,r)}function M5(e,t){return t.value}function c1(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function x0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function O5(e,t,r){return n;function n(i,a,s,o){const l=Array.isArray(s.children)?r:t;return o?l(a,s,o):l(a,s)}}function B5(e,t){return r;function r(n,i,a,s){const o=Array.isArray(a.children),u=Ar(n);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function F5(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&y0.call(t.properties,i)){const a=z5(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&_5.has(t.tagName)?n=o:r[s]=o}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function H5(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Ea(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const o=n.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Ea(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function E0(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:S5;for(;++n<t.children.length;){const a=t.children[n];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const l=i.get(u)||0;s=u+"-"+l,i.set(u,l+1)}}const o=l1(e,a,s);o!==void 0&&r.push(o)}return r}function z5(e,t,r){const n=Eo(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?p0(r):b0(r)),n.property==="style"){let i=typeof r=="object"?r:U5(e,String(r));return e.stylePropertyNameCase==="css"&&(i=q5(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?f5[n.property]||n.property:n.attribute,r]}}function U5(e,t){try{return w5(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=u1+"#cannot-parse-style-attribute",i}}function h1(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=uh(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}n=s}else n=uh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return y0.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Ea(e)}function Ea(e,t){const r=new bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=u1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function q5(e){const t={};let r;for(r in e)y0.call(e,r)&&(t[$5(r)]=e[r]);return t}function $5(e){let t=e.replace(A5,j5);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function j5(e){return"-"+e.toLowerCase()}const ru={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"]},G5={};function v0(e,t){const r=G5,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return d1(e,n,i)}function d1(e,t,r){if(V5(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return xh(e.children,t,r)}return Array.isArray(e)?xh(e,t,r):""}function xh(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=d1(e[i],t,r);return n.join("")}function V5(e){return!!(e&&typeof e=="object")}const Eh=document.createElement("i");function T0(e){const t="&"+e+";";Eh.innerHTML=t;const r=Eh.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ht(e,t,r,n){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function ct(e,t){return e.length>0?(ht(e,e.length,0,t),e):t}const vh={}.hasOwnProperty;function f1(e){const t={};let r=-1;for(;++r<e.length;)W5(t,e[r]);return t}function W5(e,t){let r;for(r in t){const i=(vh.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){vh.call(i,s)||(i[s]=[]);const o=a[s];Y5(i[s],Array.isArray(o)?o:o?[o]:[])}}}function Y5(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ht(e,0,0,n)}function m1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function or(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=An(/[A-Za-z]/),gt=An(/[\dA-Za-z]/),X5=An(/[#-'*+\--9=?A-Z^-~]/);function Ls(e){return e!==null&&(e<32||e===127)}const ll=An(/\d/),Q5=An(/[\dA-Fa-f]/),K5=An(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Pe(e){return e!==null&&(e<0||e===32)}function ke(e){return e===-2||e===-1||e===32}const To=An(new RegExp("\\p{P}|\\p{S}","u")),$n=An(/\s/);function An(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function _i(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&>(e.charCodeAt(r+1))&>(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function we(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return ke(u)?(e.enter(r),o(u)):t(u)}function o(u){return ke(u)&&a++<i?(e.consume(u),o):(e.exit(r),t(u))}}const Z5={tokenize:J5};function J5(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),we(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return he(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const e8={tokenize:t8},Th={tokenize:r8};function t8(e){const t=this,r=[];let n=0,i,a,s;return o;function o(k){if(n<r.length){const R=r[n];return t.containerState=R[1],e.attempt(R[0].continuation,u,l)(k)}return l(k)}function u(k){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const R=t.events.length;let O=R,I;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){I=t.events[O][1].end;break}x(n);let F=R;for(;F<t.events.length;)t.events[F][1].end={...I},F++;return ht(t.events,O+1,0,t.events.slice(R)),t.events.length=F,l(k)}return o(k)}function l(k){if(n===r.length){if(!i)return d(k);if(i.currentConstruct&&i.currentConstruct.concrete)return g(k);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Th,h,c)(k)}function h(k){return i&&v(),x(n),d(k)}function c(k){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,g(k)}function d(k){return t.containerState={},e.attempt(Th,f,g)(k)}function f(k){return n++,r.push([t.currentConstruct,t.containerState]),d(k)}function g(k){if(k===null){i&&v(),x(0),e.consume(k);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),y(k)}function y(k){if(k===null){T(e.exit("chunkFlow"),!0),x(0),e.consume(k);return}return he(k)?(e.consume(k),T(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(k),y)}function T(k,R){const O=t.sliceStream(k);if(R&&O.push(null),k.previous=a,a&&(a.next=k),a=k,i.defineSkip(k.start),i.write(O),t.parser.lazy[k.start.line]){let I=i.events.length;for(;I--;)if(i.events[I][1].start.offset<s&&(!i.events[I][1].end||i.events[I][1].end.offset>s))return;const F=t.events.length;let G=F,Y,B;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(Y){B=t.events[G][1].end;break}Y=!0}for(x(n),I=F;I<t.events.length;)t.events[I][1].end={...B},I++;ht(t.events,G+1,0,t.events.slice(F)),t.events.length=I}}function x(k){let R=r.length;for(;R-- >k;){const O=r[R];t.containerState=O[1],O[0].exit.call(t,e)}r.length=k}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function r8(e,t,r){return we(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xi(e){if(e===null||Pe(e)||$n(e))return 1;if(To(e))return 2}function Ni(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const cl={name:"attention",resolveAll:n8,tokenize:i8};function n8(e,t){let r=-1,n,i,a,s,o,u,l,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c={...e[n][1].end},d={...e[r][1].start};wh(c,-u),wh(d,u),s={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[n][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:d},a={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ct(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ct(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=ct(l,Ni(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),l=ct(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,l=ct(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,ht(e,n-1,r-n+3,l),r=n+l.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function i8(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=xi(n);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const l=e.exit("attentionSequence"),h=xi(u),c=!h||h===2&&i||r.includes(u),d=!i||i===2&&h||r.includes(n);return l._open=!!(a===42?c:c&&(i||!d)),l._close=!!(a===42?d:d&&(h||!c)),t(u)}}function wh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const a8={name:"autolink",tokenize:s8};function s8(e,t,r){let n=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Tt(f)?(e.consume(f),s):f===64?r(f):l(f)}function s(f){return f===43||f===45||f===46||gt(f)?(n=1,o(f)):l(f)}function o(f){return f===58?(e.consume(f),n=0,u):(f===43||f===45||f===46||gt(f))&&n++<32?(e.consume(f),o):(n=0,l(f))}function u(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Ls(f)?r(f):(e.consume(f),u)}function l(f){return f===64?(e.consume(f),h):X5(f)?(e.consume(f),l):r(f)}function h(f){return gt(f)?c(f):r(f)}function c(f){return f===46?(e.consume(f),n=0,h):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||gt(f))&&n++<63){const g=f===45?d:c;return e.consume(f),g}return r(f)}}const Oa={partial:!0,tokenize:o8};function o8(e,t,r){return n;function n(a){return ke(a)?we(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||he(a)?t(a):r(a)}}const p1={continuation:{tokenize:l8},exit:c8,name:"blockQuote",tokenize:u8};function u8(e,t,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return ke(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function l8(e,t,r){const n=this;return i;function i(s){return ke(s)?we(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(p1,t,r)(s)}}function c8(e){e.exit("blockQuote")}const g1={name:"characterEscape",tokenize:h8};function h8(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return K5(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const b1={name:"characterReference",tokenize:d8};function d8(e,t,r){const n=this;let i=0,a,s;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=gt,h(c))}function l(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Q5,h):(e.enter("characterReferenceValue"),a=7,s=ll,h(c))}function h(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return s===gt&&!T0(n.sliceSerialize(d))?r(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&i++<a?(e.consume(c),h):r(c)}}const kh={partial:!0,tokenize:m8},Sh={concrete:!0,name:"codeFenced",tokenize:f8};function f8(e,t,r){const n=this,i={partial:!0,tokenize:O};let a=0,s=0,o;return u;function u(I){return l(I)}function l(I){const F=n.events[n.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(I)}function h(I){return I===o?(s++,e.consume(I),h):s<3?r(I):(e.exit("codeFencedFenceSequence"),ke(I)?we(e,c,"whitespace")(I):c(I))}function c(I){return I===null||he(I)?(e.exit("codeFencedFence"),n.interrupt?t(I):e.check(kh,y,R)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(I))}function d(I){return I===null||he(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(I)):ke(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),we(e,f,"whitespace")(I)):I===96&&I===o?r(I):(e.consume(I),d)}function f(I){return I===null||he(I)?c(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(I))}function g(I){return I===null||he(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(I)):I===96&&I===o?r(I):(e.consume(I),g)}function y(I){return e.attempt(i,R,T)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return a>0&&ke(I)?we(e,v,"linePrefix",a+1)(I):v(I)}function v(I){return I===null||he(I)?e.check(kh,y,R)(I):(e.enter("codeFlowValue"),k(I))}function k(I){return I===null||he(I)?(e.exit("codeFlowValue"),v(I)):(e.consume(I),k)}function R(I){return e.exit("codeFenced"),t(I)}function O(I,F,G){let Y=0;return B;function B(K){return I.enter("lineEnding"),I.consume(K),I.exit("lineEnding"),X}function X(K){return I.enter("codeFencedFence"),ke(K)?we(I,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):V(K)}function V(K){return K===o?(I.enter("codeFencedFenceSequence"),ue(K)):G(K)}function ue(K){return K===o?(Y++,I.consume(K),ue):Y>=s?(I.exit("codeFencedFenceSequence"),ke(K)?we(I,Q,"whitespace")(K):Q(K)):G(K)}function Q(K){return K===null||he(K)?(I.exit("codeFencedFence"),F(K)):G(K)}}}function m8(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const nu={name:"codeIndented",tokenize:g8},p8={partial:!0,tokenize:b8};function g8(e,t,r){const n=this;return i;function i(l){return e.enter("codeIndented"),we(e,a,"linePrefix",5)(l)}function a(l){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(l):r(l)}function s(l){return l===null?u(l):he(l)?e.attempt(p8,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function b8(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):we(e,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):r(s)}}const y8={name:"codeText",previous:E8,resolve:x8,tokenize:v8};function x8(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function E8(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function v8(e,t,r){let n=0,i,a;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),n++,o):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?r(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(a=e.enter("codeTextSequence"),i=0,h(c)):he(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(c))}function l(c){return c===null||c===32||c===96||he(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),l)}function h(c){return c===96?(e.consume(c),i++,h):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(a.type="codeTextData",l(c))}}class T8{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Gi(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Gi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gi(this.left,r.reverse())}}}function Gi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function y1(e){const t={};let r=-1,n,i,a,s,o,u,l;const h=new T8(e);for(;++r<h.length;){for(;r in t;)r=t[r];if(n=h.get(r),r&&n[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,w8(h,r)),r=t[r],l=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...h.get(i)[1].start},o=h.slice(i,r),o.unshift(n),h.splice(i,r-i+1,o))}}return ht(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function w8(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let h,c,d=-1,f=r,g=0,y=0;const T=[y];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(h=n.sliceStream(f),f.next||h.push(null),c&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=r;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(y=d+1,T.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):T.pop(),d=T.length;d--;){const x=o.slice(T[d],T[d+1]),v=a.pop();u.push([v,v+x.length-1]),e.splice(v,2,x)}for(u.reverse(),d=-1;++d<u.length;)l[g+u[d][0]]=g+u[d][1],g+=u[d][1]-u[d][0]-1;return l}const k8={resolve:A8,tokenize:C8},S8={partial:!0,tokenize:_8};function A8(e){return y1(e),e}function C8(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):he(o)?e.check(S8,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function _8(e,t,r){const n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),we(e,a,"linePrefix")}function a(s){if(s===null||he(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function x1(e,t,r,n,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let h=0;return c;function c(x){return x===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(x),e.exit(a),d):x===null||x===32||x===41||Ls(x)?r(x):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(x))}function d(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(o),d(x)):x===null||x===60||he(x)?r(x):(e.consume(x),x===92?g:f)}function g(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function y(x){return!h&&(x===null||x===41||Pe(x))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(x)):h<l&&x===40?(e.consume(x),h++,y):x===41?(e.consume(x),h--,y):x===null||x===32||x===40||Ls(x)?r(x):(e.consume(x),x===92?T:y)}function T(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function E1(e,t,r,n,i,a){const s=this;let o=0,u;return l;function l(f){return e.enter(n),e.enter(i),e.consume(f),e.exit(i),e.enter(a),h}function h(f){return o>999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||he(f)||o++>999?(e.exit("chunkString"),h(f)):(e.consume(f),u||(u=!ke(f)),f===92?d:c)}function d(f){return f===91||f===92||f===93?(e.consume(f),o++,c):c(f)}}function v1(e,t,r,n,i,a){let s;return o;function o(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,u):r(d)}function u(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),l(d))}function l(d){return d===s?(e.exit(a),u(s)):d===null?r(d):he(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),we(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===s||d===null||he(d)?(e.exit("chunkString"),l(d)):(e.consume(d),d===92?c:h)}function c(d){return d===s||d===92?(e.consume(d),h):h(d)}}function ia(e,t){let r;return n;function n(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ke(i)?we(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const N8={name:"definition",tokenize:R8},I8={partial:!0,tokenize:P8};function R8(e,t,r){const n=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return E1.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=or(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):r(f)}function u(f){return Pe(f)?ia(e,l)(f):l(f)}function l(f){return x1(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return e.attempt(I8,c,c)(f)}function c(f){return ke(f)?we(e,d,"whitespace")(f):d(f)}function d(f){return f===null||he(f)?(e.exit("definition"),n.parser.defined.push(i),t(f)):r(f)}}function P8(e,t,r){return n;function n(o){return Pe(o)?ia(e,i)(o):r(o)}function i(o){return v1(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ke(o)?we(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):r(o)}}const L8={name:"hardBreakEscape",tokenize:D8};function D8(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const M8={name:"headingAtx",resolve:O8,tokenize:B8};function O8(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ht(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function B8(e,t,r){let n=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&n++<6?(e.consume(h),s):h===null||Pe(h)?(e.exit("atxHeadingSequence"),o(h)):r(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||he(h)?(e.exit("atxHeading"),t(h)):ke(h)?we(e,o,"whitespace")(h):(e.enter("atxHeadingText"),l(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),o(h))}function l(h){return h===null||h===35||Pe(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),l)}}const F8=["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"],Ah=["pre","script","style","textarea"],H8={concrete:!0,name:"htmlFlow",resolveTo:q8,tokenize:$8},z8={partial:!0,tokenize:G8},U8={partial:!0,tokenize:j8};function q8(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $8(e,t,r){const n=this;let i,a,s,o,u;return l;function l(L){return h(L)}function h(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),c}function c(L){return L===33?(e.consume(L),d):L===47?(e.consume(L),a=!0,y):L===63?(e.consume(L),i=3,n.interrupt?t:P):Tt(L)?(e.consume(L),s=String.fromCharCode(L),T):r(L)}function d(L){return L===45?(e.consume(L),i=2,f):L===91?(e.consume(L),i=5,o=0,g):Tt(L)?(e.consume(L),i=4,n.interrupt?t:P):r(L)}function f(L){return L===45?(e.consume(L),n.interrupt?t:P):r(L)}function g(L){const lt="CDATA[";return L===lt.charCodeAt(o++)?(e.consume(L),o===lt.length?n.interrupt?t:V:g):r(L)}function y(L){return Tt(L)?(e.consume(L),s=String.fromCharCode(L),T):r(L)}function T(L){if(L===null||L===47||L===62||Pe(L)){const lt=L===47,ft=s.toLowerCase();return!lt&&!a&&Ah.includes(ft)?(i=1,n.interrupt?t(L):V(L)):F8.includes(s.toLowerCase())?(i=6,lt?(e.consume(L),x):n.interrupt?t(L):V(L)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(L):a?v(L):k(L))}return L===45||gt(L)?(e.consume(L),s+=String.fromCharCode(L),T):r(L)}function x(L){return L===62?(e.consume(L),n.interrupt?t:V):r(L)}function v(L){return ke(L)?(e.consume(L),v):B(L)}function k(L){return L===47?(e.consume(L),B):L===58||L===95||Tt(L)?(e.consume(L),R):ke(L)?(e.consume(L),k):B(L)}function R(L){return L===45||L===46||L===58||L===95||gt(L)?(e.consume(L),R):O(L)}function O(L){return L===61?(e.consume(L),I):ke(L)?(e.consume(L),O):k(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),u=L,F):ke(L)?(e.consume(L),I):G(L)}function F(L){return L===u?(e.consume(L),u=null,Y):L===null||he(L)?r(L):(e.consume(L),F)}function G(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Pe(L)?O(L):(e.consume(L),G)}function Y(L){return L===47||L===62||ke(L)?k(L):r(L)}function B(L){return L===62?(e.consume(L),X):r(L)}function X(L){return L===null||he(L)?V(L):ke(L)?(e.consume(L),X):r(L)}function V(L){return L===45&&i===2?(e.consume(L),ce):L===60&&i===1?(e.consume(L),ge):L===62&&i===4?(e.consume(L),Fe):L===63&&i===3?(e.consume(L),P):L===93&&i===5?(e.consume(L),Ie):he(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(z8,He,ue)(L)):L===null||he(L)?(e.exit("htmlFlowData"),ue(L)):(e.consume(L),V)}function ue(L){return e.check(U8,Q,He)(L)}function Q(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),K}function K(L){return L===null||he(L)?ue(L):(e.enter("htmlFlowData"),V(L))}function ce(L){return L===45?(e.consume(L),P):V(L)}function ge(L){return L===47?(e.consume(L),s="",de):V(L)}function de(L){if(L===62){const lt=s.toLowerCase();return Ah.includes(lt)?(e.consume(L),Fe):V(L)}return Tt(L)&&s.length<8?(e.consume(L),s+=String.fromCharCode(L),de):V(L)}function Ie(L){return L===93?(e.consume(L),P):V(L)}function P(L){return L===62?(e.consume(L),Fe):L===45&&i===2?(e.consume(L),P):V(L)}function Fe(L){return L===null||he(L)?(e.exit("htmlFlowData"),He(L)):(e.consume(L),Fe)}function He(L){return e.exit("htmlFlow"),t(L)}}function j8(e,t,r){const n=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function G8(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Oa,t,r)}}const V8={name:"htmlText",tokenize:W8};function W8(e,t,r){const n=this;let i,a,s;return o;function o(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),u}function u(P){return P===33?(e.consume(P),l):P===47?(e.consume(P),O):P===63?(e.consume(P),k):Tt(P)?(e.consume(P),G):r(P)}function l(P){return P===45?(e.consume(P),h):P===91?(e.consume(P),a=0,g):Tt(P)?(e.consume(P),v):r(P)}function h(P){return P===45?(e.consume(P),f):r(P)}function c(P){return P===null?r(P):P===45?(e.consume(P),d):he(P)?(s=c,ge(P)):(e.consume(P),c)}function d(P){return P===45?(e.consume(P),f):c(P)}function f(P){return P===62?ce(P):P===45?d(P):c(P)}function g(P){const Fe="CDATA[";return P===Fe.charCodeAt(a++)?(e.consume(P),a===Fe.length?y:g):r(P)}function y(P){return P===null?r(P):P===93?(e.consume(P),T):he(P)?(s=y,ge(P)):(e.consume(P),y)}function T(P){return P===93?(e.consume(P),x):y(P)}function x(P){return P===62?ce(P):P===93?(e.consume(P),x):y(P)}function v(P){return P===null||P===62?ce(P):he(P)?(s=v,ge(P)):(e.consume(P),v)}function k(P){return P===null?r(P):P===63?(e.consume(P),R):he(P)?(s=k,ge(P)):(e.consume(P),k)}function R(P){return P===62?ce(P):k(P)}function O(P){return Tt(P)?(e.consume(P),I):r(P)}function I(P){return P===45||gt(P)?(e.consume(P),I):F(P)}function F(P){return he(P)?(s=F,ge(P)):ke(P)?(e.consume(P),F):ce(P)}function G(P){return P===45||gt(P)?(e.consume(P),G):P===47||P===62||Pe(P)?Y(P):r(P)}function Y(P){return P===47?(e.consume(P),ce):P===58||P===95||Tt(P)?(e.consume(P),B):he(P)?(s=Y,ge(P)):ke(P)?(e.consume(P),Y):ce(P)}function B(P){return P===45||P===46||P===58||P===95||gt(P)?(e.consume(P),B):X(P)}function X(P){return P===61?(e.consume(P),V):he(P)?(s=X,ge(P)):ke(P)?(e.consume(P),X):Y(P)}function V(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,ue):he(P)?(s=V,ge(P)):ke(P)?(e.consume(P),V):(e.consume(P),Q)}function ue(P){return P===i?(e.consume(P),i=void 0,K):P===null?r(P):he(P)?(s=ue,ge(P)):(e.consume(P),ue)}function Q(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||Pe(P)?Y(P):(e.consume(P),Q)}function K(P){return P===47||P===62||Pe(P)?Y(P):r(P)}function ce(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function ge(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),de}function de(P){return ke(P)?we(e,Ie,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Ie(P)}function Ie(P){return e.enter("htmlTextData"),s(P)}}const w0={name:"labelEnd",resolveAll:K8,resolveTo:Z8,tokenize:J8},Y8={tokenize:e7},X8={tokenize:t7},Q8={tokenize:r7};function K8(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&ht(e,0,e.length,r),e}function Z8(e,t){let r=e.length,n=0,i,a,s,o;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=ct(o,e.slice(a+1,a+n+3)),o=ct(o,[["enter",h,t]]),o=ct(o,Ni(t.parser.constructs.insideSpan.null,e.slice(a+n+4,s-3),t)),o=ct(o,[["exit",h,t],e[s-2],e[s-1],["exit",l,t]]),o=ct(o,e.slice(s+1)),o=ct(o,[["exit",u,t]]),ht(e,a,e.length,o),e}function J8(e,t,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(d){return a?a._inactive?c(d):(s=n.parser.defined.includes(or(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):r(d)}function u(d){return d===40?e.attempt(Y8,h,s?h:c)(d):d===91?e.attempt(X8,h,s?l:c)(d):s?h(d):c(d)}function l(d){return e.attempt(Q8,h,c)(d)}function h(d){return t(d)}function c(d){return a._balanced=!0,r(d)}}function e7(e,t,r){return n;function n(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Pe(c)?ia(e,a)(c):a(c)}function a(c){return c===41?h(c):x1(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return Pe(c)?ia(e,u)(c):h(c)}function o(c){return r(c)}function u(c){return c===34||c===39||c===40?v1(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):h(c)}function l(c){return Pe(c)?ia(e,h)(c):h(c)}function h(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):r(c)}}function t7(e,t,r){const n=this;return i;function i(o){return E1.call(n,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(or(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function r7(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const n7={name:"labelStartImage",resolveAll:w0.resolveAll,tokenize:i7};function i7(e,t,r){const n=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const a7={name:"labelStartLink",resolveAll:w0.resolveAll,tokenize:s7};function s7(e,t,r){const n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const iu={name:"lineEnding",tokenize:o7};function o7(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),we(e,t,"linePrefix")}}const Es={name:"thematicBreak",tokenize:u7};function u7(e,t,r){let n=0,i;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):n>=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):r(l)}function u(l){return l===i?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),ke(l)?we(e,o,"whitespace")(l):o(l))}}const Nt={continuation:{tokenize:d7},exit:m7,name:"list",tokenize:h7},l7={partial:!0,tokenize:p7},c7={partial:!0,tokenize:f7};function h7(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const g=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:ll(f)){if(n.containerState.type||(n.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Es,r,l)(f):l(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return r(f)}function u(f){return ll(f)&&++s<10?(e.consume(f),u):(!n.interrupt||s<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):r(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(Oa,n.interrupt?r:h,e.attempt(l7,d,c))}function h(f){return n.containerState.initialBlankLine=!0,a++,d(f)}function c(f){return ke(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):r(f)}function d(f){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function d7(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Oa,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,we(e,t,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!ke(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(c7,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,we(e,e.attempt(Nt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function f7(e,t,r){const n=this;return we(e,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):r(a)}}function m7(e){e.exit(this.containerState.type)}function p7(e,t,r){const n=this;return we(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!ke(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Ch={name:"setextUnderline",resolveTo:g7,tokenize:b7};function g7(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function b7(e,t,r){const n=this;let i;return a;function a(l){let h=n.events.length,c;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){c=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||c)?(e.enter("setextHeadingLine"),i=l,s(l)):r(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ke(l)?we(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const y7={tokenize:x7};function x7(e){const t=this,r=e.attempt(Oa,n,e.attempt(this.parser.constructs.flowInitial,i,we(e,e.attempt(this.parser.constructs.flow,i,e.attempt(k8,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const E7={resolveAll:w1()},v7=T1("string"),T7=T1("text");function T1(e){return{resolveAll:w1(e==="text"?w7:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,o);return s;function s(h){return l(h)?a(h):o(h)}function o(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),u}function u(h){return l(h)?(r.exit("data"),a(h)):(r.consume(h),u)}function l(h){if(h===null)return!0;const c=i[h];let d=-1;if(c)for(;++d<c.length;){const f=c[d];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function w1(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function w7(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,s=-1,o=0,u;for(;a--;){const l=i[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const l={type:r===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...l.start},n.start.offset===n.end.offset?Object.assign(n,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}const k7={42:Nt,43:Nt,45:Nt,48:Nt,49:Nt,50:Nt,51:Nt,52:Nt,53:Nt,54:Nt,55:Nt,56:Nt,57:Nt,62:p1},S7={91:N8},A7={[-2]:nu,[-1]:nu,32:nu},C7={35:M8,42:Es,45:[Ch,Es],60:H8,61:Ch,95:Es,96:Sh,126:Sh},_7={38:b1,92:g1},N7={[-5]:iu,[-4]:iu,[-3]:iu,33:n7,38:b1,42:cl,60:[a8,V8],91:a7,92:[L8,g1],93:w0,95:cl,96:y8},I7={null:[cl,E7]},R7={null:[42,95]},P7={null:[]},L7=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:R7,contentInitial:S7,disable:P7,document:k7,flow:C7,flowInitial:A7,insideSpan:I7,string:_7,text:N7},Symbol.toStringTag,{value:"Module"}));function D7(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],o=[];const u={attempt:F(O),check:F(I),consume:v,enter:k,exit:R,interrupt:F(I,{interrupt:!0})},l={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:f,write:c};let h=t.tokenize.call(l,u);return t.resolveAll&&a.push(t),l;function c(X){return s=ct(s,X),T(),s[s.length-1]!==null?[]:(G(t,0),l.events=Ni(a,l.events,l),l.events)}function d(X,V){return O7(f(X),V)}function f(X){return M7(s,X)}function g(){const{_bufferIndex:X,_index:V,line:ue,column:Q,offset:K}=n;return{_bufferIndex:X,_index:V,line:ue,column:Q,offset:K}}function y(X){i[X.line]=X.column,B()}function T(){let X;for(;n._index<s.length;){const V=s[n._index];if(typeof V=="string")for(X=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===X&&n._bufferIndex<V.length;)x(V.charCodeAt(n._bufferIndex));else x(V)}}function x(X){h=h(X)}function v(X){he(X)?(n.line++,n.column=1,n.offset+=X===-3?2:1,B()):X!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),l.previous=X}function k(X,V){const ue=V||{};return ue.type=X,ue.start=g(),l.events.push(["enter",ue,l]),o.push(ue),ue}function R(X){const V=o.pop();return V.end=g(),l.events.push(["exit",V,l]),V}function O(X,V){G(X,V.from)}function I(X,V){V.restore()}function F(X,V){return ue;function ue(Q,K,ce){let ge,de,Ie,P;return Array.isArray(Q)?He(Q):"tokenize"in Q?He([Q]):Fe(Q);function Fe(je){return xt;function xt(it){const At=it!==null&&je[it],Ct=it!==null&&je.null,Rr=[...Array.isArray(At)?At:At?[At]:[],...Array.isArray(Ct)?Ct:Ct?[Ct]:[]];return He(Rr)(it)}}function He(je){return ge=je,de=0,je.length===0?ce:L(je[de])}function L(je){return xt;function xt(it){return P=Y(),Ie=je,je.partial||(l.currentConstruct=je),je.name&&l.parser.constructs.disable.null.includes(je.name)?ft():je.tokenize.call(V?Object.assign(Object.create(l),V):l,u,lt,ft)(it)}}function lt(je){return X(Ie,P),K}function ft(je){return P.restore(),++de<ge.length?L(ge[de]):ce}}}function G(X,V){X.resolveAll&&!a.includes(X)&&a.push(X),X.resolve&&ht(l.events,V,l.events.length-V,X.resolve(l.events.slice(V),l)),X.resolveTo&&(l.events=X.resolveTo(l.events,l))}function Y(){const X=g(),V=l.previous,ue=l.currentConstruct,Q=l.events.length,K=Array.from(o);return{from:Q,restore:ce};function ce(){n=X,l.previous=V,l.currentConstruct=ue,l.events.length=Q,o=K,B()}}function B(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function M7(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,a)];else{if(s=e.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function O7(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
6
|
+
`;break}case-3:{s=`\r
|
|
7
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function B7(e){const n={constructs:f1([L7,...(e||{}).extensions||[]]),content:i(Z5),defined:[],document:i(e8),flow:i(y7),lazy:{},string:i(v7),text:i(T7)};return n;function i(a){return s;function s(o){return D7(n,a,o)}}}function F7(e){for(;!y1(e););return e}const _h=/[\0\t\n\r]/g;function H7(){let e=1,t="",r=!0,n;return i;function i(a,s,o){const u=[];let l,h,c,d,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),c=0,t="",r&&(a.charCodeAt(0)===65279&&c++,r=void 0);c<a.length;){if(_h.lastIndex=c,l=_h.exec(a),d=l&&l.index!==void 0?l.index:a.length,f=a.charCodeAt(d),!l){t=a.slice(c);break}if(f===10&&c===d&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),c<d&&(u.push(a.slice(c,d)),e+=d-c),f){case 0:{u.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,u.push(-2);e++<h;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}c=d+1}return o&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}const z7=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function U7(e){return e.replace(z7,q7)}function q7(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return m1(r.slice(a?2:1),a?16:10)}return T0(r)||e}const k1={}.hasOwnProperty;function $7(e,t,r){return typeof t!="string"&&(r=t,t=void 0),j7(r)(F7(B7(r).document().write(H7()(e,t,!0))))}function j7(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(jt),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:a(_n),blockQuote:a(Ct),characterEscape:Y,characterReference:Y,codeFenced:a(Rr),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Rr,s),codeText:a(ei,s),codeTextData:Y,data:Y,codeFlowValue:Y,definition:a(Pr),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(rn),hardBreakEscape:a(Nn),hardBreakTrailing:a(Nn),htmlFlow:a(nn,s),htmlFlowData:Y,htmlText:a(nn,s),htmlTextData:Y,image:a(an),label:s,link:a(jt),listItem:a(p3),listItemValue:d,listOrdered:a(Fc,c),listUnordered:a(Fc),paragraph:a(g3),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(_n),strong:a(b3),thematicBreak:a(x3)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:At,autolinkProtocol:it,blockQuote:u(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:je,characterReference:xt,codeFenced:u(T),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:B,codeIndented:u(x),codeText:u(K),codeTextData:B,data:B,definition:u(),definitionDestinationString:R,definitionLabelString:v,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(V),hardBreakTrailing:u(V),htmlFlow:u(ue),htmlFlowData:B,htmlText:u(Q),htmlTextData:B,image:u(ge),label:Ie,labelText:de,lineEnding:X,link:u(ce),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:lt,resourceDestinationString:P,resourceTitleString:Fe,resource:He,setextHeading:u(G),setextHeadingLineSequence:F,setextHeadingText:I,strong:u(),thematicBreak:u()}};S1(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(W){let se={type:"root",children:[]};const be={stack:[se],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:h,data:r},Ae=[];let Le=-1;for(;++Le<W.length;)if(W[Le][1].type==="listOrdered"||W[Le][1].type==="listUnordered")if(W[Le][0]==="enter")Ae.push(Le);else{const tr=Ae.pop();Le=i(W,tr,Le)}for(Le=-1;++Le<W.length;){const tr=t[W[Le][0]];k1.call(tr,W[Le][1].type)&&tr[W[Le][1].type].call(Object.assign({sliceSerialize:W[Le][2].sliceSerialize},be),W[Le][1])}if(be.tokenStack.length>0){const tr=be.tokenStack[be.tokenStack.length-1];(tr[1]||Nh).call(be,void 0,tr[0])}for(se.position={start:sn(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:sn(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)se=t.transforms[Le](se)||se;return se}function i(W,se,be){let Ae=se-1,Le=-1,tr=!1,In,Lr,zi,Ui;for(;++Ae<=be;){const Dt=W[Ae];switch(Dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Dt[0]==="enter"?Le++:Le--,Ui=void 0;break}case"lineEndingBlank":{Dt[0]==="enter"&&(In&&!Ui&&!Le&&!zi&&(zi=Ae),Ui=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ui=void 0}if(!Le&&Dt[0]==="enter"&&Dt[1].type==="listItemPrefix"||Le===-1&&Dt[0]==="exit"&&(Dt[1].type==="listUnordered"||Dt[1].type==="listOrdered")){if(In){let ti=Ae;for(Lr=void 0;ti--;){const Dr=W[ti];if(Dr[1].type==="lineEnding"||Dr[1].type==="lineEndingBlank"){if(Dr[0]==="exit")continue;Lr&&(W[Lr][1].type="lineEndingBlank",tr=!0),Dr[1].type="lineEnding",Lr=ti}else if(!(Dr[1].type==="linePrefix"||Dr[1].type==="blockQuotePrefix"||Dr[1].type==="blockQuotePrefixWhitespace"||Dr[1].type==="blockQuoteMarker"||Dr[1].type==="listItemIndent"))break}zi&&(!Lr||zi<Lr)&&(In._spread=!0),In.end=Object.assign({},Lr?W[Lr][1].start:Dt[1].end),W.splice(Lr||Ae,0,["exit",In,Dt[2]]),Ae++,be++}if(Dt[1].type==="listItemPrefix"){const ti={type:"listItem",_spread:!1,start:Object.assign({},Dt[1].start),end:void 0};In=ti,W.splice(Ae,0,["enter",ti,Dt[2]]),Ae++,be++,zi=void 0,Ui=!0}}}return W[se][1]._spread=tr,be}function a(W,se){return be;function be(Ae){o.call(this,W(Ae),Ae),se&&se.call(this,Ae)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(W,se,be){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([se,be||void 0]),W.position={start:sn(se.start),end:void 0}}function u(W){return se;function se(be){W&&W.call(this,be),l.call(this,be)}}function l(W,se){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==W.type&&(se?se.call(this,W,Ae[0]):(Ae[1]||Nh).call(this,W,Ae[0]));else throw new Error("Cannot close `"+W.type+"` ("+na({start:W.start,end:W.end})+"): it’s not open");be.position.end=sn(W.end)}function h(){return v0(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(W){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function f(){const W=this.resume(),se=this.stack[this.stack.length-1];se.lang=W}function g(){const W=this.resume(),se=this.stack[this.stack.length-1];se.meta=W}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const W=this.resume(),se=this.stack[this.stack.length-1];se.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const W=this.resume(),se=this.stack[this.stack.length-1];se.value=W.replace(/(\r?\n|\r)$/g,"")}function v(W){const se=this.resume(),be=this.stack[this.stack.length-1];be.label=se,be.identifier=or(this.sliceSerialize(W)).toLowerCase()}function k(){const W=this.resume(),se=this.stack[this.stack.length-1];se.title=W}function R(){const W=this.resume(),se=this.stack[this.stack.length-1];se.url=W}function O(W){const se=this.stack[this.stack.length-1];if(!se.depth){const be=this.sliceSerialize(W).length;se.depth=be}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function F(W){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(W){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=y3(),Ae.position={start:sn(W.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function B(W){const se=this.stack.pop();se.value+=this.sliceSerialize(W),se.position.end=sn(W.end)}function X(W){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=se.children[se.children.length-1];be.position.end=sn(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(Y.call(this,W),B.call(this,W))}function V(){this.data.atHardBreak=!0}function ue(){const W=this.resume(),se=this.stack[this.stack.length-1];se.value=W}function Q(){const W=this.resume(),se=this.stack[this.stack.length-1];se.value=W}function K(){const W=this.resume(),se=this.stack[this.stack.length-1];se.value=W}function ce(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=se,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ge(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=se,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function de(W){const se=this.sliceSerialize(W),be=this.stack[this.stack.length-2];be.label=U7(se),be.identifier=or(se).toLowerCase()}function Ie(){const W=this.stack[this.stack.length-1],se=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=W.children;be.children=Ae}else be.alt=se}function P(){const W=this.resume(),se=this.stack[this.stack.length-1];se.url=W}function Fe(){const W=this.resume(),se=this.stack[this.stack.length-1];se.title=W}function He(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function lt(W){const se=this.resume(),be=this.stack[this.stack.length-1];be.label=se,be.identifier=or(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function ft(W){this.data.characterReferenceType=W.type}function je(W){const se=this.sliceSerialize(W),be=this.data.characterReferenceType;let Ae;be?(Ae=m1(se,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=T0(se);const Le=this.stack[this.stack.length-1];Le.value+=Ae}function xt(W){const se=this.stack.pop();se.position.end=sn(W.end)}function it(W){B.call(this,W);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(W)}function At(W){B.call(this,W);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(W)}function Ct(){return{type:"blockquote",children:[]}}function Rr(){return{type:"code",lang:null,meta:null,value:""}}function ei(){return{type:"inlineCode",value:""}}function Pr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rn(){return{type:"emphasis",children:[]}}function _n(){return{type:"heading",depth:0,children:[]}}function Nn(){return{type:"break"}}function nn(){return{type:"html",value:""}}function an(){return{type:"image",title:null,url:"",alt:null}}function jt(){return{type:"link",title:null,url:"",children:[]}}function Fc(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function p3(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function g3(){return{type:"paragraph",children:[]}}function b3(){return{type:"strong",children:[]}}function y3(){return{type:"text",value:""}}function x3(){return{type:"thematicBreak"}}}function sn(e){return{line:e.line,column:e.column,offset:e.offset}}function S1(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?S1(e,n):G7(e,n)}}function G7(e,t){let r;for(r in t)if(k1.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Nh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+na({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+na({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+na({start:t.start,end:t.end})+") is still open")}function V7(e){const t=this;t.parser=r;function r(n){return $7(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function W7(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Y7(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
8
|
+
`}]}function X7(e,t){const r=t.value?t.value+`
|
|
9
|
+
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Q7(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function K7(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Z7(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=_i(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(n,o);const u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function J7(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ey(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function A1(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function ty(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return A1(e,t);const i={src:_i(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function ry(e,t){const r={src:_i(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function ny(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function iy(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return A1(e,t);const i={href:_i(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ay(e,t){const r={href:_i(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sy(e,t,r){const n=e.all(t),i=r?oy(r):C1(t),a={},s=[];if(typeof t.checked=="boolean"){const h=n[0];let c;h&&h.type==="element"&&h.tagName==="p"?c=h:(c={type:"element",tagName:"p",properties:{},children:[]},n.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const h=n[o];(i||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
|
|
10
|
+
`}),h.type==="element"&&h.tagName==="p"&&!i?s.push(...h.children):s.push(h)}const u=n[n.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
11
|
+
`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function oy(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=C1(r[n])}return t}function C1(e){const t=e.spread;return t??e.children.length>1}function uy(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function ly(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cy(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function hy(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dy(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Ar(t.children[1]),u=vo(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function fy(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u<o;){const c=t.children[u],d={},f=s?s[u]:void 0;f&&(d.align=f);let g={type:"element",tagName:a,properties:d,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),l.push(g)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,h),e.applyData(t,h)}function my(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Ih=9,Rh=32;function py(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(Ph(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Ph(t.slice(i),i>0,!1)),a.join("")}function Ph(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===Ih||a===Rh;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===Ih||a===Rh;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function gy(e,t){const r={type:"text",value:py(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function by(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const yy={blockquote:W7,break:Y7,code:X7,delete:Q7,emphasis:K7,footnoteReference:Z7,heading:J7,html:ey,imageReference:ty,image:ry,inlineCode:ny,linkReference:iy,link:ay,listItem:sy,list:uy,paragraph:ly,root:cy,strong:hy,table:dy,tableCell:my,tableRow:fy,text:gy,thematicBreak:by,toml:Qa,yaml:Qa,definition:Qa,footnoteDefinition:Qa};function Qa(){}const _1=-1,wo=0,aa=1,Ds=2,k0=3,S0=4,A0=5,C0=6,N1=7,I1=8,Lh=typeof self=="object"?self:globalThis,xy=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case wo:case _1:return r(s,i);case aa:{const o=r([],i);for(const u of s)o.push(n(u));return o}case Ds:{const o=r({},i);for(const[u,l]of s)o[n(u)]=n(l);return o}case k0:return r(new Date(s),i);case S0:{const{source:o,flags:u}=s;return r(new RegExp(o,u),i)}case A0:{const o=r(new Map,i);for(const[u,l]of s)o.set(n(u),n(l));return o}case C0:{const o=r(new Set,i);for(const u of s)o.add(n(u));return o}case N1:{const{name:o,message:u}=s;return r(new Lh[o](u),i)}case I1:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new Lh[a](s),i)};return n},Dh=e=>xy(new Map,e)(0),ri="",{toString:Ey}={},{keys:vy}=Object,Vi=e=>{const t=typeof e;if(t!=="object"||!e)return[wo,t];const r=Ey.call(e).slice(8,-1);switch(r){case"Array":return[aa,ri];case"Object":return[Ds,ri];case"Date":return[k0,ri];case"RegExp":return[S0,ri];case"Map":return[A0,ri];case"Set":return[C0,ri];case"DataView":return[aa,r]}return r.includes("Array")?[aa,r]:r.includes("Error")?[N1,r]:[Ds,r]},Ka=([e,t])=>e===wo&&(t==="function"||t==="symbol"),Ty=(e,t,r,n)=>{const i=(s,o)=>{const u=n.push(s)-1;return r.set(o,u),u},a=s=>{if(r.has(s))return r.get(s);let[o,u]=Vi(s);switch(o){case wo:{let h=s;switch(u){case"bigint":o=I1,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return i([_1],s)}return i([o,h],s)}case aa:{if(u){let d=s;return u==="DataView"?d=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(s)),i([u,[...d]],s)}const h=[],c=i([o,h],s);for(const d of s)h.push(a(d));return c}case Ds:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],c=i([o,h],s);for(const d of vy(s))(e||!Ka(Vi(s[d])))&&h.push([a(d),a(s[d])]);return c}case k0:return i([o,s.toISOString()],s);case S0:{const{source:h,flags:c}=s;return i([o,{source:h,flags:c}],s)}case A0:{const h=[],c=i([o,h],s);for(const[d,f]of s)(e||!(Ka(Vi(d))||Ka(Vi(f))))&&h.push([a(d),a(f)]);return c}case C0:{const h=[],c=i([o,h],s);for(const d of s)(e||!Ka(Vi(d)))&&h.push(a(d));return c}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},Mh=(e,{json:t,lossy:r}={})=>{const n=[];return Ty(!(t||r),!!t,new Map,n)(e),n},Ei=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Dh(Mh(e,t)):structuredClone(e):(e,t)=>Dh(Mh(e,t));function wy(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function ky(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Sy(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||wy,n=e.options.footnoteBackLabel||ky,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const h=e.all(l),c=String(l.identifier).toUpperCase(),d=_i(c.toLowerCase());let f=0;const g=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++f<=y;){g.length>0&&g.push({type:"text",value:" "});let v=typeof r=="string"?r:r(u,f);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,f),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const T=h[h.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const v=T.children[T.children.length-1];v&&v.type==="text"?v.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...g)}else h.push(...g);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(h,!0)};e.patch(l,x),o.push(x)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ei(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
12
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
13
|
+
`}]}}const Ba=function(e){if(e==null)return Ny;if(typeof e=="function")return ko(e);if(typeof e=="object")return Array.isArray(e)?Ay(e):Cy(e);if(typeof e=="string")return _y(e);throw new Error("Expected function, string, or object as test")};function Ay(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ba(e[r]);return ko(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Cy(e){const t=e;return ko(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function _y(e){return ko(t);function t(r){return r&&r.type===e}}function ko(e){return t;function t(r,n,i){return!!(Iy(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Ny(){return!0}function Iy(e){return e!==null&&typeof e=="object"&&"type"in e}const R1=[],Zi=!0,hl=!1,Ms="skip";function _0(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=Ba(i),s=n?-1:1;o(e,void 0,[])();function o(u,l,h){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=R1,g,y,T;if((!t||a(u,l,h[h.length-1]||void 0))&&(f=Ry(r(u,h)),f[0]===hl))return f;if("children"in u&&u.children){const x=u;if(x.children&&f[0]!==Ms)for(y=(n?x.children.length:-1)+s,T=h.concat(x);y>-1&&y<x.children.length;){const v=x.children[y];if(g=o(v,y,T)(),g[0]===hl)return g;y=typeof g[1]=="number"?g[1]:y+s}}return f}}}function Ry(e){return Array.isArray(e)?e:typeof e=="number"?[Zi,e]:e==null?R1:[e]}function jn(e,t,r,n){let i,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,i=r):(a=t,s=r,i=n),_0(e,a,o,i);function o(u,l){const h=l[l.length-1],c=h?h.children.indexOf(u):void 0;return s(u,c,h)}}const dl={}.hasOwnProperty,Py={};function Ly(e,t){const r=t||Py,n=new Map,i=new Map,a=new Map,s={...yy,...r.handlers},o={all:l,applyData:My,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:r,patch:Dy,wrap:By};return jn(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const c=h.type==="definition"?n:i,d=String(h.identifier).toUpperCase();c.has(d)||c.set(d,h)}}),o;function u(h,c){const d=h.type,f=o.handlers[d];if(dl.call(o.handlers,d)&&f)return f(o,h,c);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in h){const{children:y,...T}=h,x=Ei(T);return x.children=o.all(h),x}return Ei(h)}return(o.options.unknownHandler||Oy)(o,h,c)}function l(h){const c=[];if("children"in h){const d=h.children;let f=-1;for(;++f<d.length;){const g=o.one(d[f],h);if(g){if(f&&d[f-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Oh(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=Oh(y.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function Dy(e,t){e.position&&(t.position=k5(e))}function My(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,Ei(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function Oy(e,t){const r=t.data||{},n="value"in t&&!(dl.call(r,"hProperties")||dl.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function By(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
14
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
15
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
16
|
+
`}),r}function Oh(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Bh(e,t){const r=Ly(e,t),n=r.one(e,void 0),i=Sy(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
17
|
+
`},i),a}function Fy(e,t){return e&&"run"in e?async function(r,n){const i=Bh(r,{file:n,...t});await e.run(i,n)}:function(r,n){return Bh(r,{file:n,...e||t})}}function Fh(e){if(e)throw e}var au,Hh;function Hy(){if(Hh)return au;Hh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var h=e.call(l,"constructor"),c=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!h&&!c)return!1;var d;for(d in l);return typeof d>"u"||e.call(l,d)},s=function(l,h){r&&h.name==="__proto__"?r(l,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):l[h.name]=h.newValue},o=function(l,h){if(h==="__proto__")if(e.call(l,h)){if(n)return n(l,h).value}else return;return l[h]};return au=function u(){var l,h,c,d,f,g,y=arguments[0],T=1,x=arguments.length,v=!1;for(typeof y=="boolean"&&(v=y,y=arguments[1]||{},T=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});T<x;++T)if(l=arguments[T],l!=null)for(h in l)c=o(y,h),d=o(l,h),y!==d&&(v&&d&&(a(d)||(f=i(d)))?(f?(f=!1,g=c&&i(c)?c:[]):g=c&&a(c)?c:{},s(y,{name:h,newValue:u(v,g,d)})):typeof d<"u"&&s(y,{name:h,newValue:d}));return y},au}var zy=Hy();const su=e0(zy);function fl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Uy(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(u,...l){const h=e[++a];let c=-1;if(u){s(u);return}for(;++c<i.length;)(l[c]===null||l[c]===void 0)&&(l[c]=i[c]);i=l,h?qy(h,o)(...l):s(null,...l)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function qy(e,t){let r;return n;function n(...s){const o=e.length>s.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const h=l;if(o&&r)throw h;return i(h)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){r||(r=!0,t(s,...o))}function a(s){i(null,s)}}const pr={basename:$y,dirname:jy,extname:Gy,join:Vy,sep:"/"};function $y(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Fa(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function jy(e){if(Fa(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Gy(e){Fa(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function Vy(...e){let t=-1,r;for(;++t<e.length;)Fa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Wy(r)}function Wy(e){Fa(e);const t=e.codePointAt(0)===47;let r=Yy(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Yy(e,t){let r="",n=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function Fa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xy={cwd:Qy};function Qy(){return"/"}function ml(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ky(e){if(typeof e=="string")e=new URL(e);else if(!ml(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Zy(e)}function Zy(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const ou=["history","path","basename","stem","extname","dirname"];class P1{constructor(t){let r;t?ml(t)?r={path:t}:typeof t=="string"||Jy(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Xy.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ou.length;){const a=ou[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)ou.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?pr.basename(this.path):void 0}set basename(t){lu(t,"basename"),uu(t,"basename"),this.path=pr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pr.dirname(this.path):void 0}set dirname(t){zh(this.basename,"dirname"),this.path=pr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pr.extname(this.path):void 0}set extname(t){if(uu(t,"extname"),zh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ml(t)&&(t=Ky(t)),lu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pr.basename(this.path,this.extname):void 0}set stem(t){lu(t,"stem"),uu(t,"stem"),this.path=pr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new bt(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function uu(e,t){if(e&&e.includes(pr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pr.sep+"`")}function lu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Jy(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ex=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},tx={}.hasOwnProperty;class N0 extends ex{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=Uy()}copy(){const t=new N0;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(su(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(du("data",this.frozen),this.namespace[t]=r,this):tx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(du("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Za(t),n=this.parser||this.Parser;return cu("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),cu("process",this.parser||this.Parser),hu("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const o=Za(t),u=n.parse(o);n.run(u,o,function(h,c,d){if(h||!c||!d)return l(h);const f=c,g=n.stringify(f,d);ix(g)?d.value=g:d.result=g,l(h,d)});function l(h,c){h||!c?s(h):a?a(c):r(void 0,c)}}}processSync(t){let r=!1,n;return this.freeze(),cu("processSync",this.parser||this.Parser),hu("processSync",this.compiler||this.Compiler),this.process(t,i),qh("processSync","process",r),n;function i(a,s){r=!0,Fh(a),n=s}}run(t,r,n){Uh(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,o){const u=Za(r);i.run(t,u,l);function l(h,c,d){const f=c||t;h?o(h):s?s(f):n(void 0,f,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),qh("runSync","run",n),i;function a(s,o){Fh(s),i=o,n=!0}}stringify(t,r){this.freeze();const n=Za(r),i=this.compiler||this.Compiler;return hu("stringify",i),Uh(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(du("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[h,...c]=l;u(h,c)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))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(l.plugins),l.settings&&(i.settings=su(!0,i.settings,l.settings))}function o(l){let h=-1;if(l!=null)if(Array.isArray(l))for(;++h<l.length;){const c=l[h];a(c)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,h){let c=-1,d=-1;for(;++c<n.length;)if(n[c][0]===l){d=c;break}if(d===-1)n.push([l,...h]);else if(h.length>0){let[f,...g]=h;const y=n[d][1];fl(y)&&fl(f)&&(f=su(!0,y,f)),n[d]=[l,f,...g]}}}}const rx=new N0().freeze();function cu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function du(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Uh(e){if(!fl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Za(e){return nx(e)?e:new P1(e)}function nx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ix(e){return typeof e=="string"||ax(e)}function ax(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$h=[],jh={allowDangerousHtml:!0},ox=/^(https?|ircs?|mailto|xmpp)$/i,ux=[{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 lx(e){const t=cx(e),r=hx(e);return dx(t.runSync(t.parse(r),r),e)}function cx(e){const t=e.rehypePlugins||$h,r=e.remarkPlugins||$h,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jh}:jh;return rx().use(V7).use(r).use(Fy,n).use(t)}function hx(e){const t=e.children||"",r=new P1;return typeof t=="string"&&(r.value=t),r}function dx(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||fx;for(const h of ux)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+sx+h.id,void 0);return jn(e,l),N5(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function l(h,c,d){if(h.type==="raw"&&d&&typeof c=="number")return s?d.children.splice(c,1):d.children[c]={type:"text",value:h.value},c;if(h.type==="element"){let f;for(f in ru)if(Object.hasOwn(ru,f)&&Object.hasOwn(h.properties,f)){const g=h.properties[f],y=ru[f];(y===null||y.includes(h.tagName))&&(h.properties[f]=u(String(g||""),f,h))}}if(h.type==="element"){let f=r?!r.includes(h.tagName):a?a.includes(h.tagName):!1;if(!f&&n&&typeof c=="number"&&(f=!n(h,c,d)),f&&d&&typeof c=="number")return o&&h.children?d.children.splice(c,1,...h.children):d.children.splice(c,1),c}}}function fx(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||ox.test(e.slice(0,t))?e:""}function mx({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,blockedImageClass:i="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:a="text-gray-500"}){const s=t.length&&!t.every(u=>u==="*"),o=r.length&&!r.every(u=>u==="*");if(!e&&(s||o))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return u=>{const l=bx(e,t,r,n,i,a);jn(u,l)}}function Gh(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}return null}}function px(e){return typeof e!="string"?!1:e.startsWith("/")}const gx=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:"]);function Vh(e,t,r,n=!1,i=!1){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&n&&e.startsWith("data:image/")?e:null;const a=Gh(e,r);if(!a||!gx.has(a.protocol))return null;if(a.protocol==="mailto:")return a.href;const s=px(e);return a&&t.some(o=>{const u=Gh(o,r);return!u||u.origin!==a.origin?!1:a.href.startsWith(u.href)})?s?a.pathname+a.search+a.hash:a.href:t.includes("*")?a.protocol!=="https:"&&a.protocol!=="http:"?null:s?a.pathname+a.search+a.hash:a.href:null}const fu=Symbol("node-seen"),bx=(e,t,r,n,i,a)=>{const s=(o,u,l)=>{if(o.type!=="element"||o[fu])return Zi;if(o.tagName==="a"){const h=Vh(o.properties.href,t,e,!1,!1);return h===null?(o[fu]=!0,jn(o,s),l&&typeof u=="number"&&(l.children[u]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(o.properties.href),class:a},children:[...o.children,{type:"text",value:" [blocked]"}]}),Ms):(o.properties.href=h,o.properties.target="_blank",o.properties.rel="noopener noreferrer",Zi)}if(o.tagName==="img"){const h=Vh(o.properties.src,r,e,n,!0);return h===null?(o[fu]=!0,jn(o,s),l&&typeof u=="number"&&(l.children[u]={type:"element",tagName:"span",properties:{class:i},children:[{type:"text",value:"[Image blocked: "+String(o.properties.alt||"No description")+"]"}]}),Ms):(o.properties.src=h,Zi)}return Zi};return s},Wh=/[#.]/g;function yx(e,t){const r=e||"",n={};let i=0,a,s;for(;i<r.length;){Wh.lastIndex=i;const o=Wh.exec(r),u=r.slice(i,o?o.index:r.length);u&&(a?a==="#"?n.id=u:Array.isArray(n.className)?n.className.push(u):n.className=[u]:s=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function L1(e,t,r){const n=r?Tx(r):void 0;function i(a,s,...o){let u;if(a==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=yx(a,t);const l=u.tagName.toLowerCase(),h=n?n.get(l):void 0;if(u.tagName=h||l,xx(s))o.unshift(s);else for(const[c,d]of Object.entries(s))Ex(e,u.properties,c,d)}for(const l of o)pl(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function xx(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Ex(e,t,r,n){const i=Eo(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=dh(n):i.commaSeparated?a=oh(n):i.commaOrSpaceSeparated?a=dh(oh(n).join(" ")):a=Yh(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?vx(n):String(n);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Yh(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function pl(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)pl(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?pl(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Yh(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||xa(r)===xa(t)))return!0}return r}function vx(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function Tx(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const wx=["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"],D1=L1(Ma,"div"),M1=L1(Sn,"g",wx),Er={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/"};function kx(e,t){return O1(e,{})||{type:"root",children:[]}}function O1(e,t){const r=Sx(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function Sx(e,t){switch(e.nodeType){case 1:return Nx(e,t);case 3:return Cx(e);case 8:return _x(e);case 9:return Xh(e,t);case 10:return Ax();case 11:return Xh(e,t);default:return}}function Xh(e,t){return{type:"root",children:B1(e,t)}}function Ax(){return{type:"doctype"}}function Cx(e){return{type:"text",value:e.nodeValue||""}}function _x(e){return{type:"comment",value:e.nodeValue||""}}function Nx(e,t){const r=e.namespaceURI,n=r===Er.svg?M1:D1,i=r===Er.html?e.tagName.toLowerCase():e.tagName,a=r===Er.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let u=-1;for(;++u<s.length;)o[s[u]]=e.getAttribute(s[u])||"";return n(i,o,B1(a,t))}function B1(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=O1(r[i],t);a!==void 0&&n.push(a)}return n}new DOMParser;function Ix(e,t){const r=Rx(e);return kx(r)}function Rx(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Qh=function(e,t,r){const n=Ba(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]},Yn=function(e){if(e==null)return Dx;if(typeof e=="string")return Lx(e);if(typeof e=="object")return Px(e);if(typeof e=="function")return I0(e);throw new Error("Expected function, string, or array as `test`")};function Px(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Yn(e[r]);return I0(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Lx(e){return I0(t);function t(r){return r.tagName===e}}function I0(e){return t;function t(r,n,i){return!!(Mx(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Dx(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Mx(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Kh=/\n/g,Zh=/[\t ]+/g,gl=Yn("br"),Jh=Yn($x),Ox=Yn("p"),ed=Yn("tr"),Bx=Yn(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",qx,jx]),F1=Yn(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Fx(e,t){const r=t,n="children"in e?e.children:[],i=F1(e),a=U1(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...z1(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...H1(n[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<n.length-1?gl(n[o+1]):i}));const u=[];let l;for(o=-1;++o<s.length;){const h=s[o];typeof h=="number"?l!==void 0&&h>l&&(l=h):h&&(l!==void 0&&l>-1&&u.push(`
|
|
18
|
+
`.repeat(l)||" "),l=-1,u.push(h))}return u.join("")}function H1(e,t,r){return e.type==="element"?Hx(e,t,r):e.type==="text"?r.whitespace==="normal"?z1(e,r):zx(e):[]}function Hx(e,t,r){const n=U1(e,r),i=e.children||[];let a=-1,s=[];if(Bx(e))return s;let o,u;for(gl(e)||ed(e)&&Qh(t,e,ed)?u=`
|
|
19
|
+
`:Ox(e)?(o=2,u=2):F1(e)&&(o=1,u=1);++a<i.length;)s=s.concat(H1(i[a],e,{whitespace:n,breakBefore:a?void 0:o,breakAfter:a<i.length-1?gl(i[a+1]):u}));return Jh(e)&&Qh(t,e,Jh)&&s.push(" "),o&&s.unshift(o),u&&s.push(u),s}function z1(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){Kh.lastIndex=a;const u=Kh.exec(r),l=u&&"index"in u?u.index:r.length;n.push(Ux(r.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===r.length?t.breakAfter:!0)),a=l+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(i.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&i.push(o),i.push(n[s]),o=0):(s===0||s===n.length-1)&&i.push(0);return i}function zx(e){return[String(e.value)]}function Ux(e,t,r){const n=[];let i=0,a;for(;i<e.length;){Zh.lastIndex=i;const s=Zh.exec(e);a=s?s.index:e.length,!i&&!a&&s&&!t&&n.push(""),i!==a&&n.push(e.slice(i,a)),i=s?a+s[0].length:a}return i!==a&&!r&&n.push(""),n.join(" ")}function U1(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function qx(e){return!!(e.properties||{}).hidden}function $x(e){return e.tagName==="td"||e.tagName==="th"}function jx(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Rt{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new Rt(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class zt{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new zt(r,Rt.range(this,t))}}class re{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=o.slice(i,a).replace(/[^]/g,"$&̲"),l;i>15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),n+=l+u+h}var c=new Error(n);return c.name="ParseError",c.__proto__=re.prototype,c.position=i,i!=null&&a!=null&&(c.length=a-i),c.rawMessage=t,c}}re.prototype.__proto__=Error.prototype;var Gx=function(t,r){return t===void 0?r:t},Vx=/([A-Z])/g,Wx=function(t){return t.replace(Vx,"-$1").toLowerCase()},Yx={"&":"&",">":">","<":"<",'"':""","'":"'"},Xx=/[&><"']/g;function Qx(e){return String(e).replace(Xx,t=>Yx[t])}var q1=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Kx=function(t){var r=q1(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Zx=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Jx=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},_e={deflt:Gx,escape:Qx,hyphenate:Wx,getBaseElem:q1,isCharacterBox:Kx,protocolFromUrl:Jx},sa={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function eE(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class R0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in sa)if(sa.hasOwnProperty(r)){var n=sa[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:eE(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new re("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=_e.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class on{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return br[tE[this.id]]}sub(){return br[rE[this.id]]}fracNum(){return br[nE[this.id]]}fracDen(){return br[iE[this.id]]}cramp(){return br[aE[this.id]]}text(){return br[sE[this.id]]}isTight(){return this.size>=2}}var P0=0,Os=1,fi=2,jr=3,va=4,Qt=5,vi=6,wt=7,br=[new on(P0,0,!1),new on(Os,0,!0),new on(fi,1,!1),new on(jr,1,!0),new on(va,2,!1),new on(Qt,2,!0),new on(vi,3,!1),new on(wt,3,!0)],tE=[va,Qt,va,Qt,vi,wt,vi,wt],rE=[Qt,Qt,Qt,Qt,wt,wt,wt,wt],nE=[fi,jr,va,Qt,vi,wt,vi,wt],iE=[jr,jr,Qt,Qt,wt,wt,wt,wt],aE=[Os,Os,jr,jr,Qt,Qt,wt,wt],sE=[P0,Os,fi,jr,fi,jr,fi,jr],me={DISPLAY:br[P0],TEXT:br[fi],SCRIPT:br[va],SCRIPTSCRIPT:br[vi]},bl=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function oE(e){for(var t=0;t<bl.length;t++)for(var r=bl[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var vs=[];bl.forEach(e=>e.blocks.forEach(t=>vs.push(...t)));function $1(e){for(var t=0;t<vs.length;t+=2)if(e>=vs[t]&&e<=vs[t+1])return!0;return!1}var ni=80,uE=function(t,r){return"M95,"+(622+t+r)+`
|
|
20
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
21
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
22
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
23
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
24
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
25
|
+
l`+t/2.075+" -"+t+`
|
|
26
|
+
c5.3,-9.3,12,-14,20,-14
|
|
27
|
+
H400000v`+(40+t)+`H845.2724
|
|
28
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
29
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
30
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},lE=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
31
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
32
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
33
|
+
l`+t/2.084+" -"+t+`
|
|
34
|
+
c4.7,-7.3,11,-11,19,-11
|
|
35
|
+
H40000v`+(40+t)+`H1012.3
|
|
36
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
37
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
38
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
39
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
40
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},cE=function(t,r){return"M983 "+(10+t+r)+`
|
|
41
|
+
l`+t/3.13+" -"+t+`
|
|
42
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
43
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
44
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
45
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
46
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
47
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
48
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
49
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},hE=function(t,r){return"M424,"+(2398+t+r)+`
|
|
50
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
51
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
52
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
53
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
54
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
55
|
+
v`+(40+t)+`H1014.6
|
|
56
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
57
|
+
c-2,6,-10,9,-24,9
|
|
58
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
59
|
+
h400000v`+(40+t)+"h-400000z"},dE=function(t,r){return"M473,"+(2713+t+r)+`
|
|
60
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
61
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
62
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
63
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
64
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
65
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
66
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},fE=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},mE=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
67
|
+
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
68
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
69
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
70
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},pE=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=uE(r,ni);break;case"sqrtSize1":i=lE(r,ni);break;case"sqrtSize2":i=cE(r,ni);break;case"sqrtSize3":i=hE(r,ni);break;case"sqrtSize4":i=dE(r,ni);break;case"sqrtTall":i=mE(r,ni,n)}return i},gE=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},td={doubleleftarrow:`M262 157
|
|
71
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
72
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
73
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
74
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
75
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
76
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
77
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
78
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
79
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
80
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
81
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
82
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
83
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
84
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
85
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
86
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
87
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
88
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
89
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
90
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
91
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
92
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
93
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
94
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
95
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
96
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
97
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
98
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
99
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
100
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
101
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
102
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
103
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
104
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
105
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
106
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
107
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
108
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
109
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
110
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
111
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
112
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
113
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
114
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
115
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
116
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
117
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
118
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
119
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
120
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
121
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
122
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
123
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
124
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
125
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
126
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
127
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
128
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
129
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
130
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
131
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
132
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
133
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
134
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
135
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
136
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
137
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
138
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
139
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
140
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
141
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
142
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
143
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
144
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
145
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
146
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
147
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
148
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
149
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
150
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
151
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
152
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
153
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
154
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
155
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
156
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
157
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
158
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
159
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
160
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
161
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
162
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
163
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
164
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
165
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
166
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
167
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
168
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
169
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
170
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
171
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
172
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
173
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
174
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
175
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
176
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
177
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
178
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
179
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
180
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
181
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
182
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
183
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
184
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
185
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
186
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
187
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
188
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
189
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
190
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
191
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
192
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
193
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
194
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
195
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
196
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
197
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
198
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
199
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
200
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
201
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
202
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
203
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
204
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
205
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
206
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
207
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
208
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
209
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
210
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
211
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
212
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
213
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
214
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
215
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
216
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
217
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
218
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
219
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
220
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
221
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
222
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
223
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
224
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
225
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
226
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
227
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
228
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
229
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
230
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
231
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
232
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
233
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
234
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
235
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
236
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
237
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
238
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
239
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
240
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
241
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
242
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
243
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
244
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
245
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},bE=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
246
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
247
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
248
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
249
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
250
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
251
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
252
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
253
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
254
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
255
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
256
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
257
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
258
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
259
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
260
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
261
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
262
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
263
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
264
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
265
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
266
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
267
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
268
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
269
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
270
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
271
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
272
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
273
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Ha{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var vr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ja={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},rd={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function j1(e,t){vr[e]=t}function L0(e,t,r){if(!vr[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=vr[t][n];if(!i&&e[0]in rd&&(n=rd[e[0]].charCodeAt(0),i=vr[t][n]),!i&&r==="text"&&$1(n)&&(i=vr[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var mu={};function yE(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!mu[t]){var r=mu[t]={cssEmPerMu:Ja.quad[t]/18};for(var n in Ja)Ja.hasOwnProperty(n)&&(r[n]=Ja[n][t])}return mu[t]}var xE=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],nd=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],id=function(t,r){return r.size<2?t:xE[t-1][r.size-1]};class Fr{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Fr.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=nd[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new Fr(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:id(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:nd[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=id(Fr.BASESIZE,t);return this.size===r&&this.textSize===Fr.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Fr.BASESIZE?["sizing","reset-size"+this.size,"size"+Fr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=yE(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Fr.BASESIZE=6;var yl={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},EE={ex:!0,em:!0,mu:!0},G1=function(t){return typeof t!="string"&&(t=t.unit),t in yl||t in EE||t==="ex"},$e=function(t,r){var n;if(t.unit in yl)n=yl[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new re("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},ae=function(t){return+t.toFixed(4)+"em"},vn=function(t){return t.filter(r=>r).join(" ")},V1=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},W1=function(t){var r=document.createElement(t);r.className=vn(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},vE=/[\s"'>/=\x00-\x1f]/,Y1=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+_e.escape(vn(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=_e.hyphenate(i)+":"+this.style[i]+";");n&&(r+=' style="'+_e.escape(n)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(vE.test(a))throw new re("Invalid attribute name '"+a+"'");r+=" "+a+'="'+_e.escape(this.attributes[a])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class za{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,V1.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return W1.call(this,"span")}toMarkup(){return Y1.call(this,"span")}}class D0{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,V1.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return W1.call(this,"a")}toMarkup(){return Y1.call(this,"a")}}class TE{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+_e.escape(this.src)+'"'+(' alt="'+_e.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=_e.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+_e.escape(r)+'"'),t+="'/>",t}}var wE={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Zt{constructor(t,r,n,i,a,s,o,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=u||{},this.maxFontSize=0;var l=oE(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=wE[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=ae(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=vn(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=_e.escape(vn(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=_e.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,r+=' style="'+_e.escape(n)+'"');var a=_e.escape(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class Qr{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+_e.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class Tn{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",td[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+_e.escape(this.alternate)+'"/>':'<path d="'+_e.escape(td[this.pathName])+'"/>'}}class xl{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+_e.escape(this.attributes[r])+'"');return t+="/>",t}}function ad(e){if(e instanceof Zt)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function kE(e){if(e instanceof za)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var SE={bin:1,close:1,inner:1,open:1,punct:1,rel:1},AE={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Be={math:{},text:{}};function p(e,t,r,n,i,a){Be[e][i]={font:t,group:r,replace:n},a&&n&&(Be[e][n]=Be[e][i])}var b="math",Z="text",E="main",C="ams",Ue="accent-token",le="bin",St="close",Ii="inner",fe="mathord",Je="op-token",$t="open",So="punct",_="rel",en="spacing",M="textord";p(b,E,_,"≡","\\equiv",!0);p(b,E,_,"≺","\\prec",!0);p(b,E,_,"≻","\\succ",!0);p(b,E,_,"∼","\\sim",!0);p(b,E,_,"⊥","\\perp");p(b,E,_,"⪯","\\preceq",!0);p(b,E,_,"⪰","\\succeq",!0);p(b,E,_,"≃","\\simeq",!0);p(b,E,_,"∣","\\mid",!0);p(b,E,_,"≪","\\ll",!0);p(b,E,_,"≫","\\gg",!0);p(b,E,_,"≍","\\asymp",!0);p(b,E,_,"∥","\\parallel");p(b,E,_,"⋈","\\bowtie",!0);p(b,E,_,"⌣","\\smile",!0);p(b,E,_,"⊑","\\sqsubseteq",!0);p(b,E,_,"⊒","\\sqsupseteq",!0);p(b,E,_,"≐","\\doteq",!0);p(b,E,_,"⌢","\\frown",!0);p(b,E,_,"∋","\\ni",!0);p(b,E,_,"∝","\\propto",!0);p(b,E,_,"⊢","\\vdash",!0);p(b,E,_,"⊣","\\dashv",!0);p(b,E,_,"∋","\\owns");p(b,E,So,".","\\ldotp");p(b,E,So,"⋅","\\cdotp");p(b,E,M,"#","\\#");p(Z,E,M,"#","\\#");p(b,E,M,"&","\\&");p(Z,E,M,"&","\\&");p(b,E,M,"ℵ","\\aleph",!0);p(b,E,M,"∀","\\forall",!0);p(b,E,M,"ℏ","\\hbar",!0);p(b,E,M,"∃","\\exists",!0);p(b,E,M,"∇","\\nabla",!0);p(b,E,M,"♭","\\flat",!0);p(b,E,M,"ℓ","\\ell",!0);p(b,E,M,"♮","\\natural",!0);p(b,E,M,"♣","\\clubsuit",!0);p(b,E,M,"℘","\\wp",!0);p(b,E,M,"♯","\\sharp",!0);p(b,E,M,"♢","\\diamondsuit",!0);p(b,E,M,"ℜ","\\Re",!0);p(b,E,M,"♡","\\heartsuit",!0);p(b,E,M,"ℑ","\\Im",!0);p(b,E,M,"♠","\\spadesuit",!0);p(b,E,M,"§","\\S",!0);p(Z,E,M,"§","\\S");p(b,E,M,"¶","\\P",!0);p(Z,E,M,"¶","\\P");p(b,E,M,"†","\\dag");p(Z,E,M,"†","\\dag");p(Z,E,M,"†","\\textdagger");p(b,E,M,"‡","\\ddag");p(Z,E,M,"‡","\\ddag");p(Z,E,M,"‡","\\textdaggerdbl");p(b,E,St,"⎱","\\rmoustache",!0);p(b,E,$t,"⎰","\\lmoustache",!0);p(b,E,St,"⟯","\\rgroup",!0);p(b,E,$t,"⟮","\\lgroup",!0);p(b,E,le,"∓","\\mp",!0);p(b,E,le,"⊖","\\ominus",!0);p(b,E,le,"⊎","\\uplus",!0);p(b,E,le,"⊓","\\sqcap",!0);p(b,E,le,"∗","\\ast");p(b,E,le,"⊔","\\sqcup",!0);p(b,E,le,"◯","\\bigcirc",!0);p(b,E,le,"∙","\\bullet",!0);p(b,E,le,"‡","\\ddagger");p(b,E,le,"≀","\\wr",!0);p(b,E,le,"⨿","\\amalg");p(b,E,le,"&","\\And");p(b,E,_,"⟵","\\longleftarrow",!0);p(b,E,_,"⇐","\\Leftarrow",!0);p(b,E,_,"⟸","\\Longleftarrow",!0);p(b,E,_,"⟶","\\longrightarrow",!0);p(b,E,_,"⇒","\\Rightarrow",!0);p(b,E,_,"⟹","\\Longrightarrow",!0);p(b,E,_,"↔","\\leftrightarrow",!0);p(b,E,_,"⟷","\\longleftrightarrow",!0);p(b,E,_,"⇔","\\Leftrightarrow",!0);p(b,E,_,"⟺","\\Longleftrightarrow",!0);p(b,E,_,"↦","\\mapsto",!0);p(b,E,_,"⟼","\\longmapsto",!0);p(b,E,_,"↗","\\nearrow",!0);p(b,E,_,"↩","\\hookleftarrow",!0);p(b,E,_,"↪","\\hookrightarrow",!0);p(b,E,_,"↘","\\searrow",!0);p(b,E,_,"↼","\\leftharpoonup",!0);p(b,E,_,"⇀","\\rightharpoonup",!0);p(b,E,_,"↙","\\swarrow",!0);p(b,E,_,"↽","\\leftharpoondown",!0);p(b,E,_,"⇁","\\rightharpoondown",!0);p(b,E,_,"↖","\\nwarrow",!0);p(b,E,_,"⇌","\\rightleftharpoons",!0);p(b,C,_,"≮","\\nless",!0);p(b,C,_,"","\\@nleqslant");p(b,C,_,"","\\@nleqq");p(b,C,_,"⪇","\\lneq",!0);p(b,C,_,"≨","\\lneqq",!0);p(b,C,_,"","\\@lvertneqq");p(b,C,_,"⋦","\\lnsim",!0);p(b,C,_,"⪉","\\lnapprox",!0);p(b,C,_,"⊀","\\nprec",!0);p(b,C,_,"⋠","\\npreceq",!0);p(b,C,_,"⋨","\\precnsim",!0);p(b,C,_,"⪹","\\precnapprox",!0);p(b,C,_,"≁","\\nsim",!0);p(b,C,_,"","\\@nshortmid");p(b,C,_,"∤","\\nmid",!0);p(b,C,_,"⊬","\\nvdash",!0);p(b,C,_,"⊭","\\nvDash",!0);p(b,C,_,"⋪","\\ntriangleleft");p(b,C,_,"⋬","\\ntrianglelefteq",!0);p(b,C,_,"⊊","\\subsetneq",!0);p(b,C,_,"","\\@varsubsetneq");p(b,C,_,"⫋","\\subsetneqq",!0);p(b,C,_,"","\\@varsubsetneqq");p(b,C,_,"≯","\\ngtr",!0);p(b,C,_,"","\\@ngeqslant");p(b,C,_,"","\\@ngeqq");p(b,C,_,"⪈","\\gneq",!0);p(b,C,_,"≩","\\gneqq",!0);p(b,C,_,"","\\@gvertneqq");p(b,C,_,"⋧","\\gnsim",!0);p(b,C,_,"⪊","\\gnapprox",!0);p(b,C,_,"⊁","\\nsucc",!0);p(b,C,_,"⋡","\\nsucceq",!0);p(b,C,_,"⋩","\\succnsim",!0);p(b,C,_,"⪺","\\succnapprox",!0);p(b,C,_,"≆","\\ncong",!0);p(b,C,_,"","\\@nshortparallel");p(b,C,_,"∦","\\nparallel",!0);p(b,C,_,"⊯","\\nVDash",!0);p(b,C,_,"⋫","\\ntriangleright");p(b,C,_,"⋭","\\ntrianglerighteq",!0);p(b,C,_,"","\\@nsupseteqq");p(b,C,_,"⊋","\\supsetneq",!0);p(b,C,_,"","\\@varsupsetneq");p(b,C,_,"⫌","\\supsetneqq",!0);p(b,C,_,"","\\@varsupsetneqq");p(b,C,_,"⊮","\\nVdash",!0);p(b,C,_,"⪵","\\precneqq",!0);p(b,C,_,"⪶","\\succneqq",!0);p(b,C,_,"","\\@nsubseteqq");p(b,C,le,"⊴","\\unlhd");p(b,C,le,"⊵","\\unrhd");p(b,C,_,"↚","\\nleftarrow",!0);p(b,C,_,"↛","\\nrightarrow",!0);p(b,C,_,"⇍","\\nLeftarrow",!0);p(b,C,_,"⇏","\\nRightarrow",!0);p(b,C,_,"↮","\\nleftrightarrow",!0);p(b,C,_,"⇎","\\nLeftrightarrow",!0);p(b,C,_,"△","\\vartriangle");p(b,C,M,"ℏ","\\hslash");p(b,C,M,"▽","\\triangledown");p(b,C,M,"◊","\\lozenge");p(b,C,M,"Ⓢ","\\circledS");p(b,C,M,"®","\\circledR");p(Z,C,M,"®","\\circledR");p(b,C,M,"∡","\\measuredangle",!0);p(b,C,M,"∄","\\nexists");p(b,C,M,"℧","\\mho");p(b,C,M,"Ⅎ","\\Finv",!0);p(b,C,M,"⅁","\\Game",!0);p(b,C,M,"‵","\\backprime");p(b,C,M,"▲","\\blacktriangle");p(b,C,M,"▼","\\blacktriangledown");p(b,C,M,"■","\\blacksquare");p(b,C,M,"⧫","\\blacklozenge");p(b,C,M,"★","\\bigstar");p(b,C,M,"∢","\\sphericalangle",!0);p(b,C,M,"∁","\\complement",!0);p(b,C,M,"ð","\\eth",!0);p(Z,E,M,"ð","ð");p(b,C,M,"╱","\\diagup");p(b,C,M,"╲","\\diagdown");p(b,C,M,"□","\\square");p(b,C,M,"□","\\Box");p(b,C,M,"◊","\\Diamond");p(b,C,M,"¥","\\yen",!0);p(Z,C,M,"¥","\\yen",!0);p(b,C,M,"✓","\\checkmark",!0);p(Z,C,M,"✓","\\checkmark");p(b,C,M,"ℶ","\\beth",!0);p(b,C,M,"ℸ","\\daleth",!0);p(b,C,M,"ℷ","\\gimel",!0);p(b,C,M,"ϝ","\\digamma",!0);p(b,C,M,"ϰ","\\varkappa");p(b,C,$t,"┌","\\@ulcorner",!0);p(b,C,St,"┐","\\@urcorner",!0);p(b,C,$t,"└","\\@llcorner",!0);p(b,C,St,"┘","\\@lrcorner",!0);p(b,C,_,"≦","\\leqq",!0);p(b,C,_,"⩽","\\leqslant",!0);p(b,C,_,"⪕","\\eqslantless",!0);p(b,C,_,"≲","\\lesssim",!0);p(b,C,_,"⪅","\\lessapprox",!0);p(b,C,_,"≊","\\approxeq",!0);p(b,C,le,"⋖","\\lessdot");p(b,C,_,"⋘","\\lll",!0);p(b,C,_,"≶","\\lessgtr",!0);p(b,C,_,"⋚","\\lesseqgtr",!0);p(b,C,_,"⪋","\\lesseqqgtr",!0);p(b,C,_,"≑","\\doteqdot");p(b,C,_,"≓","\\risingdotseq",!0);p(b,C,_,"≒","\\fallingdotseq",!0);p(b,C,_,"∽","\\backsim",!0);p(b,C,_,"⋍","\\backsimeq",!0);p(b,C,_,"⫅","\\subseteqq",!0);p(b,C,_,"⋐","\\Subset",!0);p(b,C,_,"⊏","\\sqsubset",!0);p(b,C,_,"≼","\\preccurlyeq",!0);p(b,C,_,"⋞","\\curlyeqprec",!0);p(b,C,_,"≾","\\precsim",!0);p(b,C,_,"⪷","\\precapprox",!0);p(b,C,_,"⊲","\\vartriangleleft");p(b,C,_,"⊴","\\trianglelefteq");p(b,C,_,"⊨","\\vDash",!0);p(b,C,_,"⊪","\\Vvdash",!0);p(b,C,_,"⌣","\\smallsmile");p(b,C,_,"⌢","\\smallfrown");p(b,C,_,"≏","\\bumpeq",!0);p(b,C,_,"≎","\\Bumpeq",!0);p(b,C,_,"≧","\\geqq",!0);p(b,C,_,"⩾","\\geqslant",!0);p(b,C,_,"⪖","\\eqslantgtr",!0);p(b,C,_,"≳","\\gtrsim",!0);p(b,C,_,"⪆","\\gtrapprox",!0);p(b,C,le,"⋗","\\gtrdot");p(b,C,_,"⋙","\\ggg",!0);p(b,C,_,"≷","\\gtrless",!0);p(b,C,_,"⋛","\\gtreqless",!0);p(b,C,_,"⪌","\\gtreqqless",!0);p(b,C,_,"≖","\\eqcirc",!0);p(b,C,_,"≗","\\circeq",!0);p(b,C,_,"≜","\\triangleq",!0);p(b,C,_,"∼","\\thicksim");p(b,C,_,"≈","\\thickapprox");p(b,C,_,"⫆","\\supseteqq",!0);p(b,C,_,"⋑","\\Supset",!0);p(b,C,_,"⊐","\\sqsupset",!0);p(b,C,_,"≽","\\succcurlyeq",!0);p(b,C,_,"⋟","\\curlyeqsucc",!0);p(b,C,_,"≿","\\succsim",!0);p(b,C,_,"⪸","\\succapprox",!0);p(b,C,_,"⊳","\\vartriangleright");p(b,C,_,"⊵","\\trianglerighteq");p(b,C,_,"⊩","\\Vdash",!0);p(b,C,_,"∣","\\shortmid");p(b,C,_,"∥","\\shortparallel");p(b,C,_,"≬","\\between",!0);p(b,C,_,"⋔","\\pitchfork",!0);p(b,C,_,"∝","\\varpropto");p(b,C,_,"◀","\\blacktriangleleft");p(b,C,_,"∴","\\therefore",!0);p(b,C,_,"∍","\\backepsilon");p(b,C,_,"▶","\\blacktriangleright");p(b,C,_,"∵","\\because",!0);p(b,C,_,"⋘","\\llless");p(b,C,_,"⋙","\\gggtr");p(b,C,le,"⊲","\\lhd");p(b,C,le,"⊳","\\rhd");p(b,C,_,"≂","\\eqsim",!0);p(b,E,_,"⋈","\\Join");p(b,C,_,"≑","\\Doteq",!0);p(b,C,le,"∔","\\dotplus",!0);p(b,C,le,"∖","\\smallsetminus");p(b,C,le,"⋒","\\Cap",!0);p(b,C,le,"⋓","\\Cup",!0);p(b,C,le,"⩞","\\doublebarwedge",!0);p(b,C,le,"⊟","\\boxminus",!0);p(b,C,le,"⊞","\\boxplus",!0);p(b,C,le,"⋇","\\divideontimes",!0);p(b,C,le,"⋉","\\ltimes",!0);p(b,C,le,"⋊","\\rtimes",!0);p(b,C,le,"⋋","\\leftthreetimes",!0);p(b,C,le,"⋌","\\rightthreetimes",!0);p(b,C,le,"⋏","\\curlywedge",!0);p(b,C,le,"⋎","\\curlyvee",!0);p(b,C,le,"⊝","\\circleddash",!0);p(b,C,le,"⊛","\\circledast",!0);p(b,C,le,"⋅","\\centerdot");p(b,C,le,"⊺","\\intercal",!0);p(b,C,le,"⋒","\\doublecap");p(b,C,le,"⋓","\\doublecup");p(b,C,le,"⊠","\\boxtimes",!0);p(b,C,_,"⇢","\\dashrightarrow",!0);p(b,C,_,"⇠","\\dashleftarrow",!0);p(b,C,_,"⇇","\\leftleftarrows",!0);p(b,C,_,"⇆","\\leftrightarrows",!0);p(b,C,_,"⇚","\\Lleftarrow",!0);p(b,C,_,"↞","\\twoheadleftarrow",!0);p(b,C,_,"↢","\\leftarrowtail",!0);p(b,C,_,"↫","\\looparrowleft",!0);p(b,C,_,"⇋","\\leftrightharpoons",!0);p(b,C,_,"↶","\\curvearrowleft",!0);p(b,C,_,"↺","\\circlearrowleft",!0);p(b,C,_,"↰","\\Lsh",!0);p(b,C,_,"⇈","\\upuparrows",!0);p(b,C,_,"↿","\\upharpoonleft",!0);p(b,C,_,"⇃","\\downharpoonleft",!0);p(b,E,_,"⊶","\\origof",!0);p(b,E,_,"⊷","\\imageof",!0);p(b,C,_,"⊸","\\multimap",!0);p(b,C,_,"↭","\\leftrightsquigarrow",!0);p(b,C,_,"⇉","\\rightrightarrows",!0);p(b,C,_,"⇄","\\rightleftarrows",!0);p(b,C,_,"↠","\\twoheadrightarrow",!0);p(b,C,_,"↣","\\rightarrowtail",!0);p(b,C,_,"↬","\\looparrowright",!0);p(b,C,_,"↷","\\curvearrowright",!0);p(b,C,_,"↻","\\circlearrowright",!0);p(b,C,_,"↱","\\Rsh",!0);p(b,C,_,"⇊","\\downdownarrows",!0);p(b,C,_,"↾","\\upharpoonright",!0);p(b,C,_,"⇂","\\downharpoonright",!0);p(b,C,_,"⇝","\\rightsquigarrow",!0);p(b,C,_,"⇝","\\leadsto");p(b,C,_,"⇛","\\Rrightarrow",!0);p(b,C,_,"↾","\\restriction");p(b,E,M,"‘","`");p(b,E,M,"$","\\$");p(Z,E,M,"$","\\$");p(Z,E,M,"$","\\textdollar");p(b,E,M,"%","\\%");p(Z,E,M,"%","\\%");p(b,E,M,"_","\\_");p(Z,E,M,"_","\\_");p(Z,E,M,"_","\\textunderscore");p(b,E,M,"∠","\\angle",!0);p(b,E,M,"∞","\\infty",!0);p(b,E,M,"′","\\prime");p(b,E,M,"△","\\triangle");p(b,E,M,"Γ","\\Gamma",!0);p(b,E,M,"Δ","\\Delta",!0);p(b,E,M,"Θ","\\Theta",!0);p(b,E,M,"Λ","\\Lambda",!0);p(b,E,M,"Ξ","\\Xi",!0);p(b,E,M,"Π","\\Pi",!0);p(b,E,M,"Σ","\\Sigma",!0);p(b,E,M,"Υ","\\Upsilon",!0);p(b,E,M,"Φ","\\Phi",!0);p(b,E,M,"Ψ","\\Psi",!0);p(b,E,M,"Ω","\\Omega",!0);p(b,E,M,"A","Α");p(b,E,M,"B","Β");p(b,E,M,"E","Ε");p(b,E,M,"Z","Ζ");p(b,E,M,"H","Η");p(b,E,M,"I","Ι");p(b,E,M,"K","Κ");p(b,E,M,"M","Μ");p(b,E,M,"N","Ν");p(b,E,M,"O","Ο");p(b,E,M,"P","Ρ");p(b,E,M,"T","Τ");p(b,E,M,"X","Χ");p(b,E,M,"¬","\\neg",!0);p(b,E,M,"¬","\\lnot");p(b,E,M,"⊤","\\top");p(b,E,M,"⊥","\\bot");p(b,E,M,"∅","\\emptyset");p(b,C,M,"∅","\\varnothing");p(b,E,fe,"α","\\alpha",!0);p(b,E,fe,"β","\\beta",!0);p(b,E,fe,"γ","\\gamma",!0);p(b,E,fe,"δ","\\delta",!0);p(b,E,fe,"ϵ","\\epsilon",!0);p(b,E,fe,"ζ","\\zeta",!0);p(b,E,fe,"η","\\eta",!0);p(b,E,fe,"θ","\\theta",!0);p(b,E,fe,"ι","\\iota",!0);p(b,E,fe,"κ","\\kappa",!0);p(b,E,fe,"λ","\\lambda",!0);p(b,E,fe,"μ","\\mu",!0);p(b,E,fe,"ν","\\nu",!0);p(b,E,fe,"ξ","\\xi",!0);p(b,E,fe,"ο","\\omicron",!0);p(b,E,fe,"π","\\pi",!0);p(b,E,fe,"ρ","\\rho",!0);p(b,E,fe,"σ","\\sigma",!0);p(b,E,fe,"τ","\\tau",!0);p(b,E,fe,"υ","\\upsilon",!0);p(b,E,fe,"ϕ","\\phi",!0);p(b,E,fe,"χ","\\chi",!0);p(b,E,fe,"ψ","\\psi",!0);p(b,E,fe,"ω","\\omega",!0);p(b,E,fe,"ε","\\varepsilon",!0);p(b,E,fe,"ϑ","\\vartheta",!0);p(b,E,fe,"ϖ","\\varpi",!0);p(b,E,fe,"ϱ","\\varrho",!0);p(b,E,fe,"ς","\\varsigma",!0);p(b,E,fe,"φ","\\varphi",!0);p(b,E,le,"∗","*",!0);p(b,E,le,"+","+");p(b,E,le,"−","-",!0);p(b,E,le,"⋅","\\cdot",!0);p(b,E,le,"∘","\\circ",!0);p(b,E,le,"÷","\\div",!0);p(b,E,le,"±","\\pm",!0);p(b,E,le,"×","\\times",!0);p(b,E,le,"∩","\\cap",!0);p(b,E,le,"∪","\\cup",!0);p(b,E,le,"∖","\\setminus",!0);p(b,E,le,"∧","\\land");p(b,E,le,"∨","\\lor");p(b,E,le,"∧","\\wedge",!0);p(b,E,le,"∨","\\vee",!0);p(b,E,M,"√","\\surd");p(b,E,$t,"⟨","\\langle",!0);p(b,E,$t,"∣","\\lvert");p(b,E,$t,"∥","\\lVert");p(b,E,St,"?","?");p(b,E,St,"!","!");p(b,E,St,"⟩","\\rangle",!0);p(b,E,St,"∣","\\rvert");p(b,E,St,"∥","\\rVert");p(b,E,_,"=","=");p(b,E,_,":",":");p(b,E,_,"≈","\\approx",!0);p(b,E,_,"≅","\\cong",!0);p(b,E,_,"≥","\\ge");p(b,E,_,"≥","\\geq",!0);p(b,E,_,"←","\\gets");p(b,E,_,">","\\gt",!0);p(b,E,_,"∈","\\in",!0);p(b,E,_,"","\\@not");p(b,E,_,"⊂","\\subset",!0);p(b,E,_,"⊃","\\supset",!0);p(b,E,_,"⊆","\\subseteq",!0);p(b,E,_,"⊇","\\supseteq",!0);p(b,C,_,"⊈","\\nsubseteq",!0);p(b,C,_,"⊉","\\nsupseteq",!0);p(b,E,_,"⊨","\\models");p(b,E,_,"←","\\leftarrow",!0);p(b,E,_,"≤","\\le");p(b,E,_,"≤","\\leq",!0);p(b,E,_,"<","\\lt",!0);p(b,E,_,"→","\\rightarrow",!0);p(b,E,_,"→","\\to");p(b,C,_,"≱","\\ngeq",!0);p(b,C,_,"≰","\\nleq",!0);p(b,E,en," ","\\ ");p(b,E,en," ","\\space");p(b,E,en," ","\\nobreakspace");p(Z,E,en," ","\\ ");p(Z,E,en," "," ");p(Z,E,en," ","\\space");p(Z,E,en," ","\\nobreakspace");p(b,E,en,null,"\\nobreak");p(b,E,en,null,"\\allowbreak");p(b,E,So,",",",");p(b,E,So,";",";");p(b,C,le,"⊼","\\barwedge",!0);p(b,C,le,"⊻","\\veebar",!0);p(b,E,le,"⊙","\\odot",!0);p(b,E,le,"⊕","\\oplus",!0);p(b,E,le,"⊗","\\otimes",!0);p(b,E,M,"∂","\\partial",!0);p(b,E,le,"⊘","\\oslash",!0);p(b,C,le,"⊚","\\circledcirc",!0);p(b,C,le,"⊡","\\boxdot",!0);p(b,E,le,"△","\\bigtriangleup");p(b,E,le,"▽","\\bigtriangledown");p(b,E,le,"†","\\dagger");p(b,E,le,"⋄","\\diamond");p(b,E,le,"⋆","\\star");p(b,E,le,"◃","\\triangleleft");p(b,E,le,"▹","\\triangleright");p(b,E,$t,"{","\\{");p(Z,E,M,"{","\\{");p(Z,E,M,"{","\\textbraceleft");p(b,E,St,"}","\\}");p(Z,E,M,"}","\\}");p(Z,E,M,"}","\\textbraceright");p(b,E,$t,"{","\\lbrace");p(b,E,St,"}","\\rbrace");p(b,E,$t,"[","\\lbrack",!0);p(Z,E,M,"[","\\lbrack",!0);p(b,E,St,"]","\\rbrack",!0);p(Z,E,M,"]","\\rbrack",!0);p(b,E,$t,"(","\\lparen",!0);p(b,E,St,")","\\rparen",!0);p(Z,E,M,"<","\\textless",!0);p(Z,E,M,">","\\textgreater",!0);p(b,E,$t,"⌊","\\lfloor",!0);p(b,E,St,"⌋","\\rfloor",!0);p(b,E,$t,"⌈","\\lceil",!0);p(b,E,St,"⌉","\\rceil",!0);p(b,E,M,"\\","\\backslash");p(b,E,M,"∣","|");p(b,E,M,"∣","\\vert");p(Z,E,M,"|","\\textbar",!0);p(b,E,M,"∥","\\|");p(b,E,M,"∥","\\Vert");p(Z,E,M,"∥","\\textbardbl");p(Z,E,M,"~","\\textasciitilde");p(Z,E,M,"\\","\\textbackslash");p(Z,E,M,"^","\\textasciicircum");p(b,E,_,"↑","\\uparrow",!0);p(b,E,_,"⇑","\\Uparrow",!0);p(b,E,_,"↓","\\downarrow",!0);p(b,E,_,"⇓","\\Downarrow",!0);p(b,E,_,"↕","\\updownarrow",!0);p(b,E,_,"⇕","\\Updownarrow",!0);p(b,E,Je,"∐","\\coprod");p(b,E,Je,"⋁","\\bigvee");p(b,E,Je,"⋀","\\bigwedge");p(b,E,Je,"⨄","\\biguplus");p(b,E,Je,"⋂","\\bigcap");p(b,E,Je,"⋃","\\bigcup");p(b,E,Je,"∫","\\int");p(b,E,Je,"∫","\\intop");p(b,E,Je,"∬","\\iint");p(b,E,Je,"∭","\\iiint");p(b,E,Je,"∏","\\prod");p(b,E,Je,"∑","\\sum");p(b,E,Je,"⨂","\\bigotimes");p(b,E,Je,"⨁","\\bigoplus");p(b,E,Je,"⨀","\\bigodot");p(b,E,Je,"∮","\\oint");p(b,E,Je,"∯","\\oiint");p(b,E,Je,"∰","\\oiiint");p(b,E,Je,"⨆","\\bigsqcup");p(b,E,Je,"∫","\\smallint");p(Z,E,Ii,"…","\\textellipsis");p(b,E,Ii,"…","\\mathellipsis");p(Z,E,Ii,"…","\\ldots",!0);p(b,E,Ii,"…","\\ldots",!0);p(b,E,Ii,"⋯","\\@cdots",!0);p(b,E,Ii,"⋱","\\ddots",!0);p(b,E,M,"⋮","\\varvdots");p(Z,E,M,"⋮","\\varvdots");p(b,E,Ue,"ˊ","\\acute");p(b,E,Ue,"ˋ","\\grave");p(b,E,Ue,"¨","\\ddot");p(b,E,Ue,"~","\\tilde");p(b,E,Ue,"ˉ","\\bar");p(b,E,Ue,"˘","\\breve");p(b,E,Ue,"ˇ","\\check");p(b,E,Ue,"^","\\hat");p(b,E,Ue,"⃗","\\vec");p(b,E,Ue,"˙","\\dot");p(b,E,Ue,"˚","\\mathring");p(b,E,fe,"","\\@imath");p(b,E,fe,"","\\@jmath");p(b,E,M,"ı","ı");p(b,E,M,"ȷ","ȷ");p(Z,E,M,"ı","\\i",!0);p(Z,E,M,"ȷ","\\j",!0);p(Z,E,M,"ß","\\ss",!0);p(Z,E,M,"æ","\\ae",!0);p(Z,E,M,"œ","\\oe",!0);p(Z,E,M,"ø","\\o",!0);p(Z,E,M,"Æ","\\AE",!0);p(Z,E,M,"Œ","\\OE",!0);p(Z,E,M,"Ø","\\O",!0);p(Z,E,Ue,"ˊ","\\'");p(Z,E,Ue,"ˋ","\\`");p(Z,E,Ue,"ˆ","\\^");p(Z,E,Ue,"˜","\\~");p(Z,E,Ue,"ˉ","\\=");p(Z,E,Ue,"˘","\\u");p(Z,E,Ue,"˙","\\.");p(Z,E,Ue,"¸","\\c");p(Z,E,Ue,"˚","\\r");p(Z,E,Ue,"ˇ","\\v");p(Z,E,Ue,"¨",'\\"');p(Z,E,Ue,"˝","\\H");p(Z,E,Ue,"◯","\\textcircled");var X1={"--":!0,"---":!0,"``":!0,"''":!0};p(Z,E,M,"–","--",!0);p(Z,E,M,"–","\\textendash");p(Z,E,M,"—","---",!0);p(Z,E,M,"—","\\textemdash");p(Z,E,M,"‘","`",!0);p(Z,E,M,"‘","\\textquoteleft");p(Z,E,M,"’","'",!0);p(Z,E,M,"’","\\textquoteright");p(Z,E,M,"“","``",!0);p(Z,E,M,"“","\\textquotedblleft");p(Z,E,M,"”","''",!0);p(Z,E,M,"”","\\textquotedblright");p(b,E,M,"°","\\degree",!0);p(Z,E,M,"°","\\degree");p(Z,E,M,"°","\\textdegree",!0);p(b,E,M,"£","\\pounds");p(b,E,M,"£","\\mathsterling",!0);p(Z,E,M,"£","\\pounds");p(Z,E,M,"£","\\textsterling",!0);p(b,C,M,"✠","\\maltese");p(Z,C,M,"✠","\\maltese");var sd='0123456789/@."';for(var pu=0;pu<sd.length;pu++){var od=sd.charAt(pu);p(b,E,M,od,od)}var ud='0123456789!@*()-=+";:?/.,';for(var gu=0;gu<ud.length;gu++){var ld=ud.charAt(gu);p(Z,E,M,ld,ld)}var Bs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var bu=0;bu<Bs.length;bu++){var es=Bs.charAt(bu);p(b,E,fe,es,es),p(Z,E,M,es,es)}p(b,C,M,"C","ℂ");p(Z,C,M,"C","ℂ");p(b,C,M,"H","ℍ");p(Z,C,M,"H","ℍ");p(b,C,M,"N","ℕ");p(Z,C,M,"N","ℕ");p(b,C,M,"P","ℙ");p(Z,C,M,"P","ℙ");p(b,C,M,"Q","ℚ");p(Z,C,M,"Q","ℚ");p(b,C,M,"R","ℝ");p(Z,C,M,"R","ℝ");p(b,C,M,"Z","ℤ");p(Z,C,M,"Z","ℤ");p(b,E,fe,"h","ℎ");p(Z,E,fe,"h","ℎ");var pe="";for(var vt=0;vt<Bs.length;vt++){var Ge=Bs.charAt(vt);pe=String.fromCharCode(55349,56320+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56372+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56424+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56580+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56684+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56736+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56788+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56840+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56944+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),vt<26&&(pe=String.fromCharCode(55349,56632+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe),pe=String.fromCharCode(55349,56476+vt),p(b,E,fe,Ge,pe),p(Z,E,M,Ge,pe))}pe="𝕜";p(b,E,fe,"k",pe);p(Z,E,M,"k",pe);for(var Pn=0;Pn<10;Pn++){var un=Pn.toString();pe=String.fromCharCode(55349,57294+Pn),p(b,E,fe,un,pe),p(Z,E,M,un,pe),pe=String.fromCharCode(55349,57314+Pn),p(b,E,fe,un,pe),p(Z,E,M,un,pe),pe=String.fromCharCode(55349,57324+Pn),p(b,E,fe,un,pe),p(Z,E,M,un,pe),pe=String.fromCharCode(55349,57334+Pn),p(b,E,fe,un,pe),p(Z,E,M,un,pe)}var El="ÐÞþ";for(var yu=0;yu<El.length;yu++){var ts=El.charAt(yu);p(b,E,fe,ts,ts),p(Z,E,M,ts,ts)}var rs=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],cd=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],CE=function(t,r){var n=t.charCodeAt(0),i=t.charCodeAt(1),a=(n-55296)*1024+(i-56320)+65536,s=r==="math"?0:1;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return[rs[o][2],rs[o][s]]}else if(120782<=a&&a<=120831){var u=Math.floor((a-120782)/10);return[cd[u][2],cd[u][s]]}else{if(a===120485||a===120486)return[rs[0][2],rs[0][s]];if(120486<a&&a<120782)return["",""];throw new re("Unsupported character: "+t)}},Ao=function(t,r,n){return Be[n][t]&&Be[n][t].replace&&(t=Be[n][t].replace),{value:t,metrics:L0(t,r,n)}},nr=function(t,r,n,i,a){var s=Ao(t,r,n),o=s.metrics;t=s.value;var u;if(o){var l=o.italic;(n==="text"||i&&i.font==="mathit")&&(l=0),u=new Zt(t,o.height,o.depth,l,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),u=new Zt(t,0,0,0,0,0,a);if(i){u.maxFontSize=i.sizeMultiplier,i.style.isTight()&&u.classes.push("mtight");var h=i.getColor();h&&(u.style.color=h)}return u},_E=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Ao(t,"Main-Bold",r).metrics?nr(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||Be[r][t].font==="main"?nr(t,"Main-Regular",r,n,i):nr(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},NE=function(t,r,n,i,a){return a!=="textord"&&Ao(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},IE=function(t,r,n){var i=t.mode,a=t.text,s=["mord"],o=i==="math"||i==="text"&&r.font,u=o?r.font:r.fontFamily,l="",h="";if(a.charCodeAt(0)===55349&&([l,h]=CE(a,i)),l.length>0)return nr(a,l,i,r,s.concat(h));if(u){var c,d;if(u==="boldsymbol"){var f=NE(a,i,r,s,n);c=f.fontName,d=[f.fontClass]}else o?(c=Z1[u].fontName,d=[u]):(c=ns(u,r.fontWeight,r.fontShape),d=[u,r.fontWeight,r.fontShape]);if(Ao(a,c,i).metrics)return nr(a,c,i,r,s.concat(d));if(X1.hasOwnProperty(a)&&c.slice(0,10)==="Typewriter"){for(var g=[],y=0;y<a.length;y++)g.push(nr(a[y],c,i,r,s.concat(d)));return K1(g)}}if(n==="mathord")return nr(a,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var T=Be[i][a]&&Be[i][a].font;if(T==="ams"){var x=ns("amsrm",r.fontWeight,r.fontShape);return nr(a,x,i,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(T==="main"||!T){var v=ns("textrm",r.fontWeight,r.fontShape);return nr(a,v,i,r,s.concat(r.fontWeight,r.fontShape))}else{var k=ns(T,r.fontWeight,r.fontShape);return nr(a,k,i,r,s.concat(k,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},RE=(e,t)=>{if(vn(e.classes)!==vn(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},PE=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Zt&&n instanceof Zt&&RE(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},M0=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var s=t.children[a];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},It=function(t,r,n,i){var a=new za(t,r,n,i);return M0(a),a},Q1=(e,t,r,n)=>new za(e,t,r,n),LE=function(t,r,n){var i=It([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=ae(i.height),i.maxFontSize=1,i},DE=function(t,r,n,i){var a=new D0(t,r,n,i);return M0(a),a},K1=function(t){var r=new Ha(t);return M0(r),r},ME=function(t,r){return t instanceof Ha?It([],[t],r):t},OE=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,u=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,n.push({type:"kern",size:u}),n.push(r[s])}return{children:n,depth:i}}var l;if(t.positionType==="top"){for(var h=t.positionData,c=0;c<t.children.length;c++){var d=t.children[c];h-=d.type==="kern"?d.size:d.elem.height+d.elem.depth}l=h}else if(t.positionType==="bottom")l=-t.positionData;else{var f=t.children[0];if(f.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")l=-f.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")l=-f.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:l}},BE=function(t,r){for(var{children:n,depth:i}=OE(t),a=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var u=o.elem;a=Math.max(a,u.maxFontSize,u.height)}}a+=2;var l=It(["pstrut"],[]);l.style.height=ae(a);for(var h=[],c=i,d=i,f=i,g=0;g<n.length;g++){var y=n[g];if(y.type==="kern")f+=y.size;else{var T=y.elem,x=y.wrapperClasses||[],v=y.wrapperStyle||{},k=It(x,[l,T],void 0,v);k.style.top=ae(-a-f-T.depth),y.marginLeft&&(k.style.marginLeft=y.marginLeft),y.marginRight&&(k.style.marginRight=y.marginRight),h.push(k),f+=T.height+T.depth}c=Math.min(c,f),d=Math.max(d,f)}var R=It(["vlist"],h);R.style.height=ae(d);var O;if(c<0){var I=It([],[]),F=It(["vlist"],[I]);F.style.height=ae(-c);var G=It(["vlist-s"],[new Zt("")]);O=[It(["vlist-r"],[R,G]),It(["vlist-r"],[F])]}else O=[It(["vlist-r"],[R])];var Y=It(["vlist-t"],O);return O.length===2&&Y.classes.push("vlist-t2"),Y.height=d,Y.depth=-c,Y},FE=(e,t)=>{var r=It(["mspace"],[],t),n=$e(e,t);return r.style.marginRight=ae(n),r},ns=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},Z1={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},J1={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},HE=function(t,r){var[n,i,a]=J1[t],s=new Tn(n),o=new Qr([s],{width:ae(i),height:ae(a),style:"width:"+ae(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=Q1(["overlay"],[o],r);return u.height=a,u.style.height=ae(a),u.style.width=ae(i),u},z={fontMap:Z1,makeSymbol:nr,mathsym:_E,makeSpan:It,makeSvgSpan:Q1,makeLineSpan:LE,makeAnchor:DE,makeFragment:K1,wrapFragment:ME,makeVList:BE,makeOrd:IE,makeGlue:FE,staticSvg:HE,svgData:J1,tryCombineChars:PE},qe={number:3,unit:"mu"},Ln={number:4,unit:"mu"},Mr={number:5,unit:"mu"},zE={mord:{mop:qe,mbin:Ln,mrel:Mr,minner:qe},mop:{mord:qe,mop:qe,mrel:Mr,minner:qe},mbin:{mord:Ln,mop:Ln,mopen:Ln,minner:Ln},mrel:{mord:Mr,mop:Mr,mopen:Mr,minner:Mr},mopen:{},mclose:{mop:qe,mbin:Ln,mrel:Mr,minner:qe},mpunct:{mord:qe,mop:qe,mrel:Mr,mopen:qe,mclose:qe,mpunct:qe,minner:qe},minner:{mord:qe,mop:qe,mbin:Ln,mrel:Mr,mopen:qe,mpunct:qe,minner:qe}},UE={mord:{mop:qe},mop:{mord:qe,mop:qe},mbin:{},mrel:{},mopen:{},mclose:{mop:qe},mpunct:{},minner:{mop:qe}},ep={},Fs={},Hs={};function oe(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u<r.length;++u)ep[r[u]]=o;t&&(a&&(Fs[t]=a),s&&(Hs[t]=s))}function Xn(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;oe({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var zs=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Xe=function(t){return t.type==="ordgroup"?t.body:[t]},Kr=z.makeSpan,qE=["leftmost","mbin","mopen","mrel","mop","mpunct"],$E=["rightmost","mrel","mclose","mpunct"],jE={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT},GE={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},rt=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<t.length;s++){var o=Ce(t[s],r);if(o instanceof Ha){var u=o.children;a.push(...u)}else a.push(o)}if(z.tryCombineChars(a),!n)return a;var l=r;if(t.length===1){var h=t[0];h.type==="sizing"?l=r.havingSize(h.size):h.type==="styling"&&(l=r.havingStyle(jE[h.style]))}var c=Kr([i[0]||"leftmost"],[],r),d=Kr([i[1]||"rightmost"],[],r),f=n==="root";return hd(a,(g,y)=>{var T=y.classes[0],x=g.classes[0];T==="mbin"&&$E.includes(x)?y.classes[0]="mord":x==="mbin"&&qE.includes(T)&&(g.classes[0]="mord")},{node:c},d,f),hd(a,(g,y)=>{var T=vl(y),x=vl(g),v=T&&x?g.hasClass("mtight")?UE[T][x]:zE[T][x]:null;if(v)return z.makeGlue(v,l)},{node:c},d,f),a},hd=function e(t,r,n,i,a){i&&t.push(i);for(var s=0;s<t.length;s++){var o=t[s],u=tp(o);if(u){e(u.children,r,n,null,a);continue}var l=!o.hasClass("mspace");if(l){var h=r(o,n.node);h&&(n.insertAfter?n.insertAfter(h):(t.unshift(h),s++))}l?n.node=o:a&&o.hasClass("newline")&&(n.node=Kr(["leftmost"])),n.insertAfter=(c=>d=>{t.splice(c+1,0,d),s++})(s)}i&&t.pop()},tp=function(t){return t instanceof Ha||t instanceof D0||t instanceof za&&t.hasClass("enclosing")?t:null},VE=function e(t,r){var n=tp(t);if(n){var i=n.children;if(i.length){if(r==="right")return e(i[i.length-1],"right");if(r==="left")return e(i[0],"left")}}return t},vl=function(t,r){return t?(r&&(t=VE(t,r)),GE[t.classes[0]]||null):null},Ta=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Kr(r.concat(n))},Ce=function(t,r,n){if(!t)return Kr();if(Fs[t.type]){var i=Fs[t.type](t,r);if(n&&r.size!==n.size){i=Kr(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new re("Got group of unknown type: '"+t.type+"'")};function is(e,t){var r=Kr(["base"],e,t),n=Kr(["strut"]);return n.style.height=ae(r.height+r.depth),r.depth&&(n.style.verticalAlign=ae(-r.depth)),r.children.unshift(n),r}function Tl(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=rt(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var u=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(u=!0);u||(a.push(is(s,t)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(is(s,t)),s=[]),a.push(n[o]));s.length>0&&a.push(is(s,t));var l;r?(l=is(rt(r,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var h=Kr(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),l){var c=l.children[0];c.style.height=ae(h.height+h.depth),h.depth&&(c.style.verticalAlign=ae(-h.depth))}return h}function rp(e){return new Ha(e)}class Ft{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=vn(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Tr&&this.children[n+1]instanceof Tr){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Tr;)i+=this.children[++n].toText();t.appendChild(new Tr(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=_e.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+_e.escape(vn(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Tr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return _e.escape(this.toText())}toText(){return this.text}}class WE{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ae(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ae(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var te={MathNode:Ft,TextNode:Tr,SpaceNode:WE,newDocumentFragment:rp},Jt=function(t,r,n){return Be[r][t]&&Be[r][t].replace&&t.charCodeAt(0)!==55349&&!(X1.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Be[r][t].replace),new te.TextNode(t)},O0=function(t){return t.length===1?t[0]:new te.MathNode("mrow",t)},B0=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(["\\imath","\\jmath"].includes(a))return null;Be[i][a]&&Be[i][a].replace&&(a=Be[i][a].replace);var s=z.fontMap[n].fontName;return L0(a,s,i)?z.fontMap[n].variant:null};function xu(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Tr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Tr&&r.text===","}else return!1}var Lt=function(t,r,n){if(t.length===1){var i=De(t[0],r);return n&&i instanceof Ft&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o<t.length;o++){var u=De(t[o],r);if(u instanceof Ft&&s instanceof Ft){if(u.type==="mtext"&&s.type==="mtext"&&u.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...u.children);continue}else if(u.type==="mn"&&s.type==="mn"){s.children.push(...u.children);continue}else if(xu(u)&&s.type==="mn"){s.children.push(...u.children);continue}else if(u.type==="mn"&&xu(s))u.children=[...s.children,...u.children],a.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(s.type==="mn"||xu(s))){var l=u.children[0];l instanceof Ft&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var h=s.children[0];if(h instanceof Tr&&h.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var c=u.children[0];c instanceof Tr&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),a.pop())}}}a.push(u),s=u}return a},wn=function(t,r,n){return O0(Lt(t,r,n))},De=function(t,r){if(!t)return new te.MathNode("mrow");if(Hs[t.type]){var n=Hs[t.type](t,r);return n}else throw new re("Got group of unknown type: '"+t.type+"'")};function dd(e,t,r,n,i){var a=Lt(e,r),s;a.length===1&&a[0]instanceof Ft&&["mrow","mtable"].includes(a[0].type)?s=a[0]:s=new te.MathNode("mrow",a);var o=new te.MathNode("annotation",[new te.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new te.MathNode("semantics",[s,o]),l=new te.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&l.setAttribute("display","block");var h=i?"katex":"katex-mathml";return z.makeSpan([h],[l])}var np=function(t){return new Fr({style:t.displayMode?me.DISPLAY:me.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},ip=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=z.makeSpan(n,[t])}return t},YE=function(t,r,n){var i=np(n),a;if(n.output==="mathml")return dd(t,r,i,n.displayMode,!0);if(n.output==="html"){var s=Tl(t,i);a=z.makeSpan(["katex"],[s])}else{var o=dd(t,r,i,n.displayMode,!1),u=Tl(t,i);a=z.makeSpan(["katex"],[o,u])}return ip(a,n)},XE=function(t,r,n){var i=np(n),a=Tl(t,i),s=z.makeSpan(["katex"],[a]);return ip(s,n)},QE={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},KE=function(t){var r=new te.MathNode("mo",[new te.TextNode(QE[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},ZE={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},JE=function(t){return t.type==="ordgroup"?t.body.length:1},e9=function(t,r){function n(){var o=4e5,u=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var l=t,h=JE(l.base),c,d,f;if(h>5)u==="widehat"||u==="widecheck"?(c=420,o=2364,f=.42,d=u+"4"):(c=312,o=2340,f=.34,d="tilde4");else{var g=[1,1,2,2,3,3][h];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][g],c=[0,239,300,360,420][g],f=[0,.24,.3,.3,.36,.42][g],d=u+g):(o=[0,600,1033,2339,2340][g],c=[0,260,286,306,312][g],f=[0,.26,.286,.3,.306,.34][g],d="tilde"+g)}var y=new Tn(d),T=new Qr([y],{width:"100%",height:ae(f),viewBox:"0 0 "+o+" "+c,preserveAspectRatio:"none"});return{span:z.makeSvgSpan([],[T],r),minWidth:0,height:f}}else{var x=[],v=ZE[u],[k,R,O]=v,I=O/1e3,F=k.length,G,Y;if(F===1){var B=v[3];G=["hide-tail"],Y=[B]}else if(F===2)G=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(F===3)G=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
274
|
+
`+F+" children.");for(var X=0;X<F;X++){var V=new Tn(k[X]),ue=new Qr([V],{width:"400em",height:ae(I),viewBox:"0 0 "+o+" "+O,preserveAspectRatio:Y[X]+" slice"}),Q=z.makeSvgSpan([G[X]],[ue],r);if(F===1)return{span:Q,minWidth:R,height:I};Q.style.height=ae(I),x.push(Q)}return{span:z.makeSpan(["stretchy"],x,r),minWidth:R,height:I}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=ae(s),a>0&&(i.style.minWidth=ae(a)),i},t9=function(t,r,n,i,a){var s,o=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=z.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(r)&&l.push(new xl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&l.push(new xl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new Qr(l,{width:"100%",height:ae(o)});s=z.makeSvgSpan([],[h],a)}return s.height=o,s.style.height=ae(o),s},Zr={encloseSpan:t9,mathMLnode:KE,svgSpan:e9};function ve(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function F0(e){var t=Co(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Co(e){return e&&(e.type==="atom"||AE.hasOwnProperty(e.type))?e:null}var H0=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=ve(e.base,"accent"),r=n.base,e.base=r,i=kE(Ce(e,t)),e.base=n):(n=ve(e,"accent"),r=n.base);var a=Ce(r,t.havingCrampedStyle()),s=n.isShifty&&_e.isCharacterBox(r),o=0;if(s){var u=_e.getBaseElem(r),l=Ce(u,t.havingCrampedStyle());o=ad(l).skew}var h=n.label==="\\c",c=h?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(n.isStretchy)d=Zr.svgSpan(n,t),d=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ae(2*o)+")",marginLeft:ae(2*o)}:void 0}]},t);else{var f,g;n.label==="\\vec"?(f=z.staticSvg("vec",t),g=z.svgData.vec[1]):(f=z.makeOrd({mode:n.mode,text:n.label},t,"textord"),f=ad(f),f.italic=0,g=f.width,h&&(c+=f.depth)),d=z.makeSpan(["accent-body"],[f]);var y=n.label==="\\textcircled";y&&(d.classes.push("accent-full"),c=a.height);var T=o;y||(T-=g/2),d.style.left=ae(T),n.label==="\\textcircled"&&(d.style.top=".2em"),d=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-c},{type:"elem",elem:d}]},t)}var x=z.makeSpan(["mord","accent"],[d],t);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},ap=(e,t)=>{var r=e.isStretchy?Zr.mathMLnode(e.label):new te.MathNode("mo",[Jt(e.label,e.mode)]),n=new te.MathNode("mover",[De(e.base,t),r]);return n.setAttribute("accent","true"),n},r9=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));oe({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=zs(t[0]),n=!r9.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:H0,mathmlBuilder:ap});oe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:H0,mathmlBuilder:ap});oe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=Ce(e.base,t),n=Zr.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=z.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return z.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Zr.mathMLnode(e.label),n=new te.MathNode("munder",[De(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var as=e=>{var t=new te.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};oe({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=z.wrapFragment(Ce(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=z.wrapFragment(Ce(e.below,n,t),t),s.classes.push(a+"-arrow-pad"));var o=Zr.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var h;if(s){var c=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;h=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:c}]},t)}else h=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return h.children[0].children[0].children[1].classes.push("svg-align"),z.makeSpan(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){var r=Zr.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=as(De(e.body,t));if(e.below){var a=as(De(e.below,t));n=new te.MathNode("munderover",[r,a,i])}else n=new te.MathNode("mover",[r,i])}else if(e.below){var s=as(De(e.below,t));n=new te.MathNode("munder",[r,s])}else n=as(),n=new te.MathNode("mover",[r,n]);return n}});var n9=z.makeSpan;function sp(e,t){var r=rt(e.body,t,!0);return n9([e.mclass],r,t)}function op(e,t){var r,n=Lt(e.body,t);return e.mclass==="minner"?r=new te.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new te.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new te.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}oe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Xe(i),isCharacterBox:_e.isCharacterBox(i)}},htmlBuilder:sp,mathmlBuilder:op});var _o=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};oe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:_o(t[0]),body:Xe(t[1]),isCharacterBox:_e.isCharacterBox(t[1])}}});oe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],s;n!=="\\stackrel"?s=_o(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Xe(i)},u={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:_e.isCharacterBox(u)}},htmlBuilder:sp,mathmlBuilder:op});oe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:_o(t[0]),body:Xe(t[0])}},htmlBuilder(e,t){var r=rt(e.body,t,!0),n=z.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Lt(e.body,t),n=new te.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var i9={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fd=()=>({type:"styling",body:[],mode:"math",style:"display"}),md=e=>e.type==="textord"&&e.text==="@",a9=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function s9(e,t,r){var n=i9[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function o9(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new re("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var s=t[a],o=fd(),u=0;u<s.length;u++)if(!md(s[u]))o.body.push(s[u]);else{n.push(o),u+=1;var l=F0(s[u]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(l)>-1))if("<>AV".indexOf(l)>-1)for(var c=0;c<2;c++){for(var d=!0,f=u+1;f<s.length;f++){if(a9(s[f],l)){d=!1,u=f;break}if(md(s[f]))throw new re("Missing a "+l+" character to complete a CD arrow.",s[f]);h[c].body.push(s[f])}if(d)throw new re("Missing a "+l+" character to complete a CD arrow.",s[u])}else throw new re('Expected one of "<>AV=|." after @',s[u]);var g=s9(l,h,e),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),o=fd()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}oe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=z.wrapFragment(Ce(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=ae(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new te.MathNode("mrow",[De(e.label,t)]);return r=new te.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new te.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});oe({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=z.wrapFragment(Ce(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new te.MathNode("mrow",[De(e.fragment,t)])}});oe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=ve(t[0],"ordgroup"),i=n.body,a="",s=0;s<i.length;s++){var o=ve(i[s],"textord");a+=o.text}var u=parseInt(a),l;if(isNaN(u))throw new re("\\@char has non-numeric argument "+a);if(u<0||u>=1114111)throw new re("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:l}}});var up=(e,t)=>{var r=rt(e.body,t.withColor(e.color),!1);return z.makeFragment(r)},lp=(e,t)=>{var r=Lt(e.body,t.withColor(e.color)),n=new te.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};oe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=ve(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:Xe(i)}},htmlBuilder:up,mathmlBuilder:lp});oe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=ve(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:up,mathmlBuilder:lp});oe({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&ve(i,"size").value}},htmlBuilder(e,t){var r=z.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=ae($e(e.size,t)))),r},mathmlBuilder(e,t){var r=new te.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",ae($e(e.size,t)))),r}});var wl={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},cp=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new re("Expected a control sequence",e);return t},u9=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},hp=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};oe({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(wl[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=wl[n.text]),ve(t.parseFunction(),"internal");throw new re("Invalid token after macro prefix",n)}});oe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new re("Expected a control sequence",n);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new re('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new re('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new re("Expected a macro definition");o[a].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},r===wl[r]),{type:"internal",mode:t.mode}}});oe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=cp(t.gullet.popToken());t.gullet.consumeSpaces();var i=u9(t);return hp(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});oe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=cp(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return hp(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Ji=function(t,r,n){var i=Be.math[t]&&Be.math[t].replace,a=L0(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},z0=function(t,r,n,i){var a=n.havingBaseStyle(r),s=z.makeSpan(i.concat(a.sizingClasses(n)),[t],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},dp=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ae(a),t.height-=a,t.depth+=a},l9=function(t,r,n,i,a,s){var o=z.makeSymbol(t,"Main-Regular",a,i),u=z0(o,r,i,s);return n&&dp(u,i,r),u},c9=function(t,r,n,i){return z.makeSymbol(t,"Size"+r+"-Regular",n,i)},fp=function(t,r,n,i,a,s){var o=c9(t,r,a,i),u=z0(z.makeSpan(["delimsizing","size"+r],[o],i),me.TEXT,i,s);return n&&dp(u,i,me.TEXT),u},Eu=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=z.makeSpan(["delimsizinginner",i],[z.makeSpan([],[z.makeSymbol(t,r,n)])]);return{type:"elem",elem:a}},vu=function(t,r,n){var i=vr["Size4-Regular"][t.charCodeAt(0)]?vr["Size4-Regular"][t.charCodeAt(0)][4]:vr["Size1-Regular"][t.charCodeAt(0)][4],a=new Tn("inner",gE(t,Math.round(1e3*r))),s=new Qr([a],{width:ae(i),height:ae(r),style:"width:"+ae(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=z.makeSvgSpan([],[s],n);return o.height=r,o.style.height=ae(r),o.style.width=ae(i),{type:"elem",elem:o}},kl=.008,ss={type:"kern",size:-1*kl},h9=["|","\\lvert","\\rvert","\\vert"],d9=["\\|","\\lVert","\\rVert","\\Vert"],mp=function(t,r,n,i,a,s){var o,u,l,h,c="",d=0;o=l=h=t,u=null;var f="Size1-Regular";t==="\\uparrow"?l=h="⏐":t==="\\Uparrow"?l=h="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",h="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",h="\\Downarrow"):h9.includes(t)?(l="∣",c="vert",d=333):d9.includes(t)?(l="∥",c="doublevert",d=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",h="⎣",f="Size4-Regular",c="lbrack",d=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",h="⎦",f="Size4-Regular",c="rbrack",d=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",h="⎣",f="Size4-Regular",c="lfloor",d=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=h="⎢",f="Size4-Regular",c="lceil",d=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",h="⎦",f="Size4-Regular",c="rfloor",d=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=h="⎥",f="Size4-Regular",c="rceil",d=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",h="⎝",f="Size4-Regular",c="lparen",d=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",h="⎠",f="Size4-Regular",c="rparen",d=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",h="⎩",l="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",h="⎭",l="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",h="⎩",l="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",h="⎭",l="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",h="⎭",l="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",h="⎩",l="⎪",f="Size4-Regular");var g=Ji(o,f,a),y=g.height+g.depth,T=Ji(l,f,a),x=T.height+T.depth,v=Ji(h,f,a),k=v.height+v.depth,R=0,O=1;if(u!==null){var I=Ji(u,f,a);R=I.height+I.depth,O=2}var F=y+k+R,G=Math.max(0,Math.ceil((r-F)/(O*x))),Y=F+G*O*x,B=i.fontMetrics().axisHeight;n&&(B*=i.sizeMultiplier);var X=Y/2-B,V=[];if(c.length>0){var ue=Y-y-k,Q=Math.round(Y*1e3),K=bE(c,Math.round(ue*1e3)),ce=new Tn(c,K),ge=(d/1e3).toFixed(3)+"em",de=(Q/1e3).toFixed(3)+"em",Ie=new Qr([ce],{width:ge,height:de,viewBox:"0 0 "+d+" "+Q}),P=z.makeSvgSpan([],[Ie],i);P.height=Q/1e3,P.style.width=ge,P.style.height=de,V.push({type:"elem",elem:P})}else{if(V.push(Eu(h,f,a)),V.push(ss),u===null){var Fe=Y-y-k+2*kl;V.push(vu(l,Fe,i))}else{var He=(Y-y-k-R)/2+2*kl;V.push(vu(l,He,i)),V.push(ss),V.push(Eu(u,f,a)),V.push(ss),V.push(vu(l,He,i))}V.push(ss),V.push(Eu(o,f,a))}var L=i.havingBaseStyle(me.TEXT),lt=z.makeVList({positionType:"bottom",positionData:X,children:V},L);return z0(z.makeSpan(["delimsizing","mult"],[lt],L),me.TEXT,i,s)},Tu=80,wu=.08,ku=function(t,r,n,i,a){var s=pE(t,i,n),o=new Tn(t,s),u=new Qr([o],{width:"400em",height:ae(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return z.makeSvgSpan(["hide-tail"],[u],a)},f9=function(t,r){var n=r.havingBaseSizing(),i=yp("\\surd",t*n.sizeMultiplier,bp,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,u=0,l=0,h=0,c;return i.type==="small"?(h=1e3+1e3*s+Tu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+wu)/a,l=(1+s)/a,o=ku("sqrtMain",u,h,s,r),o.style.minWidth="0.853em",c=.833/a):i.type==="large"?(h=(1e3+Tu)*oa[i.size],l=(oa[i.size]+s)/a,u=(oa[i.size]+s+wu)/a,o=ku("sqrtSize"+i.size,u,h,s,r),o.style.minWidth="1.02em",c=1/a):(u=t+s+wu,l=t+s,h=Math.floor(1e3*t+s)+Tu,o=ku("sqrtTall",u,h,s,r),o.style.minWidth="0.742em",c=1.056),o.height=l,o.style.height=ae(u),{span:o,advanceWidth:c,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},pp=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],m9=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],gp=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],oa=[0,1.2,1.8,2.4,3],p9=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),pp.includes(t)||gp.includes(t))return fp(t,r,!1,n,i,a);if(m9.includes(t))return mp(t,oa[r],!1,n,i,a);throw new re("Illegal delimiter: '"+t+"'")},g9=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],b9=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"stack"}],bp=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],y9=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},yp=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;s<n.length&&n[s].type!=="stack";s++){var o=Ji(t,y9(n[s]),"math"),u=o.height+o.depth;if(n[s].type==="small"){var l=i.havingBaseStyle(n[s].style);u*=l.sizeMultiplier}if(u>r)return n[s]}return n[n.length-1]},xp=function(t,r,n,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;gp.includes(t)?o=g9:pp.includes(t)?o=bp:o=b9;var u=yp(t,r,o,i);return u.type==="small"?l9(t,u.style,n,i,a,s):u.type==="large"?fp(t,u.size,n,i,a,s):mp(t,r,n,i,a,s)},x9=function(t,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,h=Math.max(r-o,n+o),c=Math.max(h/500*u,2*h-l);return xp(t,c,!0,i,a,s)},Gr={sqrtImage:f9,sizedDelim:p9,sizeToMaxHeight:oa,customSizedDelim:xp,leftRightDelim:x9},pd={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},E9=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function No(e,t){var r=Co(e);if(r&&E9.includes(r.text))return r;throw r?new re("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new re("Invalid delimiter type '"+e.type+"'",e)}oe({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=No(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pd[e.funcName].size,mclass:pd[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?z.makeSpan([e.mclass]):Gr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Jt(e.delim,e.mode));var r=new te.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=ae(Gr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function gd(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}oe({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new re("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:No(t[0],e).text,color:r}}});oe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=No(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=ve(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{gd(e);for(var r=rt(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s<r.length;s++)r[s].isMiddle?a=!0:(n=Math.max(r[s].height,n),i=Math.max(r[s].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var o;if(e.left==="."?o=Ta(t,["mopen"]):o=Gr.leftRightDelim(e.left,n,i,t,e.mode,["mopen"]),r.unshift(o),a)for(var u=1;u<r.length;u++){var l=r[u],h=l.isMiddle;h&&(r[u]=Gr.leftRightDelim(h.delim,n,i,h.options,e.mode,[]))}var c;if(e.right===".")c=Ta(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;c=Gr.leftRightDelim(e.right,n,i,d,e.mode,["mclose"])}return r.push(c),z.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{gd(e);var r=Lt(e.body,t);if(e.left!=="."){var n=new te.MathNode("mo",[Jt(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new te.MathNode("mo",[Jt(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return O0(r)}});oe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=No(t[0],e);if(!e.parser.leftrightDepth)throw new re("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Ta(t,[]);else{r=Gr.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Jt("|","text"):Jt(e.delim,e.mode),n=new te.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var U0=(e,t)=>{var r=z.wrapFragment(Ce(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=_e.isCharacterBox(e.body);if(n==="sout")a=z.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var u=$e({number:.6,unit:"pt"},t),l=$e({number:.35,unit:"ex"},t),h=t.havingBaseSizing();i=i/h.sizeMultiplier;var c=r.height+r.depth+u+l;r.style.paddingLeft=ae(c/2+u);var d=Math.floor(1e3*c*i),f=fE(d),g=new Qr([new Tn("phase",f)],{width:"400em",height:ae(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});a=z.makeSvgSpan(["hide-tail"],[g],t),a.style.height=ae(c),s=r.depth+u+l}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,T=0,x=0;/box/.test(n)?(x=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:x),T=y):n==="angl"?(x=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*x,T=Math.max(0,.25-r.depth)):(y=o?.2:0,T=y),a=Zr.encloseSpan(r,n,y,T,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=ae(x)):n==="angl"&&x!==.049&&(a.style.borderTopWidth=ae(x),a.style.borderRightWidth=ae(x)),s=r.depth+T,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]},t);else{var k=/cancel|phase/.test(n)?["svg-align"]:[];v=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(n)&&(v.height=r.height,v.depth=r.depth),/cancel/.test(n)&&!o?z.makeSpan(["mord","cancel-lap"],[v],t):z.makeSpan(["mord"],[v],t)},q0=(e,t)=>{var r=0,n=new te.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[De(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};oe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=ve(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:U0,mathmlBuilder:q0});oe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=ve(t[0],"color-token").color,s=ve(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:U0,mathmlBuilder:q0});oe({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});oe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:U0,mathmlBuilder:q0});oe({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Ep={};function Cr(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u<r.length;++u)Ep[r[u]]=o;a&&(Fs[t]=a),s&&(Hs[t]=s)}var vp={};function w(e,t){vp[e]=t}function bd(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var Io=e=>{var t=e.parser.settings;if(!t.displayMode)throw new re("{"+e.envName+"} can be used only in display mode.")};function $0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Cn(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:h,maxNumCols:c,leqno:d}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new re("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var g=[],y=[g],T=[],x=[],v=u!=null?[]:void 0;function k(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function R(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new zt("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),x.push(bd(e));;){var O=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),O={type:"ordgroup",mode:e.mode,body:O},r&&(O={type:"styling",mode:e.mode,style:r,body:[O]}),g.push(O);var I=e.fetch().text;if(I==="&"){if(c&&g.length===c){if(l||o)throw new re("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(I==="\\end"){R(),g.length===1&&O.type==="styling"&&O.body[0].body.length===0&&(y.length>1||!h)&&y.pop(),x.length<y.length+1&&x.push([]);break}else if(I==="\\\\"){e.consume();var F=void 0;e.gullet.future().text!==" "&&(F=e.parseSizeGroup(!0)),T.push(F?F.value:null),R(),x.push(bd(e)),g=[],y.push(g),k()}else throw new re("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:y,cols:a,rowGaps:T,hskipBeforeAndAfter:n,hLinesBeforeRow:x,colSeparationType:o,tags:v,leqno:d}}function j0(e){return e.slice(0,1)==="d"?"display":"text"}var _r=function(t,r){var n,i,a=t.body.length,s=t.hLinesBeforeRow,o=0,u=new Array(a),l=[],h=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),c=1/r.fontMetrics().ptPerEm,d=5*c;if(t.colSeparationType&&t.colSeparationType==="small"){var f=r.havingStyle(me.SCRIPT).sizeMultiplier;d=.2778*(f/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?$e({number:3,unit:"ex"},r):12*c,y=3*c,T=t.arraystretch*g,x=.7*T,v=.3*T,k=0;function R(an){for(var jt=0;jt<an.length;++jt)jt>0&&(k+=.25),l.push({pos:k,isDashed:an[jt]})}for(R(s[0]),n=0;n<t.body.length;++n){var O=t.body[n],I=x,F=v;o<O.length&&(o=O.length);var G=new Array(O.length);for(i=0;i<O.length;++i){var Y=Ce(O[i],r);F<Y.depth&&(F=Y.depth),I<Y.height&&(I=Y.height),G[i]=Y}var B=t.rowGaps[n],X=0;B&&(X=$e(B,r),X>0&&(X+=v,F<X&&(F=X),X=0)),t.addJot&&(F+=y),G.height=I,G.depth=F,k+=I,G.pos=k,k+=F+X,u[n]=G,R(s[n+1])}var V=k/2+r.fontMetrics().axisHeight,ue=t.cols||[],Q=[],K,ce,ge=[];if(t.tags&&t.tags.some(an=>an))for(n=0;n<a;++n){var de=u[n],Ie=de.pos-V,P=t.tags[n],Fe=void 0;P===!0?Fe=z.makeSpan(["eqn-num"],[],r):P===!1?Fe=z.makeSpan([],[],r):Fe=z.makeSpan([],rt(P,r,!0),r),Fe.depth=de.depth,Fe.height=de.height,ge.push({type:"elem",elem:Fe,shift:Ie})}for(i=0,ce=0;i<o||ce<ue.length;++i,++ce){for(var He=ue[ce]||{},L=!0;He.type==="separator";){if(L||(K=z.makeSpan(["arraycolsep"],[]),K.style.width=ae(r.fontMetrics().doubleRuleSep),Q.push(K)),He.separator==="|"||He.separator===":"){var lt=He.separator==="|"?"solid":"dashed",ft=z.makeSpan(["vertical-separator"],[],r);ft.style.height=ae(k),ft.style.borderRightWidth=ae(h),ft.style.borderRightStyle=lt,ft.style.margin="0 "+ae(-h/2);var je=k-V;je&&(ft.style.verticalAlign=ae(-je)),Q.push(ft)}else throw new re("Invalid separator type: "+He.separator);ce++,He=ue[ce]||{},L=!1}if(!(i>=o)){var xt=void 0;(i>0||t.hskipBeforeAndAfter)&&(xt=_e.deflt(He.pregap,d),xt!==0&&(K=z.makeSpan(["arraycolsep"],[]),K.style.width=ae(xt),Q.push(K)));var it=[];for(n=0;n<a;++n){var At=u[n],Ct=At[i];if(Ct){var Rr=At.pos-V;Ct.depth=At.depth,Ct.height=At.height,it.push({type:"elem",elem:Ct,shift:Rr})}}it=z.makeVList({positionType:"individualShift",children:it},r),it=z.makeSpan(["col-align-"+(He.align||"c")],[it]),Q.push(it),(i<o-1||t.hskipBeforeAndAfter)&&(xt=_e.deflt(He.postgap,d),xt!==0&&(K=z.makeSpan(["arraycolsep"],[]),K.style.width=ae(xt),Q.push(K)))}}if(u=z.makeSpan(["mtable"],Q),l.length>0){for(var ei=z.makeLineSpan("hline",r,h),Pr=z.makeLineSpan("hdashline",r,h),rn=[{type:"elem",elem:u,shift:0}];l.length>0;){var _n=l.pop(),Nn=_n.pos-V;_n.isDashed?rn.push({type:"elem",elem:Pr,shift:Nn}):rn.push({type:"elem",elem:ei,shift:Nn})}u=z.makeVList({positionType:"individualShift",children:rn},r)}if(ge.length===0)return z.makeSpan(["mord"],[u],r);var nn=z.makeVList({positionType:"individualShift",children:ge},r);return nn=z.makeSpan(["tag"],[nn],r),z.makeFragment([u,nn])},v9={c:"center ",l:"left ",r:"right "},Nr=function(t,r){for(var n=[],i=new te.MathNode("mtd",[],["mtr-glue"]),a=new te.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],u=[],l=0;l<o.length;l++)u.push(new te.MathNode("mtd",[De(o[l],r)]));t.tags&&t.tags[s]&&(u.unshift(i),u.push(i),t.leqno?u.unshift(a):u.push(a)),n.push(new te.MathNode("mtr",u))}var h=new te.MathNode("mtable",n),c=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);h.setAttribute("rowspacing",ae(c));var d="",f="";if(t.cols&&t.cols.length>0){var g=t.cols,y="",T=!1,x=0,v=g.length;g[0].type==="separator"&&(d+="top ",x=1),g[g.length-1].type==="separator"&&(d+="bottom ",v-=1);for(var k=x;k<v;k++)g[k].type==="align"?(f+=v9[g[k].align],T&&(y+="none "),T=!0):g[k].type==="separator"&&T&&(y+=g[k].separator==="|"?"solid ":"dashed ",T=!1);h.setAttribute("columnalign",f.trim()),/[sd]/.test(y)&&h.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var R=t.cols||[],O="",I=1;I<R.length;I++)O+=I%2?"0em ":"1em ";h.setAttribute("columnspacing",O.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var F="",G=t.hLinesBeforeRow;d+=G[0].length>0?"left ":"",d+=G[G.length-1].length>0?"right ":"";for(var Y=1;Y<G.length-1;Y++)F+=G[Y].length===0?"none ":G[Y][0]?"dashed ":"solid ";return/[sd]/.test(F)&&h.setAttribute("rowlines",F.trim()),d!==""&&(h=new te.MathNode("menclose",[h]),h.setAttribute("notation",d.trim())),t.arraystretch&&t.arraystretch<1&&(h=new te.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Tp=function(t,r){t.envName.indexOf("ed")===-1&&Io(t);var n=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",s=Cn(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:$0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var h="",c=0;c<r[0].body.length;c++){var d=ve(r[0].body[c],"textord");h+=d.text}o=Number(h),u=o*2}var f=!u;s.body.forEach(function(x){for(var v=1;v<x.length;v+=2){var k=ve(x[v],"styling"),R=ve(k.body[0],"ordgroup");R.body.unshift(l)}if(f)u<x.length&&(u=x.length);else{var O=x.length/2;if(o<O)throw new re("Too many math in a row: "+("expected "+o+", but got "+O),x[0])}});for(var g=0;g<u;++g){var y="r",T=0;g%2===1?y="l":g>0&&f&&(T=1),n[g]={type:"align",align:y,pregap:T,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Cr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Co(t[0]),n=r?[t[0]]:ve(t[0],"ordgroup").body,i=n.map(function(s){var o=F0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new re("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Cn(e.parser,a,j0(e.envName))},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new re("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Cn(e.parser,n,j0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Cn(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Co(t[0]),n=r?[t[0]]:ve(t[0],"ordgroup").body,i=n.map(function(s){var o=F0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new re("Unknown column alignment: "+u,s)});if(i.length>1)throw new re("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Cn(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new re("{subarray} can contain only one column");return a},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Cn(e.parser,t,j0(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Tp,htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&Io(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Cn(e.parser,t,"display")},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Tp,htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Io(e);var t={autoTag:$0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Cn(e.parser,t,"display")},htmlBuilder:_r,mathmlBuilder:Nr});Cr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Io(e),o9(e.parser)},htmlBuilder:_r,mathmlBuilder:Nr});w("\\nonumber","\\gdef\\@eqnsw{0}");w("\\notag","\\nonumber");oe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new re(e.funcName+" valid only within array environment")}});var yd=Ep;oe({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new re("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=ve(i.body[s],"textord").text;if(n==="\\begin"){if(!yd.hasOwnProperty(a))throw new re("No such environment: "+a,i);var o=yd[a],{args:u,optArgs:l}=r.parseArguments("\\begin{"+a+"}",o),h={mode:r.mode,envName:a,parser:r},c=o.handler(h,u,l);r.expect("\\end",!1);var d=r.nextToken,f=ve(r.parseFunction(),"environment");if(f.name!==a)throw new re("Mismatch: \\begin{"+a+"} matched by \\end{"+f.name+"}",d);return c}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var wp=(e,t)=>{var r=e.font,n=t.withFont(r);return Ce(e.body,n)},kp=(e,t)=>{var r=e.font,n=t.withFont(r);return De(e.body,n)},xd={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};oe({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=zs(t[0]),a=n;return a in xd&&(a=xd[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:wp,mathmlBuilder:kp});oe({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],i=_e.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:_o(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}});oe({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:wp,mathmlBuilder:kp});var Sp=(e,t)=>{var r=t;return e==="display"?r=r.id>=me.SCRIPT.id?r.text():me.DISPLAY:e==="text"&&r.size===me.DISPLAY.size?r=me.TEXT:e==="script"?r=me.SCRIPT:e==="scriptscript"&&(r=me.SCRIPTSCRIPT),r},G0=(e,t)=>{var r=Sp(e.size,t.style),n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var s=Ce(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<u?u:s.depth}a=t.havingStyle(i);var l=Ce(e.denom,a,t),h,c,d;e.hasBarLine?(e.barSize?(c=$e(e.barSize,t),h=z.makeLineSpan("frac-line",t,c)):h=z.makeLineSpan("frac-line",t),c=h.height,d=h.height):(h=null,c=0,d=t.fontMetrics().defaultRuleThickness);var f,g,y;r.size===me.DISPLAY.size||e.size==="display"?(f=t.fontMetrics().num1,c>0?g=3*d:g=7*d,y=t.fontMetrics().denom1):(c>0?(f=t.fontMetrics().num2,g=d):(f=t.fontMetrics().num3,g=3*d),y=t.fontMetrics().denom2);var T;if(h){var v=t.fontMetrics().axisHeight;f-s.depth-(v+.5*c)<g&&(f+=g-(f-s.depth-(v+.5*c))),v-.5*c-(l.height-y)<g&&(y+=g-(v-.5*c-(l.height-y)));var k=-(v-.5*c);T=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:y},{type:"elem",elem:h,shift:k},{type:"elem",elem:s,shift:-f}]},t)}else{var x=f-s.depth-(l.height-y);x<g&&(f+=.5*(g-x),y+=.5*(g-x)),T=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:y},{type:"elem",elem:s,shift:-f}]},t)}a=t.havingStyle(r),T.height*=a.sizeMultiplier/t.sizeMultiplier,T.depth*=a.sizeMultiplier/t.sizeMultiplier;var R;r.size===me.DISPLAY.size?R=t.fontMetrics().delim1:r.size===me.SCRIPTSCRIPT.size?R=t.havingStyle(me.SCRIPT).fontMetrics().delim2:R=t.fontMetrics().delim2;var O,I;return e.leftDelim==null?O=Ta(t,["mopen"]):O=Gr.customSizedDelim(e.leftDelim,R,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?I=z.makeSpan([]):e.rightDelim==null?I=Ta(t,["mclose"]):I=Gr.customSizedDelim(e.rightDelim,R,!0,t.havingStyle(r),e.mode,["mclose"]),z.makeSpan(["mord"].concat(a.sizingClasses(t)),[O,z.makeSpan(["mfrac"],[T]),I],t)},V0=(e,t)=>{var r=new te.MathNode("mfrac",[De(e.numer,t),De(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=$e(e.barSize,t);r.setAttribute("linethickness",ae(n))}var i=Sp(e.size,t.style);if(i.size!==t.style.size){r=new te.MathNode("mstyle",[r]);var a=i.size===me.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new te.MathNode("mo",[new te.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),e.rightDelim!=null){var u=new te.MathNode("mo",[new te.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return O0(s)}return r};oe({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:G0,mathmlBuilder:V0});oe({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});oe({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Ed=["display","text","script","scriptscript"],vd=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};oe({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=zs(t[0]),s=a.type==="atom"&&a.family==="open"?vd(a.text):null,o=zs(t[1]),u=o.type==="atom"&&o.family==="close"?vd(o.text):null,l=ve(t[2],"size"),h,c=null;l.isBlank?h=!0:(c=l.value,h=c.number>0);var d="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var g=ve(f.body[0],"textord");d=Ed[Number(g.text)]}}else f=ve(f,"textord"),d=Ed[Number(f.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:h,barSize:c,leftDelim:s,rightDelim:u,size:d}},htmlBuilder:G0,mathmlBuilder:V0});oe({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ve(t[0],"size").value,token:i}}});oe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=Zx(ve(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:G0,mathmlBuilder:V0});var Ap=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?Ce(e.sup,t.havingStyle(r.sup()),t):Ce(e.sub,t.havingStyle(r.sub()),t),i=ve(e.base,"horizBrace")):i=ve(e,"horizBrace");var a=Ce(i.base,t.havingBaseStyle(me.DISPLAY)),s=Zr.svgSpan(i,t),o;if(i.isOver?(o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=z.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),n){var u=z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):o=z.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},T9=(e,t)=>{var r=Zr.mathMLnode(e.label);return new te.MathNode(e.isOver?"mover":"munder",[De(e.base,t),r])};oe({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Ap,mathmlBuilder:T9});oe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=ve(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Xe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=rt(e.body,t,!1);return z.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=wn(e.body,t);return r instanceof Ft||(r=new Ft("mrow",[r])),r.setAttribute("href",e.href),r}});oe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=ve(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Xe(o)}}});oe({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Xe(t[0])}},htmlBuilder(e,t){var r=rt(e.body,t,!1);return z.makeFragment(r)},mathmlBuilder(e,t){return new te.MathNode("mrow",Lt(e.body,t))}});oe({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=ve(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(n){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),h=0;h<l.length;h++){var c=l[h].split("=");if(c.length!==2)throw new re("Error parsing key-value for \\htmlData");u["data-"+c[0].trim()]=c[1].trim()}o={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:u,body:Xe(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=rt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=z.makeSpan(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>wn(e.body,t)});oe({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Xe(t[0]),mathml:Xe(t[1])}},htmlBuilder:(e,t)=>{var r=rt(e.html,t,!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>wn(e.mathml,t)});var Su=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new re("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!G1(n))throw new re("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};oe({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var u=ve(r[0],"raw").string,l=u.split(","),h=0;h<l.length;h++){var c=l[h].split("=");if(c.length===2){var d=c[1].trim();switch(c[0].trim()){case"alt":o=d;break;case"width":i=Su(d);break;case"height":a=Su(d);break;case"totalheight":s=Su(d);break;default:throw new re("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var f=ve(t[0],"url").url;return o===""&&(o=f,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:o,width:i,height:a,totalheight:s,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=$e(e.height,t),n=0;e.totalheight.number>0&&(n=$e(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=$e(e.width,t));var a={height:ae(r+n)};i>0&&(a.width=ae(i)),n>0&&(a.verticalAlign=ae(-n));var s=new TE(e.src,e.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new te.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=$e(e.height,t),i=0;if(e.totalheight.number>0&&(i=$e(e.totalheight,t)-n,r.setAttribute("valign",ae(-i))),r.setAttribute("height",ae(n+i)),e.width.number>0){var a=$e(e.width,t);r.setAttribute("width",ae(a))}return r.setAttribute("src",e.src),r}});oe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=ve(t[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=$e(e.dimension,t);return new te.SpaceNode(r)}});oe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=z.makeSpan([],[Ce(e.body,t)]),r=z.makeSpan(["inner"],[r],t)):r=z.makeSpan(["inner"],[Ce(e.body,t)]);var n=z.makeSpan(["fix"],[]),i=z.makeSpan([e.alignment],[r,n],t),a=z.makeSpan(["strut"]);return a.style.height=ae(i.height+i.depth),i.depth&&(a.style.verticalAlign=ae(-i.depth)),i.children.unshift(a),i=z.makeSpan(["thinbox"],[i],t),z.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new te.MathNode("mpadded",[De(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});oe({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});oe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new re("Mismatched "+e.funcName)}});var Td=(e,t)=>{switch(t.style.size){case me.DISPLAY.size:return e.display;case me.TEXT.size:return e.text;case me.SCRIPT.size:return e.script;case me.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};oe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Xe(t[0]),text:Xe(t[1]),script:Xe(t[2]),scriptscript:Xe(t[3])}},htmlBuilder:(e,t)=>{var r=Td(e,t),n=rt(r,t,!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Td(e,t);return wn(r,t)}});var Cp=(e,t,r,n,i,a,s)=>{e=z.makeSpan([],[e]);var o=r&&_e.isCharacterBox(r),u,l;if(t){var h=Ce(t,n.havingStyle(i.sup()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var c=Ce(r,n.havingStyle(i.sub()),n);u={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-c.height)}}var d;if(l&&u){var f=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;d=z.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ae(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ae(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var g=e.height-s;d=z.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ae(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},n)}else if(l){var y=e.depth+s;d=z.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ae(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var T=[d];if(u&&a!==0&&!o){var x=z.makeSpan(["mspace"],[],n);x.style.marginRight=ae(a),T.unshift(x)}return z.makeSpan(["mop","op-limits"],T,n)},_p=["\\smallint"],Ri=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=ve(e.base,"op"),i=!0):a=ve(e,"op");var s=t.style,o=!1;s.size===me.DISPLAY.size&&a.symbol&&!_p.includes(a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),u=z.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),h.length>0){var c=u.italic,d=z.staticSvg(h+"Size"+(o?"2":"1"),t);u=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:d,shift:o?.08:0}]},t),a.name="\\"+h,u.classes.unshift("mop"),u.italic=c}}else if(a.body){var f=rt(a.body,t,!0);f.length===1&&f[0]instanceof Zt?(u=f[0],u.classes[0]="mop"):u=z.makeSpan(["mop"],f,t)}else{for(var g=[],y=1;y<a.name.length;y++)g.push(z.mathsym(a.name[y],a.mode,t));u=z.makeSpan(["mop"],g,t)}var T=0,x=0;return(u instanceof Zt||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(T=(u.height-u.depth)/2-t.fontMetrics().axisHeight,x=u.italic),i?Cp(u,r,n,t,s,x,T):(T&&(u.style.position="relative",u.style.top=ae(T)),u)},Ua=(e,t)=>{var r;if(e.symbol)r=new Ft("mo",[Jt(e.name,e.mode)]),_p.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Ft("mo",Lt(e.body,t));else{r=new Ft("mi",[new Tr(e.name.slice(1))]);var n=new Ft("mo",[Jt("","text")]);e.parentIsSupSub?r=new Ft("mrow",[r,n]):r=rp([r,n])}return r},w9={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};oe({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=w9[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ri,mathmlBuilder:Ua});oe({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Xe(n)}},htmlBuilder:Ri,mathmlBuilder:Ua});var k9={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};oe({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Ri,mathmlBuilder:Ua});oe({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Ri,mathmlBuilder:Ua});oe({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=k9[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ri,mathmlBuilder:Ua});var Np=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=ve(e.base,"operatorname"),i=!0):a=ve(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(c=>{var d=c.text;return typeof d=="string"?{type:"textord",mode:c.mode,text:d}:c}),u=rt(o,t.withFont("mathrm"),!0),l=0;l<u.length;l++){var h=u[l];h instanceof Zt&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=z.makeSpan(["mop"],u,t)}else s=z.makeSpan(["mop"],[],t);return i?Cp(s,r,n,t,t.style,0,0):s},S9=(e,t)=>{for(var r=Lt(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof te.SpaceNode))if(a instanceof te.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof te.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(h=>h.toText()).join("");r=[new te.TextNode(o)]}var u=new te.MathNode("mi",r);u.setAttribute("mathvariant","normal");var l=new te.MathNode("mo",[Jt("","text")]);return e.parentIsSupSub?new te.MathNode("mrow",[u,l]):te.newDocumentFragment([u,l])};oe({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Xe(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Np,mathmlBuilder:S9});w("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Xn({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?z.makeFragment(rt(e.body,t,!1)):z.makeSpan(["mord"],rt(e.body,t,!0),t)},mathmlBuilder(e,t){return wn(e.body,t,!0)}});oe({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Ce(e.body,t.havingCrampedStyle()),n=z.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},t);return z.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new te.MathNode("mo",[new te.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new te.MathNode("mover",[De(e.body,t),r]);return n.setAttribute("accent","true"),n}});oe({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Xe(n)}},htmlBuilder:(e,t)=>{var r=rt(e.body,t.withPhantom(),!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=Lt(e.body,t);return new te.MathNode("mphantom",r)}});oe({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=z.makeSpan([],[Ce(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),z.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=Lt(Xe(e.body),t),n=new te.MathNode("mphantom",r),i=new te.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});oe({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=z.makeSpan(["inner"],[Ce(e.body,t.withPhantom())]),n=z.makeSpan(["fix"],[]);return z.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Lt(Xe(e.body),t),n=new te.MathNode("mphantom",r),i=new te.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i}});oe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=ve(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=Ce(e.body,t),n=$e(e.dy,t);return z.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new te.MathNode("mpadded",[De(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});oe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});oe({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=ve(t[0],"size"),s=ve(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&ve(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=z.makeSpan(["mord","rule"],[],t),n=$e(e.width,t),i=$e(e.height,t),a=e.shift?$e(e.shift,t):0;return r.style.borderRightWidth=ae(n),r.style.borderTopWidth=ae(i),r.style.bottom=ae(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=$e(e.width,t),n=$e(e.height,t),i=e.shift?$e(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new te.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",ae(r)),s.setAttribute("height",ae(n));var o=new te.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",ae(i)):(o.setAttribute("height",ae(i)),o.setAttribute("depth",ae(-i))),o.setAttribute("voffset",ae(i)),o}});function Ip(e,t,r){for(var n=rt(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var s=n[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[s+1]==="reset-size"+t.size&&(n[a].classes[s+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return z.makeFragment(n)}var wd=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],A9=(e,t)=>{var r=t.havingSize(e.size);return Ip(e.body,r,t)};oe({type:"sizing",names:wd,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:wd.indexOf(n)+1,body:a}},htmlBuilder:A9,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Lt(e.body,r),i=new te.MathNode("mstyle",n);return i.setAttribute("mathsize",ae(r.sizeMultiplier)),i}});oe({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,s=r[0]&&ve(r[0],"ordgroup");if(s)for(var o="",u=0;u<s.body.length;++u){var l=s.body[u];if(o=l.text,o==="t")i=!0;else if(o==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var h=t[0];return{type:"smash",mode:n.mode,body:h,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=z.makeSpan([],[Ce(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].depth=0;var a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return z.makeSpan(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var r=new te.MathNode("mpadded",[De(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});oe({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=Ce(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=z.wrapFragment(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<me.TEXT.id&&(a=t.fontMetrics().xHeight);var s=i+a/4,o=r.height+r.depth+s+i,{span:u,ruleWidth:l,advanceWidth:h}=Gr.sqrtImage(o,t),c=u.height-l;c>r.height+r.depth+s&&(s=(s+c-r.height-r.depth)/2);var d=u.height-r.height-s-l;r.style.paddingLeft=ae(h);var f=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var g=t.havingStyle(me.SCRIPTSCRIPT),y=Ce(e.index,g,t),T=.6*(f.height-f.depth),x=z.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:y}]},t),v=z.makeSpan(["root"],[x]);return z.makeSpan(["mord","sqrt"],[v,f],t)}else return z.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new te.MathNode("mroot",[De(r,t),De(n,t)]):new te.MathNode("msqrt",[De(r,t)])}});var kd={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT};oe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var r=kd[e.style],n=t.havingStyle(r).withFont("");return Ip(e.body,n,t)},mathmlBuilder(e,t){var r=kd[e.style],n=t.havingStyle(r),i=Lt(e.body,n),a=new te.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var C9=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===me.DISPLAY.size||n.alwaysHandleSupSub);return i?Ri:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===me.DISPLAY.size||n.limits);return a?Np:null}else{if(n.type==="accent")return _e.isCharacterBox(n.base)?H0:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?Ap:null}else return null}else return null};Xn({type:"supsub",htmlBuilder(e,t){var r=C9(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,s=Ce(n,t),o,u,l=t.fontMetrics(),h=0,c=0,d=n&&_e.isCharacterBox(n);if(i){var f=t.havingStyle(t.style.sup());o=Ce(i,f,t),d||(h=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());u=Ce(a,g,t),d||(c=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===me.DISPLAY?y=l.sup1:t.style.cramped?y=l.sup3:y=l.sup2;var T=t.sizeMultiplier,x=ae(.5/l.ptPerEm/T),v=null;if(u){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Zt||k)&&(v=ae(-s.italic))}var R;if(o&&u){h=Math.max(h,y,o.depth+.25*l.xHeight),c=Math.max(c,l.sub2);var O=l.defaultRuleThickness,I=4*O;if(h-o.depth-(u.height-c)<I){c=I-(h-o.depth)+u.height;var F=.8*l.xHeight-(h-o.depth);F>0&&(h+=F,c-=F)}var G=[{type:"elem",elem:u,shift:c,marginRight:x,marginLeft:v},{type:"elem",elem:o,shift:-h,marginRight:x}];R=z.makeVList({positionType:"individualShift",children:G},t)}else if(u){c=Math.max(c,l.sub1,u.height-.8*l.xHeight);var Y=[{type:"elem",elem:u,marginLeft:v,marginRight:x}];R=z.makeVList({positionType:"shift",positionData:c,children:Y},t)}else if(o)h=Math.max(h,y,o.depth+.25*l.xHeight),R=z.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:x}]},t);else throw new Error("supsub must have either sup or sub.");var B=vl(s,"right")||"mord";return z.makeSpan([B],[s,z.makeSpan(["msupsub"],[R])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[De(e.base,t)];e.sub&&a.push(De(e.sub,t)),e.sup&&a.push(De(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===me.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===me.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===me.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===me.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===me.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===me.DISPLAY)?s="mover":s="msup"}return new te.MathNode(s,a)}});Xn({type:"atom",htmlBuilder(e,t){return z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new te.MathNode("mo",[Jt(e.text,e.mode)]);if(e.family==="bin"){var n=B0(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Rp={mi:"italic",mn:"normal",mtext:"normal"};Xn({type:"mathord",htmlBuilder(e,t){return z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new te.MathNode("mi",[Jt(e.text,e.mode,t)]),n=B0(e,t)||"italic";return n!==Rp[r.type]&&r.setAttribute("mathvariant",n),r}});Xn({type:"textord",htmlBuilder(e,t){return z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=Jt(e.text,e.mode,t),n=B0(e,t)||"normal",i;return e.mode==="text"?i=new te.MathNode("mtext",[r]):/[0-9]/.test(e.text)?i=new te.MathNode("mn",[r]):e.text==="\\prime"?i=new te.MathNode("mo",[r]):i=new te.MathNode("mi",[r]),n!==Rp[i.type]&&i.setAttribute("mathvariant",n),i}});var Au={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Cu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Xn({type:"spacing",htmlBuilder(e,t){if(Cu.hasOwnProperty(e.text)){var r=Cu[e.text].className||"";if(e.mode==="text"){var n=z.makeOrd(e,t,"textord");return n.classes.push(r),n}else return z.makeSpan(["mspace",r],[z.mathsym(e.text,e.mode,t)],t)}else{if(Au.hasOwnProperty(e.text))return z.makeSpan(["mspace",Au[e.text]],[],t);throw new re('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Cu.hasOwnProperty(e.text))r=new te.MathNode("mtext",[new te.TextNode(" ")]);else{if(Au.hasOwnProperty(e.text))return new te.MathNode("mspace");throw new re('Unknown type of space "'+e.text+'"')}return r}});var Sd=()=>{var e=new te.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Xn({type:"tag",mathmlBuilder(e,t){var r=new te.MathNode("mtable",[new te.MathNode("mtr",[Sd(),new te.MathNode("mtd",[wn(e.body,t)]),Sd(),new te.MathNode("mtd",[wn(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Ad={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Cd={"\\textbf":"textbf","\\textmd":"textmd"},_9={"\\textit":"textit","\\textup":"textup"},_d=(e,t)=>{var r=e.font;if(r){if(Ad[r])return t.withTextFontFamily(Ad[r]);if(Cd[r])return t.withTextFontWeight(Cd[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(_9[r])};oe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:Xe(i),font:n}},htmlBuilder(e,t){var r=_d(e,t),n=rt(e.body,r,!0);return z.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=_d(e,t);return wn(e.body,r)}});oe({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ce(e.body,t),n=z.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return z.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new te.MathNode("mo",[new te.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new te.MathNode("munder",[De(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});oe({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ce(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new te.MathNode("mpadded",[De(e.body,t)],["vcenter"])}});oe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new re("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Nd(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),n.push(z.makeSymbol(s,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return z.makeSpan(["mord","text"].concat(i.sizingClasses(t)),z.tryCombineChars(n),i)},mathmlBuilder(e,t){var r=new te.TextNode(Nd(e)),n=new te.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Nd=e=>e.body.replace(/ /g,e.star?"␣":" "),pn=ep,Pp=`[ \r
|
|
275
|
+
]`,N9="\\\\[a-zA-Z@]+",I9="\\\\[^\uD800-\uDFFF]",R9="("+N9+")"+Pp+"*",P9=`\\\\(
|
|
276
|
+
|[ \r ]+
|
|
277
|
+
?)[ \r ]*`,Sl="[̀-ͯ]",L9=new RegExp(Sl+"+$"),D9="("+Pp+"+)|"+(P9+"|")+"([!-\\[\\]-‧-豈-]"+(Sl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Sl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+R9)+("|"+I9+")");class Id{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(D9,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new zt("EOF",new Rt(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new re("Unexpected character: '"+t[r]+"'",new zt(t[r],new Rt(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
278
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new zt(i,new Rt(this,r,this.tokenRegex.lastIndex))}}class M9{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new re("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var O9=vp;w("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});w("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});w("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});w("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});w("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});w("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");w("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Rd={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};w("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new re("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Rd[t.text],n==null||n>=r)throw new re("Invalid base-"+r+" digit "+t.text);for(var i;(i=Rd[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var W0=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new re("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new re("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new re("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new re("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:o}),""};w("\\newcommand",e=>W0(e,!1,!0,!1));w("\\renewcommand",e=>W0(e,!0,!1,!1));w("\\providecommand",e=>W0(e,!0,!0,!0));w("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});w("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});w("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),pn[r],Be.math[r],Be.text[r]),""});w("\\bgroup","{");w("\\egroup","}");w("~","\\nobreakspace");w("\\lq","`");w("\\rq","'");w("\\aa","\\r a");w("\\AA","\\r A");w("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");w("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");w("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");w("ℬ","\\mathscr{B}");w("ℰ","\\mathscr{E}");w("ℱ","\\mathscr{F}");w("ℋ","\\mathscr{H}");w("ℐ","\\mathscr{I}");w("ℒ","\\mathscr{L}");w("ℳ","\\mathscr{M}");w("ℛ","\\mathscr{R}");w("ℭ","\\mathfrak{C}");w("ℌ","\\mathfrak{H}");w("ℨ","\\mathfrak{Z}");w("\\Bbbk","\\Bbb{k}");w("·","\\cdotp");w("\\llap","\\mathllap{\\textrm{#1}}");w("\\rlap","\\mathrlap{\\textrm{#1}}");w("\\clap","\\mathclap{\\textrm{#1}}");w("\\mathstrut","\\vphantom{(}");w("\\underbar","\\underline{\\text{#1}}");w("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');w("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");w("\\ne","\\neq");w("≠","\\neq");w("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");w("∉","\\notin");w("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");w("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");w("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");w("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");w("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");w("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");w("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");w("⟂","\\perp");w("‼","\\mathclose{!\\mkern-0.8mu!}");w("∌","\\notni");w("⌜","\\ulcorner");w("⌝","\\urcorner");w("⌞","\\llcorner");w("⌟","\\lrcorner");w("©","\\copyright");w("®","\\textregistered");w("️","\\textregistered");w("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');w("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');w("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');w("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');w("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");w("⋮","\\vdots");w("\\varGamma","\\mathit{\\Gamma}");w("\\varDelta","\\mathit{\\Delta}");w("\\varTheta","\\mathit{\\Theta}");w("\\varLambda","\\mathit{\\Lambda}");w("\\varXi","\\mathit{\\Xi}");w("\\varPi","\\mathit{\\Pi}");w("\\varSigma","\\mathit{\\Sigma}");w("\\varUpsilon","\\mathit{\\Upsilon}");w("\\varPhi","\\mathit{\\Phi}");w("\\varPsi","\\mathit{\\Psi}");w("\\varOmega","\\mathit{\\Omega}");w("\\substack","\\begin{subarray}{c}#1\\end{subarray}");w("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");w("\\boxed","\\fbox{$\\displaystyle{#1}$}");w("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");w("\\implies","\\DOTSB\\;\\Longrightarrow\\;");w("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");w("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");w("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Pd={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};w("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Pd?t=Pd[r]:(r.slice(0,4)==="\\not"||r in Be.math&&["bin","rel"].includes(Be.math[r].group))&&(t="\\dotsb"),t});var Y0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};w("\\dotso",function(e){var t=e.future().text;return t in Y0?"\\ldots\\,":"\\ldots"});w("\\dotsc",function(e){var t=e.future().text;return t in Y0&&t!==","?"\\ldots\\,":"\\ldots"});w("\\cdots",function(e){var t=e.future().text;return t in Y0?"\\@cdots\\,":"\\@cdots"});w("\\dotsb","\\cdots");w("\\dotsm","\\cdots");w("\\dotsi","\\!\\cdots");w("\\dotsx","\\ldots\\,");w("\\DOTSI","\\relax");w("\\DOTSB","\\relax");w("\\DOTSX","\\relax");w("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");w("\\,","\\tmspace+{3mu}{.1667em}");w("\\thinspace","\\,");w("\\>","\\mskip{4mu}");w("\\:","\\tmspace+{4mu}{.2222em}");w("\\medspace","\\:");w("\\;","\\tmspace+{5mu}{.2777em}");w("\\thickspace","\\;");w("\\!","\\tmspace-{3mu}{.1667em}");w("\\negthinspace","\\!");w("\\negmedspace","\\tmspace-{4mu}{.2222em}");w("\\negthickspace","\\tmspace-{5mu}{.277em}");w("\\enspace","\\kern.5em ");w("\\enskip","\\hskip.5em\\relax");w("\\quad","\\hskip1em\\relax");w("\\qquad","\\hskip2em\\relax");w("\\tag","\\@ifstar\\tag@literal\\tag@paren");w("\\tag@paren","\\tag@literal{({#1})}");w("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new re("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});w("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");w("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");w("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");w("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");w("\\newline","\\\\\\relax");w("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Lp=ae(vr["Main-Regular"][84][1]-.7*vr["Main-Regular"][65][1]);w("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Lp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");w("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Lp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");w("\\hspace","\\@ifstar\\@hspacer\\@hspace");w("\\@hspace","\\hskip #1\\relax");w("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");w("\\ordinarycolon",":");w("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");w("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');w("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');w("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');w("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');w("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');w("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');w("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');w("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');w("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');w("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');w("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');w("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');w("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');w("∷","\\dblcolon");w("∹","\\eqcolon");w("≔","\\coloneqq");w("≕","\\eqqcolon");w("⩴","\\Coloneqq");w("\\ratio","\\vcentcolon");w("\\coloncolon","\\dblcolon");w("\\colonequals","\\coloneqq");w("\\coloncolonequals","\\Coloneqq");w("\\equalscolon","\\eqqcolon");w("\\equalscoloncolon","\\Eqqcolon");w("\\colonminus","\\coloneq");w("\\coloncolonminus","\\Coloneq");w("\\minuscolon","\\eqcolon");w("\\minuscoloncolon","\\Eqcolon");w("\\coloncolonapprox","\\Colonapprox");w("\\coloncolonsim","\\Colonsim");w("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");w("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");w("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");w("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");w("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");w("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");w("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");w("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");w("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");w("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");w("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");w("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");w("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");w("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");w("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");w("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");w("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");w("\\nleqq","\\html@mathml{\\@nleqq}{≰}");w("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");w("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");w("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");w("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");w("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");w("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");w("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");w("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");w("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");w("\\imath","\\html@mathml{\\@imath}{ı}");w("\\jmath","\\html@mathml{\\@jmath}{ȷ}");w("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");w("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");w("⟦","\\llbracket");w("⟧","\\rrbracket");w("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");w("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");w("⦃","\\lBrace");w("⦄","\\rBrace");w("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");w("⦵","\\minuso");w("\\darr","\\downarrow");w("\\dArr","\\Downarrow");w("\\Darr","\\Downarrow");w("\\lang","\\langle");w("\\rang","\\rangle");w("\\uarr","\\uparrow");w("\\uArr","\\Uparrow");w("\\Uarr","\\Uparrow");w("\\N","\\mathbb{N}");w("\\R","\\mathbb{R}");w("\\Z","\\mathbb{Z}");w("\\alef","\\aleph");w("\\alefsym","\\aleph");w("\\Alpha","\\mathrm{A}");w("\\Beta","\\mathrm{B}");w("\\bull","\\bullet");w("\\Chi","\\mathrm{X}");w("\\clubs","\\clubsuit");w("\\cnums","\\mathbb{C}");w("\\Complex","\\mathbb{C}");w("\\Dagger","\\ddagger");w("\\diamonds","\\diamondsuit");w("\\empty","\\emptyset");w("\\Epsilon","\\mathrm{E}");w("\\Eta","\\mathrm{H}");w("\\exist","\\exists");w("\\harr","\\leftrightarrow");w("\\hArr","\\Leftrightarrow");w("\\Harr","\\Leftrightarrow");w("\\hearts","\\heartsuit");w("\\image","\\Im");w("\\infin","\\infty");w("\\Iota","\\mathrm{I}");w("\\isin","\\in");w("\\Kappa","\\mathrm{K}");w("\\larr","\\leftarrow");w("\\lArr","\\Leftarrow");w("\\Larr","\\Leftarrow");w("\\lrarr","\\leftrightarrow");w("\\lrArr","\\Leftrightarrow");w("\\Lrarr","\\Leftrightarrow");w("\\Mu","\\mathrm{M}");w("\\natnums","\\mathbb{N}");w("\\Nu","\\mathrm{N}");w("\\Omicron","\\mathrm{O}");w("\\plusmn","\\pm");w("\\rarr","\\rightarrow");w("\\rArr","\\Rightarrow");w("\\Rarr","\\Rightarrow");w("\\real","\\Re");w("\\reals","\\mathbb{R}");w("\\Reals","\\mathbb{R}");w("\\Rho","\\mathrm{P}");w("\\sdot","\\cdot");w("\\sect","\\S");w("\\spades","\\spadesuit");w("\\sub","\\subset");w("\\sube","\\subseteq");w("\\supe","\\supseteq");w("\\Tau","\\mathrm{T}");w("\\thetasym","\\vartheta");w("\\weierp","\\wp");w("\\Zeta","\\mathrm{Z}");w("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");w("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");w("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");w("\\bra","\\mathinner{\\langle{#1}|}");w("\\ket","\\mathinner{|{#1}\\rangle}");w("\\braket","\\mathinner{\\langle{#1}\\rangle}");w("\\Bra","\\left\\langle#1\\right|");w("\\Ket","\\left|#1\\right\\rangle");var Dp=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=c=>d=>{e&&(d.macros.set("|",s),i.length&&d.macros.set("\\|",o));var f=c;if(!c&&i.length){var g=d.future();g.text==="|"&&(d.popToken(),f=!0)}return{tokens:f?i:n,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,h=t.expandTokens([...a,...l,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};w("\\bra@ket",Dp(!1));w("\\bra@set",Dp(!0));w("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");w("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");w("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");w("\\angln","{\\angl n}");w("\\blue","\\textcolor{##6495ed}{#1}");w("\\orange","\\textcolor{##ffa500}{#1}");w("\\pink","\\textcolor{##ff00af}{#1}");w("\\red","\\textcolor{##df0030}{#1}");w("\\green","\\textcolor{##28ae7b}{#1}");w("\\gray","\\textcolor{gray}{#1}");w("\\purple","\\textcolor{##9d38bd}{#1}");w("\\blueA","\\textcolor{##ccfaff}{#1}");w("\\blueB","\\textcolor{##80f6ff}{#1}");w("\\blueC","\\textcolor{##63d9ea}{#1}");w("\\blueD","\\textcolor{##11accd}{#1}");w("\\blueE","\\textcolor{##0c7f99}{#1}");w("\\tealA","\\textcolor{##94fff5}{#1}");w("\\tealB","\\textcolor{##26edd5}{#1}");w("\\tealC","\\textcolor{##01d1c1}{#1}");w("\\tealD","\\textcolor{##01a995}{#1}");w("\\tealE","\\textcolor{##208170}{#1}");w("\\greenA","\\textcolor{##b6ffb0}{#1}");w("\\greenB","\\textcolor{##8af281}{#1}");w("\\greenC","\\textcolor{##74cf70}{#1}");w("\\greenD","\\textcolor{##1fab54}{#1}");w("\\greenE","\\textcolor{##0d923f}{#1}");w("\\goldA","\\textcolor{##ffd0a9}{#1}");w("\\goldB","\\textcolor{##ffbb71}{#1}");w("\\goldC","\\textcolor{##ff9c39}{#1}");w("\\goldD","\\textcolor{##e07d10}{#1}");w("\\goldE","\\textcolor{##a75a05}{#1}");w("\\redA","\\textcolor{##fca9a9}{#1}");w("\\redB","\\textcolor{##ff8482}{#1}");w("\\redC","\\textcolor{##f9685d}{#1}");w("\\redD","\\textcolor{##e84d39}{#1}");w("\\redE","\\textcolor{##bc2612}{#1}");w("\\maroonA","\\textcolor{##ffbde0}{#1}");w("\\maroonB","\\textcolor{##ff92c6}{#1}");w("\\maroonC","\\textcolor{##ed5fa6}{#1}");w("\\maroonD","\\textcolor{##ca337c}{#1}");w("\\maroonE","\\textcolor{##9e034e}{#1}");w("\\purpleA","\\textcolor{##ddd7ff}{#1}");w("\\purpleB","\\textcolor{##c6b9fc}{#1}");w("\\purpleC","\\textcolor{##aa87ff}{#1}");w("\\purpleD","\\textcolor{##7854ab}{#1}");w("\\purpleE","\\textcolor{##543b78}{#1}");w("\\mintA","\\textcolor{##f5f9e8}{#1}");w("\\mintB","\\textcolor{##edf2df}{#1}");w("\\mintC","\\textcolor{##e0e5cc}{#1}");w("\\grayA","\\textcolor{##f6f7f7}{#1}");w("\\grayB","\\textcolor{##f0f1f2}{#1}");w("\\grayC","\\textcolor{##e3e5e6}{#1}");w("\\grayD","\\textcolor{##d6d8da}{#1}");w("\\grayE","\\textcolor{##babec2}{#1}");w("\\grayF","\\textcolor{##888d93}{#1}");w("\\grayG","\\textcolor{##626569}{#1}");w("\\grayH","\\textcolor{##3b3e40}{#1}");w("\\grayI","\\textcolor{##21242c}{#1}");w("\\kaBlue","\\textcolor{##314453}{#1}");w("\\kaGreen","\\textcolor{##71B307}{#1}");var Mp={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class B9{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new M9(O9,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Id(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new zt("EOF",n.loc)),this.pushTokens(i),new zt("",Rt.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new re("Extra }",a)}else if(a.text==="EOF")throw new re("Unexpected end of input in a macro argument, expected '"+(t&&n?t[o]:"}")+"'",a);if(t&&n)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new re("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new re("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new re("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new re("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new re("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new re("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new zt(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Id(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var h={tokens:u,numArgs:a};return h}return i}isDefined(t){return this.macros.has(t)||pn.hasOwnProperty(t)||Be.math.hasOwnProperty(t)||Be.text.hasOwnProperty(t)||Mp.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:pn.hasOwnProperty(t)&&!pn[t].primitive}}var Ld=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,os=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),_u={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Dd={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Op=class Bp{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new B9(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new re("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new zt("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Bp.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||t&&pn[i.text]&&pn[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++)if(t[i].type==="infix"){if(r!==-1)throw new re("only one infix operator per group",t[i].token);r=i,n=t[i].replaceWith}if(r!==-1&&n){var a,s,o=t.slice(0,r),u=t.slice(r+1);o.length===1&&o[0].type==="ordgroup"?a=o[0]:a={type:"ordgroup",mode:this.mode,body:o},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var l;return n==="\\\\abovefrac"?l=this.callFunction(n,[a,t[r],s],[]):l=this.callFunction(n,[a,s],[]),[l]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new re("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new re("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new re("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new re("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new re("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},u=[o];for(this.consume();this.fetch().text==="'";)u.push(o),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:u}}else if(os[a.text]){var l=Ld.test(a.text),h=[];for(h.push(new zt(os[a.text])),this.consume();;){var c=this.fetch().text;if(!os[c]||Ld.test(c)!==l)break;h.unshift(new zt(os[c])),this.consume()}var d=this.subparse(h);l?i={type:"ordgroup",mode:"math",body:d}:n={type:"ordgroup",mode:"math",body:d}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=pn[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new re("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new re("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new re("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(i,a);return this.callFunction(i,s,o,n,t)}callFunction(t,r,n,i,a){var s={funcName:t,parser:this,token:i,breakOnTokenText:a},o=pn[t];if(o&&o.handler)return o.handler(s,r,n);throw new re("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],u=s<r.numOptionalArgs;(r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var l=this.parseGroupOfType("argument to '"+t+"'",o,u);if(u)a.push(l);else if(l!=null)i.push(l);else throw new re("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new re("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new re("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new re("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new re("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new re("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new re("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!G1(a))throw new re("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),u=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:Rt.range(n,u),body:o,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!Mp.hasOwnProperty(i)){if(this.settings.throwOnError)throw new re("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n],a=i.text;a==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:Rt.range(i,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:Rt.range(i,t[n+1]),text:"--"}),r-=1)),(a==="'"||a==="`")&&t[n+1].text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:Rt.range(i,t[n+1]),text:a+a}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new re(`\\verb assertion failed --
|
|
279
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Dd.hasOwnProperty(r[0])&&!Be[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Dd[r[0]]+r.slice(1));var a=L9.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Be[this.mode][r]){this.settings.strict&&this.mode==="math"&&El.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=Be[this.mode][r].group,u=Rt.range(t),l;if(SE.hasOwnProperty(o)){var h=o;l={type:"atom",mode:this.mode,family:h,loc:u,text:r}}else l={type:o,mode:this.mode,loc:u,text:r};s=l}else if(r.charCodeAt(0)>=128)this.settings.strict&&($1(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Rt.range(t),text:r};else return null;if(this.consume(),a)for(var c=0;c<a[0].length;c++){var d=a[0][c];if(!_u[d])throw new re("Unknown accent ' "+d+"'",t);var f=_u[d][this.mode]||_u[d].text;if(!f)throw new re("Accent "+d+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:Rt.range(t),label:f,isStretchy:!1,isShifty:!0,base:s}}return s}};Op.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var X0=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Op(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new re("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new zt("\\df@tag")])}]}return i},Q0=function(t,r,n){r.textContent="";var i=Ro(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Q0=function(){throw new re("KaTeX doesn't work in quirks mode.")});var Fp=function(t,r){var n=Ro(t,r).toMarkup();return n},Hp=function(t,r){var n=new R0(r);return X0(t,n)},zp=function(t,r,n){if(n.throwOnError||!(t instanceof re))throw t;var i=z.makeSpan(["katex-error"],[new Zt(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},Ro=function(t,r){var n=new R0(r);try{var i=X0(t,n);return YE(i,t,n)}catch(a){return zp(a,t,n)}},Up=function(t,r){var n=new R0(r);try{var i=X0(t,n);return XE(i,t,n)}catch(a){return zp(a,t,n)}},qp="0.16.25",$p={Span:za,Anchor:D0,SymbolNode:Zt,SvgNode:Qr,PathNode:Tn,LineNode:xl},Al={version:qp,render:Q0,renderToString:Fp,ParseError:re,SETTINGS_SCHEMA:sa,__parse:Hp,__renderToDomTree:Ro,__renderToHTMLTree:Up,__setFontMetrics:j1,__defineSymbol:p,__defineFunction:oe,__defineMacro:w,__domTree:$p};const F9=Object.freeze(Object.defineProperty({__proto__:null,ParseError:re,SETTINGS_SCHEMA:sa,__defineFunction:oe,__defineMacro:w,__defineSymbol:p,__domTree:$p,__parse:Hp,__renderToDomTree:Ro,__renderToHTMLTree:Up,__setFontMetrics:j1,default:Al,get render(){return Q0},renderToString:Fp,version:qp},Symbol.toStringTag,{value:"Module"})),H9={},z9=[];function Cl(e){const t=e||H9;return function(r,n){_0(r,"element",function(i,a){const s=Array.isArray(i.properties.className)?i.properties.className:z9,o=s.includes("language-math"),u=s.includes("math-display"),l=s.includes("math-inline");let h=u;if(!o&&!u&&!l)return;let c=a[a.length-1],d=i;if(i.tagName==="code"&&o&&c&&c.type==="element"&&c.tagName==="pre"&&(d=c,c=a[a.length-2],h=!0),!c)return;const f=Fx(d,{whitespace:"pre"});let g;try{g=Al.renderToString(f,{...t,displayMode:h,throwOnError:!0})}catch(T){const x=T,v=x.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:x,place:i.position,ruleId:v,source:"rehype-katex"});try{g=Al.renderToString(f,{...t,displayMode:h,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(T)},children:[{type:"text",value:f}]}]}}typeof g=="string"&&(g=Ix(g).children);const y=c.children.indexOf(d);return c.children.splice(y,1,...g),Ms})}}function U9(e){const t=String(e),r=[];return{toOffset:i,toPoint:n};function n(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const u=Md(t,r[s-1]);o=u===-1?t.length+1:u+1,r[s]=o}if(o>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const o=r[r.length-1],u=Md(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;r.push(l)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function Md(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
|
|
280
|
+
`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const jp={}.hasOwnProperty,q9=Object.prototype;function $9(e,t){const r=t;return K0({file:r.file||void 0,location:!1,schema:r.space==="svg"?Sn:Ma,verbose:r.verbose||!1},e)}function K0(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Ts(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:Gp(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=U9(a),o=s.toPoint(0),u=s.toPoint(a.length);r.position={start:o,end:u}}return r}case"#documentType":{const n=t;return r={type:"doctype"},Ts(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},Ts(e,n,r),r}default:return r=j9(e,t),r}}function Gp(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=K0(e,t[r]);n.push(i)}return n}function j9(e,t){const r=e.schema;e.schema=t.namespaceURI===Er.svg?Sn:Ma;let n=-1;const i={};for(;++n<t.attrs.length;){const o=t.attrs[n],u=(o.prefix?o.prefix+":":"")+o.name;jp.call(q9,u)||(i[u]=o.value)}const s=(e.schema.space==="svg"?M1:D1)(t.tagName,i,Gp(e,t.childNodes));if(Ts(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&li(u.startTag),h=u&&u.endTag&&li(u.endTag),c=K0(e,o.content);l&&h&&e.file&&(c.position={start:l.end,end:h.start}),s.content=c}return e.schema=r,s}function Ts(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=G9(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function G9(e,t,r){const n=li(r);if(t.type==="element"){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)jp.call(r.attrs,s)&&(a[Eo(e.schema,s).property]=li(r.attrs[s]));r.startTag;const o=li(r.startTag),u=r.endTag?li(r.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=a,t.data={position:l}}}return n}function li(e){const t=Od({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Od({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Od(e){return e.line&&e.column?e:void 0}class qa{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}qa.prototype.property={};qa.prototype.normal={};qa.prototype.space=null;function Vp(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new qa(r,n,t)}function _l(e){return e.toLowerCase()}class er{constructor(t,r){this.property=t,this.attribute=r}}er.prototype.space=null;er.prototype.boolean=!1;er.prototype.booleanish=!1;er.prototype.overloadedBoolean=!1;er.prototype.number=!1;er.prototype.commaSeparated=!1;er.prototype.spaceSeparated=!1;er.prototype.commaOrSpaceSeparated=!1;er.prototype.mustUseProperty=!1;er.prototype.defined=!1;let V9=0;const xe=Qn(),Ke=Qn(),Wp=Qn(),ie=Qn(),Oe=Qn(),mi=Qn(),Ot=Qn();function Qn(){return 2**++V9}const Nl=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:Ke,commaOrSpaceSeparated:Ot,commaSeparated:mi,number:ie,overloadedBoolean:Wp,spaceSeparated:Oe},Symbol.toStringTag,{value:"Module"})),Nu=Object.keys(Nl);class Z0 extends er{constructor(t,r,n,i){let a=-1;if(super(t,r),Bd(this,"space",i),typeof n=="number")for(;++a<Nu.length;){const s=Nu[a];Bd(this,Nu[a],(n&Nl[s])===Nl[s])}}}Z0.prototype.defined=!0;function Bd(e,t,r){r&&(e[t]=r)}const W9={}.hasOwnProperty;function Pi(e){const t={},r={};let n;for(n in e.properties)if(W9.call(e.properties,n)){const i=e.properties[n],a=new Z0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[_l(n)]=n,r[_l(a.attribute)]=n}return new qa(t,r,e.space)}const Yp=Pi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Xp=Pi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Qp(e,t){return t in e?e[t]:t}function Kp(e,t){return Qp(e,t.toLowerCase())}const Zp=Pi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Kp,properties:{xmlns:null,xmlnsXLink:null}}),Jp=Pi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ke,ariaAutoComplete:null,ariaBusy:Ke,ariaChecked:Ke,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:Ke,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:Ke,ariaFlowTo:Oe,ariaGrabbed:Ke,ariaHasPopup:null,ariaHidden:Ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:ie,ariaLive:null,ariaModal:Ke,ariaMultiLine:Ke,ariaMultiSelectable:Ke,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Ke,ariaReadOnly:Ke,ariaRelevant:null,ariaRequired:Ke,ariaRoleDescription:Oe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Ke,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null}}),Y9=Pi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Kp,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mi,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Oe,autoFocus:xe,autoPlay:xe,blocking:Oe,capture:null,charSet:null,checked:xe,cite:null,className:Oe,cols:ie,colSpan:null,content:null,contentEditable:Ke,controls:xe,controlsList:Oe,coords:ie|mi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:Wp,draggable:Ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Oe,height:ie,hidden:xe,high:ie,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:xe,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,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:xe,optimum:ie,pattern:null,ping:Oe,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Oe,required:xe,reversed:xe,rows:ie,rowSpan:ie,sandbox:Oe,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:Ke,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Ke,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:ie,security:null,unselectable:null}}),X9=Pi({space:"svg",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"},transform:Qp,properties:{about:Ot,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Oe,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:mi,g2:mi,glyphName:mi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ot,rev:Ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ot,requiredFeatures:Ot,requiredFonts:Ot,requiredFormats:Ot,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ot,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Q9=/^data[-\w.:]+$/i,Fd=/-[a-z]/g,K9=/[A-Z]/g;function Z9(e,t){const r=_l(t);let n=t,i=er;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Q9.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Fd,ev);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Fd.test(a)){let s=a.replace(K9,J9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Z0}return new i(n,t)}function J9(e){return"-"+e.toLowerCase()}function ev(e){return e.charAt(1).toUpperCase()}const tv=Vp([Xp,Yp,Zp,Jp,Y9],"html"),eg=Vp([Xp,Yp,Zp,Jp,X9],"svg"),Hd={}.hasOwnProperty;function J0(e,t){const r=t||{};function n(i,...a){let s=n.invalid;const o=n.handlers;if(i&&Hd.call(i,e)){const u=String(i[e]);s=Hd.call(o,u)?o[u]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const rv={}.hasOwnProperty,tg=J0("type",{handlers:{root:iv,element:lv,text:ov,comment:uv,doctype:sv}});function nv(e,t){const n=t.space;return tg(e,n==="svg"?eg:tv)}function iv(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=ec(e.children,r,t),Li(e,r),r}function av(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=ec(e.children,r,t),Li(e,r),r}function sv(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Li(e,t),t}function ov(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Li(e,t),t}function uv(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Li(e,t),t}function lv(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=eg);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&rv.call(e.properties,a)){const u=cv(n,a,e.properties[a]);u&&i.push(u)}}const s=n.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Er[s],childNodes:[],parentNode:null};return o.childNodes=ec(e.children,o,n),Li(e,o),e.tagName==="template"&&e.content&&(o.content=av(e.content,n)),o}function cv(e,t,r){const n=Z9(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?p0(r):b0(r));const i={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=n.attribute.slice(0,a)),i.namespace=Er[n.space]}return i}function ec(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=tg(e[n],r);a.parentNode=t,i.push(a)}return i}function Li(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const rg=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],hv=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]),ze="�";var S;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));const _t={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ng(e){return e>=55296&&e<=57343}function dv(e){return e>=56320&&e<=57343}function fv(e,t){return(e-55296)*1024+9216+t}function ig(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ag(e){return e>=64976&&e<=65007||hv.has(e)}var $;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})($||($={}));const mv=65536;class pv{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=mv,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(t,r){const{line:n,col:i,offset:a}=this,s=i+r,o=a+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(dv(r))return this.pos++,this._addGap(),fv(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,S.EOF;return this._err($.surrogateInInputStream),t}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(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,S.EOF;const n=this.html.charCodeAt(r);return n===S.CARRIAGE_RETURN?S.LINE_FEED:n}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,S.EOF;let t=this.html.charCodeAt(this.pos);return t===S.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,S.LINE_FEED):t===S.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ng(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===S.LINE_FEED||t===S.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ig(t)?this._err($.controlCharacterInInputStream):ag(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Te;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Te||(Te={}));function sg(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const og=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(e=>e.charCodeAt(0))),gv=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Iu;const bv=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]]),yv=(Iu=String.fromCodePoint)!==null&&Iu!==void 0?Iu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function xv(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=bv.get(e))!==null&&t!==void 0?t:e}var ot;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ot||(ot={}));const Ev=32;var gn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(gn||(gn={}));function Il(e){return e>=ot.ZERO&&e<=ot.NINE}function vv(e){return e>=ot.UPPER_A&&e<=ot.UPPER_F||e>=ot.LOWER_A&&e<=ot.LOWER_F}function Tv(e){return e>=ot.UPPER_A&&e<=ot.UPPER_Z||e>=ot.LOWER_A&&e<=ot.LOWER_Z||Il(e)}function wv(e){return e===ot.EQUALS||Tv(e)}var at;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(at||(at={}));var zr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(zr||(zr={}));class ug{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=at.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zr.Strict}startEntity(t){this.decodeMode=t,this.state=at.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case at.EntityStart:return t.charCodeAt(r)===ot.NUM?(this.state=at.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=at.NamedEntity,this.stateNamedEntity(t,r));case at.NumericStart:return this.stateNumericStart(t,r);case at.NumericDecimal:return this.stateNumericDecimal(t,r);case at.NumericHex:return this.stateNumericHex(t,r);case at.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Ev)===ot.LOWER_X?(this.state=at.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=at.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(Il(i)||vv(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(Il(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ot.SEMI)this.consumed+=1;else if(this.decodeMode===zr.Strict)return 0;return this.emitCodePoint(xv(this.result),this.consumed),this.errors&&(t!==ot.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let i=n[this.treeIndex],a=(i&gn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=kv(n,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===zr.Attribute&&(a===0||wv(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&gn.VALUE_LENGTH)>>14,a!==0){if(s===ot.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==zr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&gn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~gn.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case at.NamedEntity:return this.result!==0&&(this.decodeMode!==zr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case at.NumericDecimal:return this.emitNumericEntity(0,2);case at.NumericHex:return this.emitNumericEntity(0,3);case at.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case at.EntityStart:return 0}}}function lg(e){let t="";const r=new ug(e,n=>t+=yv(n));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),r.startEntity(a);const l=r.write(i,o+1);if(l<0){s=o+r.end();break}s=o+l,o=l===0?s+1:s}const u=t+i.slice(s);return t="",u}}function kv(e,t,r,n){const i=(t&gn.BRANCH_LENGTH)>>7,a=t&gn.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const u=n-a;return u<0||u>=i?-1:e[r+u]-1}let s=r,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<n)s=u+1;else if(l>n)o=u-1;else return e[u+i]}return-1}lg(og);lg(gv);var J;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(J||(J={}));var Un;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Un||(Un={}));var Vt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Vt||(Vt={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const Sv=new Map([[H.A,m.A],[H.ADDRESS,m.ADDRESS],[H.ANNOTATION_XML,m.ANNOTATION_XML],[H.APPLET,m.APPLET],[H.AREA,m.AREA],[H.ARTICLE,m.ARTICLE],[H.ASIDE,m.ASIDE],[H.B,m.B],[H.BASE,m.BASE],[H.BASEFONT,m.BASEFONT],[H.BGSOUND,m.BGSOUND],[H.BIG,m.BIG],[H.BLOCKQUOTE,m.BLOCKQUOTE],[H.BODY,m.BODY],[H.BR,m.BR],[H.BUTTON,m.BUTTON],[H.CAPTION,m.CAPTION],[H.CENTER,m.CENTER],[H.CODE,m.CODE],[H.COL,m.COL],[H.COLGROUP,m.COLGROUP],[H.DD,m.DD],[H.DESC,m.DESC],[H.DETAILS,m.DETAILS],[H.DIALOG,m.DIALOG],[H.DIR,m.DIR],[H.DIV,m.DIV],[H.DL,m.DL],[H.DT,m.DT],[H.EM,m.EM],[H.EMBED,m.EMBED],[H.FIELDSET,m.FIELDSET],[H.FIGCAPTION,m.FIGCAPTION],[H.FIGURE,m.FIGURE],[H.FONT,m.FONT],[H.FOOTER,m.FOOTER],[H.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[H.FORM,m.FORM],[H.FRAME,m.FRAME],[H.FRAMESET,m.FRAMESET],[H.H1,m.H1],[H.H2,m.H2],[H.H3,m.H3],[H.H4,m.H4],[H.H5,m.H5],[H.H6,m.H6],[H.HEAD,m.HEAD],[H.HEADER,m.HEADER],[H.HGROUP,m.HGROUP],[H.HR,m.HR],[H.HTML,m.HTML],[H.I,m.I],[H.IMG,m.IMG],[H.IMAGE,m.IMAGE],[H.INPUT,m.INPUT],[H.IFRAME,m.IFRAME],[H.KEYGEN,m.KEYGEN],[H.LABEL,m.LABEL],[H.LI,m.LI],[H.LINK,m.LINK],[H.LISTING,m.LISTING],[H.MAIN,m.MAIN],[H.MALIGNMARK,m.MALIGNMARK],[H.MARQUEE,m.MARQUEE],[H.MATH,m.MATH],[H.MENU,m.MENU],[H.META,m.META],[H.MGLYPH,m.MGLYPH],[H.MI,m.MI],[H.MO,m.MO],[H.MN,m.MN],[H.MS,m.MS],[H.MTEXT,m.MTEXT],[H.NAV,m.NAV],[H.NOBR,m.NOBR],[H.NOFRAMES,m.NOFRAMES],[H.NOEMBED,m.NOEMBED],[H.NOSCRIPT,m.NOSCRIPT],[H.OBJECT,m.OBJECT],[H.OL,m.OL],[H.OPTGROUP,m.OPTGROUP],[H.OPTION,m.OPTION],[H.P,m.P],[H.PARAM,m.PARAM],[H.PLAINTEXT,m.PLAINTEXT],[H.PRE,m.PRE],[H.RB,m.RB],[H.RP,m.RP],[H.RT,m.RT],[H.RTC,m.RTC],[H.RUBY,m.RUBY],[H.S,m.S],[H.SCRIPT,m.SCRIPT],[H.SEARCH,m.SEARCH],[H.SECTION,m.SECTION],[H.SELECT,m.SELECT],[H.SOURCE,m.SOURCE],[H.SMALL,m.SMALL],[H.SPAN,m.SPAN],[H.STRIKE,m.STRIKE],[H.STRONG,m.STRONG],[H.STYLE,m.STYLE],[H.SUB,m.SUB],[H.SUMMARY,m.SUMMARY],[H.SUP,m.SUP],[H.TABLE,m.TABLE],[H.TBODY,m.TBODY],[H.TEMPLATE,m.TEMPLATE],[H.TEXTAREA,m.TEXTAREA],[H.TFOOT,m.TFOOT],[H.TD,m.TD],[H.TH,m.TH],[H.THEAD,m.THEAD],[H.TITLE,m.TITLE],[H.TR,m.TR],[H.TRACK,m.TRACK],[H.TT,m.TT],[H.U,m.U],[H.UL,m.UL],[H.SVG,m.SVG],[H.VAR,m.VAR],[H.WBR,m.WBR],[H.XMP,m.XMP]]);function Di(e){var t;return(t=Sv.get(e))!==null&&t!==void 0?t:m.UNKNOWN}const ee=m,Av={[J.HTML]:new Set([ee.ADDRESS,ee.APPLET,ee.AREA,ee.ARTICLE,ee.ASIDE,ee.BASE,ee.BASEFONT,ee.BGSOUND,ee.BLOCKQUOTE,ee.BODY,ee.BR,ee.BUTTON,ee.CAPTION,ee.CENTER,ee.COL,ee.COLGROUP,ee.DD,ee.DETAILS,ee.DIR,ee.DIV,ee.DL,ee.DT,ee.EMBED,ee.FIELDSET,ee.FIGCAPTION,ee.FIGURE,ee.FOOTER,ee.FORM,ee.FRAME,ee.FRAMESET,ee.H1,ee.H2,ee.H3,ee.H4,ee.H5,ee.H6,ee.HEAD,ee.HEADER,ee.HGROUP,ee.HR,ee.HTML,ee.IFRAME,ee.IMG,ee.INPUT,ee.LI,ee.LINK,ee.LISTING,ee.MAIN,ee.MARQUEE,ee.MENU,ee.META,ee.NAV,ee.NOEMBED,ee.NOFRAMES,ee.NOSCRIPT,ee.OBJECT,ee.OL,ee.P,ee.PARAM,ee.PLAINTEXT,ee.PRE,ee.SCRIPT,ee.SECTION,ee.SELECT,ee.SOURCE,ee.STYLE,ee.SUMMARY,ee.TABLE,ee.TBODY,ee.TD,ee.TEMPLATE,ee.TEXTAREA,ee.TFOOT,ee.TH,ee.THEAD,ee.TITLE,ee.TR,ee.TRACK,ee.UL,ee.WBR,ee.XMP]),[J.MATHML]:new Set([ee.MI,ee.MO,ee.MN,ee.MS,ee.MTEXT,ee.ANNOTATION_XML]),[J.SVG]:new Set([ee.TITLE,ee.FOREIGN_OBJECT,ee.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Rl=new Set([ee.H1,ee.H2,ee.H3,ee.H4,ee.H5,ee.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Ye={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function Cv(e){return e>=S.DIGIT_0&&e<=S.DIGIT_9}function ea(e){return e>=S.LATIN_CAPITAL_A&&e<=S.LATIN_CAPITAL_Z}function _v(e){return e>=S.LATIN_SMALL_A&&e<=S.LATIN_SMALL_Z}function ln(e){return _v(e)||ea(e)}function zd(e){return ln(e)||Cv(e)}function us(e){return e+32}function cg(e){return e===S.SPACE||e===S.LINE_FEED||e===S.TABULATION||e===S.FORM_FEED}function Ud(e){return cg(e)||e===S.SOLIDUS||e===S.GREATER_THAN_SIGN}function Nv(e){return e===S.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:ng(e)?$.surrogateCharacterReference:ag(e)?$.noncharacterCharacterReference:ig(e)||e===S.CARRIAGE_RETURN?$.controlCharacterReference:null}class Iv{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new pv(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ug(og,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const i=Nv(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),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(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Te.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Te.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Te.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Te.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(sg(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err($.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Di(t.tagName),t.type===Te.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Te.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Te.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Te.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Te.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=cg(t)?Te.WHITESPACE_CHARACTER:t===S.NULL?Te.NULL_CHARACTER:Te.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Te.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?zr.Attribute:zr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case S.AMPERSAND:{this._startCharacterReference();break}case S.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case S.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(ze);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case S.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case S.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(ze);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case S.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(ze);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case S.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(ze);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ln(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case S.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case S.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case S.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case S.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ln(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case S.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=A.DATA;break}case S.EOF:{this._err($.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err($.unexpectedNullCharacter),r.tagName+=ze;break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ea(t)?us(t):t)}}_stateRcdataLessThanSign(t){t===S.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ln(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case S.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case S.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===S.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ln(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case S.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case S.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ln(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===S.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===S.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case S.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(ze);break}case S.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(ze);break}case S.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(ze);break}case S.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===S.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ln(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ln(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(_t.SCRIPT,!1)&&Ud(this.preprocessor.peek(_t.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<_t.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case S.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(ze);break}case S.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ze);break}case S.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ze);break}case S.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===S.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(_t.SCRIPT,!1)&&Ud(this.preprocessor.peek(_t.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<_t.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case S.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=ze;break}default:this.currentAttr.name+=String.fromCodePoint(ea(t)?us(t):t)}}_stateAfterAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case S.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case S.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case S.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:case S.EQUALS_SIGN:case S.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case S.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(r);break}case S.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case S.NULL:{this._err($.unexpectedNullCharacter),r.data+=ze;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(_t.DASH_DASH,!0)?(this._createCommentToken(_t.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(_t.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(_t.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(_t.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken(_t.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case S.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case S.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=A.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case S.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(r);break}case S.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case S.LESS_THAN_SIGN:{r.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case S.NULL:{this._err($.unexpectedNullCharacter),r.data+=ze;break}case S.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case S.EXCLAMATION_MARK:{r.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case S.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===S.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===S.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==S.GREATER_THAN_SIGN&&t!==S.EOF&&this._err($.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case S.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(r);break}case S.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case S.HYPHEN_MINUS:{r.data+="-";break}case S.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case S.HYPHEN_MINUS:{r.data+="--!",this.state=A.COMMENT_END_DASH;break}case S.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(r);break}case S.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case S.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ea(t))this._createDoctypeToken(String.fromCharCode(us(t))),this.state=A.DOCTYPE_NAME;else switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(ze),this.state=A.DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.NULL:{this._err($.unexpectedNullCharacter),r.name+=ze;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ea(t)?us(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(_t.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(_t.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=ze;break}case S.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case S.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=ze;break}case S.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case S.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.QUOTATION_MARK:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=ze;break}case S.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case S.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=ze;break}case S.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case S.NULL:{this._err($.unexpectedNullCharacter);break}case S.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case S.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case S.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===S.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case S.GREATER_THAN_SIGN:{this.state=A.DATA;break}case S.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(S.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zd(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zd(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===S.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const hg=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),qd=new Set([...hg,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),Us=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),Rv=new Set([...Us,m.OL,m.UL]),Pv=new Set([...Us,m.BUTTON]),$d=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),jd=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),Lv=new Set([m.TR,m.TEMPLATE,m.HTML]),Dv=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),Mv=new Set([m.TABLE,m.TEMPLATE,m.HTML]),Ov=new Set([m.TD,m.TH]);class Bv{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==J.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Rl,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Ov,J.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Mv,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Dv,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Lv,J.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case J.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case J.SVG:{if(jd.has(i))return!1;break}case J.MATHML:{if($d.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Us)}hasInListItemScope(t){return this.hasInDynamicScope(t,Rv)}hasInButtonScope(t){return this.hasInDynamicScope(t,Pv)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(Rl.has(r))return!0;if(Us.has(r))return!1;break}case J.SVG:{if(jd.has(r))return!1;break}case J.MATHML:{if($d.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===J.HTML)switch(this.tagIDs[r]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===J.HTML)switch(this.tagIDs[r]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;hg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;qd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&qd.has(this.currentTagId);)this.pop()}}const Ru=3;var yr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(yr||(yr={}));const Gd={type:yr.Marker};class Fv{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],i=r.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===yr.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===i&&n.push({idx:o,attrs:h})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<Ru)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<Ru)return;const i=new Map(r.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<n.length;s++){const o=n[s];o.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=Ru&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Gd)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:yr.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:yr.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Gd);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===yr.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===yr.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===yr.Element&&r.element===t)}}const cn={createDocument(){return{nodeName:"#document",mode:Vt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};cn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(cn.isTextNode(r)){r.value+=t;return}}cn.appendChild(e,cn.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&cn.isTextNode(n)?n.value+=t:cn.insertBefore(e,cn.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},dg="html",Hv="about:legacy-compat",zv="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",fg=["+//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//"],Uv=[...fg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),mg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$v=[...mg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Vd(e,t){return t.some(r=>e.startsWith(r))}function jv(e){return e.name===dg&&e.publicId===null&&(e.systemId===null||e.systemId===Hv)}function Gv(e){if(e.name!==dg)return Vt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===zv)return Vt.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),qv.has(r))return Vt.QUIRKS;let n=t===null?Uv:fg;if(Vd(r,n))return Vt.QUIRKS;if(n=t===null?mg:$v,Vd(r,n))return Vt.LIMITED_QUIRKS}return Vt.NO_QUIRKS}const Wd={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Vv="definitionurl",Wv="definitionURL",Yv=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(e=>[e.toLowerCase(),e])),Xv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),Qv=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(e=>[e.toLowerCase(),e])),Kv=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function Zv(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:n})=>n===Un.COLOR||n===Un.SIZE||n===Un.FACE)||Kv.has(t)}function pg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Vv){e.attrs[t].name=Wv;break}}function gg(e){for(let t=0;t<e.attrs.length;t++){const r=Yv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function tc(e){for(let t=0;t<e.attrs.length;t++){const r=Xv.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Jv(e){const t=Qv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Di(e.tagName))}function eT(e,t){return t===J.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}function tT(e,t,r){if(t===J.MATHML&&e===m.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===Un.ENCODING){const i=r[n].value.toLowerCase();return i===Wd.TEXT_HTML||i===Wd.APPLICATION_XML}}return t===J.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}function rT(e,t,r,n){return(!n||n===J.HTML)&&tT(e,t,r)||(!n||n===J.MATHML)&&eT(e,t)}const nT="hidden",iT=8,aT=3;var N;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(N||(N={}));const sT={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},bg=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Yd={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:cn,onParseError:null};class Xd{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=N.INITIAL,this.originalInsertionMode=N.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={...Yd,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new Iv(this.options,this),this.activeFormattingElements=new Fv(this.treeAdapter),this.fragmentContextID=n?Di(this.treeAdapter.getTagName(n)):m.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Bv(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...Yd,...r};t??(t=n.treeAdapter.createElement(H.TEMPLATE,J.HTML,[]));const i=n.treeAdapter.createElement("documentmock",J.HTML,[]),a=new this(n,i,t);return a.fragmentContextID===m.TEMPLATE&&a.tmplInsertionModeStack.unshift(N.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:sT,s={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,r,n){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,r){const n=t===this.document||this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,J.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=N.TEXT}switchToPlaintextParsing(){this.insertionMode=N.TEXT,this.originalInsertionMode=N.IN_BODY,this.tokenizer.state=Ye.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Ye.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Ye.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Ye.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Ye.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,J.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(r),a=n?i.lastIndexOf(n):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,i=this.treeAdapter.getTagName(t),a=r.type===Te.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(r)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&!this._isIntegrationPoint(n,r,J.HTML)}_processToken(t){switch(t.type){case Te.CHARACTER:{this.onCharacter(t);break}case Te.NULL_CHARACTER:{this.onNullCharacter(t);break}case Te.COMMENT:{this.onComment(t);break}case Te.DOCTYPE:{this.onDoctype(t);break}case Te.START_TAG:{this._processStartTag(t);break}case Te.END_TAG:{this.onEndTag(t);break}case Te.EOF:{this.onEof(t);break}case Te.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const i=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return rT(t,i,a,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(i=>i.type===yr.Marker||this.openElements.contains(i.element)),n=r<0?t-1:r-1;for(let i=n;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=N.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=N.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=N.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=N.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=N.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=N.IN_TABLE;return}case m.BODY:{this.insertionMode=N.IN_BODY;return}case m.FRAMESET:{this.insertionMode=N.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?N.AFTER_HEAD:N.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=N.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=N.IN_HEAD;return}break}}this.insertionMode=N.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===m.TEMPLATE)break;if(n===m.TABLE){this.insertionMode=N.IN_SELECT_IN_TABLE;return}}this.insertionMode=N.IN_SELECT}_isElementCausesFosterParenting(t){return bg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case m.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return Av[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ow(this,t);return}switch(this.insertionMode){case N.INITIAL:{Wi(this,t);break}case N.BEFORE_HTML:{ua(this,t);break}case N.BEFORE_HEAD:{la(this,t);break}case N.IN_HEAD:{ca(this,t);break}case N.IN_HEAD_NO_SCRIPT:{ha(this,t);break}case N.AFTER_HEAD:{da(this,t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:{xg(this,t);break}case N.TEXT:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{Pu(this,t);break}case N.IN_TABLE_TEXT:{Sg(this,t);break}case N.IN_COLUMN_GROUP:{qs(this,t);break}case N.AFTER_BODY:{$s(this,t);break}case N.AFTER_AFTER_BODY:{ws(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mw(this,t);return}switch(this.insertionMode){case N.INITIAL:{Wi(this,t);break}case N.BEFORE_HTML:{ua(this,t);break}case N.BEFORE_HEAD:{la(this,t);break}case N.IN_HEAD:{ca(this,t);break}case N.IN_HEAD_NO_SCRIPT:{ha(this,t);break}case N.AFTER_HEAD:{da(this,t);break}case N.TEXT:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{Pu(this,t);break}case N.IN_COLUMN_GROUP:{qs(this,t);break}case N.AFTER_BODY:{$s(this,t);break}case N.AFTER_AFTER_BODY:{ws(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Pl(this,t);return}switch(this.insertionMode){case N.INITIAL:case N.BEFORE_HTML:case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_TEMPLATE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{Pl(this,t);break}case N.IN_TABLE_TEXT:{Yi(this,t);break}case N.AFTER_BODY:{fT(this,t);break}case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{mT(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case N.INITIAL:{pT(this,t);break}case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case N.IN_TABLE_TEXT:{Yi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Bw(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{Wi(this,t);break}case N.BEFORE_HTML:{gT(this,t);break}case N.BEFORE_HEAD:{yT(this,t);break}case N.IN_HEAD:{hr(this,t);break}case N.IN_HEAD_NO_SCRIPT:{vT(this,t);break}case N.AFTER_HEAD:{wT(this,t);break}case N.IN_BODY:{yt(this,t);break}case N.IN_TABLE:{Ti(this,t);break}case N.IN_TABLE_TEXT:{Yi(this,t);break}case N.IN_CAPTION:{xw(this,t);break}case N.IN_COLUMN_GROUP:{ic(this,t);break}case N.IN_TABLE_BODY:{Do(this,t);break}case N.IN_ROW:{Mo(this,t);break}case N.IN_CELL:{Tw(this,t);break}case N.IN_SELECT:{_g(this,t);break}case N.IN_SELECT_IN_TABLE:{kw(this,t);break}case N.IN_TEMPLATE:{Aw(this,t);break}case N.AFTER_BODY:{_w(this,t);break}case N.IN_FRAMESET:{Nw(this,t);break}case N.AFTER_FRAMESET:{Rw(this,t);break}case N.AFTER_AFTER_BODY:{Lw(this,t);break}case N.AFTER_AFTER_FRAMESET:{Dw(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Fw(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{Wi(this,t);break}case N.BEFORE_HTML:{bT(this,t);break}case N.BEFORE_HEAD:{xT(this,t);break}case N.IN_HEAD:{ET(this,t);break}case N.IN_HEAD_NO_SCRIPT:{TT(this,t);break}case N.AFTER_HEAD:{kT(this,t);break}case N.IN_BODY:{Lo(this,t);break}case N.TEXT:{lw(this,t);break}case N.IN_TABLE:{wa(this,t);break}case N.IN_TABLE_TEXT:{Yi(this,t);break}case N.IN_CAPTION:{Ew(this,t);break}case N.IN_COLUMN_GROUP:{vw(this,t);break}case N.IN_TABLE_BODY:{Ll(this,t);break}case N.IN_ROW:{Cg(this,t);break}case N.IN_CELL:{ww(this,t);break}case N.IN_SELECT:{Ng(this,t);break}case N.IN_SELECT_IN_TABLE:{Sw(this,t);break}case N.IN_TEMPLATE:{Cw(this,t);break}case N.AFTER_BODY:{Rg(this,t);break}case N.IN_FRAMESET:{Iw(this,t);break}case N.AFTER_FRAMESET:{Pw(this,t);break}case N.AFTER_AFTER_BODY:{ws(this,t);break}}}onEof(t){switch(this.insertionMode){case N.INITIAL:{Wi(this,t);break}case N.BEFORE_HTML:{ua(this,t);break}case N.BEFORE_HEAD:{la(this,t);break}case N.IN_HEAD:{ca(this,t);break}case N.IN_HEAD_NO_SCRIPT:{ha(this,t);break}case N.AFTER_HEAD:{da(this,t);break}case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{wg(this,t);break}case N.TEXT:{cw(this,t);break}case N.IN_TABLE_TEXT:{Yi(this,t);break}case N.IN_TEMPLATE:{Ig(this,t);break}case N.AFTER_BODY:case N.IN_FRAMESET:case N.AFTER_FRAMESET:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{nc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===S.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.TEXT:case N.IN_COLUMN_GROUP:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{this._insertCharacters(t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:case N.AFTER_BODY:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{yg(this,t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{Pu(this,t);break}case N.IN_TABLE_TEXT:{kg(this,t);break}}}}function oT(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Tg(e,t),r}function uT(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function lT(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==r;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=aT;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=cT(e,o),n===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function cT(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function hT(e,t,r){const n=e.treeAdapter.getTagName(t),i=Di(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);i===m.TEMPLATE&&a===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function dT(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function rc(e,t){for(let r=0;r<iT;r++){const n=oT(e,t);if(!n)break;const i=uT(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=lT(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),s&&hT(e,s,a),dT(e,i,n)}}function Pl(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fT(e,t){e._appendCommentNode(t,e.openElements.items[0])}function mT(e,t){e._appendCommentNode(t,e.document)}function nc(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function pT(e,t){e._setDocumentType(t);const r=t.forceQuirks?Vt.QUIRKS:Gv(t);jv(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=N.BEFORE_HTML}function Wi(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Vt.QUIRKS),e.insertionMode=N.BEFORE_HTML,e._processToken(t)}function gT(e,t){t.tagID===m.HTML?(e._insertElement(t,J.HTML),e.insertionMode=N.BEFORE_HEAD):ua(e,t)}function bT(e,t){const r=t.tagID;(r===m.HTML||r===m.HEAD||r===m.BODY||r===m.BR)&&ua(e,t)}function ua(e,t){e._insertFakeRootElement(),e.insertionMode=N.BEFORE_HEAD,e._processToken(t)}function yT(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD;break}default:la(e,t)}}function xT(e,t){const r=t.tagID;r===m.HEAD||r===m.BODY||r===m.HTML||r===m.BR?la(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function la(e,t){e._insertFakeElement(H.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD,e._processToken(t)}function hr(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,Ye.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ye.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=N.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,Ye.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,Ye.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=N.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(N.IN_TEMPLATE);break}case m.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:ca(e,t)}}function ET(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=N.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{ca(e,t);break}case m.TEMPLATE:{Kn(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Kn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function ca(e,t){e.openElements.pop(),e.insertionMode=N.AFTER_HEAD,e._processToken(t)}function vT(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{hr(e,t);break}case m.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:ha(e,t)}}function TT(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=N.IN_HEAD;break}case m.BR:{ha(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function ha(e,t){const r=t.type===Te.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=N.IN_HEAD,e._processToken(t)}function wT(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=N.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=N.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),hr(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:da(e,t)}}function kT(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{da(e,t);break}case m.TEMPLATE:{Kn(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function da(e,t){e._insertFakeElement(H.BODY,m.BODY),e.insertionMode=N.IN_BODY,Po(e,t)}function Po(e,t){switch(t.type){case Te.CHARACTER:{xg(e,t);break}case Te.WHITESPACE_CHARACTER:{yg(e,t);break}case Te.COMMENT:{Pl(e,t);break}case Te.START_TAG:{yt(e,t);break}case Te.END_TAG:{Lo(e,t);break}case Te.EOF:{wg(e,t);break}}}function yg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ST(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function AT(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function CT(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=N.IN_FRAMESET)}function _T(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function NT(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),Rl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function IT(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function RT(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,J.HTML),r||(e.formElement=e.openElements.current))}function PT(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.tagIDs[n];if(r===m.LI&&i===m.LI||(r===m.DD||r===m.DT)&&(i===m.DD||i===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==m.ADDRESS&&i!==m.DIV&&i!==m.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function LT(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=Ye.PLAINTEXT}function DT(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function MT(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);r&&(rc(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function OT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function BT(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(rc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function HT(e,t){e.treeAdapter.getDocumentMode(e.document)!==Vt.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=N.IN_TABLE}function Eg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function vg(e){const t=sg(e,Un.TYPE);return t!=null&&t.toLowerCase()===nT}function zT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),vg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function UT(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function qT(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $T(e,t){t.tagName=H.IMG,t.tagID=m.IMG,Eg(e,t)}function jT(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ye.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=N.TEXT}function GT(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ye.RAWTEXT)}function VT(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ye.RAWTEXT)}function Qd(e,t){e._switchToTextParsing(t,Ye.RAWTEXT)}function WT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===N.IN_TABLE||e.insertionMode===N.IN_CAPTION||e.insertionMode===N.IN_TABLE_BODY||e.insertionMode===N.IN_ROW||e.insertionMode===N.IN_CELL?N.IN_SELECT_IN_TABLE:N.IN_SELECT}function YT(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function XT(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function QT(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,J.HTML)}function KT(e,t){e._reconstructActiveFormattingElements(),pg(t),tc(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function ZT(e,t){e._reconstructActiveFormattingElements(),gg(t),tc(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Kd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function yt(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{OT(e,t);break}case m.A:{MT(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{NT(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{_T(e,t);break}case m.LI:case m.DD:case m.DT:{PT(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{Eg(e,t);break}case m.HR:{qT(e,t);break}case m.RB:case m.RTC:{XT(e,t);break}case m.RT:case m.RP:{QT(e,t);break}case m.PRE:case m.LISTING:{IT(e,t);break}case m.XMP:{GT(e,t);break}case m.SVG:{ZT(e,t);break}case m.HTML:{ST(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{hr(e,t);break}case m.BODY:{AT(e,t);break}case m.FORM:{RT(e,t);break}case m.NOBR:{BT(e,t);break}case m.MATH:{KT(e,t);break}case m.TABLE:{HT(e,t);break}case m.INPUT:{zT(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{UT(e,t);break}case m.IMAGE:{$T(e,t);break}case m.BUTTON:{DT(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{FT(e,t);break}case m.IFRAME:{VT(e,t);break}case m.SELECT:{WT(e,t);break}case m.OPTION:case m.OPTGROUP:{YT(e,t);break}case m.NOEMBED:case m.NOFRAMES:{Qd(e,t);break}case m.FRAMESET:{CT(e,t);break}case m.TEXTAREA:{jT(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?Qd(e,t):Kd(e,t);break}case m.PLAINTEXT:{LT(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Kd(e,t)}}function JT(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=N.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function ew(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=N.AFTER_BODY,Rg(e,t))}function tw(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function rw(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):r&&e.openElements.remove(r))}function nw(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(H.P,m.P),e._closePElement()}function iw(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function aw(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function sw(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ow(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function uw(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function Tg(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(n===s&&(n!==m.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Lo(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{rc(e,t);break}case m.P:{nw(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{tw(e,t);break}case m.LI:{iw(e);break}case m.DD:case m.DT:{aw(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{sw(e);break}case m.BR:{uw(e);break}case m.BODY:{JT(e,t);break}case m.HTML:{ew(e,t);break}case m.FORM:{rw(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{ow(e,t);break}case m.TEMPLATE:{Kn(e,t);break}default:Tg(e,t)}}function wg(e,t){e.tmplInsertionModeStack.length>0?Ig(e,t):nc(e,t)}function lw(e,t){var r;t.tagID===m.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cw(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Pu(e,t){if(bg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=N.IN_TABLE_TEXT,t.type){case Te.CHARACTER:{Sg(e,t);break}case Te.WHITESPACE_CHARACTER:{kg(e,t);break}}else $a(e,t)}function hw(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=N.IN_CAPTION}function dw(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=N.IN_COLUMN_GROUP}function fw(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,m.COLGROUP),e.insertionMode=N.IN_COLUMN_GROUP,ic(e,t)}function mw(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=N.IN_TABLE_BODY}function pw(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,m.TBODY),e.insertionMode=N.IN_TABLE_BODY,Do(e,t)}function gw(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function bw(e,t){vg(t)?e._appendElement(t,J.HTML):$a(e,t),t.ackSelfClosing=!0}function yw(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ti(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{pw(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{hr(e,t);break}case m.COL:{fw(e,t);break}case m.FORM:{yw(e,t);break}case m.TABLE:{gw(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{mw(e,t);break}case m.INPUT:{bw(e,t);break}case m.CAPTION:{hw(e,t);break}case m.COLGROUP:{dw(e,t);break}default:$a(e,t)}}function wa(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{Kn(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:$a(e,t)}}function $a(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Po(e,t),e.fosterParentingEnabled=r}function kg(e,t){e.pendingCharacterTokens.push(t)}function Sg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yi(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)$a(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ag=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function xw(e,t){const r=t.tagID;Ag.has(r)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,Ti(e,t)):yt(e,t)}function Ew(e,t){const r=t.tagID;switch(r){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,r===m.TABLE&&wa(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Lo(e,t)}}function ic(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.COL:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{hr(e,t);break}default:qs(e,t)}}function vw(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case m.TEMPLATE:{Kn(e,t);break}case m.COL:break;default:qs(e,t)}}function qs(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE,e._processToken(t))}function Do(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=N.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,m.TR),e.insertionMode=N.IN_ROW,Mo(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,Ti(e,t));break}default:Ti(e,t)}}function Ll(e,t){const r=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,wa(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:wa(e,t)}}function Mo(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=N.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,Do(e,t));break}default:Ti(e,t)}}function Cg(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,Ll(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,Ll(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:wa(e,t)}}function Tw(e,t){const r=t.tagID;Ag.has(r)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),Mo(e,t)):yt(e,t)}function ww(e,t){const r=t.tagID;switch(r){case m.TD:case m.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Cg(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:Lo(e,t)}}function _g(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{hr(e,t);break}}}function Ng(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{Kn(e,t);break}}}function kw(e,t){const r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_g(e,t)}function Sw(e,t){const r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ng(e,t)}function Aw(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{hr(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=N.IN_TABLE,e.insertionMode=N.IN_TABLE,Ti(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=N.IN_COLUMN_GROUP,e.insertionMode=N.IN_COLUMN_GROUP,ic(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=N.IN_TABLE_BODY,e.insertionMode=N.IN_TABLE_BODY,Do(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=N.IN_ROW,e.insertionMode=N.IN_ROW,Mo(e,t);break}default:e.tmplInsertionModeStack[0]=N.IN_BODY,e.insertionMode=N.IN_BODY,yt(e,t)}}function Cw(e,t){t.tagID===m.TEMPLATE&&Kn(e,t)}function Ig(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):nc(e,t)}function _w(e,t){t.tagID===m.HTML?yt(e,t):$s(e,t)}function Rg(e,t){var r;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=N.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else $s(e,t)}function $s(e,t){e.insertionMode=N.IN_BODY,Po(e,t)}function Nw(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.FRAMESET:{e._insertElement(t,J.HTML);break}case m.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{hr(e,t);break}}}function Iw(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=N.AFTER_FRAMESET))}function Rw(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.NOFRAMES:{hr(e,t);break}}}function Pw(e,t){t.tagID===m.HTML&&(e.insertionMode=N.AFTER_AFTER_FRAMESET)}function Lw(e,t){t.tagID===m.HTML?yt(e,t):ws(e,t)}function ws(e,t){e.insertionMode=N.IN_BODY,Po(e,t)}function Dw(e,t){switch(t.tagID){case m.HTML:{yt(e,t);break}case m.NOFRAMES:{hr(e,t);break}}}function Mw(e,t){t.chars=ze,e._insertCharacters(t)}function Ow(e,t){e._insertCharacters(t),e.framesetOk=!1}function Pg(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Bw(e,t){if(Zv(t))Pg(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===J.MATHML?pg(t):n===J.SVG&&(Jv(t),gg(t)),tc(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function Fw(e,t){if(t.tagID===m.P||t.tagID===m.BR){Pg(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const Hw=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,zw=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Zd={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Lg(e,t){const r=Qw(e),n=J0("type",{handlers:{root:Uw,element:qw,text:$w,comment:Mg,doctype:jw,raw:Vw},unknown:Ww}),i={parser:r?new Xd(Zd):Xd.getFragmentParser(void 0,Zd),handle(o){n(o,i)},stitches:!1,options:t||{}};n(e,i),Mi(i,Ar());const a=r?i.parser.document:i.parser.getFragment(),s=$9(a,{file:i.options.file});return i.stitches&&jn(s,"comment",function(o,u,l){const h=o;if(h.value.stitch&&l&&u!==void 0){const c=l.children;return c[u]=h.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Dg(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function Uw(e,t){Dg(e.children,t)}function qw(e,t){Yw(e,t),Dg(e.children,t),Xw(e,t)}function $w(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Te.CHARACTER,chars:e.value,location:ja(e)};Mi(t,Ar(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function jw(e,t){const r={type:Te.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ja(e)};Mi(t,Ar(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Gw(e,t){t.stitches=!0;const r=Kw(e);if("children"in e&&"children"in r){const n=Lg({type:"root",children:e.children},t.options);r.children=n.children}Mg({type:"comment",value:{stitch:r}},t)}function Mg(e,t){const r=e.value,n={type:Te.COMMENT,data:r,location:ja(e)};Mi(t,Ar(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vw(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Og(t,Ar(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Hw,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function Ww(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))Gw(r,t);else{let n="";throw zw.has(r.type)&&(n=". 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 `"+r.type+"` node"+n)}}function Mi(e,t){Og(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ye.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Og(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function Yw(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ye.PLAINTEXT)return;Mi(t,Ar(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:Er.html;i===Er.html&&r==="svg"&&(i=Er.svg);const a=nv({...e,children:[]},{space:i===Er.svg?"svg":"html"}),s={type:Te.START_TAG,tagName:r,tagID:Di(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ja(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function Xw(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&rg.includes(r)||t.parser.tokenizer.state===Ye.PLAINTEXT)return;Mi(t,vo(e));const n={type:Te.END_TAG,tagName:r,tagID:Di(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ja(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ye.RCDATA||t.parser.tokenizer.state===Ye.RAWTEXT||t.parser.tokenizer.state===Ye.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ye.DATA)}function Qw(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ja(e){const t=Ar(e)||{line:void 0,column:void 0,offset:void 0},r=vo(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function Kw(e){return"children"in e?Ei({...e,children:[]}):Ei(e)}function Zw(e){return function(t,r){return Lg(t,{...e,file:r})}}const qr={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},wi={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},gr={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};function Jw(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function ek(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function tk(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function rk(e){return Jw(e)?"ambiguous":ek(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":tk(e)?"wide":"neutral"}function nk(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function ik(e){return nk(e),rk(e)}var ak=Object.defineProperty,sk=(e,t,r)=>t in e?ak(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ok=(e,t,r)=>sk(e,t+"",r);function uk(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function lk(e){if(!e||e<4352)return!1;switch(ik(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!uk(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function ck(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function hk(e){return e!==null&&e>=65024&&e<=65038}var dk=Bg(new RegExp("\\p{P}|\\p{S}","u")),fk=Bg(/\s/);function Bg(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}var Ut;(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(Ut||(Ut={}));function pi(e){if(e===qr.eof||Pe(e)||fk(e))return wi.characterGroupWhitespace;let t=0;if(e>=4352){if(hk(e))return Ut.nonEmojiGeneralUseVS;switch(lk(e)){case null:return Ut.ivs;case!0:t|=Ut.cjk;break}}return dk(e)&&(t|=wi.characterGroupPunctuation),t}function Fg(e,t,r){if(!bk(e))return e;const n=t(),i=pi(n);return!n||ka(i)?e:ck(n,r)?Ut.cjkPunctuation:mk(i)}function mk(e){return e&~Ut.ivs}function ka(e){return!!(e&wi.characterGroupWhitespace)}function js(e){return(e&Ut.cjkPunctuation)===wi.characterGroupPunctuation}function Dl(e){return!!(e&Ut.cjk)}function pk(e){return e===Ut.ivs}function gk(e){return!!(e&Ut.cjkOrIvs)}function bk(e){return e===Ut.nonEmojiGeneralUseVS}function Jd(e){return!!(e&Ut.spaceOrPunctuation)}function Hg(e){return!!(e&&e>=55296&&e<=56319)}function zg(e){return!!(e&&e>=56320&&e<=57343)}function Ug(e,t,r){if(t._bufferIndex<2)return e;const i=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return i&&i>=65536?i:e}function yk(e,t,r){const n=e>=65536?2:1;if(t._bufferIndex<1+n)return null;const i=t._bufferIndex-n-2,a=r({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-n}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;const o=a.codePointAt(0);return o&&o>=65536?o:s}var qg=class{constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r,ok(this,"cachedValue")}value(){return this.cachedValue===void 0&&(this.cachedValue=yk(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function $g(e,t,r){const n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}var Lu={name:"attention",resolveAll:xk,tokenize:Ek};function xk(e,t){let r=-1,n,i,a,s,o,u,l,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c={...e[n][1].end},d={...e[r][1].start};ef(c,-u),ef(d,u),s={type:u>1?gr.strongSequence:gr.emphasisSequence,start:c,end:{...e[n][1].end}},o={type:u>1?gr.strongSequence:gr.emphasisSequence,start:{...e[r][1].start},end:d},a={type:u>1?gr.strongText:gr.emphasisText,start:{...e[n][1].end},end:{...e[r][1].start}},i={type:u>1?gr.strong:gr.emphasis,start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ct(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ct(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),t.parser.constructs.insideSpan.null,l=ct(l,Ni(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),l=ct(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,l=ct(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,ht(e,n-1,r-n+3,l),r=n+l.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Ek(e,t){const r=this.parser.constructs.attentionMarkers.null,{now:n,sliceSerialize:i,previous:a}=this,s=zg(a)?Ug(a,n(),i):a,o=pi(s),u=new qg(s,n(),i),l=Fg(o,u.value.bind(u),s);let h;return c;function c(f){return h=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===h)return e.consume(f),d;const g=e.exit("attentionSequence"),y=Hg(f)?$g(f,n(),i):f,T=pi(y),x=js(l),v=x||ka(l),k=js(T),R=k||ka(T),O=gk(l),I=!R||k&&(v||O)||r.includes(f),F=!v||x&&(R||Dl(T))||r.includes(s);return g._open=!!(h===qr.asterisk?I:I&&(Jd(l)||!F)),g._close=!!(h===qr.asterisk?F:F&&(Jd(T)||!I)),t(f)}}function ef(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function vk(){return{text:{[qr.asterisk]:Lu,[qr.underscore]:Lu},insideSpan:{null:[Lu]}}}function Tk(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(vk())}function wk(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{[qr.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[qr.tilde]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let l=u;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[u][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[u][1].end)},c={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[u][1].start)},d=[["enter",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",c,o]],f=o.parser.constructs.insideSpan.null;f&&ht(d,d.length,0,Ni(f,s.slice(l+1,u),o)),ht(d,d.length,0,[["exit",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",h,o]]),ht(s,l-1,u-l+3,d),u=l+d.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type=gr.data);return s}function a(s,o,u){const{now:l,sliceSerialize:h,previous:c}=this,d=zg(c)?Ug(c,l(),h):c,f=pi(d),g=new qg(d,l(),h),y=Fg(f,g.value.bind(g),d),T=this.events;let x=0;return v;function v(R){return d===qr.tilde&&T[T.length-1][1].type!==gr.characterEscape?u(R):(s.enter("strikethroughSequenceTemporary"),k(R))}function k(R){const O=pi(d);if(R===qr.tilde)return x>1?u(R):(s.consume(R),x++,k);if(x<2&&!r)return u(R);const I=s.exit("strikethroughSequenceTemporary"),F=Hg(R)?$g(R,l(),h):R,G=pi(F),B=js(y)||ka(y),V=js(G)||ka(G),ue=Dl(y)||pk(O);return I._open=!V||G===wi.attentionSideAfter&&(B||ue),I._close=!B||O===wi.attentionSideAfter&&(V||Dl(G)),o(R)}}}function kk(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(wk(e))}function Gs(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Sk(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ak(e,t,r){const i=Ba(r.ignore||[]),a=Ck(t);let s=-1;for(;++s<a.length;)_0(e,"text",o);function o(l,h){let c=-1,d;for(;++c<h.length;){const f=h[c],g=d?d.children:void 0;if(i(f,g?g.indexOf(f):void 0,d))return;d=f}if(d)return u(l,h)}function u(l,h){const c=h[h.length-1],d=a[s][0],f=a[s][1];let g=0;const T=c.children.indexOf(l);let x=!1,v=[];d.lastIndex=0;let k=d.exec(l.value);for(;k;){const R=k.index,O={index:k.index,input:k.input,stack:[...h,l]};let I=f(...k,O);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?d.lastIndex=R+1:(g!==R&&v.push({type:"text",value:l.value.slice(g,R)}),Array.isArray(I)?v.push(...I):I&&v.push(I),g=R+k[0].length,x=!0),!d.global)break;k=d.exec(l.value)}return x?(g<l.value.length&&v.push({type:"text",value:l.value.slice(g)}),c.children.splice(T,1,...v)):v=[l],T+v.length}}function Ck(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([_k(i[0]),Nk(i[1])])}return t}function _k(e){return typeof e=="string"?new RegExp(Sk(e),"g"):e}function Nk(e){return typeof e=="function"?e:function(){return e}}const Du="phrasing",Mu=["autolink","link","image","label"];function Ik(){return{transforms:[Bk],enter:{literalAutolink:Pk,literalAutolinkEmail:Ou,literalAutolinkHttp:Ou,literalAutolinkWww:Ou},exit:{literalAutolink:Ok,literalAutolinkEmail:Mk,literalAutolinkHttp:Lk,literalAutolinkWww:Dk}}}function Rk(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Du,notInConstruct:Mu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Du,notInConstruct:Mu},{character:":",before:"[ps]",after:"\\/",inConstruct:Du,notInConstruct:Mu}]}}function Pk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ou(e){this.config.enter.autolinkProtocol.call(this,e)}function Lk(e){this.config.exit.autolinkProtocol.call(this,e)}function Dk(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Mk(e){this.config.exit.autolinkEmail.call(this,e)}function Ok(e){this.exit(e)}function Bk(e){Ak(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Hk]],{ignore:["link","linkReference"]})}function Fk(e,t,r,n,i){let a="";if(!jg(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!zk(r)))return!1;const s=Uk(r+n);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function Hk(e,t,r,n){return!jg(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function zk(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Uk(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Gs(e,"(");let a=Gs(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function jg(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||$n(r)||To(r))&&(!t||r!==47)}Gg.peek=Qk;function qk(){this.buffer()}function $k(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function jk(){this.buffer()}function Gk(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Vk(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=or(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Wk(e){this.exit(e)}function Yk(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=or(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Xk(e){this.exit(e)}function Qk(){return"["}function Gg(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function Kk(){return{enter:{gfmFootnoteCallString:qk,gfmFootnoteCall:$k,gfmFootnoteDefinitionLabelString:jk,gfmFootnoteDefinition:Gk},exit:{gfmFootnoteCallString:Vk,gfmFootnoteCall:Wk,gfmFootnoteDefinitionLabelString:Yk,gfmFootnoteDefinition:Xk}}}function Zk(e){let t=!1;return e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Gg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),h=a.enter("label");return u+=o.move(a.safe(a.associationId(n),{before:u,after:"]"})),h(),u+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),u+=o.move((t?`
|
|
281
|
+
`:" ")+a.indentLines(a.containerFlow(n,o.current()),t?Vg:Jk))),l(),u}}function Jk(e,t,r){return t===0?e:Vg(e,t,r)}function Vg(e,t,r){return(r?"":" ")+e}const eS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Wg.peek=aS;function tS(){return{canContainEols:["delete"],enter:{strikethrough:nS},exit:{strikethrough:iS}}}function rS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eS}],handlers:{delete:Wg}}}function nS(e){this.enter({type:"delete",children:[]},e)}function iS(e){this.exit(e)}function Wg(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function aS(){return"~"}function sS(e){return e.length}function oS(e,t){const r=t,n=(r.align||[]).concat(),i=r.stringLength||sS,a=[],s=[],o=[],u=[];let l=0,h=-1;for(;++h<e.length;){const y=[],T=[];let x=-1;for(e[h].length>l&&(l=e[h].length);++x<e[h].length;){const v=uS(e[h][x]);if(r.alignDelimiters!==!1){const k=i(v);T[x]=k,(u[x]===void 0||k>u[x])&&(u[x]=k)}y.push(v)}s[h]=y,o[h]=T}let c=-1;if(typeof n=="object"&&"length"in n)for(;++c<l;)a[c]=tf(n[c]);else{const y=tf(n);for(;++c<l;)a[c]=y}c=-1;const d=[],f=[];for(;++c<l;){const y=a[c];let T="",x="";y===99?(T=":",x=":"):y===108?T=":":y===114&&(x=":");let v=r.alignDelimiters===!1?1:Math.max(1,u[c]-T.length-x.length);const k=T+"-".repeat(v)+x;r.alignDelimiters!==!1&&(v=T.length+v+x.length,v>u[c]&&(u[c]=v),f[c]=v),d[c]=k}s.splice(1,0,d),o.splice(1,0,f),h=-1;const g=[];for(;++h<s.length;){const y=s[h],T=o[h];c=-1;const x=[];for(;++c<l;){const v=y[c]||"";let k="",R="";if(r.alignDelimiters!==!1){const O=u[c]-(T[c]||0),I=a[c];I===114?k=" ".repeat(O):I===99?O%2?(k=" ".repeat(O/2+.5),R=" ".repeat(O/2-.5)):(k=" ".repeat(O/2),R=k):R=" ".repeat(O)}r.delimiterStart!==!1&&!c&&x.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&v==="")&&(r.delimiterStart!==!1||c)&&x.push(" "),r.alignDelimiters!==!1&&x.push(k),x.push(v),r.alignDelimiters!==!1&&x.push(R),r.padding!==!1&&x.push(" "),(r.delimiterEnd!==!1||c!==l-1)&&x.push("|")}g.push(r.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return g.join(`
|
|
282
|
+
`)}function uS(e){return e==null?"":String(e)}function tf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function lS(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),cS);return i(),s}function cS(e,t,r){return">"+(r?"":" ")+e}function hS(e,t){return rf(e,t.inConstruct,!0)&&!rf(e,t.notInConstruct,!1)}function rf(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function nf(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
283
|
+
`&&hS(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
284
|
+
`}function Yg(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++a>s&&(s=a):a=1,i=n+t.length,n=r.indexOf(t,i);return s}function dS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function fS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mS(e,t,r,n){const i=fS(r),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(dS(e,r)){const c=r.enter("codeIndented"),d=r.indentLines(a,pS);return c(),d}const o=r.createTracker(n),u=i.repeat(Math.max(Yg(a,i)+1,3)),l=r.enter("codeFenced");let h=o.move(u);if(e.lang){const c=r.enter(`codeFencedLang${s}`);h+=o.move(r.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){const c=r.enter(`codeFencedMeta${s}`);h+=o.move(" "),h+=o.move(r.safe(e.meta,{before:h,after:`
|
|
285
|
+
`,encode:["`"],...o.current()})),c()}return h+=o.move(`
|
|
286
|
+
`),a&&(h+=o.move(a+`
|
|
287
|
+
`)),h+=o.move(u),l(),h}function pS(e,t,r){return(r?"":" ")+e}function ac(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function gS(e,t,r,n){const i=ac(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const u=r.createTracker(n);let l=u.move("[");return l+=u.move(r.safe(r.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(r.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=r.enter("destinationRaw"),l+=u.move(r.safe(e.url,{before:l,after:e.title?" ":`
|
|
288
|
+
`,...u.current()}))),o(),e.title&&(o=r.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(r.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function bS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Sa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vs(e,t,r){const n=xi(e),i=xi(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Xg.peek=yS;function Xg(e,t,r,n){const i=bS(r),a=r.enter("emphasis"),s=r.createTracker(n),o=s.move(i);let u=s.move(r.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),h=Vs(n.before.charCodeAt(n.before.length-1),l,i);h.inside&&(u=Sa(l)+u.slice(1));const c=u.charCodeAt(u.length-1),d=Vs(n.after.charCodeAt(0),c,i);d.inside&&(u=u.slice(0,-1)+Sa(c));const f=s.move(i);return a(),r.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},o+u+f}function yS(e,t,r){return r.options.emphasis||"*"}function xS(e,t){let r=!1;return jn(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,hl}),!!((!e.depth||e.depth<3)&&v0(e)&&(t.options.setext||r))}function ES(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(xS(e,r)){const h=r.enter("headingSetext"),c=r.enter("phrasing"),d=r.containerPhrasing(e,{...a.current(),before:`
|
|
289
|
+
`,after:`
|
|
290
|
+
`});return c(),h(),d+`
|
|
291
|
+
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
292
|
+
`))+1))}const s="#".repeat(i),o=r.enter("headingAtx"),u=r.enter("phrasing");a.move(s+" ");let l=r.containerPhrasing(e,{before:"# ",after:`
|
|
293
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=Sa(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,r.options.closeAtx&&(l+=" "+s),u(),o(),l}Qg.peek=vS;function Qg(e){return e.value||""}function vS(){return"<"}Kg.peek=TS;function Kg(e,t,r,n){const i=ac(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const u=r.createTracker(n);let l=u.move("![");return l+=u.move(r.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(r.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=r.enter("destinationRaw"),l+=u.move(r.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=r.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(r.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function TS(){return"!"}Zg.peek=wS;function Zg(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("![");const l=r.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const h=r.stack;r.stack=[],s=r.enter("reference");const c=r.safe(r.associationId(e),{before:u,after:"]",...o.current()});return s(),r.stack=h,a(),i==="full"||!l||l!==c?u+=o.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function wS(){return"!"}Jg.peek=kS;function Jg(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const s=r.unsafe[a],o=r.compilePattern(s);let u;if(s.atBreak)for(;u=o.exec(n);){let l=u.index;n.charCodeAt(l)===10&&n.charCodeAt(l-1)===13&&l--,n=n.slice(0,l)+" "+n.slice(u.index+1)}}return i+n+i}function kS(){return"`"}function e2(e,t){const r=v0(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}t2.peek=SS;function t2(e,t,r,n){const i=ac(r),a=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,u;if(e2(e,r)){const h=r.stack;r.stack=[],o=r.enter("autolink");let c=s.move("<");return c+=s.move(r.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),o(),r.stack=h,c}o=r.enter("link"),u=r.enter("label");let l=s.move("[");return l+=s.move(r.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(r.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=r.enter("destinationRaw"),l+=s.move(r.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=r.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(r.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function SS(e,t,r){return e2(e,r)?"<":"["}r2.peek=AS;function r2(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("[");const l=r.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const h=r.stack;r.stack=[],s=r.enter("reference");const c=r.safe(r.associationId(e),{before:u,after:"]",...o.current()});return s(),r.stack=h,a(),i==="full"||!l||l!==c?u+=o.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function AS(){return"["}function sc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function CS(e){const t=sc(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function _S(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function n2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function NS(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let s=e.ordered?_S(r):sc(r);const o=e.ordered?s==="."?")":".":CS(r);let u=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),n2(r)===s&&h){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),r.bulletCurrent=s;const l=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=a,i(),l}function IS(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function RS(e,t,r,n){const i=IS(r);let a=r.bulletCurrent||sc(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(n);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,o.current()),h);return u(),l;function h(c,d,f){return d?(f?"":" ".repeat(s))+c:(f?a:a+" ".repeat(s-a.length))+c}}function PS(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),s=r.containerPhrasing(e,n);return a(),i(),s}const LS=Ba(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function DS(e,t,r,n){return(e.children.some(function(s){return LS(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function MS(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i2.peek=OS;function i2(e,t,r,n){const i=MS(r),a=r.enter("strong"),s=r.createTracker(n),o=s.move(i+i);let u=s.move(r.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),h=Vs(n.before.charCodeAt(n.before.length-1),l,i);h.inside&&(u=Sa(l)+u.slice(1));const c=u.charCodeAt(u.length-1),d=Vs(n.after.charCodeAt(0),c,i);d.inside&&(u=u.slice(0,-1)+Sa(c));const f=s.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},o+u+f}function OS(e,t,r){return r.options.strong||"*"}function BS(e,t,r,n){return r.safe(e.value,n)}function FS(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function HS(e,t,r){const n=(n2(r)+(r.options.ruleSpaces?" ":"")).repeat(FS(r));return r.options.ruleSpaces?n.slice(0,-1):n}const a2={blockquote:lS,break:nf,code:mS,definition:gS,emphasis:Xg,hardBreak:nf,heading:ES,html:Qg,image:Kg,imageReference:Zg,inlineCode:Jg,link:t2,linkReference:r2,list:NS,listItem:RS,paragraph:PS,root:DS,strong:i2,text:BS,thematicBreak:HS};function zS(){return{enter:{table:US,tableData:af,tableHeader:af,tableRow:$S},exit:{codeText:jS,table:qS,tableData:Bu,tableHeader:Bu,tableRow:Bu}}}function US(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function qS(e){this.exit(e),this.data.inTable=void 0}function $S(e){this.enter({type:"tableRow",children:[]},e)}function Bu(e){this.exit(e)}function af(e){this.enter({type:"tableCell",children:[]},e)}function jS(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,GS));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function GS(e,t){return t==="|"?t:e}function VS(e){const t=e,r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
294
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:u,tableRow:o}};function s(f,g,y,T){return l(h(f,y,T),f.align)}function o(f,g,y,T){const x=c(f,y,T),v=l([x]);return v.slice(0,v.indexOf(`
|
|
295
|
+
`))}function u(f,g,y,T){const x=y.enter("tableCell"),v=y.enter("phrasing"),k=y.containerPhrasing(f,{...T,before:a,after:a});return v(),x(),k}function l(f,g){return oS(f,{align:g,alignDelimiters:n,padding:r,stringLength:i})}function h(f,g,y){const T=f.children;let x=-1;const v=[],k=g.enter("table");for(;++x<T.length;)v[x]=c(T[x],g,y);return k(),v}function c(f,g,y){const T=f.children;let x=-1;const v=[],k=g.enter("tableRow");for(;++x<T.length;)v[x]=u(T[x],f,g,y);return k(),v}function d(f,g,y){let T=a2.inlineCode(f,g,y);return y.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function WS(){return{exit:{taskListCheckValueChecked:sf,taskListCheckValueUnchecked:sf,paragraph:XS}}}function YS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:QS}}}function sf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function XS(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function QS(e,t,r,n){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(n);a&&o.move(s);let u=a2.listItem(e,t,r,{...n,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(h){return h+s}}function KS(){return[Ik(),Kk(),tS(),zS(),WS()]}function ZS(e){return{extensions:[Rk(),Zk(e),rS(),VS(e),YS()]}}const JS={tokenize:aA,partial:!0},s2={tokenize:sA,partial:!0},o2={tokenize:oA,partial:!0},u2={tokenize:uA,partial:!0},eA={tokenize:lA,partial:!0},l2={name:"wwwAutolink",tokenize:nA,previous:h2},c2={name:"protocolAutolink",tokenize:iA,previous:d2},tn={name:"emailAutolink",tokenize:rA,previous:f2},Ir={};function tA(){return{text:Ir}}let Dn=48;for(;Dn<123;)Ir[Dn]=tn,Dn++,Dn===58?Dn=65:Dn===91&&(Dn=97);Ir[43]=tn;Ir[45]=tn;Ir[46]=tn;Ir[95]=tn;Ir[72]=[tn,c2];Ir[104]=[tn,c2];Ir[87]=[tn,l2];Ir[119]=[tn,l2];function rA(e,t,r){const n=this;let i,a;return s;function s(c){return!Ml(c)||!f2.call(n,n.previous)||oc(n.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return Ml(c)?(e.consume(c),o):c===64?(e.consume(c),u):r(c)}function u(c){return c===46?e.check(eA,h,l)(c):c===45||c===95||gt(c)?(a=!0,e.consume(c),u):h(c)}function l(c){return e.consume(c),i=!0,u}function h(c){return a&&i&&Tt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):r(c)}}function nA(e,t,r){const n=this;return i;function i(s){return s!==87&&s!==119||!h2.call(n,n.previous)||oc(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(JS,e.attempt(s2,e.attempt(o2,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function iA(e,t,r){const n=this;let i="",a=!1;return s;function s(c){return(c===72||c===104)&&d2.call(n,n.previous)&&!oc(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),o):r(c)}function o(c){if(Tt(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),u}return r(c)}function u(c){return c===47?(e.consume(c),a?l:(a=!0,u)):r(c)}function l(c){return c===null||Ls(c)||Pe(c)||$n(c)||To(c)?r(c):e.attempt(s2,e.attempt(o2,h),r)(c)}function h(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function aA(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),a):r(s)}function a(s){return s===null?r(s):t(s)}}function sA(e,t,r){let n,i,a;return s;function s(l){return l===46||l===95?e.check(u2,u,o)(l):l===null||Pe(l)||$n(l)||l!==45&&To(l)?u(l):(a=!0,e.consume(l),s)}function o(l){return l===95?n=!0:(i=n,n=void 0),e.consume(l),s}function u(l){return i||n||!a?r(l):t(l)}}function oA(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?a(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?e.check(u2,t,a)(s):s===null||Pe(s)||$n(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&n++,e.consume(s),i}}function uA(e,t,r){return n;function n(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?(e.consume(o),n):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Pe(o)||$n(o)?t(o):r(o)}function i(o){return o===null||o===40||o===91||Pe(o)||$n(o)?t(o):n(o)}function a(o){return Tt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),n):Tt(o)?(e.consume(o),s):r(o)}}function lA(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return gt(a)?r(a):t(a)}}function h2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Pe(e)}function d2(e){return!Tt(e)}function f2(e){return!(e===47||Ml(e))}function Ml(e){return e===43||e===45||e===46||e===95||gt(e)}function oc(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const cA={tokenize:yA,partial:!0};function hA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pA,continuation:{tokenize:gA},exit:bA}},text:{91:{name:"gfmFootnoteCall",tokenize:mA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dA,resolveTo:fA}}}}function dA(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const u=n.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return r(u);const l=or(n.sliceSerialize({start:s.end,end:n.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function fA(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...o),e}function mA(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,s;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?r(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(c){if(a>999||c===93&&!s||c===null||c===91||Pe(c))return r(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(or(n.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(c)}return Pe(c)||(s=!0),a++,e.consume(c),c===92?h:l}function h(c){return c===91||c===92||c===93?(e.consume(c),a++,l):l(c)}}function pA(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):r(g)}function h(g){if(s>999||g===93&&!o||g===null||g===91||Pe(g))return r(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=or(n.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Pe(g)||(o=!0),s++,e.consume(g),g===92?c:h}function c(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),we(e,f,"gfmFootnoteDefinitionWhitespace")):r(g)}function f(g){return t(g)}}function gA(e,t,r){return e.check(Oa,t,e.attempt(cA,t,r))}function bA(e){e.exit("gfmFootnoteDefinition")}function yA(e,t,r){const n=this;return we(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):r(a)}}function xA(e){let r=e.singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let l=u;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[u][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[u][1].end)},c={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[u][1].start)},d=[["enter",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",c,o]],f=o.parser.constructs.insideSpan.null;f&&ht(d,d.length,0,Ni(f,s.slice(l+1,u),o)),ht(d,d.length,0,[["exit",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",h,o]]),ht(s,l-1,u-l+3,d),u=l+d.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,o,u){const l=this.previous,h=this.events;let c=0;return d;function d(g){return l===126&&h[h.length-1][1].type!=="characterEscape"?u(g):(s.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const y=xi(l);if(g===126)return c>1?u(g):(s.consume(g),c++,f);if(c<2&&!r)return u(g);const T=s.exit("strikethroughSequenceTemporary"),x=xi(g);return T._open=!x||x===2&&!!y,T._close=!y||y===2&&!!x,o(g)}}}class EA{constructor(){this.map=[]}add(t,r,n){vA(this,t,r,n)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function vA(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function TA(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function wA(){return{flow:{null:{name:"table",tokenize:kA,resolveAll:SA}}}}function kA(e,t,r){const n=this;let i=0,a=0,s;return o;function o(B){let X=n.events.length-1;for(;X>-1;){const Q=n.events[X][1].type;if(Q==="lineEnding"||Q==="linePrefix")X--;else break}const V=X>-1?n.events[X][1].type:null,ue=V==="tableHead"||V==="tableRow"?I:u;return ue===I&&n.parser.lazy[n.now().line]?r(B):ue(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),h(B)}function h(B){return B===null?r(B):he(B)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),f):r(B):ke(B)?we(e,h,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),c(B)))}function c(B){return B===null||B===124||Pe(B)?(e.exit("data"),h(B)):(e.consume(B),B===92?d:c)}function d(B){return B===92||B===124?(e.consume(B),c):c(B)}function f(B){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(B):(e.enter("tableDelimiterRow"),s=!1,ke(B)?we(e,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):g(B))}function g(B){return B===45||B===58?T(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),y):O(B)}function y(B){return ke(B)?we(e,T,"whitespace")(B):T(B)}function T(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),x):B===45?(a+=1,x(B)):B===null||he(B)?R(B):O(B)}function x(B){return B===45?(e.enter("tableDelimiterFiller"),v(B)):O(B)}function v(B){return B===45?(e.consume(B),v):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(B))}function k(B){return ke(B)?we(e,R,"whitespace")(B):R(B)}function R(B){return B===124?g(B):B===null||he(B)?!s||i!==a?O(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):O(B)}function O(B){return r(B)}function I(B){return e.enter("tableRow"),F(B)}function F(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),F):B===null||he(B)?(e.exit("tableRow"),t(B)):ke(B)?we(e,F,"whitespace")(B):(e.enter("data"),G(B))}function G(B){return B===null||B===124||Pe(B)?(e.exit("data"),F(B)):(e.consume(B),B===92?Y:G)}function Y(B){return B===92||B===124?(e.consume(B),G):G(B)}}function SA(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,h,c;const d=new EA;for(;++r<e.length;){const f=e[r],g=f[1];f[0]==="enter"?g.type==="tableHead"?(o=!1,u!==0&&(of(d,t,u,l,h),h=void 0,u=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(r,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,c=void 0,a=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(r,0,[["enter",h,t]])),i=g.type==="tableDelimiterRow"?2:h?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],c=ls(d,t,a,i,void 0,c),a=[0,0,0,0]),s[2]=r)):g.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],c=ls(d,t,a,i,void 0,c)),a=s,s=[a[1],r,0,0])):g.type==="tableHead"?(o=!0,u=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=r,a[1]!==0?(s[0]=s[1],c=ls(d,t,a,i,r,c)):s[1]!==0&&(c=ls(d,t,s,i,r,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&of(d,t,u,l,h),d.consume(t.events),r=-1;++r<t.events.length;){const f=t.events[r];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=TA(t.events,r))}return e}function ls(e,t,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(a.end=Object.assign({},si(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const u=si(t.events,r[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const l=si(t.events,r[2]),h=si(t.events,r[3]),c={type:o,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(r[2],0,[["enter",c,t]]),n!==2){const d=t.events[r[2]],f=t.events[r[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",r[3]>r[2]+1){const g=r[2]+1,y=r[3]-r[2]-1;e.add(g,y,[])}}e.add(r[3]+1,0,[["exit",c,t]])}return i!==void 0&&(a.end=Object.assign({},si(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function of(e,t,r,n,i){const a=[],s=si(t.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),n.end=Object.assign({},s),a.push(["exit",n,t]),e.add(r+1,0,a)}function si(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const AA={name:"tasklistCheck",tokenize:_A};function CA(){return{text:{91:AA}}}function _A(e,t,r){const n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Pe(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(u)}function o(u){return he(u)?t(u):ke(u)?e.check({tokenize:NA},t,r)(u):r(u)}}function NA(e,t,r){return we(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function IA(e){return f1([tA(),hA(),xA(e),wA(),CA()])}const RA={};function PA(e){const t=this,r=e||RA,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(IA(r)),a.push(KS()),s.push(ZS(r))}function LA(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function r(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=l;const c=h.data.hChildren[0];c.type,c.tagName,c.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=l,h.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function DA(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
296
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,s,o,u){const l=a.value||"",h=o.createTracker(u),c="$".repeat(Math.max(Yg(l,"$")+1,2)),d=o.enter("mathFlow");let f=h.move(c);if(a.meta){const g=o.enter("mathFlowMeta");f+=h.move(o.safe(a.meta,{after:`
|
|
297
|
+
`,before:f,encode:["$"],...h.current()})),g()}return f+=h.move(`
|
|
298
|
+
`),l&&(f+=h.move(l+`
|
|
299
|
+
`)),f+=h.move(c),d(),f}function n(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const h="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let c=-1;for(;++c<o.unsafe.length;){const d=o.unsafe[c];if(!d.atBreak)continue;const f=o.compilePattern(d);let g;for(;g=f.exec(u);){let y=g.index;u.codePointAt(y)===10&&u.codePointAt(y-1)===13&&y--,u=u.slice(0,y)+" "+u.slice(g.index+1)}}return h+u+h}function i(){return"$"}}const MA={tokenize:OA,concrete:!0,name:"mathFlow"},uf={tokenize:BA,partial:!0};function OA(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return o;function o(v){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(v)}function u(v){return v===36?(e.consume(v),s++,u):s<2?r(v):(e.exit("mathFlowFenceSequence"),we(e,l,"whitespace")(v))}function l(v){return v===null||he(v)?c(v):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===null||he(v)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(v)):v===36?r(v):(e.consume(v),h)}function c(v){return e.exit("mathFlowFence"),n.interrupt?t(v):e.attempt(uf,d,T)(v)}function d(v){return e.attempt({tokenize:x,partial:!0},T,f)(v)}function f(v){return(a?we(e,g,"linePrefix",a+1):g)(v)}function g(v){return v===null?T(v):he(v)?e.attempt(uf,d,T)(v):(e.enter("mathFlowValue"),y(v))}function y(v){return v===null||he(v)?(e.exit("mathFlowValue"),g(v)):(e.consume(v),y)}function T(v){return e.exit("mathFlow"),t(v)}function x(v,k,R){let O=0;return we(v,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function I(Y){return v.enter("mathFlowFence"),v.enter("mathFlowFenceSequence"),F(Y)}function F(Y){return Y===36?(O++,v.consume(Y),F):O<s?R(Y):(v.exit("mathFlowFenceSequence"),we(v,G,"whitespace")(Y))}function G(Y){return Y===null||he(Y)?(v.exit("mathFlowFence"),k(Y)):R(Y)}}}function BA(e,t,r){const n=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function FA(e){let r=e.singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:HA,previous:zA,name:"mathText"};function n(i,a,s){let o=0,u,l;return h;function h(y){return i.enter("mathText"),i.enter("mathTextSequence"),c(y)}function c(y){return y===36?(i.consume(y),o++,c):o<2&&!r?s(y):(i.exit("mathTextSequence"),d(y))}function d(y){return y===null?s(y):y===36?(l=i.enter("mathTextSequence"),u=0,g(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),d):he(y)?(i.enter("lineEnding"),i.consume(y),i.exit("lineEnding"),d):(i.enter("mathTextData"),f(y))}function f(y){return y===null||y===32||y===36||he(y)?(i.exit("mathTextData"),d(y)):(i.consume(y),f)}function g(y){return y===36?(i.consume(y),u++,g):u===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(y)):(l.type="mathTextData",f(y))}}}function HA(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function zA(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function UA(e){return{flow:{36:MA},text:{36:FA(e)}}}const qA={};function $A(e){const t=this,r=e||qA,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(UA(r)),a.push(LA()),s.push(DA(r))}let Ze=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function jA(e){return uc(e)}function uc(e){return Array.isArray(e)?GA(e):e instanceof RegExp?e:typeof e=="object"?VA(e):e}function GA(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=uc(e[r]);return t}function VA(e){let t={};for(let r in e)t[r]=uc(e[r]);return t}function m2(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function p2(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?p2(e.substring(0,e.length-1)):e.substr(~t+1)}var Fu=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,cs=class{static hasCaptures(e){return e===null?!1:(Fu.lastIndex=0,Fu.test(e))}static replaceCaptures(e,t,r){return e.replace(Fu,(n,i,a,s)=>{let o=r[parseInt(i||a,10)];if(o){let u=t.substring(o.start,o.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return n})}};function g2(e,t){return e<t?-1:e>t?1:0}function b2(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let i=0;i<r;i++){let a=g2(e[i],t[i]);if(a!==0)return a}return 0}return r-n}function lf(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function y2(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var x2=class{constructor(e){q(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Ws=class{constructor(e,t,r){q(this,"_cachedMatchRoot",new x2(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(XA(e),t)}static createFromParsedTheme(e,t){return KA(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(i=>WA(e.parent,i.parentScopes));return n?new E2(n.fontStyle,n.foreground,n.background):null}},Hu=class ks{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new ks(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new ks(r,t[n]);return r}push(t){return new ks(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function WA(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!YA(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function YA(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var E2=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function XA(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let i=0,a=t.length;i<a;i++){let s=t[i];if(!s.settings)continue;let o;if(typeof s.scope=="string"){let c=s.scope;c=c.replace(/^[,]+/,""),c=c.replace(/[,]+$/,""),o=c.split(",")}else Array.isArray(s.scope)?o=s.scope:o=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let c=s.settings.fontStyle.split(" ");for(let d=0,f=c.length;d<f;d++)switch(c[d]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let l=null;typeof s.settings.foreground=="string"&&lf(s.settings.foreground)&&(l=s.settings.foreground);let h=null;typeof s.settings.background=="string"&&lf(s.settings.background)&&(h=s.settings.background);for(let c=0,d=o.length;c<d;c++){let g=o[c].trim().split(" "),y=g[g.length-1],T=null;g.length>1&&(T=g.slice(0,g.length-1),T.reverse()),r[n++]=new QA(y,T,i,u,l,h)}}return r}var QA=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},pt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(pt||{});function KA(e,t){e.sort((u,l)=>{let h=g2(u.scope,l.scope);return h!==0||(h=b2(u.parentScopes,l.parentScopes),h!==0)?h:u.index-l.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(n=u.foreground),u.background!==null&&(i=u.background)}let a=new ZA(t),s=new E2(r,a.getId(n),a.getId(i)),o=new eC(new Ol(0,null,-1,0,0),[]);for(let u=0,l=e.length;u<l;u++){let h=e[u];o.insert(0,h.scope,h.parentScopes,h.fontStyle,a.getId(h.foreground),a.getId(h.background))}return new Ws(a,s,o)}var ZA=class{constructor(e){q(this,"_isFrozen");q(this,"_lastColorId");q(this,"_id2color");q(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},JA=Object.freeze([]),Ol=class v2{constructor(t,r,n,i,a){q(this,"scopeDepth");q(this,"parentScopes");q(this,"fontStyle");q(this,"foreground");q(this,"background");this.scopeDepth=t,this.parentScopes=r||JA,this.fontStyle=n,this.foreground=i,this.background=a}clone(){return new v2(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},eC=class Bl{constructor(t,r=[],n={}){q(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,i=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=t.parentScopes.length||i>=r.parentScopes.length);){const a=r.parentScopes[i].length-t.parentScopes[n].length;if(a!==0)return a;n++,i++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),i,a;if(n===-1?(i=t,a=""):(i=t.substring(0,n),a=t.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(a)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Bl._cmpBySpecificity),r}insert(t,r,n,i,a,s){if(r===""){this._doInsertHere(t,n,i,a,s);return}let o=r.indexOf("."),u,l;o===-1?(u=r,l=""):(u=r.substring(0,o),l=r.substring(o+1));let h;this._children.hasOwnProperty(u)?h=this._children[u]:(h=new Bl(this._mainRule.clone(),Ol.cloneArr(this._rulesWithParentScopes)),this._children[u]=h),h.insert(t+1,l,n,i,a,s)}_doInsertHere(t,r,n,i,a){if(r===null){this._mainRule.acceptOverwrite(t,n,i,a);return}for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let u=this._rulesWithParentScopes[s];if(b2(u.parentScopes,r)===0){u.acceptOverwrite(t,n,i,a);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Ol(t,r,n,i,a))}},ki=class Gt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=Gt.getLanguageId(t),n=Gt.getTokenType(t),i=Gt.getFontStyle(t),a=Gt.getForeground(t),s=Gt.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:a,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,i,a,s,o){let u=Gt.getLanguageId(t),l=Gt.getTokenType(t),h=Gt.containsBalancedBrackets(t)?1:0,c=Gt.getFontStyle(t),d=Gt.getForeground(t),f=Gt.getBackground(t);return r!==0&&(u=r),n!==8&&(l=n),i!==null&&(h=i?1:0),a!==-1&&(c=a),s!==0&&(d=s),o!==0&&(f=o),(u<<0|l<<8|h<<10|c<<11|d<<15|f<<24)>>>0}};function Ys(e,t){const r=[],n=tC(e);let i=n.next();for(;i!==null;){let u=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=s();if(r.push({matcher:l,priority:u}),i!==",")break;i=n.next()}return r;function a(){if(i==="-"){i=n.next();const u=a();return l=>!!u&&!u(l)}if(i==="("){i=n.next();const u=o();return i===")"&&(i=n.next()),u}if(cf(i)){const u=[];do u.push(i),i=n.next();while(cf(i));return l=>t(u,l)}return null}function s(){const u=[];let l=a();for(;l;)u.push(l),l=a();return h=>u.every(c=>c(h))}function o(){const u=[];let l=s();for(;l&&(u.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=s()}return h=>u.some(c=>c(h))}}function cf(e){return!!e&&!!e.match(/[\w\.:]+/)}function tC(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function T2(e){typeof e.dispose=="function"&&e.dispose()}var Aa=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},rC=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},nC=class{constructor(){q(this,"_references",[]);q(this,"_seenReferenceKeys",new Set);q(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},iC=class{constructor(e,t){q(this,"seenFullScopeRequests",new Set);q(this,"seenPartialScopeRequests",new Set);q(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Aa(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new nC;for(const r of e)aC(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof Aa){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function aC(e,t,r,n){const i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=r.lookup(t);e instanceof Aa?Ss({baseGrammar:a,selfGrammar:i},n):Fl(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);const s=r.injections(e.scopeName);if(s)for(const o of s)n.add(new Aa(o))}function Fl(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];Xs([n],t,r)}}function Ss(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Xs(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Xs(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Xs(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?m2({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Xs(n.patterns,{...t,repository:i},r);const a=n.include;if(!a)continue;const s=w2(a);switch(s.kind){case 0:Ss({...t,selfGrammar:t.baseGrammar},r);break;case 1:Ss(t,r);break;case 2:Fl(s.ruleName,{...t,repository:i},r);break;case 3:case 4:const o=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){const u={baseGrammar:t.baseGrammar,selfGrammar:o,repository:i};s.kind===4?Fl(s.ruleName,u,r):Ss(u,r)}else s.kind===4?r.add(new rC(s.scopeName,s.ruleName)):r.add(new Aa(s.scopeName));break}}}var sC=class{constructor(){q(this,"kind",0)}},oC=class{constructor(){q(this,"kind",1)}},uC=class{constructor(e){q(this,"kind",2);this.ruleName=e}},lC=class{constructor(e){q(this,"kind",3);this.scopeName=e}},cC=class{constructor(e,t){q(this,"kind",4);this.scopeName=e,this.ruleName=t}};function w2(e){if(e==="$base")return new sC;if(e==="$self")return new oC;const t=e.indexOf("#");if(t===-1)return new lC(e);if(t===0)return new uC(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new cC(r,n)}}var hC=/\\(\d+)/,hf=/\\(\d+)/g,dC=-1,k2=-2;var Ga=class{constructor(e,t,r,n){q(this,"$location");q(this,"id");q(this,"_nameIsCapturing");q(this,"_name");q(this,"_contentNameIsCapturing");q(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=cs.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=cs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${p2(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:cs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:cs.replaceCaptures(this._contentName,e,t)}},fC=class extends Ga{constructor(t,r,n,i,a){super(t,r,n,i);q(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,i){throw new Error("Not supported!")}},mC=class extends Ga{constructor(t,r,n,i,a){super(t,r,n,null);q(this,"_match");q(this,"captures");q(this,"_cachedCompiledPatterns");this._match=new Ca(i,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _a,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},df=class extends Ga{constructor(t,r,n,i,a){super(t,r,n,i);q(this,"hasMissingPatterns");q(this,"patterns");q(this,"_cachedCompiledPatterns");this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _a,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Hl=class extends Ga{constructor(t,r,n,i,a,s,o,u,l,h){super(t,r,n,i);q(this,"_begin");q(this,"beginCaptures");q(this,"_end");q(this,"endHasBackReferences");q(this,"endCaptures");q(this,"applyEndPatternLast");q(this,"hasMissingPatterns");q(this,"patterns");q(this,"_cachedCompiledPatterns");this._begin=new Ca(a,this.id),this.beginCaptures=s,this._end=new Ca(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=l||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,i)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new _a;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Qs=class extends Ga{constructor(t,r,n,i,a,s,o,u,l){super(t,r,n,i);q(this,"_begin");q(this,"beginCaptures");q(this,"whileCaptures");q(this,"_while");q(this,"whileHasBackReferences");q(this,"hasMissingPatterns");q(this,"patterns");q(this,"_cachedCompiledPatterns");q(this,"_cachedCompiledWhilePatterns");this._begin=new Ca(a,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new Ca(o,k2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new _a;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,i){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new _a,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},S2=class mt{static createCaptureRule(t,r,n,i,a){return t.registerRule(s=>new fC(r,s,n,i,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new mC(t.$vscodeTextmateLocation,t.id,t.name,t.match,mt._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=m2({},n,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new df(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,mt._compilePatterns(a,r,n))}return t.while?new Qs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mt._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,mt._compileCaptures(t.whileCaptures||t.captures,r,n),mt._compilePatterns(t.patterns,r,n)):new Hl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mt._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,mt._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,mt._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let a=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);o>a&&(a=o)}for(let s=0;s<=a;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);let u=0;t[s].patterns&&(u=mt.getCompiledRuleId(t[s],r,n)),i[o]=mt.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){const o=t[a];let u=-1;if(o.include){const l=w2(o.include);switch(l.kind){case 0:case 1:u=mt.getCompiledRuleId(n[o.include],r,n);break;case 2:let h=n[l.ruleName];h&&(u=mt.getCompiledRuleId(h,r,n));break;case 3:case 4:const c=l.scopeName,d=l.kind===4?l.ruleName:null,f=r.getExternalGrammar(c,n);if(f)if(d){let g=f.repository[d];g&&(u=mt.getCompiledRuleId(g,r,f.repository))}else u=mt.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else u=mt.getCompiledRuleId(o,r,n);if(u!==-1){const l=r.getRule(u);let h=!1;if((l instanceof df||l instanceof Hl||l instanceof Qs)&&l.hasMissingPatterns&&l.patterns.length===0&&(h=!0),h)continue;i.push(u)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Ca=class A2{constructor(t,r){q(this,"source");q(this,"ruleId");q(this,"hasAnchor");q(this,"hasBackReferences");q(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let i=0,a=[],s=!1;for(let o=0;o<n;o++)if(t.charAt(o)==="\\"&&o+1<n){const l=t.charAt(o+1);l==="z"?(a.push(t.substring(i,o)),a.push("$(?!\\n)(?<!\\n)"),i=o+2):(l==="A"||l==="G")&&(s=!0),o++}this.hasAnchor=s,i===0?this.source=t:(a.push(t.substring(i,n)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=hC.test(this.source):this.hasBackReferences=!1}clone(){return new A2(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>t.substring(i.start,i.end));return hf.lastIndex=0,this.source.replace(hf,(i,a)=>y2(n[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],i=[],a,s,o,u;for(a=0,s=this.source.length;a<s;a++)o=this.source.charAt(a),t[a]=o,r[a]=o,n[a]=o,i[a]=o,o==="\\"&&a+1<s&&(u=this.source.charAt(a+1),u==="A"?(t[a+1]="",r[a+1]="",n[a+1]="A",i[a+1]="A"):u==="G"?(t[a+1]="",r[a+1]="G",n[a+1]="",i[a+1]="G"):(t[a+1]=u,r[a+1]=u,n[a+1]=u,i[a+1]=u),a++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},_a=class{constructor(){q(this,"_items");q(this,"_hasAnchors");q(this,"_cached");q(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new ff(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(i=>i.resolveAnchors(t,r));return new ff(e,n,this._items.map(i=>i.ruleId))}},ff=class{constructor(e,t,r){q(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
300
|
+
`)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},zu=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ur,pC=(Ur=class{constructor(t,r){q(this,"_defaultAttributes");q(this,"_embeddedLanguagesMatcher");q(this,"_getBasicScopeAttributes",new x2(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new zu(r,n)}));this._defaultAttributes=new zu(t,8),this._embeddedLanguagesMatcher=new gC(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ur._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(Ur.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},q(Ur,"_NULL_SCOPE_METADATA",new zu(0,0)),q(Ur,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ur),gC=class{constructor(e){q(this,"values");q(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>y2(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var mf=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function C2(e,t,r,n,i,a,s,o){const u=t.content.length;let l=!1,h=-1;if(s){const f=bC(e,t,r,n,i,a);i=f.stack,n=f.linePos,r=f.isFirstLine,h=f.anchorPosition}const c=Date.now();for(;!l;){if(o!==0&&Date.now()-c>o)return new mf(i,!0);d()}return new mf(i,!1);function d(){const f=yC(e,t,r,n,i,h);if(!f){a.produce(i,u),l=!0;return}const g=f.captureIndices,y=f.matchedRuleId,T=g&&g.length>0?g[0].end>n:!1;if(y===dC){const x=i.getRule(e);a.produce(i,g[0].start),i=i.withContentNameScopesList(i.nameScopesList),ta(e,t,r,i,a,x.endCaptures,g),a.produce(i,g[0].end);const v=i;if(i=i.parent,h=v.getAnchorPos(),!T&&v.getEnterPos()===n){i=v,a.produce(i,u),l=!0;return}}else{const x=e.getRule(y);a.produce(i,g[0].start);const v=i,k=x.getName(t.content,g),R=i.contentNameScopesList.pushAttributed(k,e);if(i=i.push(y,n,h,g[0].end===u,null,R,R),x instanceof Hl){const O=x;ta(e,t,r,i,a,O.beginCaptures,g),a.produce(i,g[0].end),h=g[0].end;const I=O.getContentName(t.content,g),F=R.pushAttributed(I,e);if(i=i.withContentNameScopesList(F),O.endHasBackReferences&&(i=i.withEndRule(O.getEndWithResolvedBackReferences(t.content,g))),!T&&v.hasSameRuleAs(i)){i=i.pop(),a.produce(i,u),l=!0;return}}else if(x instanceof Qs){const O=x;ta(e,t,r,i,a,O.beginCaptures,g),a.produce(i,g[0].end),h=g[0].end;const I=O.getContentName(t.content,g),F=R.pushAttributed(I,e);if(i=i.withContentNameScopesList(F),O.whileHasBackReferences&&(i=i.withEndRule(O.getWhileWithResolvedBackReferences(t.content,g))),!T&&v.hasSameRuleAs(i)){i=i.pop(),a.produce(i,u),l=!0;return}}else if(ta(e,t,r,i,a,x.captures,g),a.produce(i,g[0].end),i=i.pop(),!T){i=i.safePop(),a.produce(i,u),l=!0;return}}g[0].end>n&&(n=g[0].end,r=!1)}}function bC(e,t,r,n,i,a){let s=i.beginRuleCapturedEOL?0:-1;const o=[];for(let u=i;u;u=u.pop()){const l=u.getRule(e);l instanceof Qs&&o.push({rule:l,stack:u})}for(let u=o.pop();u;u=o.pop()){const{ruleScanner:l,findOptions:h}=vC(u.rule,e,u.stack.endRule,r,n===s),c=l.findNextMatchSync(t,n,h);if(c){if(c.ruleId!==k2){i=u.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(a.produce(u.stack,c.captureIndices[0].start),ta(e,t,r,u.stack,a,u.rule.whileCaptures,c.captureIndices),a.produce(u.stack,c.captureIndices[0].end),s=c.captureIndices[0].end,c.captureIndices[0].end>n&&(n=c.captureIndices[0].end,r=!1))}else{i=u.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}function yC(e,t,r,n,i,a){const s=xC(e,t,r,n,i,a),o=e.getInjections();if(o.length===0)return s;const u=EC(o,e,t,r,n,i,a);if(!u)return s;if(!s)return u;const l=s.captureIndices[0].start,h=u.captureIndices[0].start;return h<l||u.priorityMatch&&h===l?u:s}function xC(e,t,r,n,i,a){const s=i.getRule(e),{ruleScanner:o,findOptions:u}=_2(s,e,i.endRule,r,n===a),l=o.findNextMatchSync(t,n,u);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function EC(e,t,r,n,i,a,s){let o=Number.MAX_VALUE,u=null,l,h=0;const c=a.contentNameScopesList.getScopeNames();for(let d=0,f=e.length;d<f;d++){const g=e[d];if(!g.matcher(c))continue;const y=t.getRule(g.ruleId),{ruleScanner:T,findOptions:x}=_2(y,t,null,n,i===s),v=T.findNextMatchSync(r,i,x);if(!v)continue;const k=v.captureIndices[0].start;if(!(k>=o)&&(o=k,u=v.captureIndices,l=v.ruleId,h=g.priority,o===i))break}return u?{priorityMatch:h===-1,captureIndices:u,matchedRuleId:l}:null}function _2(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function vC(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function ta(e,t,r,n,i,a,s){if(a.length===0)return;const o=t.content,u=Math.min(a.length,s.length),l=[],h=s[0].end;for(let c=0;c<u;c++){const d=a[c];if(d===null)continue;const f=s[c];if(f.length===0)continue;if(f.start>h)break;for(;l.length>0&&l[l.length-1].endPos<=f.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,f.start):i.produce(n,f.start),d.retokenizeCapturedWithRuleId){const y=d.getName(o,s),T=n.contentNameScopesList.pushAttributed(y,e),x=d.getContentName(o,s),v=T.pushAttributed(x,e),k=n.push(d.retokenizeCapturedWithRuleId,f.start,-1,!1,null,T,v),R=e.createOnigString(o.substring(0,f.end));C2(e,R,r&&f.start===0,f.start,k,i,!1,0),T2(R);continue}const g=d.getName(o,s);if(g!==null){const T=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(g,e);l.push(new TC(T,f.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var TC=class{constructor(e,t){q(this,"scopes");q(this,"endPos");this.scopes=e,this.endPos=t}};function wC(e,t,r,n,i,a,s,o){return new SC(e,t,r,n,i,a,s,o)}function pf(e,t,r,n,i){const a=Ys(t,Ks),s=S2.getCompiledRuleId(r,n,i.repository);for(const o of a)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:i,priority:o.priority})}function Ks(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let i=r;i<t.length;i++)if(kC(t[i],n))return r=i+1,!0;return!1})}function kC(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var SC=class{constructor(e,t,r,n,i,a,s,o){q(this,"_rootId");q(this,"_lastRuleId");q(this,"_ruleId2desc");q(this,"_includedGrammars");q(this,"_grammarRepository");q(this,"_grammar");q(this,"_injections");q(this,"_basicScopeAttributesProvider");q(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new pC(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=gf(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const u of Object.keys(i)){const l=Ys(u,Ks);for(const h of l)this._tokenTypeMatchers.push({matcher:h.matcher,type:i[u]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const i=n.injections;if(i)for(let s in i)pf(t,s,i[s],this,n);const a=this._grammarRepository.injections(r);a&&a.forEach(s=>{const o=this.getExternalGrammar(s);if(o){const u=o.injectionSelector;u&&pf(t,u,o,this,o)}})}return t.sort((i,a)=>i.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=gf(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=S2.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===zl.NULL){i=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),c=ki.set(0,l.languageId,l.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),d=this.getRule(this._rootId).getName(null,null);let f;d?f=fa.createRootAndLookUpScopeName(d,c,this):f=fa.createRoot("unknown",c),t=new zl(null,this._rootId,-1,-1,!1,null,f,f)}else i=!1,t.reset();e=e+`
|
|
301
|
+
`;const a=this.createOnigString(e),s=a.content.length,o=new CC(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=C2(this,a,i,0,t,o,!0,n);return T2(a),{lineLength:s,lineTokens:o,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function gf(e,t){return e=jA(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var fa=class dr{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,i=(t==null?void 0:t.scopePath)??null;for(const a of r)i=Hu.push(i,a.scopeNames),n=new dr(n,i,a.encodedTokenAttributes);return n}static createRoot(t,r){return new dr(null,new Hu(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const i=n.getMetadataForScope(t),a=new Hu(null,t),s=n.themeProvider.themeMatch(a),o=dr.mergeAttributes(r,i,s);return new dr(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return dr.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let i=-1,a=0,s=0;return n!==null&&(i=n.fontStyle,a=n.foregroundId,s=n.backgroundId),ki.set(t,r.languageId,r.tokenType,null,i,a,s)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return dr._pushAttributed(this,t,r);const n=t.split(/ /g);let i=this;for(const a of n)i=dr._pushAttributed(i,a,r);return i}static _pushAttributed(t,r,n){const i=n.getMetadataForScope(r),a=t.scopePath.push(r),s=n.themeProvider.themeMatch(a),o=dr.mergeAttributes(t.tokenAttributes,i,s);return new dr(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var i;const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===t?r.reverse():void 0}},Yt,zl=(Yt=class{constructor(t,r,n,i,a,s,o,u){q(this,"_stackElementBrand");q(this,"_enterPos");q(this,"_anchorPos");q(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(t){return t===null?!1:Yt._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?fa.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Yt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,a,s,o){return new Yt(this,t,r,n,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){var n,i;return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Yt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var t,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,r){const n=fa.fromExtension((t==null?void 0:t.nameScopesList)??null,r.nameScopesList);return new Yt(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,fa.fromExtension(n,r.contentNameScopesList))}},q(Yt,"NULL",new Yt(null,0,0,0,!1,null,null,null)),Yt),AC=class{constructor(e,t){q(this,"balancedBracketScopes");q(this,"unbalancedBracketScopes");q(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ys(r,Ks).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Ys(r,Ks).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},CC=class{constructor(e,t,r,n){q(this,"_emitBinaryTokens");q(this,"_lineText");q(this,"_tokens");q(this,"_binaryTokens");q(this,"_lastTokenEndIndex");q(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(e==null?void 0:e.tokenAttributes)??0,a=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(e==null?void 0:e.getScopeNames())??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(i=ki.set(i,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(i=ki.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const r=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},_C=class{constructor(e,t){q(this,"_grammars",new Map);q(this,"_rawGrammars",new Map);q(this,"_injectionGrammars",new Map);q(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,wC(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},NC=class{constructor(t){q(this,"_options");q(this,"_syncRegistry");q(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new _C(Ws.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(Ws.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new AC(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,i,a){const s=new iC(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(o=>this._loadSingleGrammar(o.scopeName)),s.processQueue();return this._grammarForScopeName(t,r,n,i,a)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,i=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,r=0,n=null,i=null,a=null){return this._syncRegistry.grammarForScopeName(t,r,n,i,a)}},Ul=zl.NULL;const IC=/["&'<>`]/g,RC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PC=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,LC=/[|\\{}()[\]^$+*?.]/g,bf=new WeakMap;function DC(e,t){if(e=e.replace(t.subset?MC(t.subset):IC,n),t.subset||t.escapeOnly)return e;return e.replace(RC,r).replace(PC,n);function r(i,a,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(i,a,s){return t.format(i.charCodeAt(0),s.charCodeAt(a+1),t)}}function MC(e){let t=bf.get(e);return t||(t=OC(e),bf.set(e,t)),t}function OC(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(LC,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const BC=/[\dA-Fa-f]/;function FC(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!BC.test(String.fromCharCode(t))?n:n+";"}const HC=/\d/;function zC(e,t,r){const n="&#"+String(e);return r&&t&&!HC.test(String.fromCharCode(t))?n:n+";"}const UC=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Uu={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},qC=["cent","copy","divide","gt","lt","not","para","times"],N2={}.hasOwnProperty,ql={};let hs;for(hs in Uu)N2.call(Uu,hs)&&(ql[Uu[hs]]=hs);const $C=/[^\dA-Za-z]/;function jC(e,t,r,n){const i=String.fromCharCode(e);if(N2.call(ql,i)){const a=ql[i],s="&"+a;return r&&UC.includes(a)&&!qC.includes(a)&&(!n||t&&t!==61&&$C.test(String.fromCharCode(t)))?s:s+";"}return""}function GC(e,t,r){let n=FC(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=jC(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=zC(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function gi(e,t){return DC(e,Object.assign({format:GC},t))}const VC=/^>|^->|<!--|-->|--!>|<!-$/g,WC=[">"],YC=["<",">"];function XC(e,t,r,n){return n.settings.bogusComments?"<?"+gi(e.value,Object.assign({},n.settings.characterReferences,{subset:WC}))+">":"<!--"+e.value.replace(VC,i)+"-->";function i(a){return gi(a,Object.assign({},n.settings.characterReferences,{subset:YC}))}}function QC(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const nt=R2(1),I2=R2(-1),KC=[];function R2(e){return t;function t(r,n,i){const a=r?r.children:KC;let s=(n||0)+e,o=a[s];if(!i)for(;o&&xo(o);)s+=e,o=a[s];return o}}const ZC={}.hasOwnProperty;function P2(e){return t;function t(r,n,i){return ZC.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const lc=P2({body:e_,caption:qu,colgroup:qu,dd:i_,dt:n_,head:qu,html:JC,li:r_,optgroup:a_,option:s_,p:t_,rp:yf,rt:yf,tbody:u_,td:xf,tfoot:l_,th:xf,thead:o_,tr:c_});function qu(e,t,r){const n=nt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&xo(n.value.charAt(0)))}function JC(e,t,r){const n=nt(r,t);return!n||n.type!=="comment"}function e_(e,t,r){const n=nt(r,t);return!n||n.type!=="comment"}function t_(e,t,r){const n=nt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function r_(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function n_(e,t,r){const n=nt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function i_(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function yf(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function a_(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function s_(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function o_(e,t,r){const n=nt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function u_(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function l_(e,t,r){return!nt(r,t)}function c_(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function xf(e,t,r){const n=nt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const h_=P2({body:m_,colgroup:p_,head:f_,html:d_,tbody:g_});function d_(e){const t=nt(e,-1);return!t||t.type!=="comment"}function f_(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function m_(e){const t=nt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&xo(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function p_(e,t,r){const n=I2(r,t),i=nt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&lc(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function g_(e,t,r){const n=I2(r,t),i=nt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&lc(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ds={name:[[`
|
|
302
|
+
\f\r &/=>`.split(""),`
|
|
303
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
304
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
305
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
306
|
+
\f\r &>`.split(""),`\0
|
|
307
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
308
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
309
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function b_(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const o=[];let u;i.space==="html"&&e.tagName==="svg"&&(n.schema=Sn);const l=y_(n,e.properties),h=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,h&&(s=!1),(l||!a||!h_(e,t,r))&&(o.push("<",e.tagName,l?" "+l:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(h),!s&&(!a||!lc(e,t,r))&&o.push("</"+e.tagName+">"),o.join("")}function y_(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=x_(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function x_(e,t,r){const n=Eo(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let s=e.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=gi(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ds.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?p0:b0)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(o=gi(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ds.unquoted[i][a]}))),o!==r&&(e.settings.quoteSmart&&Gs(r,s)>Gs(r,e.alternative)&&(s=e.alternative),o=s+gi(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?ds.single:ds.double)[i][a],attribute:!0}))+s),u+(o&&"="+o))}const E_=["<","&"];function L2(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:gi(e.value,Object.assign({},n.settings.characterReferences,{subset:E_}))}function v_(e,t,r,n){return n.settings.allowDangerousHtml?e.value:L2(e,t,r,n)}function T_(e,t,r,n){return n.all(e)}const w_=J0("type",{invalid:k_,unknown:S_,handlers:{comment:XC,doctype:QC,element:b_,raw:v_,root:T_,text:L2}});function k_(e){throw new Error("Expected node, not `"+e+"`")}function S_(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const A_={},C_={},__=[];function N_(e,t){const r=t||A_,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:I_,all:R_,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||rg,characterReferences:r.characterReferences||C_,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Sn:Ma,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function I_(e,t,r){return w_(e,t,r,this)}function R_(e){const t=[],r=e&&e.children||__;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function Zs(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[i,a]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof a=="string"?r[i]=a:i===n&&Object.assign(r,a);return r}function bn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function P_(e){return Array.isArray(e)?e:[e]}async function D2(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function cc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function M2(e){return e==="ansi"||cc(e)}function hc(e){return e==="none"}function O2(e){return hc(e)}function B2(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const i of r)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function Oo(e,t=!1){var a;const r=e.split(/(\r?\n)/g);let n=0;const i=[];for(let s=0;s<r.length;s+=2){const o=t?r[s]+(r[s+1]||""):r[s];i.push([o,n]),n+=r[s].length,n+=((a=r[s+1])==null?void 0:a.length)||0}return i}function L_(e){const t=Oo(e,!0).map(([i])=>i);function r(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=i,s=0;for(const o of t){if(a<o.length)break;a-=o.length,s++}return{line:s,character:a}}function n(i,a){let s=0;for(let o=0;o<i;o++)s+=t[o].length;return s+=a,s}return{lines:t,indexToPos:r,posToIndex:n}}const dc="light-dark()",D_=["color","background-color"];function M_(e,t){let r=0;const n=[];for(const i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function O_(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,i)=>n-i);return r.length?e.map(n=>n.flatMap(i=>{const a=r.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,o)=>s-o);return a.length?M_(i,a):i})):e}function B_(e,t,r,n,i="css-vars"){const a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(h=>Js(e.variants[h])),o=new Set(s.flatMap(h=>Object.keys(h))),u={},l=(h,c)=>{const d=c==="color"?"":c==="background-color"?"-bg":`-${c}`;return r+t[h]+(c==="color"?"":d)};return s.forEach((h,c)=>{for(const d of o){const f=h[d]||"inherit";if(c===0&&n&&D_.includes(d))if(n===dc&&s.length>1){const g=t.findIndex(v=>v==="light"),y=t.findIndex(v=>v==="dark");if(g===-1||y===-1)throw new Ze('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const T=s[g][d]||"inherit",x=s[y][d]||"inherit";u[d]=`light-dark(${T}, ${x})`,i==="css-vars"&&(u[l(c,d)]=f)}else u[d]=f;else i==="css-vars"&&(u[l(c,d)]=f)}}),a.htmlStyle=u,a}function Js(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&pt.Italic&&(t["font-style"]="italic"),e.fontStyle&pt.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&pt.Underline&&r.push("underline"),e.fontStyle&pt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function $l(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}const F2=new WeakMap;function Bo(e,t){F2.set(e,t)}function Na(e){return F2.get(e)}class Oi{constructor(...t){q(this,"_stacks",{});q(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,i]=t;this.lang=n,this._stacks={[i]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new Oi(Object.fromEntries(P_(r).map(n=>[n,Ul])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return F_(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function F_(e){const t=[],r=new Set;function n(i){var s;if(r.has(i))return;r.add(i);const a=(s=i==null?void 0:i.nameScopesList)==null?void 0:s.scopeName;a&&t.push(a),i.parent&&n(i.parent)}return n(e),t}function H_(e,t){if(!(e instanceof Oi))throw new Ze("Invalid grammar state");return e.getInternalStack(t)}function z_(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new Ze(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...i.indexToPos(s),offset:s}}else{const o=i.lines[s.line];if(o===void 0)throw new Ze(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let u=s.character;if(u<0&&(u=o.length+u),u<0||u>o.length)throw new Ze(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${o.length}`);return{...s,character:u,offset:i.posToIndex(s.line,u)}}};const i=L_(r.source),a=(r.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));U_(a),e.set(r.meta,{decorations:a,converter:i,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){var s;if(!((s=this.options.decorations)!=null&&s.length))return;const i=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return O_(r,i)},code(r){var h;if(!((h=this.options.decorations)!=null&&h.length))return;const n=t(this),i=Array.from(r.children).filter(c=>c.type==="element"&&c.tagName==="span");if(i.length!==n.converter.lines.length)throw new Ze(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function a(c,d,f,g){const y=i[c];let T="",x=-1,v=-1;if(d===0&&(x=0),f===0&&(v=0),f===Number.POSITIVE_INFINITY&&(v=y.children.length),x===-1||v===-1)for(let R=0;R<y.children.length;R++)T+=H2(y.children[R]),x===-1&&T.length===d&&(x=R+1),v===-1&&T.length===f&&(v=R+1);if(x===-1)throw new Ze(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(v===-1)throw new Ze(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const k=y.children.slice(x,v);if(!g.alwaysWrap&&k.length===y.children.length)o(y,g,"line");else if(!g.alwaysWrap&&k.length===1&&k[0].type==="element")o(k[0],g,"token");else{const R={type:"element",tagName:"span",properties:{},children:k};o(R,g,"wrapper"),y.children.splice(x,k.length,R)}}function s(c,d){i[c]=o(i[c],d,"line")}function o(c,d,f){var T;const g=d.properties||{},y=d.transform||(x=>x);return c.tagName=d.tagName||"span",c.properties={...c.properties,...g,class:c.properties.class},(T=d.properties)!=null&&T.class&&B2(c,d.properties.class),c=y(c,f)||c,c}const u=[],l=n.decorations.sort((c,d)=>d.start.offset-c.start.offset||c.end.offset-d.end.offset);for(const c of l){const{start:d,end:f}=c;if(d.line===f.line)a(d.line,d.character,f.character,c);else if(d.line<f.line){a(d.line,d.character,Number.POSITIVE_INFINITY,c);for(let g=d.line+1;g<f.line;g++)u.unshift(()=>s(g,c));a(f.line,0,f.character,c)}}u.forEach(c=>c())}}}function U_(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new Ze(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const i=e[n],a=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,s=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,o=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,u=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(a||s||o||u){if(a&&s||o&&u||o&&r.start.offset===r.end.offset||s&&i.start.offset===i.end.offset)continue;throw new Ze(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function H2(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(H2).join(""):""}const q_=[z_()];function eo(e){const t=$_(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...q_]}function $_(e){const t=[],r=[],n=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}var Bn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],$u={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function j_(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Ef(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function G_(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)$u[n]&&t.push({type:"setDecoration",value:$u[n]});else if(n<=29){const i=$u[n-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Bn[n-30]}});else if(n===38){const i=Ef(e);i&&t.push({type:"setForegroundColor",value:i})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Bn[n-40]}});else if(n===48){const i=Ef(e);i&&t.push({type:"setBackgroundColor",value:i})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Bn[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Bn[n-100+8]}})}return t}function V_(){let e=null,t=null,r=new Set;return{parse(n){const i=[];let a=0;do{const s=j_(n,a),o=s.sequence?n.substring(a,s.startPosition):n.substring(a);if(o.length>0&&i.push({value:o,foreground:e,background:t,decorations:new Set(r)}),s.sequence){const u=G_(s.sequence);for(const l of u)l.type==="resetAll"?(e=null,t=null,r.clear()):l.type==="resetForegroundColor"?e=null:l.type==="resetBackgroundColor"?t=null:l.type==="resetDecoration"&&r.delete(l.value);for(const l of u)l.type==="setForegroundColor"?e=l.value:l.type==="setBackgroundColor"?t=l.value:l.type==="setDecoration"&&r.add(l.value)}a=s.position}while(a<n.length);return i}}}var W_={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Y_(e=W_){function t(o){return e[o]}function r(o){return`#${o.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let l=0;l<Bn.length;l++)n.push(t(Bn[l]));let o=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let h=0;h<6;h++)for(let c=0;c<6;c++)n.push(r([o[l],o[h],o[c]]));let u=8;for(let l=0;l<24;l++,u+=10)n.push(r([u,u,u]));return n}function a(o){return i()[o]}function s(o){switch(o.type){case"named":return t(o.name);case"rgb":return r(o.rgb);case"table":return a(o.index)}}return{value:s}}const X_={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Q_(e,t,r){const n=Zs(e,r),i=Oo(t),a=Object.fromEntries(Bn.map(u=>{var c;const l=`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`,h=(c=e.colors)==null?void 0:c[l];return[u,h||X_[u]]})),s=Y_(a),o=V_();return i.map(u=>o.parse(u[0]).map(l=>{let h,c;l.decorations.has("reverse")?(h=l.background?s.value(l.background):e.bg,c=l.foreground?s.value(l.foreground):e.fg):(h=l.foreground?s.value(l.foreground):e.fg,c=l.background?s.value(l.background):void 0),h=bn(h,n),c=bn(c,n),l.decorations.has("dim")&&(h=K_(h));let d=pt.None;return l.decorations.has("bold")&&(d|=pt.Bold),l.decorations.has("italic")&&(d|=pt.Italic),l.decorations.has("underline")&&(d|=pt.Underline),l.decorations.has("strikethrough")&&(d|=pt.Strikethrough),{content:l.value,offset:u[1],color:h,bgColor:c,fontStyle:d}}))}function K_(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){const n=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${n}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(n=>`${n}${n}`).join("")}80`;const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function fc(e,t,r={}){const{lang:n="text",theme:i=e.getLoadedThemes()[0]}=r;if(cc(n)||hc(i))return Oo(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:s}=e.setTheme(i);if(n==="ansi")return Q_(a,t,r);const o=e.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==o.name)throw new Ze(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${o.name}"`);if(!r.grammarState.themes.includes(a.name))throw new Ze(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return J_(t,o,a,s,r)}function Z_(...e){if(e.length===2)return Na(e[1]);const[t,r,n={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=n;if(cc(i)||hc(a))throw new Ze("Plain language does not have grammar state");if(i==="ansi")throw new Ze("ANSI language does not have grammar state");const{theme:s,colorMap:o}=t.setTheme(a),u=t.getLanguage(i);return new Oi(to(r,u,s,o,n).stateStack,u.name,s.name)}function J_(e,t,r,n,i){const a=to(e,t,r,n,i),s=new Oi(to(e,t,r,n,i).stateStack,t.name,r.name);return Bo(a.tokens,s),a.tokens}function to(e,t,r,n,i){const a=Zs(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=i,u=Oo(e);let l=i.grammarState?H_(i.grammarState,r.name)??Ul:i.grammarContextCode!=null?to(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ul,h=[];const c=[];for(let d=0,f=u.length;d<f;d++){const[g,y]=u[d];if(g===""){h=[],c.push([]);continue}if(s>0&&g.length>=s){h=[],c.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let T,x,v;i.includeExplanation&&(T=t.tokenizeLine(g,l,o),x=T.tokens,v=0);const k=t.tokenizeLine2(g,l,o),R=k.tokens.length/2;for(let O=0;O<R;O++){const I=k.tokens[2*O],F=O+1<R?k.tokens[2*O+2]:g.length;if(I===F)continue;const G=k.tokens[2*O+1],Y=bn(n[ki.getForeground(G)],a),B=ki.getFontStyle(G),X={content:g.substring(I,F),offset:y+I,color:Y,fontStyle:B};if(i.includeExplanation){const V=[];if(i.includeExplanation!=="scopeName")for(const Q of r.settings){let K;switch(typeof Q.scope){case"string":K=Q.scope.split(/,/).map(ce=>ce.trim());break;case"object":K=Q.scope;break;default:continue}V.push({settings:Q,selectors:K.map(ce=>ce.split(/ /))})}X.explanation=[];let ue=0;for(;I+ue<F;){const Q=x[v],K=g.substring(Q.startIndex,Q.endIndex);ue+=K.length,X.explanation.push({content:K,scopes:i.includeExplanation==="scopeName"?eN(Q.scopes):tN(V,Q.scopes)}),v+=1}}h.push(X)}c.push(h),h=[],l=k.ruleStack}return{tokens:c,stateStack:l}}function eN(e){return e.map(t=>({scopeName:t}))}function tN(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const a=t[n];r[n]={scopeName:a,themeMatches:nN(e,a,t.slice(0,n))}}return r}function vf(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function rN(e,t,r){if(!vf(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)vf(e[n],r[i])&&(n-=1),i-=1;return n===-1}function nN(e,t,r){const n=[];for(const{selectors:i,settings:a}of e)for(const s of i)if(rN(s,t,r)){n.push(a);break}return n}function z2(e,t,r){const n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),i=n.map(u=>{const l=fc(e,t,{...r,theme:u.theme}),h=Na(l),c=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:l,state:h,theme:c}}),a=iN(...i.map(u=>u.tokens)),s=a[0].map((u,l)=>u.map((h,c)=>{const d={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in r&&r.includeExplanation&&(d.explanation=h.explanation),a.forEach((f,g)=>{const{content:y,explanation:T,offset:x,...v}=f[l][c];d.variants[n[g].color]=v}),d})),o=i[0].state?new Oi(Object.fromEntries(i.map(u=>{var l;return[u.theme,(l=u.state)==null?void 0:l.getInternalStack(u.theme)]})),i[0].state.lang):void 0;return o&&Bo(s,o),s}function iN(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const i=e.map(u=>u[n]),a=t.map(()=>[]);t.forEach((u,l)=>u.push(a[l]));const s=i.map(()=>0),o=i.map(u=>u[0]);for(;o.every(u=>u);){const u=Math.min(...o.map(l=>l.content.length));for(let l=0;l<r;l++){const h=o[l];h.content.length===u?(a[l].push(h),s[l]+=1,o[l]=i[l][s[l]]):(a[l].push({...h,content:h.content.slice(0,u)}),o[l]={...h,content:h.content.slice(u),offset:h.offset+u})}}}return t}function ro(e,t,r){let n,i,a,s,o,u;if("themes"in r){const{defaultColor:l="light",cssVariablePrefix:h="--shiki-",colorsRendering:c="css-vars"}=r,d=Object.entries(r.themes).filter(x=>x[1]).map(x=>({color:x[0],theme:x[1]})).sort((x,v)=>x.color===l?-1:v.color===l?1:0);if(d.length===0)throw new Ze("`themes` option must not be empty");const f=z2(e,t,r);if(u=Na(f),l&&dc!==l&&!d.find(x=>x.color===l))throw new Ze(`\`themes\` option must contain the defaultColor key \`${l}\``);const g=d.map(x=>e.getTheme(x.theme)),y=d.map(x=>x.color);a=f.map(x=>x.map(v=>B_(v,y,h,l,c))),u&&Bo(a,u);const T=d.map(x=>Zs(x.theme,r));i=Tf(d,g,T,h,l,"fg",c),n=Tf(d,g,T,h,l,"bg",c),s=`shiki-themes ${g.map(x=>x.name).join(" ")}`,o=l?void 0:[i,n].join(";")}else if("theme"in r){const l=Zs(r.theme,r);a=fc(e,t,r);const h=e.getTheme(r.theme);n=bn(h.bg,l),i=bn(h.fg,l),s=h.name,u=Na(a)}else throw new Ze("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:n,themeName:s,rootStyle:o,grammarState:u}}function Tf(e,t,r,n,i,a,s){return e.map((o,u)=>{const l=bn(t[u][a],r[u])||"inherit",h=`${n+o.color}${a==="bg"?"-bg":""}:${l}`;if(u===0&&i){if(i===dc&&e.length>1){const c=e.findIndex(y=>y.color==="light"),d=e.findIndex(y=>y.color==="dark");if(c===-1||d===-1)throw new Ze('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=bn(t[c][a],r[c])||"inherit",g=bn(t[d][a],r[d])||"inherit";return`light-dark(${f}, ${g});${h}`}return l}return s==="css-vars"?h:null}).filter(o=>!!o).join(";")}function no(e,t,r,n={meta:{},options:r,codeToHast:(i,a)=>no(e,i,a),codeToTokens:(i,a)=>ro(e,i,a)}){var g,y;let i=t;for(const T of eo(r))i=((g=T.preprocess)==null?void 0:g.call(n,i,r))||i;let{tokens:a,fg:s,bg:o,themeName:u,rootStyle:l,grammarState:h}=ro(e,i,r);const{mergeWhitespaces:c=!0,mergeSameStyleTokens:d=!1}=r;c===!0?a=sN(a):c==="never"&&(a=oN(a)),d&&(a=uN(a));const f={...n,get source(){return i}};for(const T of eo(r))a=((y=T.tokens)==null?void 0:y.call(f,a))||a;return aN(a,{...r,fg:s,bg:o,themeName:u,rootStyle:l},f,h)}function aN(e,t,r,n=Na(e)){var g,y,T;const i=eo(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:u="0"}=t;let l={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([x])=>!x.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:a};const c=[],d={...r,structure:o,addClassToHast:B2,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return l},get code(){return h},get lines(){return c}};if(e.forEach((x,v)=>{var O,I;v&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&a.push({type:"text",value:`
|
|
310
|
+
`}));let k={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const F of x){let G={type:"element",tagName:"span",properties:{...F.htmlAttrs},children:[{type:"text",value:F.content}]};const Y=$l(F.htmlStyle||Js(F));Y&&(G.properties.style=Y);for(const B of i)G=((O=B==null?void 0:B.span)==null?void 0:O.call(d,G,v+1,R,k,F))||G;o==="inline"?s.children.push(G):o==="classic"&&k.children.push(G),R+=F.content.length}if(o==="classic"){for(const F of i)k=((I=F==null?void 0:F.line)==null?void 0:I.call(d,k,v+1))||k;c.push(k),a.push(k)}}),o==="classic"){for(const x of i)h=((g=x==null?void 0:x.code)==null?void 0:g.call(d,h))||h;l.children.push(h);for(const x of i)l=((y=x==null?void 0:x.pre)==null?void 0:y.call(d,l))||l;s.children.push(l)}let f=s;for(const x of i)f=((T=x==null?void 0:x.root)==null?void 0:T.call(d,f))||f;return n&&Bo(f,n),f}function sN(e){return e.map(t=>{const r=[];let n="",i=0;return t.forEach((a,s)=>{const u=!(a.fontStyle&&(a.fontStyle&pt.Underline||a.fontStyle&pt.Strikethrough));u&&a.content.match(/^\s+$/)&&t[s+1]?(i||(i=a.offset),n+=a.content):n?(u?r.push({...a,offset:i,content:n+a.content}):r.push({content:n,offset:i},a),i=0,n=""):r.push(a)}),r})}function oN(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,a,s]=n;if(!i&&!s)return r;const o=[{...r,offset:r.offset+i.length,content:a}];return i&&o.unshift({content:i,offset:r.offset}),s&&o.push({content:s,offset:r.offset+i.length+a.length}),o}))}function uN(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const i=r[r.length-1],a=$l(i.htmlStyle||Js(i)),s=$l(n.htmlStyle||Js(n)),o=i.fontStyle&&(i.fontStyle&pt.Underline||i.fontStyle&pt.Strikethrough),u=n.fontStyle&&(n.fontStyle&pt.Underline||n.fontStyle&pt.Strikethrough);!o&&!u&&a===s?i.content+=n.content:r.push({...n})}return r})}const lN=N_;function cN(e,t,r){var a;const n={meta:{},options:r,codeToHast:(s,o)=>no(e,s,o),codeToTokens:(s,o)=>ro(e,s,o)};let i=lN(no(e,t,r,n));for(const s of eo(r))i=((a=s.postprocess)==null?void 0:a.call(n,i,r))||i;return i}const wf={light:"#333333",dark:"#bbbbbb"},kf={light:"#fffffe",dark:"#1e1e1e"},Sf="__shiki_resolved";function mc(e){var o,u,l,h,c;if(e!=null&&e[Sf])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:n}=t;if(!r||!n){const d=t.settings?t.settings.find(f=>!f.name&&!f.scope):void 0;(o=d==null?void 0:d.settings)!=null&&o.foreground&&(n=d.settings.foreground),(u=d==null?void 0:d.settings)!=null&&u.background&&(r=d.settings.background),!n&&((l=t==null?void 0:t.colors)!=null&&l["editor.foreground"])&&(n=t.colors["editor.foreground"]),!r&&((h=t==null?void 0:t.colors)!=null&&h["editor.background"])&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?wf.light:wf.dark),r||(r=t.type==="light"?kf.light:kf.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const a=new Map;function s(d){var g;if(a.has(d))return a.get(d);i+=1;const f=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(g=t.colorReplacements)!=null&&g[`#${f}`]?s(d):(a.set(d,f),f)}t.settings=t.settings.map(d=>{var T,x;const f=((T=d.settings)==null?void 0:T.foreground)&&!d.settings.foreground.startsWith("#"),g=((x=d.settings)==null?void 0:x.background)&&!d.settings.background.startsWith("#");if(!f&&!g)return d;const y={...d,settings:{...d.settings}};if(f){const v=s(d.settings.foreground);t.colorReplacements[v]=d.settings.foreground,y.settings.foreground=v}if(g){const v=s(d.settings.background);t.colorReplacements[v]=d.settings.background,y.settings.background=v}return y});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((c=t.colors[d])!=null&&c.startsWith("#"))){const f=s(t.colors[d]);t.colorReplacements[f]=t.colors[d],t.colors[d]=f}return Object.defineProperty(t,Sf,{enumerable:!1,writable:!1,value:!0}),t}async function U2(e){return Array.from(new Set((await Promise.all(e.filter(t=>!M2(t)).map(async t=>await D2(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function q2(e){return(await Promise.all(e.map(async r=>O2(r)?null:mc(await D2(r))))).filter(r=>!!r)}let hN=3;function dN(e,t=3){t>hN||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ci=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class fN extends NC{constructor(r,n,i,a={}){super(r);q(this,"_resolvedThemes",new Map);q(this,"_resolvedGrammars",new Map);q(this,"_langMap",new Map);q(this,"_langGraph",new Map);q(this,"_textmateThemeCache",new WeakMap);q(this,"_loadedThemesCache",null);q(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=n,this._langs=i,this._alias=a,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const n=mc(r);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let n=this._textmateThemeCache.get(r);n||(n=Ws.createFromRawTheme(r),this._textmateThemeCache.set(r,n)),this._syncRegistry.setTheme(n)}getGrammar(r){if(this._alias[r]){const n=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],n.has(r))throw new ci(`Circular alias \`${Array.from(n).join(" -> ")} -> ${r}\``);n.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var s,o,u,l;if(this.getGrammar(r.name))return;const n=new Set([...this._langMap.values()].filter(h=>{var c;return(c=h.embeddedLangsLazy)==null?void 0:c.includes(r.name)}));this._resolver.addLanguage(r);const i={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const a=this.loadGrammarWithConfiguration(r.scopeName,1,i);if(a.name=r.name,this._resolvedGrammars.set(r.name,a),r.aliases&&r.aliases.forEach(h=>{this._alias[h]=r.name}),this._loadedLanguagesCache=null,n.size)for(const h of n)this._resolvedGrammars.delete(h.name),this._loadedLanguagesCache=null,(o=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||o.delete(h.scopeName),(l=(u=this._syncRegistry)==null?void 0:u._grammars)==null||l.delete(h.scopeName),this.loadLanguage(this._langMap.get(h.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const a of r)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),i=n.filter(([a,s])=>!s);if(i.length){const a=n.filter(([s,o])=>{var u;return o&&((u=o.embeddedLangs)==null?void 0:u.some(l=>i.map(([h])=>h).includes(l)))}).filter(s=>!i.includes(s));throw new ci(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const n of r.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class mN{constructor(t,r){q(this,"_langs",new Map);q(this,"_scopeToLang",new Map);q(this,"_injections",new Map);q(this,"_onigLib");this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},r.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(r=>{this._langs.set(r,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(t.scopeName)})}getInjections(t){const r=t.split(".");let n=[];for(let i=1;i<=r.length;i++){const a=r.slice(0,i).join(".");n=[...n,...this._injections.get(a)||[]]}return n}}let Xi=0;function pN(e){Xi+=1,e.warnings!==!1&&Xi>=10&&Xi%10===0&&console.warn(`[Shiki] ${Xi} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ci("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(mc),i=new mN(e.engine,r),a=new fN(i,n,r,e.langAlias);let s;function o(v){T();const k=a.getGrammar(typeof v=="string"?v:v.name);if(!k)throw new ci(`Language \`${v}\` not found, you may need to load it first`);return k}function u(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const k=a.getTheme(v);if(!k)throw new ci(`Theme \`${v}\` not found, you may need to load it first`);return k}function l(v){T();const k=u(v);s!==v&&(a.setTheme(k),s=v);const R=a.getColorMap();return{theme:k,colorMap:R}}function h(){return T(),a.getLoadedThemes()}function c(){return T(),a.getLoadedLanguages()}function d(...v){T(),a.loadLanguages(v.flat(1))}async function f(...v){return d(await U2(v))}function g(...v){T();for(const k of v.flat(1))a.loadTheme(k)}async function y(...v){return T(),g(await q2(v))}function T(){if(t)throw new ci("Shiki instance has been disposed")}function x(){t||(t=!0,a.dispose(),Xi-=1)}return{setTheme:l,getTheme:u,getLanguage:o,getLoadedThemes:h,getLoadedLanguages:c,loadLanguage:f,loadLanguageSync:d,loadTheme:y,loadThemeSync:g,dispose:x,[Symbol.dispose]:x}}async function gN(e){e.engine||dN("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([q2(e.themes||[]),U2(e.langs||[]),e.engine]);return pN({...e,themes:t,langs:r,engine:n})}async function bN(e){const t=await gN(e);return{getLastGrammarState:(...r)=>Z_(t,...r),codeToTokensBase:(r,n)=>fc(t,r,n),codeToTokensWithThemes:(r,n)=>z2(t,r,n),codeToTokens:(r,n)=>ro(t,r,n),codeToHast:(r,n)=>no(t,r,n),codeToHtml:(r,n)=>cN(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function yN(e){const t=e.langs,r=e.themes,n=e.engine;async function i(a){function s(c){var d;if(typeof c=="string"){if(M2(c))return[];c=((d=a.langAlias)==null?void 0:d[c])||c;const f=t[c];if(!f)throw new Ze(`Language \`${c}\` is not included in this bundle. You may want to load it from external source.`);return f}return c}function o(c){if(O2(c))return"none";if(typeof c=="string"){const d=r[c];if(!d)throw new Ze(`Theme \`${c}\` is not included in this bundle. You may want to load it from external source.`);return d}return c}const u=(a.themes??[]).map(c=>o(c)),l=(a.langs??[]).map(c=>s(c)),h=await bN({engine:a.engine??n(),...a,themes:u,langs:l});return{...h,loadLanguage(...c){return h.loadLanguage(...c.map(s))},loadTheme(...c){return h.loadTheme(...c.map(o))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return i}const $2=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./abap-DV7Q1lGP.cjs"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./actionscript-3-DXOxkRa2.cjs"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./ada-D46EKCNf.cjs"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./angular-html-KMf2QdtP.cjs")).then(e=>e.angularHtml)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./angular-ts-BxIbo3R1.cjs"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./apache-DL1xuH1f.cjs"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./apex-UUd3Occv.cjs"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./apl-Dj2G2M9w.cjs"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./applescript-COilsSrZ.cjs"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./ara-B6Lpq1YJ.cjs"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./asciidoc-DcKqW72n.cjs"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./asm-DYMFy-sD.cjs"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./astro-DAOP_Xq6.cjs"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./awk-IEszImW6.cjs"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./ballerina-Dr6dU4hP.cjs"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./bat-DGkUhhn2.cjs"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./beancount-Bv1Sweoy.cjs"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./berry-DZkhZ7K3.cjs"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./bibtex-BgA36Z3k.cjs"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./bicep-DL0zb-7W.cjs"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./blade-BYkiyM-T.cjs"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./bsl-9bVgFeM9.cjs"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./c-CtlmKnPF.cjs"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./cadence-DcbmM5v3.cjs"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./cairo-li7sQsxU.cjs"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./clarity-gPuvqtpF.cjs"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./clojure-OUsr1SUl.cjs"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./cmake-jM6P58qY.cjs"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./cobol-CcrsCSUZ.cjs"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./codeowners-QhPK6lIJ.cjs"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./codeql-D9-TdUN8.cjs"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./coffee-DycxIFwY.cjs"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./common-lisp-C77gR-8i.cjs"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./coq-vlPdR5hP.cjs"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./cpp-DvI2Eoso.cjs"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./crystal-B_WXhL2O.cjs"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./csharp-C902_8Dy.cjs"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./css-Do0mp2lm.cjs"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./csv-DiEdJzSJ.cjs"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./cue-D1vJRJEx.cjs"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./cypher-atSM3NsM.cjs"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./d-2qe3NhmZ.cjs"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./dart-Ds0_0fwe.cjs"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./dax-DbkQa40E.cjs"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./desktop-tn3MFXCZ.cjs"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./diff-CA31fCOg.cjs"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./docker-zJpMwmYa.cjs"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./dotenv-DpcNCNek.cjs"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./dream-maker-BkijXDkm.cjs"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./edge-DaIYN5Mx.cjs"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./elixir-BH_wmMK4.cjs"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./elm-Dc4sEBjc.cjs"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./emacs-lisp-C1UCIjUO.cjs"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./erb-BqFQADjR.cjs"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./erlang-CB2cfp6Z.cjs"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./fennel-Bz9-EMMc.cjs"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./fish-DwmQKRZi.cjs"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./fluent-CJtpNuaO.cjs"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./fortran-fixed-form-rAbNFykM.cjs"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./fortran-free-form-DRAcQkel.cjs"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./fsharp-DVcRF7k-.cjs"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./gdresource-CcLusmd_.cjs"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./gdscript-DSegQKMB.cjs"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./gdshader-DsmqQl4t.cjs"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./genie-Dy2rU8CF.cjs"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./gherkin-BmiEVBJ1.cjs"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./git-commit-DlVDzq9L.cjs"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./git-rebase-Bn4RLd7u.cjs"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./gleam-DHVuTCr7.cjs"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./glimmer-js-CzmC7OX8.cjs"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./glimmer-ts-DLN2_wRt.cjs"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./glsl-CQekZ3Zq.cjs"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./gnuplot-CDPKvI9X.cjs"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./go-epHseFUa.cjs"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./graphql-BnP1YhXQ.cjs"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./groovy-D7VuDBXz.cjs"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./hack-BaDv2o40.cjs"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./haml-Bk21rGjP.cjs"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./handlebars-CJJi3lrU.cjs"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./haskell-BShesV2P.cjs"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./haxe-Bo5XuRS0.cjs"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./hcl-CrZnvm-1.cjs"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./hjson-CEESwTUP.cjs"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./hlsl-CyvYRIb9.cjs"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./html-C62Zf2h4.cjs"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./html-derivative-NDb86jON.cjs"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./http-BPlLI56k.cjs"))},{id:"hurl",name:"Hurl",import:()=>Promise.resolve().then(()=>require("./hurl-BQGBr8gH.cjs"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./hxml-vnw7fzrV.cjs"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./hy-a1E2Ed6P.cjs"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./imba-CR1Q6r17.cjs"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./ini-Dpu3Xy2p.cjs"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./java--6gf61wy.cjs"))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>Promise.resolve().then(()=>require("./javascript-DgmXW4Ha.cjs"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./jinja-6NmewwV8.cjs"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./jison-CD9Qsaj0.cjs"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./json-YkPizm35.cjs"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./json5-CCgFZiQn.cjs"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./jsonc-CKPHIcXW.cjs"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./jsonl-Dq56Hab-.cjs"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./jsonnet-Csh7E68F.cjs"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./jssm-D0M9iZPY.cjs"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./jsx-DLX6UGgg.cjs"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./julia-DimQn8rn.cjs"))},{id:"kdl",name:"KDL",import:()=>Promise.resolve().then(()=>require("./kdl-CDG1p2Qi.cjs"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./kotlin-BHZjvNqT.cjs"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./kusto-BgZ0fOqg.cjs"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./latex-Xma1qZep.cjs"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./lean-BCqiTZhG.cjs"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./less-Dtg8mm6P.cjs"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./liquid-DjlCV7Vm.cjs"))},{id:"llvm",name:"LLVM IR",import:()=>Promise.resolve().then(()=>require("./llvm-DcRvQ_r8.cjs"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./log-CjTZ0gSB.cjs"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./logo-BAktp_5i.cjs"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./lua-BfOnSJPp.cjs"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./luau-DTep-u3e.cjs"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./make-NcdIe21U.cjs"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./markdown-Byu9Sdmq.cjs"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./marko-Cvx4TamJ.cjs"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./matlab-CHTOL9Kx.cjs"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./mdc-DEPKJPdx.cjs"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./mdx-CjwI68TB.cjs"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./mermaid-XEfjk_VN.cjs"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./mipsasm-BSlRcFIy.cjs"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./mojo-BQ8pQfYA.cjs"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./move-Bm1vlCWg.cjs"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./narrat-CBeKHgTl.cjs"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./nextflow-0_vzQJwQ.cjs"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./nginx-ByVOUyIE.cjs"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./nim-Bqmp5Of3.cjs"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./nix-BoOZl1xr.cjs"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./nushell-nGrB_wpI.cjs"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./objective-c-RjkWwFge.cjs"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./objective-cpp-HnfhWwRe.cjs"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./ocaml-Cx8ewW_A.cjs"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./pascal-DBu9vQ2o.cjs"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./perl-CxWZPeDZ.cjs"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./php-BLXVJphD.cjs"))},{id:"pkl",name:"Pkl",import:()=>Promise.resolve().then(()=>require("./pkl-Dvyry4Rm.cjs"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./plsql-IJkoPJ9P.cjs"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./po-Rhu6MvnX.cjs"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./polar-BtWqSUq2.cjs"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./postcss-Dh97DcaJ.cjs"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./powerquery-BGL6VIw7.cjs"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./powershell-BiEPMjy-.cjs"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./prisma-Dp473sn0.cjs"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./prolog-N1U-3UeF.cjs"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./proto-kd7Vn2fe.cjs"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./pug-DiGNE7sm.cjs"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./puppet-cDQP_ZC_.cjs"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./purescript-DMxb59gF.cjs"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./python-s9jfVbew.cjs"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./qml-beorq0E4.cjs"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./qmldir-DNF9H2ir.cjs"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./qss-DwA_oiAM.cjs"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./r-ChIwckeM.cjs"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./racket-D4laxZit.cjs"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./raku-DHySPsLw.cjs"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./razor-DgCbant-.cjs"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./reg-CevkCKuZ.cjs"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./regexp-DabTWNLE.cjs"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./rel-BS5APza7.cjs"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./riscv-BnGFr6V7.cjs"))},{id:"rosmsg",name:"ROS Interface",import:()=>Promise.resolve().then(()=>require("./rosmsg-C7VSFzUC.cjs"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./rst-D08gsKw8.cjs"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./ruby-B5H7kBtd.cjs"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./rust-CNeTMPbB.cjs"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./sas-D5Fn8Q38.cjs"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./sass-vyo-bUwh.cjs"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./scala-ZSekD-8-.cjs"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./scheme-vM0LdD-_.cjs"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./scss-CKlduTMv.cjs"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./sdbl-DeWT5r4i.cjs"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./shaderlab-DGJjQHxC.cjs"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./shellscript-DYWjN7qW.cjs"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./shellsession-DMUSXX8m.cjs"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./smalltalk-BNs6hxu4.cjs"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./solidity-CYggdHYd.cjs"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./soy-CDFPDtGX.cjs"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./sparql-6Cg9ppCl.cjs"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./splunk-CWPivao_.cjs"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./sql-DhUUVgH1.cjs"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./ssh-config-B93wBIBa.cjs"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./stata-DCWFCQQG.cjs"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./stylus-B64Bt0D4.cjs"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./svelte-DFg_x5i4.cjs"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./swift-BMbGdc3j.cjs"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./system-verilog-BFclLo9e.cjs"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./systemd-Dtw7P4tb.cjs"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./talonscript-D8SvZJVc.cjs"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./tasl--DC4oX-L.cjs"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./tcl-0Q0H86Yn.cjs"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./templ-BDNMUns0.cjs"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./terraform-C0RDrmWi.cjs"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./tex-By7qnogv.cjs"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./toml-Q64DoSvG.cjs"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./ts-tags-DILCom6A.cjs"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./tsv-DqNGnuVj.cjs"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./tsx-DIpfUf9u.cjs"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./turtle-DipIidr5.cjs"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./twig-B42NGISI.cjs"))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>Promise.resolve().then(()=>require("./typescript-b48wo4zk.cjs"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./typespec-CLqB-2XS.cjs"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./typst-Cqq4j4V-.cjs"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./v-81C2s01-.cjs"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./vala-CsAYdCD2.cjs"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./vb-AiTMb16X.cjs"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./verilog-AMohXZcN.cjs"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./vhdl-DIdR1NA5.cjs"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./viml-D01eKeA4.cjs"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./vue-DUYfTwgV.cjs"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./vue-html-B8T_zUQ-.cjs"))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.resolve().then(()=>require("./vue-vine-ClEtVpt5.cjs"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./vyper-DTzyzn3a.cjs"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./wasm-Dp-QrJpp.cjs"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./wenyan-CRNx8UP3.cjs"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./wgsl-DF5qc9dd.cjs"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./wikitext-D7uzEIfK.cjs"))},{id:"wit",name:"WebAssembly Interface Types",import:()=>Promise.resolve().then(()=>require("./wit-BjWgLsJj.cjs"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./wolfram-BR4t3Ffc.cjs"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./xml-BpsKWkuV.cjs"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./xsl-D-3VYix6.cjs"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./yaml-XVBmpKh-.cjs"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./zenscript-fNvwKexi.cjs"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./zig-BAyIAcWK.cjs"))}],xN=Object.fromEntries($2.map(e=>[e.id,e.import])),EN=Object.fromEntries($2.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(r=>[r,e.import]))||[]})),j2={...xN,...EN},vN=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./andromeeda-DVDxRwp5.cjs"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./aurora-x-C5IpmIOG.cjs"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./ayu-dark-Cv7nTiif.cjs"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-frappe-Bn4lgmUk.cjs"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./catppuccin-latte-BPtsb8jD.cjs"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-macchiato-BLfpQWhT.cjs"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-mocha-COMta283.cjs"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./dark-plus-DwC1RSst.cjs"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-BNgwAJ-d.cjs"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-soft-BHZ7sHFu.cjs"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./everforest-dark-_sBMomR1.cjs"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./everforest-light-H0xoYxl0.cjs"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-BKL9xNgN.cjs"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-default-Dsv5MuSi.cjs"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-dimmed-CtB9hz8U.cjs"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-high-contrast-BqZVM-jF.cjs"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-BFTOhCbz.cjs"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-default-BZoWH9dH.cjs"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-high-contrast-Ks3kPGJU.cjs"))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-hard-CUGefKS6.cjs"))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-medium-BoKPlKfz.cjs"))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-soft-DSrhOWeL.cjs"))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-hard-De4IuseP.cjs"))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-medium-CzMY3IEJ.cjs"))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-soft-U4iAIpWZ.cjs"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./houston-T57H3gQZ.cjs"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-dragon-BJZF7xDr.cjs"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./kanagawa-lotus-BhgzmRV4.cjs"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-wave-BgJip59C.cjs"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./laserwave--izBLY1I.cjs"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./light-plus-B5D0le0o.cjs"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-Dj0-OyRN.cjs"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-darker-Dvfs29ir.cjs"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./material-theme-lighter-EU3ZGl_r.cjs"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-ocean-px_3Pwqa.cjs"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-palenight-38jxvsGX.cjs"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./min-dark-tt5o_I5e.cjs"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./min-light-tmTHl_CQ.cjs"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./monokai-DMIxv6MM.cjs"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./night-owl-BN78kThQ.cjs"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./nord-Ca5AGUWc.cjs"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./one-dark-pro-C09VQHwB.cjs"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./one-light-020-h_lv.cjs"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./plastic-r5piqq-S.cjs"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./poimandres-BLP3NNjc.cjs"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./red-BQGOv1D5.cjs"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-Dynd1SQq.cjs"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./rose-pine-dawn-DwrpEjkh.cjs"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-moon-8HmiewSG.cjs"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./slack-dark-akqwQ7ED.cjs"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./slack-ochin-BoQQWmTv.cjs"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./snazzy-light-D_IwRieF.cjs"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./solarized-dark-gmm-WbDC.cjs"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./solarized-light-DzcxRSZP.cjs"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./synthwave-84-BBRLOmNT.cjs"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./tokyo-night-GOhjzM5y.cjs"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./vesper-B59Iw4gV.cjs"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-black-MF-1S1MG.cjs"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-dark-SIffJYSe.cjs"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./vitesse-light-U63SkYGT.cjs"))}],TN=Object.fromEntries(vN.map(e=>[e.id,e.import]));class pc extends Error{constructor(t){super(t),this.name="ShikiError"}}function wN(){return 2147483648}function kN(){return typeof performance<"u"?performance.now():Date.now()}const SN=(e,t)=>e+(t-e%t)%t;async function AN(e){let t,r;const n={};function i(f){r=f,n.HEAPU8=new Uint8Array(f),n.HEAPU32=new Uint32Array(f)}function a(f,g,y){n.HEAPU8.copyWithin(f,g,g+y)}function s(f){try{return t.grow(f-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function o(f){const g=n.HEAPU8.length;f=f>>>0;const y=wN();if(f>y)return!1;for(let T=1;T<=4;T*=2){let x=g*(1+.2/T);x=Math.min(x,f+100663296);const v=Math.min(y,SN(Math.max(f,x),65536));if(s(v))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function l(f,g,y=1024){const T=g+y;let x=g;for(;f[x]&&!(x>=T);)++x;if(x-g>16&&f.buffer&&u)return u.decode(f.subarray(g,x));let v="";for(;g<x;){let k=f[g++];if(!(k&128)){v+=String.fromCharCode(k);continue}const R=f[g++]&63;if((k&224)===192){v+=String.fromCharCode((k&31)<<6|R);continue}const O=f[g++]&63;if((k&240)===224?k=(k&15)<<12|R<<6|O:k=(k&7)<<18|R<<12|O<<6|f[g++]&63,k<65536)v+=String.fromCharCode(k);else{const I=k-65536;v+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return v}function h(f,g){return f?l(n.HEAPU8,f,g):""}const c={emscripten_get_now:kN,emscripten_memcpy_big:a,emscripten_resize_heap:o,fd_write:()=>0};async function d(){const g=await e({env:c,wasi_snapshot_preview1:c});t=g.memory,i(t.buffer),Object.assign(n,g),n.UTF8ToString=h}return await d(),n}var CN=Object.defineProperty,_N=(e,t,r)=>t in e?CN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,et=(e,t,r)=>_N(e,typeof t!="symbol"?t+"":t,r);let st=null;function NN(e){throw new pc(e.UTF8ToString(e.getLastOnigError()))}class Fo{constructor(t){et(this,"utf16Length"),et(this,"utf8Length"),et(this,"utf16Value"),et(this,"utf8Value"),et(this,"utf16OffsetToUtf8"),et(this,"utf8OffsetToUtf16");const r=t.length,n=Fo._utf8ByteLength(t),i=n!==r,a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const o=new Uint8Array(n);let u=0;for(let l=0;l<r;l++){const h=t.charCodeAt(l);let c=h,d=!1;if(h>=55296&&h<=56319&&l+1<r){const f=t.charCodeAt(l+1);f>=56320&&f<=57343&&(c=(h-55296<<10)+65536|f-56320,d=!0)}i&&(a[l]=u,d&&(a[l+1]=u),c<=127?s[u+0]=l:c<=2047?(s[u+0]=l,s[u+1]=l):c<=65535?(s[u+0]=l,s[u+1]=l,s[u+2]=l):(s[u+0]=l,s[u+1]=l,s[u+2]=l,s[u+3]=l)),c<=127?o[u++]=c:c<=2047?(o[u++]=192|(c&1984)>>>6,o[u++]=128|(c&63)>>>0):c<=65535?(o[u++]=224|(c&61440)>>>12,o[u++]=128|(c&4032)>>>6,o[u++]=128|(c&63)>>>0):(o[u++]=240|(c&1835008)>>>18,o[u++]=128|(c&258048)>>>12,o[u++]=128|(c&4032)>>>6,o[u++]=128|(c&63)>>>0),d&&l++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let r=0;for(let n=0,i=t.length;n<i;n++){const a=t.charCodeAt(n);let s=a,o=!1;if(a>=55296&&a<=56319&&n+1<i){const u=t.charCodeAt(n+1);u>=56320&&u<=57343&&(s=(a-55296<<10)+65536|u-56320,o=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,o&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const Ho=class fr{constructor(t){if(et(this,"id",++fr.LAST_ID),et(this,"_onigBinding"),et(this,"content"),et(this,"utf16Length"),et(this,"utf8Length"),et(this,"utf16OffsetToUtf8"),et(this,"utf8OffsetToUtf16"),et(this,"ptr"),!st)throw new pc("Must invoke loadWasm first.");this._onigBinding=st,this.content=t;const r=new Fo(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!fr._sharedPtrInUse?(fr._sharedPtr||(fr._sharedPtr=st.omalloc(1e4)),fr._sharedPtrInUse=!0,st.HEAPU8.set(r.utf8Value,fr._sharedPtr),this.ptr=fr._sharedPtr):this.ptr=r.createString(st)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===fr._sharedPtr?fr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};et(Ho,"LAST_ID",0);et(Ho,"_sharedPtr",0);et(Ho,"_sharedPtrInUse",!1);let G2=Ho;class IN{constructor(t){if(et(this,"_onigBinding"),et(this,"_ptr"),!st)throw new pc("Must invoke loadWasm first.");const r=[],n=[];for(let o=0,u=t.length;o<u;o++){const l=new Fo(t[o]);r[o]=l.createString(st),n[o]=l.utf8Length}const i=st.omalloc(4*t.length);st.HEAPU32.set(r,i/4);const a=st.omalloc(4*t.length);st.HEAPU32.set(n,a/4);const s=st.createOnigScanner(i,a,t.length);for(let o=0,u=t.length;o<u;o++)st.ofree(r[o]);st.ofree(a),st.ofree(i),s===0&&NN(st),this._onigBinding=st,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof t=="string"){t=new G2(t);const a=this._findNextMatchSync(t,r,!1,i);return t.dispose(),a}return this._findNextMatchSync(t,r,!1,i)}_findNextMatchSync(t,r,n,i){const a=this._onigBinding,s=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),i);if(s===0)return null;const o=a.HEAPU32;let u=s/4;const l=o[u++],h=o[u++],c=[];for(let d=0;d<h;d++){const f=t.convertUtf8OffsetToUtf16(o[u++]),g=t.convertUtf8OffsetToUtf16(o[u++]);c[d]={start:f,end:g,length:g-f}}return{index:l,captureIndices:c}}}function RN(e){return typeof e.instantiator=="function"}function PN(e){return typeof e.default=="function"}function LN(e){return typeof e.data<"u"}function DN(e){return typeof Response<"u"&&e instanceof Response}function MN(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let fs;function ON(e){if(fs)return fs;async function t(){st=await AN(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),RN(n)?n=await n.instantiator(r):PN(n)?n=await n.default(r):(LN(n)&&(n=n.data),DN(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await BN(n)(r):n=await FN(n)(r):MN(n)?n=await ju(n)(r):n instanceof WebAssembly.Module?n=await ju(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ju(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return fs=t(),fs}function ju(e){return t=>WebAssembly.instantiate(e,t)}function BN(e){return t=>WebAssembly.instantiateStreaming(e,t)}function FN(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}async function HN(e){return e&&await ON(e),{createScanner(t){return new IN(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new G2(t)}}}const Af=yN({langs:j2,themes:TN,engine:()=>HN(Promise.resolve().then(()=>require("./wasm-Dw4u1m6u.cjs")))});function Bi(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function zN(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const gc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ut=String.raw;function Fi(e,t){if(e==null)throw new Error(t??"Value expected");return e}const V2=ut`\[\^?`,W2=`c.? | C(?:-.?)?|${ut`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ut`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ut`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ut`o\{[^\}]*\}?`}|${ut`\d{1,3}`}`,bc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ms=new RegExp(ut`
|
|
311
|
+
\\ (?:
|
|
312
|
+
${W2}
|
|
313
|
+
| [gk]<[^>]*>?
|
|
314
|
+
| [gk]'[^']*'?
|
|
315
|
+
| .
|
|
316
|
+
)
|
|
317
|
+
| \( (?:
|
|
318
|
+
\? (?:
|
|
319
|
+
[:=!>({]
|
|
320
|
+
| <[=!]
|
|
321
|
+
| <[^>]*>
|
|
322
|
+
| '[^']*'
|
|
323
|
+
| ~\|?
|
|
324
|
+
| #(?:[^)\\]|\\.?)*
|
|
325
|
+
| [^:)]*[:)]
|
|
326
|
+
)?
|
|
327
|
+
| \*[^\)]*\)?
|
|
328
|
+
)?
|
|
329
|
+
| (?:${bc.source})+
|
|
330
|
+
| ${V2}
|
|
331
|
+
| .
|
|
332
|
+
`.replace(/\s+/g,""),"gsu"),Gu=new RegExp(ut`
|
|
333
|
+
\\ (?:
|
|
334
|
+
${W2}
|
|
335
|
+
| .
|
|
336
|
+
)
|
|
337
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
338
|
+
| ${V2}
|
|
339
|
+
| &&
|
|
340
|
+
| .
|
|
341
|
+
`.replace(/\s+/g,""),"gsu");function UN(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=sI(r.flags),i=[n.extended],a={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(c){i.push(c)},replaceCurrentModX(c){i[i.length-1]=c},singleline:r.rules.singleline};let s=[],o;for(ms.lastIndex=0;o=ms.exec(e);){const c=qN(a,e,o[0],ms.lastIndex);c.tokens?s.push(...c.tokens):c.token&&s.push(c.token),c.lastIndex!==void 0&&(ms.lastIndex=c.lastIndex)}const u=[];let l=0;s.filter(c=>c.type==="GroupOpen").forEach(c=>{c.kind==="capturing"?c.number=++l:c.raw==="("&&u.push(c)}),l||u.forEach((c,d)=>{c.kind="capturing",c.number=d+1});const h=l||u.length;return{tokens:s.map(c=>c.type==="EscapedNumber"?uI(c,h):c).flat(),flags:n}}function qN(e,t,r,n){const[i,a]=r;if(r==="["||r==="[^"){const s=$N(t,r,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(a))return{token:Cf(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:JN(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:X2(r)}}if(a==="K")return{token:Q2("keep",r)};if(a==="N"||a==="R")return{token:Fn("newline",r,{negate:a==="N"})};if(a==="O")return{token:Fn("any",r)};if(a==="X")return{token:Fn("text_segment",r)};const s=Y2(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(a==="*")return{token:nI(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:rI(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:oi("group",r)};if(r==="(?>")return{token:oi("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:oi(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:oi("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:oi("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:QN(r)}}if(e.getCurrentModX()){if(r==="#"){const s=t.indexOf(`
|
|
342
|
+
`,n);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(r)){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(t)?s.lastIndex:n}}}if(r===".")return{token:Fn("dot",r)};if(r==="^"||r==="$"){const s=e.singleline?{"^":ut`\A`,$:ut`\Z`}[r]:r;return{token:Cf(s,r)}}return r==="|"?{token:GN(r)}:bc.test(r)?{tokens:lI(r)}:{token:$r(Bi(r),r)}}function $N(e,t,r){const n=[_f(t[1]==="^",t)];let i=1,a;for(Gu.lastIndex=r;a=Gu.exec(e);){const s=a[0];if(s[0]==="["&&s[1]!==":")i++,n.push(_f(s[1]==="^",s));else if(s==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push($r(93,s));else if(i--,n.push(VN(s)),!i)break}else{const o=jN(s);Array.isArray(o)?n.push(...o):n.push(o)}}return{tokens:n,lastIndex:Gu.lastIndex||e.length}}function jN(e){if(e[0]==="\\")return Y2(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!gc.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Fn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?WN(e):e==="&&"?YN(e):$r(Bi(e),e)}function Y2(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return tI(e);if("dDhHsSwW".includes(r))return iI(e);if(e.startsWith(ut`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return aI(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const n=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),a=new TextEncoder;return[...i].map(s=>{const o=[...a.encode(s)].map(u=>`\\x${u.toString(16)}`).join("");return $r(Bi(s),o)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return $r(oI(e),e);if(Nf.has(r))return $r(Nf.get(r),e);if(/\d/.test(r))return XN(t,e);if(e==="\\")throw new Error(ut`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return $r(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function GN(e){return{type:"Alternator",raw:e}}function Cf(e,t){return{type:"Assertion",kind:e,raw:t}}function X2(e){return{type:"Backreference",raw:e}}function $r(e,t){return{type:"Character",value:e,raw:t}}function VN(e){return{type:"CharacterClassClose",raw:e}}function WN(e){return{type:"CharacterClassHyphen",raw:e}}function YN(e){return{type:"CharacterClassIntersector",raw:e}}function _f(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Fn(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function Q2(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Fi(r.flags),raw:t}}function XN(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function QN(e){return{type:"GroupClose",raw:e}}function oi(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function KN(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function ZN(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function JN(e){return{type:"Subroutine",raw:e}}const eI=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Nf=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function tI(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return $r(Bi(t.toUpperCase())-64,e)}function rI(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??(n="");const i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=Rf(r),s=Rf(n),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),Q2("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,oi("group",e,{...(a||s)&&{flags:o}});throw new Error(`Unexpected flag modifier "${e}"`)}function nI(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:i}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const a=i?i.split(",").filter(h=>h!=="").map(h=>/^[+-]?\d+$/.test(h)?+h:h):[],[s,o,u]=a,l=eI.has(r)?r.toLowerCase():"custom";switch(l){case"fail":case"mismatch":case"skip":if(a.length>0)throw new Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!a.length||a.length>2)throw new Error(`Named callout must have one or two arguments "${a}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(a.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(a.length!==3)throw new Error(`Named callout must have three arguments "${a}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${l}"`)}return KN(l,n??null,(i==null?void 0:i.split(","))??null,e)}function If(e){let t=null,r,n;if(e[0]==="{"){const{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,s=1e5;if(+i>s||a&&+a>s)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=a===void 0?+i:a===""?1/0:+a,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return ZN(t,r,n,e)}function iI(e){const t=e[1].toLowerCase();return Fn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function aI(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Fn("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function Rf(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function sI(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function oI(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function uI(e,t){const{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[X2(r)];const a=[],s=i.match(/^[0-7]+|\d/g);for(let o=0;o<s.length;o++){const u=s[o];let l;if(o===0&&u!=="8"&&u!=="9"){if(l=parseInt(u,8),l>127)throw new Error(ut`Octal encoded byte above 177 unsupported "${r}"`)}else l=Bi(u);a.push($r(l,(o===0?"\\":"")+u))}return a}function lI(e){const t=[],r=new RegExp(bc,"gy");let n;for(;n=r.exec(e);){const i=n[0];if(i[0]==="{"){const a=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(a){const{min:s,max:o}=a.groups;if(+s>+o&&i.endsWith("?")){r.lastIndex--,t.push(If(i.slice(0,-1)));continue}}}t.push(If(i))}return t}function K2(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function cI(e){return hI.has(e.type)}const hI=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Z2(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=UN(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(d,f)=>{const g=n.tokens[a.nextIndex];switch(a.parent=d,a.nextIndex++,g.type){case"Alternator":return Gn();case"Assertion":return dI(g);case"Backreference":return fI(g,a);case"Character":return zo(g.value,{useLastValid:!!f.isCheckingRangeEnd});case"CharacterClassHyphen":return mI(g,a,f);case"CharacterClassOpen":return pI(g,a,f);case"CharacterSet":return gI(g,a);case"Directive":return TI(g.kind,{flags:g.flags});case"GroupOpen":return bI(g,a,f);case"NamedCallout":return kI(g.kind,g.tag,g.arguments);case"Quantifier":return yI(g,a);case"Subroutine":return xI(g,a);default:throw new Error(`Unexpected token type "${g.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},s=AI(wI(n.flags));let o=s.body[0];for(;a.nextIndex<n.tokens.length;){const d=i(o,{});d.type==="Alternative"?(s.body.push(d),o=d):o.body.push(d)}const{capturingGroups:u,hasNumberedRef:l,namedGroupsByName:h,subroutines:c}=a;if(l&&h.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of c)if(typeof d=="number"){if(d>u.length)throw new Error("Subroutine uses a group number that's not defined");d&&(u[d-1].isSubroutined=!0)}else if(h.has(d)){if(h.get(d).length>1)throw new Error(ut`Subroutine uses a duplicate group name "\g<${d}>"`);h.get(d)[0].isSubroutined=!0}else throw new Error(ut`Subroutine uses a group name that's not defined "\g<${d}>"`);return s}function dI({kind:e}){return jl(Fi({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===ut`\B`||e===ut`\Y`})}function fI({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(a,s=!1)=>{const o=t.capturingGroups.length;let u=!1;if(a>o)if(t.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Gl(s?o+1-a:a,{orphan:u})};if(r){const a=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(a)return i(+a.groups.num,!!a.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Gl(n)}return i(+n)}function mI(e,t,r){const{tokens:n,walk:i}=t,a=t.parent,s=a.body.at(-1),o=n[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const u=i(a,{...r,isCheckingRangeEnd:!0});if(s.type==="Character"&&u.type==="Character")return a.body.pop(),vI(s,u);throw new Error("Invalid character class range")}return zo(Bi("-"))}function pI({negate:e},t,r){const{tokens:n,walk:i}=t,a=n[t.nextIndex],s=[As()];let o=Df(a);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")s.push(As()),t.nextIndex++;else{const l=s.at(-1);l.body.push(i(l,r))}o=Df(n[t.nextIndex],a)}const u=As({negate:e});return s.length===1?u.body=s[0].body:(u.kind="intersection",u.body=s.map(l=>l.body.length===1?l.body[0]:l)),t.nextIndex++,u}function gI({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=n;if(e==="property"){const o=Uo(r);if(gc.has(o)&&!(s!=null&&s.has(o)))e="posix",r=o;else return ui(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s})}return e==="posix"?SI(r,{negate:t}):Vl(e,{negate:t})}function bI(e,t,r){const{tokens:n,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:s,walk:o}=t,u=CI(e),l=u.type==="AbsenceFunction",h=Lf(u),c=h&&u.negate;if(u.type==="CapturingGroup"&&(i.push(u),u.name&&zN(a,u.name,[]).push(u)),l&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=Mf(n[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")u.body.push(Gn()),t.nextIndex++;else{const f=u.body.at(-1),g=o(f,{...r,isInAbsenceFunction:r.isInAbsenceFunction||l,isInLookbehind:r.isInLookbehind||h,isInNegLookbehind:r.isInNegLookbehind||c});if(f.body.push(g),(h||r.isInLookbehind)&&!s){const y="Lookbehind includes a pattern not allowed by Oniguruma";if(c||r.isInNegLookbehind){if(Pf(g)||g.type==="CapturingGroup")throw new Error(y)}else if(Pf(g)||Lf(g)&&g.negate)throw new Error(y)}}d=Mf(n[t.nextIndex])}return t.nextIndex++,u}function yI({kind:e,min:t,max:r},n){const i=n.parent,a=i.body.at(-1);if(!a||!cI(a))throw new Error("Quantifier requires a repeatable token");const s=e4(e,t,r,a);return i.body.pop(),s}function xI({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let i=e.slice(3,-1);const a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){const o=+a.groups.num,u=r.length;if(t.hasNumberedRef=!0,i={"":o,"+":u+o,"-":u+1-o}[a.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const s=t4(i);return n.push(s),s}function EI(e,t){return{type:"AbsenceFunction",kind:e,body:Va(t==null?void 0:t.body)}}function Gn(e){return{type:"Alternative",body:r4(e==null?void 0:e.body)}}function jl(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!(t!=null&&t.negate)),r}function Gl(e,t){const r=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...r&&{orphan:r}}}function J2(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!_I(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Va(t==null?void 0:t.body)}}function zo(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function As(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:r4(e==null?void 0:e.body)}}function vI(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Vl(e,t){const r=!!(t!=null&&t.negate),n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function TI(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Fi(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function wI(e){return{type:"Flags",...e}}function sr(e){const t=e==null?void 0:e.atomic,r=e==null?void 0:e.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Va(e==null?void 0:e.body)}}function On(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Va(e==null?void 0:e.body)}}function kI(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function SI(e,t){const r=!!(t!=null&&t.negate);if(!gc.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function e4(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function AI(e,t){return{type:"Regex",body:Va(t==null?void 0:t.body),flags:e}}function t4(e){return{type:"Subroutine",ref:e}}function ui(e,t){var i;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=(i=r.unicodePropertyMap)==null?void 0:i.get(Uo(e));if(!n){if(r.normalizeUnknownPropertyNames)n=NI(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(ut`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function CI({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":return EI("repeater");case"atomic":return sr({atomic:!0});case"capturing":return J2(i,{name:r});case"group":return sr({flags:e});case"lookahead":case"lookbehind":return On({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function Va(e){if(e===void 0)e=[Gn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function r4(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Pf(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Lf(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function _I(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function NI(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Uo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Df(e,t){return Fi(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function Mf(e){return Fi(e,"Unclosed group")}function ma(e,t,r=null){function n(a,s){for(let o=0;o<a.length;o++){const u=i(a[o],s,o,a);o=Math.max(-1,o+u)}}function i(a,s=null,o=null,u=null){var x,v;let l=0,h=!1;const c={node:a,parent:s,key:o,container:u,root:e,remove(){ps(u).splice(Math.max(0,ii(o)+l),1),l--,h=!0},removeAllNextSiblings(){return ps(u).splice(ii(o)+1)},removeAllPrevSiblings(){const k=ii(o)+l;return l-=k,ps(u).splice(0,Math.max(0,k))},replaceWith(k,R={}){const O=!!R.traverse;u?u[Math.max(0,ii(o)+l)]=k:Fi(s,"Can't replace root node")[o]=k,O&&i(k,s,o,u),h=!0},replaceWithMultiple(k,R={}){const O=!!R.traverse;if(ps(u).splice(Math.max(0,ii(o)+l),1,...k),l+=k.length-1,O){let I=0;for(let F=0;F<k.length;F++)I+=i(k[F],s,ii(o)+F+I,u)}h=!0},skip(){h=!0}},{type:d}=a,f=t["*"],g=t[d],y=typeof f=="function"?f:f==null?void 0:f.enter,T=typeof g=="function"?g:g==null?void 0:g.enter;if(y==null||y(c,r),T==null||T(c,r),!h)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":n(a.body,a);break;case"Alternative":case"CharacterClass":n(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"LookaroundAssertion":n(a.body,a);break;case"Quantifier":i(a.body,a,"body");break;case"Regex":n(a.body,a),i(a.flags,a,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(x=g==null?void 0:g.exit)==null||x.call(g,c,r),(v=f==null?void 0:f.exit)==null||v.call(f,c,r),l}return i(e),e}function ps(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function ii(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const II=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function RI(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function PI(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const Kt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function yc(e,t,r,n){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1];let s=0,o="";for(const u of e.matchAll(i)){const{0:l,groups:{$skip:h}}=u;if(!h&&(!n||n===Kt.DEFAULT==!s)){r instanceof Function?o+=r(u,{context:s?Kt.CHAR_CLASS:Kt.DEFAULT,negated:a[a.length-1]}):o+=r;continue}l[0]==="["?(s++,a.push(l[1]==="^")):l==="]"&&s&&(s--,a.pop()),o+=l}return o}function n4(e,t,r,n){yc(e,t,r,n)}function LI(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let a=0,s;for(;s=i.exec(e);){const{0:o,groups:{$skip:u}}=s;if(!u&&(!n||n===Kt.DEFAULT==!a))return s;o==="["?a++:o==="]"&&a&&a--,i.lastIndex==s.index&&i.lastIndex++}return null}function gs(e,t,r){return!!LI(e,t,0,r)}function DI(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,i=0,a=1,s;for(;s=r.exec(e);){const[o]=s;if(o==="[")i++;else if(i)o==="]"&&i--;else if(o==="(")a++;else if(o===")"&&(a--,!a)){n=s.index;break}}return e.slice(t,n)}const Of=new RegExp(String.raw`(?<noncapturingStart>${II})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function MI(e,t){const r=(t==null?void 0:t.hiddenCaptures)??[];let n=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const i="(?>",a="(?:(?=(",s=[0],o=[];let u=0,l=0,h=NaN,c;do{c=!1;let d=0,f=0,g=!1,y;for(Of.lastIndex=Number.isNaN(h)?0:h+a.length;y=Of.exec(e);){const{0:T,index:x,groups:{capturingStart:v,noncapturingStart:k}}=y;if(T==="[")d++;else if(d)T==="]"&&d--;else if(T===i&&!g)h=x,g=!0;else if(g&&k)f++;else if(v)g?f++:(u++,s.push(u+l));else if(T===")"&&g){if(!f){l++;const R=u+l;if(e=`${e.slice(0,h)}${a}${e.slice(h+i.length,x)}))<$$${R}>)${e.slice(x+1)}`,c=!0,o.push(R),RI(r,R),n.size){const O=new Map;n.forEach((I,F)=>{O.set(F>=R?F+1:F,I.map(G=>G>=R?G+1:G))}),n=O}break}f--}}}while(c);return r.push(...o),e=yc(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:f,wrappedBackrefNum:g}})=>{if(f){const y=+f;if(y>s.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${s[y]}`}return`\\${g}`},Kt.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const i4=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Vu=new RegExp(String.raw`
|
|
343
|
+
\\(?: \d+
|
|
344
|
+
| c[A-Za-z]
|
|
345
|
+
| [gk]<[^>]+>
|
|
346
|
+
| [pPu]\{[^\}]+\}
|
|
347
|
+
| u[A-Fa-f\d]{4}
|
|
348
|
+
| x[A-Fa-f\d]{2}
|
|
349
|
+
)
|
|
350
|
+
| \((?: \? (?: [:=!>]
|
|
351
|
+
| <(?:[=!]|[^>]+>)
|
|
352
|
+
| [A-Za-z\-]+:
|
|
353
|
+
| \(DEFINE\)
|
|
354
|
+
))?
|
|
355
|
+
| (?<qBase>${i4})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
356
|
+
| \\?.
|
|
357
|
+
`.replace(/\s+/g,""),"gsu");function OI(e){if(!new RegExp(`${i4}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,i="",a=0,s;for(Vu.lastIndex=0;s=Vu.exec(e);){const{0:o,index:u,groups:{qBase:l,qMod:h,invalidQ:c}}=s;if(o==="[")a||(n=u),a++;else if(o==="]")a?a--:n=null;else if(!a)if(h==="+"&&i&&!i.startsWith("(")){if(c)throw new Error(`Invalid quantifier "${o}"`);let d=-1;if(/^\{\d+\}$/.test(l))e=PI(e,u+l.length,h,"");else{if(i===")"||i==="]"){const f=i===")"?r:n;if(f===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,f)}(?>${e.slice(f,u)}${l})${e.slice(u+o.length)}`}else e=`${e.slice(0,u-i.length)}(?>${i}${l})${e.slice(u+o.length)}`;d+=4}Vu.lastIndex+=d}else o[0]==="("?t.push(u):o===")"&&(r=t.length?t.pop():null);i=o}return{pattern:e}}const Xt=String.raw,BI=Xt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Wl=Xt`\(\?R=(?<rDepth>[^\)]+)\)|${BI}`,qo=Xt`\(\?<(?![=!])(?<captureName>[^>]+)>`,a4=Xt`${qo}|(?<unnamed>\()(?!\?)`,Mn=new RegExp(Xt`${qo}|${Wl}|\(\?|\\?.`,"gsu"),Wu="Cannot use multiple overlapping recursions";function FI(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let i=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Wl,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&gs(e,Xt`\(\?\(DEFINE\)`,Kt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const a=[],s=gs(e,Xt`\\[1-9]`,Kt.DEFAULT),o=new Map,u=[];let l=!1,h=0,c=0,d;for(Mn.lastIndex=0;d=Mn.exec(e);){const{0:f,groups:{captureName:g,rDepth:y,gRNameOrNum:T,gRDepth:x}}=d;if(f==="[")h++;else if(h)f==="]"&&h--;else if(y){if(Bf(y),l)throw new Error(Wu);if(s)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,d.index),k=e.slice(Mn.lastIndex);if(gs(k,Wl,Kt.DEFAULT))throw new Error(Wu);const R=+y-1;e=Ff(v,k,R,!1,r,a,c),i=zf(i,v,R,a.length,0,c);break}else if(T){Bf(x);let v=!1;for(const V of u)if(V.name===T||V.num===+T){if(v=!0,V.hasRecursedWithin)throw new Error(Wu);break}if(!v)throw new Error(Xt`Recursive \g cannot be used outside the referenced group "${n==="external"?T:Xt`\g<${T}&R=${x}>`}"`);const k=o.get(T),R=DI(e,k);if(s&&gs(R,Xt`${qo}|\((?!\?)`,Kt.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const O=e.slice(k,d.index),I=R.slice(O.length+f.length),F=a.length,G=+x-1,Y=Ff(O,I,G,!0,r,a,c);i=zf(i,O,G,a.length-F,F,c);const B=e.slice(0,k),X=e.slice(k+R.length);e=`${B}${Y}${X}`,Mn.lastIndex+=Y.length-f.length-O.length-I.length,u.forEach(V=>V.hasRecursedWithin=!0),l=!0}else if(g)c++,o.set(String(c),Mn.lastIndex),o.set(g,Mn.lastIndex),u.push({num:c,name:g});else if(f[0]==="("){const v=f==="(";v&&(c++,o.set(String(c),Mn.lastIndex)),u.push(v?{num:c}:{})}else f===")"&&u.pop()}return r.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:r}}function Bf(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Ff(e,t,r,n,i,a,s){const o=new Set;n&&n4(e+t,qo,({groups:{captureName:l}})=>{o.add(l)},Kt.DEFAULT);const u=[r,n?o:null,i,a,s];return`${e}${Hf(`(?:${e}`,"forward",...u)}(?:)${Hf(`${t})`,"backward",...u)}${t}`}function Hf(e,t,r,n,i,a,s){const u=h=>t==="forward"?h+2:r-h+2-1;let l="";for(let h=0;h<r;h++){const c=u(h);l+=yc(e,Xt`${a4}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:f,unnamed:g,backref:y}})=>{if(y&&n&&!n.has(y))return d;const T=`_$${c}`;if(g||f){const x=s+a.length+1;return a.push(x),HI(i,x),g?d:`(?<${f}${T}>`}return Xt`\k<${y}${T}>`},Kt.DEFAULT)}return l}function HI(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function zf(e,t,r,n,i,a){if(e.size&&n){let s=0;n4(t,a4,()=>s++,Kt.DEFAULT);const o=a-s+i,u=new Map;return e.forEach((l,h)=>{const c=(n-s*r)/r,d=s*r,f=h>o+s?h+n:h,g=[];for(const y of l)if(y<=o)g.push(y);else if(y>o+s+c)g.push(y+n);else if(y<=o+s)for(let T=0;T<=r;T++)g.push(y+s*T);else for(let T=0;T<=r;T++)g.push(y+d+c*T);u.set(f,g)}),u}return e}var tt=String.fromCodePoint,ye=String.raw,Vr={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Vr.bugFlagVLiteralHyphenIsRange=Vr.unicodeSets?(()=>{try{new RegExp(ye`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Vr.bugNestedClassIgnoresNegation=Vr.unicodeSets&&new RegExp("[[^a]]","v").test("a");function io(e,{enable:t,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Ia(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function Yl(e,t){return Uf[e]>=Uf[t]}function zI(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Uf={ES2025:2025,ES2024:2024,ES2018:2018},UI={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function s4(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!UI[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Vr.flagGroups?"ES2025":Vr.unicodeSets?"ES2024":"ES2018"),t}var qI="[ -\r ]",$I=new Set([tt(304),tt(305)]),Or=ye`[\p{L}\p{M}\p{N}\p{Pc}]`;function o4(e){if($I.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=VI.get(r),a=jI.get(r),s=GI.get(r);return[...n].length===1&&t.add(n),s&&t.add(s),i&&t.add(i),t.add(r),a&&t.add(a),[...t]}var xc=new Map(`C Other
|
|
358
|
+
Cc Control cntrl
|
|
359
|
+
Cf Format
|
|
360
|
+
Cn Unassigned
|
|
361
|
+
Co Private_Use
|
|
362
|
+
Cs Surrogate
|
|
363
|
+
L Letter
|
|
364
|
+
LC Cased_Letter
|
|
365
|
+
Ll Lowercase_Letter
|
|
366
|
+
Lm Modifier_Letter
|
|
367
|
+
Lo Other_Letter
|
|
368
|
+
Lt Titlecase_Letter
|
|
369
|
+
Lu Uppercase_Letter
|
|
370
|
+
M Mark Combining_Mark
|
|
371
|
+
Mc Spacing_Mark
|
|
372
|
+
Me Enclosing_Mark
|
|
373
|
+
Mn Nonspacing_Mark
|
|
374
|
+
N Number
|
|
375
|
+
Nd Decimal_Number digit
|
|
376
|
+
Nl Letter_Number
|
|
377
|
+
No Other_Number
|
|
378
|
+
P Punctuation punct
|
|
379
|
+
Pc Connector_Punctuation
|
|
380
|
+
Pd Dash_Punctuation
|
|
381
|
+
Pe Close_Punctuation
|
|
382
|
+
Pf Final_Punctuation
|
|
383
|
+
Pi Initial_Punctuation
|
|
384
|
+
Po Other_Punctuation
|
|
385
|
+
Ps Open_Punctuation
|
|
386
|
+
S Symbol
|
|
387
|
+
Sc Currency_Symbol
|
|
388
|
+
Sk Modifier_Symbol
|
|
389
|
+
Sm Math_Symbol
|
|
390
|
+
So Other_Symbol
|
|
391
|
+
Z Separator
|
|
392
|
+
Zl Line_Separator
|
|
393
|
+
Zp Paragraph_Separator
|
|
394
|
+
Zs Space_Separator
|
|
395
|
+
ASCII
|
|
396
|
+
ASCII_Hex_Digit AHex
|
|
397
|
+
Alphabetic Alpha
|
|
398
|
+
Any
|
|
399
|
+
Assigned
|
|
400
|
+
Bidi_Control Bidi_C
|
|
401
|
+
Bidi_Mirrored Bidi_M
|
|
402
|
+
Case_Ignorable CI
|
|
403
|
+
Cased
|
|
404
|
+
Changes_When_Casefolded CWCF
|
|
405
|
+
Changes_When_Casemapped CWCM
|
|
406
|
+
Changes_When_Lowercased CWL
|
|
407
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
408
|
+
Changes_When_Titlecased CWT
|
|
409
|
+
Changes_When_Uppercased CWU
|
|
410
|
+
Dash
|
|
411
|
+
Default_Ignorable_Code_Point DI
|
|
412
|
+
Deprecated Dep
|
|
413
|
+
Diacritic Dia
|
|
414
|
+
Emoji
|
|
415
|
+
Emoji_Component EComp
|
|
416
|
+
Emoji_Modifier EMod
|
|
417
|
+
Emoji_Modifier_Base EBase
|
|
418
|
+
Emoji_Presentation EPres
|
|
419
|
+
Extended_Pictographic ExtPict
|
|
420
|
+
Extender Ext
|
|
421
|
+
Grapheme_Base Gr_Base
|
|
422
|
+
Grapheme_Extend Gr_Ext
|
|
423
|
+
Hex_Digit Hex
|
|
424
|
+
IDS_Binary_Operator IDSB
|
|
425
|
+
IDS_Trinary_Operator IDST
|
|
426
|
+
ID_Continue IDC
|
|
427
|
+
ID_Start IDS
|
|
428
|
+
Ideographic Ideo
|
|
429
|
+
Join_Control Join_C
|
|
430
|
+
Logical_Order_Exception LOE
|
|
431
|
+
Lowercase Lower
|
|
432
|
+
Math
|
|
433
|
+
Noncharacter_Code_Point NChar
|
|
434
|
+
Pattern_Syntax Pat_Syn
|
|
435
|
+
Pattern_White_Space Pat_WS
|
|
436
|
+
Quotation_Mark QMark
|
|
437
|
+
Radical
|
|
438
|
+
Regional_Indicator RI
|
|
439
|
+
Sentence_Terminal STerm
|
|
440
|
+
Soft_Dotted SD
|
|
441
|
+
Terminal_Punctuation Term
|
|
442
|
+
Unified_Ideograph UIdeo
|
|
443
|
+
Uppercase Upper
|
|
444
|
+
Variation_Selector VS
|
|
445
|
+
White_Space space
|
|
446
|
+
XID_Continue XIDC
|
|
447
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Uo(e),e])),jI=new Map([["s",tt(383)],[tt(383),"s"]]),GI=new Map([[tt(223),tt(7838)],[tt(107),tt(8490)],[tt(229),tt(8491)],[tt(969),tt(8486)]]),VI=new Map([hn(453),hn(456),hn(459),hn(498),...Yu(8072,8079),...Yu(8088,8095),...Yu(8104,8111),hn(8124),hn(8140),hn(8188)]),WI=new Map([["alnum",ye`[\p{Alpha}\p{Nd}]`],["alpha",ye`\p{Alpha}`],["ascii",ye`\p{ASCII}`],["blank",ye`[\p{Zs}\t]`],["cntrl",ye`\p{Cc}`],["digit",ye`\p{Nd}`],["graph",ye`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ye`\p{Lower}`],["print",ye`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ye`[\p{P}\p{S}]`],["space",ye`\p{space}`],["upper",ye`\p{Upper}`],["word",ye`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ye`\p{AHex}`]]);function YI(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function hn(e){const t=tt(e);return[t.toLowerCase(),t]}function Yu(e,t){return YI(e,t).map(r=>hn(r))}var u4=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function XI(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};l4(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Yl(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ma(e,QI,n);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};ma(e,KI,a);const s={groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer};return ma(e,ZI,s),e._originMap=a.groupOriginByCopy,e._strategy=n.strategy,e}var QI={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:i}=e;if(i==="repeater"){const a=sr();a.body[0].body.push(On({negate:!0,body:n}),ui("Any"));const s=sr();s.body[0].body.push(e4("greedy",0,1/0,a)),r(We(s,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const i=e.body.filter(a=>a.kind==="flags");for(let a=r+1;a<t.body.length;a++){const s=t.body[a];Ia(n,s,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){var r;if((r=t.get(e))!=null&&r.length){const n=h4(t.get(e));if(n){const i=sr({flags:n});i.body[0].body=e.body,e.body=[We(i,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:a,replaceWith:s},o){const{kind:u,negate:l}=e,{asciiWordBoundaries:h,avoidSubclass:c,supportedGNodes:d,wordIsAscii:f}=o;if(u==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${l?"Y":"y"}"`);if(u==="line_end")s(We(On({body:[Gn({body:[jl("string_end")]}),Gn({body:[zo(10)]})]}),t));else if(u==="line_start")s(We(Br(ye`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(u==="search_start")if(d.has(e))i.flags.sticky=!0,a();else{const g=n[r-1];if(g&&iR(g))s(We(On({negate:!0}),t));else{if(c)throw new Error(ye`Uses "\G" in a way that requires a subclass`);s(dn(jl("string_start"),t)),o.strategy="clip_search"}}else if(!(u==="string_end"||u==="string_start"))if(u==="string_end_newline")s(We(Br(ye`(?=\n?\z)`),t));else if(u==="word_boundary"){if(!f&&!h){const g=`(?:(?<=${Or})(?!${Or})|(?<!${Or})(?=${Or}))`,y=`(?:(?<=${Or})(?=${Or})|(?<!${Or})(?!${Or}))`;s(We(Br(l?y:g),t))}}else throw new Error(`Unexpected assertion kind "${u}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Qu(r)&&(r=Xu(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!Qu(n)&&(n=Xu(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=As({body:[e]});r(We(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){const{kind:u,negate:l,value:h}=e;if(a&&(u==="digit"||h==="digit")){r(dn(Vl("digit",{negate:l}),t));return}if(s&&(u==="space"||h==="space")){r(We(Ku(Br(qI),l),t));return}if(o&&(u==="word"||h==="word")){r(dn(Vl("word",{negate:l}),t));return}if(u==="any")r(dn(ui("Any"),t));else if(u==="digit")r(dn(ui("Nd",{negate:l}),t));else if(u!=="dot")if(u==="text_segment"){if(n==="strict")throw new Error(ye`Use of "\X" requires non-strict accuracy`);const c="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=ye`\p{RI}{2}|${c}(?:\u200D${c})*`;r(We(Br(ye`(?>\r\n|${i?ye`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(u==="hex")r(dn(ui("AHex",{negate:l}),t));else if(u==="newline")r(We(Br(l?`[^
|
|
448
|
+
]`:`(?>\r
|
|
449
|
+
?|[
|
|
450
|
+
\v\f
\u2028\u2029])`),t));else if(u==="posix")if(!i&&(h==="graph"||h==="print")){if(n==="strict")throw new Error(`POSIX class "${h}" requires min target ES2024 or non-strict accuracy`);let c={graph:"!-~",print:" -~"}[h];l&&(c=`\0-${tt(c.codePointAt(0)-1)}${tt(c.codePointAt(2)+1)}-`),r(We(Br(`[${c}]`),t))}else r(We(Ku(Br(WI.get(h)),l),t));else if(u==="property")xc.has(Uo(h))||(e.key="sc");else if(u==="space")r(dn(ui("space",{negate:l}),t));else if(u==="word")r(We(Ku(Br(Or),l),t));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:s}){const{kind:o,flags:u}=e;if(o==="flags")if(!u.enable&&!u.disable)n();else{const l=sr({flags:u});l.body[0].body=s(),i(We(l,t),{traverse:!0})}else if(o==="keep"){const l=r.body[0],c=r.body.length===1&&K2(l,{type:"Group"})&&l.body[0].body.length===1?l.body[0]:r;if(t.parent!==c||c.body.length>1)throw new Error(ye`Uses "\K" in a way that's unsupported`);const d=On({behind:!0});d.body[0].body=a(),i(We(d,t))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:r}=e.flags;t!=null&&t.extended&&delete t.extended,r!=null&&r.extended&&delete r.extended,t!=null&&t.dotAll&&(r!=null&&r.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(r!=null&&r.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(We(On({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=sr();t.body[0].body.push(e.body),e.body=We(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,i=!1;for(const a of e.body)if(a.body.length===1&&a.body[0].kind==="search_start")a.body.pop();else{const s=f4(a.body);s?(n=!0,Array.isArray(s)?r.push(...s):r.push(s)):i=!0}n&&!i&&r.forEach(a=>t.add(a))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(ye`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Qu(r)&&(r=Xu(r,t),e.ref=r)}},KI={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:a})=>a)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:u}){const l=i.get(e);if(l&&o.has(e.number)){const c=dn(qf(e.number),t);u.set(c,o.get(e.number)),r(c);return}o.set(e.number,e),s.set(e.number,[]),e.name&&Ia(s,e.name,[]);const h=s.get(e.name??e.number);for(let c=0;c<h.length;c++){const d=h[c];if(l===d.node||l&&l===d.origin||e===d.origin){h.splice(c,1);break}}if(s.get(e.number).push({node:e,origin:l}),e.name&&s.get(e.name).push({node:e,origin:l}),e.name){const c=Ia(a,e.name,new Map);let d=!1;if(l)d=!0;else for(const f of c.values())if(!f.hasDuplicateNameToRemove){d=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=io(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:i,ref:a}=e;if(i){let h=t;for(;(h=h.parent)&&!(h.type==="CapturingGroup"&&(h.name===a||h.number===a)););n.reffedNodesByReferencer.set(e,h);return}const s=n.subroutineRefMap.get(a),o=a===0,u=o?qf(0):c4(s,n.groupOriginByCopy,null);let l=u;if(!o){const h=h4(tR(s,d=>d.type==="Group"&&!!d.flags)),c=h?io(n.globalFlags,h):n.globalFlags;JI(c,n.currentFlags)||(l=sr({flags:rR(c)}),l.body[0].body.push(u))}r(We(l,t),{traverse:!o})}},ZI={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const a=n.reffedNodesByReferencer.get(e).filter(s=>eR(s,e));if(!a.length)r(We(On({negate:!0}),t));else if(a.length>1){const s=sr({atomic:!0,body:a.reverse().map(o=>Gn({body:[Gl(o.number)]}))});r(We(s,t))}else e.ref=a[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=J2();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function l4(e){ma(e,{"*"({node:t,parent:r}){t.parent=r}})}function JI(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function eR(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=d4(r.parent);for(const i of n){if(i===r)break;if(i===e||m4(i,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function c4(e,t,r,n){const i=Array.isArray(e)?[]:{};for(const[a,s]of Object.entries(e))a==="parent"?i.parent=Array.isArray(r)?n:r:s&&typeof s=="object"?i[a]=c4(s,t,i,r):(a==="type"&&s==="CapturingGroup"&&t.set(i,t.get(e)??e),i[a]=s);return i}function qf(e){const t=t4(e);return t.isRecursive=!0,t}function tR(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Xu(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function h4(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(i=>{var a,s;(a=n.enable)!=null&&a[i]&&(delete r.disable[i],r.enable[i]=!0),(s=n.disable)!=null&&s[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function rR({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function d4(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function f4(e){const t=e.find(r=>r.kind==="search_start"||aR(r,{negate:!1})||!nR(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const r=[];for(const n of t.body){const i=f4(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function m4(e,t){const r=d4(e)??[];for(const n of r)if(n===t||m4(n,t))return!0;return!1}function nR({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function iR(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function aR(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&K2(e.body[0],{type:"Assertion",kind:"search_start"})}function Qu(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Br(e,t){const n=Z2(e,{...t,unicodePropertyMap:xc}).body;return n.length>1||n[0].body.length>1?sr({body:n}):n[0].body[0]}function Ku(e,t){return e.negate=t,e}function dn(e,t){return e.parent=t,e}function We(e,t){return l4(e),e.parent=t,e}function sR(e,t){const r=s4(t),n=Yl(r.target,"ES2024"),i=Yl(r.target,"ES2025"),a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){const f=[e.flags.ignoreCase];ma(e,oR,{getCurrentModI:()=>f.at(-1),popModI(){f.pop()},pushModI(g){f.push(g)},setHasCasedChar(){f.at(-1)?s=!0:o=!0}})}const u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)};let l=e;const h={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:n,verbose:r.verbose};function c(f){return h.lastNode=l,l=f,zI(uR[f.type],`Unexpected node type "${f.type}"`)(f,h,c)}const d={pattern:e.body.map(c).join("|"),flags:c(e.flags),options:{...e.options}};return n||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],h.captureMap.forEach((f,g)=>{f.hidden&&d._hiddenCaptures.push(g),f.transferTo&&Ia(d._captureTransfers,f.transferTo,[]).push(g)}),d}var oR={"*":{enter({node:e},t){if(jf(e)){const r=t.getCurrentModI();t.pushModI(e.flags?io({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){jf(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Ec(tt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),p4(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&u4.has(e.value)&&t.setHasCasedChar()}},uR={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ye`\B`:ye`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:i,number:a}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,a>o.number&&(s.transferTo=o.number)),t.captureMap.set(a,s),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=tt(e),n=ai(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Ec(r)){const i=o4(r);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:i,parent:a}=e;let{body:s}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Vr.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(Gf)&&(s=[zo(45),...s.filter(l=>!Gf(l))]);const o=()=>`[${i?"^":""}${s.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Vr.bugNestedClassIgnoresNegation)&&!i){const h=s.filter(c=>c.type==="CharacterClass"&&c.kind==="union"&&c.negate);if(h.length){const c=sr(),d=c.body[0];return c.parent=a,d.parent=c,s=s.filter(f=>!h.includes(f)),e.body=s,s.length?(e.parent=d,d.body.push(e)):c.body.pop(),h.forEach(f=>{const g=Gn({body:[f]});f.parent=g,g.parent=c,c.body.push(g)}),r(c)}}t.inCharClass=!0;const l=o();return t.inCharClass=!1,l}const u=s[0];if(n==="union"&&!i&&u&&((!t.useFlagV||!t.verbose)&&a.kind==="union"&&!(Vr.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind==="intersection"&&s.length===1&&u.type!=="CharacterClassRange"))return s.map(r).join("");if(!t.useFlagV&&a.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return o()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=ai(r,i),s=ai(n,i),o=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const u=p4(e);fR(u).forEach(h=>{o.add(Array.isArray(h)?`${ai(h[0],i)}-${ai(h[1],i)}`:ai(h,i))})}return`${a}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":ye`[^\n]`;if(e==="digit")return t?ye`\D`:ye`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&u4.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?ye`\P`:ye`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?ye`\W`:ye`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},i,a){const s=i.currentFlags;r&&(i.currentFlags=io(s,r));const o=t.map(a).join("|"),u=!i.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!i.useFlagMods||!r)?o:`(?${mR(e,r,i.useFlagMods)}${o})`;return i.currentFlags=s,u},LookaroundAssertion({body:e,kind:t,negate:r},n,i){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,r){return r(e.body)+pR(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:ye`\g<${t}&R=${n}>`}},lR=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),cR=new Set(["-","\\","]","^","["]),hR=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),$f=new Map([[9,ye`\t`],[10,ye`\n`],[11,ye`\v`],[12,ye`\f`],[13,ye`\r`],[8232,ye`\u2028`],[8233,ye`\u2029`],[65279,ye`\uFEFF`]]),dR=new RegExp("^\\p{Cased}$","u");function Ec(e){return dR.test(e)}function p4(e,t){const r=!!(t!=null&&t.firstOnly),n=e.min.value,i=e.max.value,a=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return a;for(let s=n;s<=i;s++){const o=tt(s);if(!Ec(o))continue;const u=o4(o).filter(l=>{const h=l.codePointAt(0);return h<n||h>i});if(u.length&&(a.push(...u),r))break}return a}function ai(e,{escDigit:t,inCharClass:r,useFlagV:n}){if($f.has(e))return $f.get(e);if(e<32||e>126&&e<160||e>262143||t&&gR(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?hR:cR:lR,a=tt(e);return(i.has(a)?"\\":"")+a}function fR(e){const t=e.map(i=>i.codePointAt(0)).sort((i,a)=>i-a),r=[];let n=null;for(let i=0;i<t.length;i++)t[i+1]===t[i]+1?n??(n=t[i]):n===null?r.push(t[i]):(r.push([n,t[i]]),n=null);return r}function mR(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:i,disable:a}=t;n=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(a?"-":"")+(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")}return`${n}:`}function pR({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function jf({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function gR(e){return e>47&&e<58}function Gf({type:e,value:t}){return e==="Character"&&t===45}var fn,Hr,Hn,mn,zn,Ra,Xl,yn,bR=(yn=class extends RegExp{constructor(r,n,i){var t=(...xD)=>(super(...xD),Rn(this,Ra),Rn(this,fn,new Map),Rn(this,Hr,null),Rn(this,Hn),Rn(this,mn,null),Rn(this,zn,null),q(this,"rawOptions",{}),this);const a=!!(i!=null&&i.lazyCompile);if(r instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const s=r;t(s,n),rr(this,Hn,s.source),s instanceof yn&&(rr(this,fn,Et(s,fn)),rr(this,mn,Et(s,mn)),rr(this,zn,Et(s,zn)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...i};t(a?"":r,n),rr(this,Hn,r),rr(this,fn,xR(s.hiddenCaptures,s.transfers)),rr(this,zn,s.strategy),this.rawOptions=i??{}}a||rr(this,Hr,this)}get source(){return Et(this,Hn)||"(?:)"}exec(r){if(!Et(this,Hr)){const{lazyCompile:a,...s}=this.rawOptions;rr(this,Hr,new yn(Et(this,Hn),this.flags,s))}const n=this.global||this.sticky,i=this.lastIndex;if(Et(this,zn)==="clip_search"&&n&&i){this.lastIndex=0;const a=Xo(this,Ra,Xl).call(this,r.slice(i));return a&&(yR(a,i,r,this.hasIndices),this.lastIndex+=i),a}return Xo(this,Ra,Xl).call(this,r)}},fn=new WeakMap,Hr=new WeakMap,Hn=new WeakMap,mn=new WeakMap,zn=new WeakMap,Ra=new WeakSet,Xl=function(r){Et(this,Hr).lastIndex=this.lastIndex;const n=zc(yn.prototype,this,"exec").call(Et(this,Hr),r);if(this.lastIndex=Et(this,Hr).lastIndex,!n||!Et(this,fn).size)return n;const i=[...n];n.length=1;let a;this.hasIndices&&(a=[...n.indices],n.indices.length=1);const s=[0];for(let o=1;o<i.length;o++){const{hidden:u,transferTo:l}=Et(this,fn).get(o)??{};if(u?s.push(null):(s.push(n.length),n.push(i[o]),this.hasIndices&&n.indices.push(a[o])),l&&i[o]!==void 0){const h=s[l];if(!h)throw new Error(`Invalid capture transfer to "${h}"`);if(n[h]=i[o],this.hasIndices&&(n.indices[h]=a[o]),n.groups){Et(this,mn)||rr(this,mn,ER(this.source));const c=Et(this,mn).get(l);c&&(n.groups[c]=i[o],this.hasIndices&&(n.indices.groups[c]=a[o]))}}}return n},yn);function yR(e,t,r,n){if(e.index+=t,e.input=r,n){const i=e.indices;for(let s=0;s<i.length;s++){const o=i[s];o&&(i[s]=[o[0]+t,o[1]+t])}const a=i.groups;a&&Object.keys(a).forEach(s=>{const o=a[s];o&&(a[s]=[o[0]+t,o[1]+t])})}}function xR(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,i]of t)for(const a of i)Ia(r,a,{}).transferTo=n;return r}function ER(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,a;for(;a=t.exec(e);){const{0:s,groups:{capture:o,name:u}}=a;s==="["?n++:n?s==="]"&&n--:o&&(i++,u&&r.set(i,u))}return r}function vR(e,t){const r=TR(e,t);return r.options?new bR(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function TR(e,t){const r=s4(t),n=Z2(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:xc}),i=XI(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),a=sR(i,r),s=FI(a.pattern,{captureTransfers:a._captureTransfers,hiddenCaptures:a._hiddenCaptures,mode:"external"}),o=OI(s.pattern),u=MI(o.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),l={pattern:u.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${a.flags}${a.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const h=u.hiddenCaptures.sort((g,y)=>g-y),c=Array.from(u.captureTransfers),d=i._strategy,f=l.pattern.length>=r.lazyCompileLength;(h.length||c.length||d||f)&&(l.options={...h.length&&{hiddenCaptures:h},...c.length&&{transfers:c},...d&&{strategy:d},...f&&{lazyCompile:f}})}return l}const Vf=4294967295;class wR{constructor(t,r={}){q(this,"regexps");this.patterns=t,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:a}=r;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(s=>{if(typeof s!="string")return s;const o=i==null?void 0:i.get(s);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const u=a(s);return i==null||i.set(s,u),u}catch(u){if(i==null||i.set(s,u),n)return null;throw u}})}findNextMatchSync(t,r,n){const i=typeof t=="string"?t:t.content,a=[];function s(o,u,l=0){return{index:o,captureIndices:u.indices.map(h=>h==null?{start:Vf,end:Vf,length:0}:{start:h[0]+l,end:h[1]+l,length:h[1]-h[0]})}}for(let o=0;o<this.regexps.length;o++){const u=this.regexps[o];if(u)try{u.lastIndex=r;const l=u.exec(i);if(!l)continue;if(l.index===r)return s(o,l,0);a.push([o,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(a.length){const o=Math.min(...a.map(u=>u[1].index));for(const[u,l,h]of a)if(l.index===o)return s(u,l,h)}return null}}function kR(e,t){return vR(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function SR(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=r=>kR(r,{target:t.target})),{createScanner(r){return new wR(r,t)},createString(r){return{content:r}}}}function vc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Zn=vc();function g4(e){Zn=e}var pa={exec:()=>null};function Ne(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(kt.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,t)};return n}var AR=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),kt={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:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},CR=/^(?:[ \t]*(?:\n|$))+/,_R=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,NR=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IR=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Tc=/(?:[*+-]|\d{1,9}[.)])/,b4=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,y4=Ne(b4).replace(/bull/g,Tc).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(),RR=Ne(b4).replace(/bull/g,Tc).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(),wc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,PR=/^[^\n]+/,kc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,LR=Ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),DR=Ne(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Tc).getRegex(),$o="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",Sc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,MR=Ne("^ {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",Sc).replace("tag",$o).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x4=Ne(wc).replace("hr",Wa).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",$o).getRegex(),OR=Ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x4).getRegex(),Ac={blockquote:OR,code:_R,def:LR,fences:NR,heading:IR,hr:Wa,html:MR,lheading:y4,list:DR,newline:CR,paragraph:x4,table:pa,text:PR},Wf=Ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wa).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",$o).getRegex(),BR={...Ac,lheading:RR,table:Wf,paragraph:Ne(wc).replace("hr",Wa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wf).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",$o).getRegex()},FR={...Ac,html:Ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sc).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:pa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ne(wc).replace("hr",Wa).replace("heading",` *#{1,6} *[^
|
|
451
|
+
]`).replace("lheading",y4).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},HR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zR=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,E4=/^( {2,}|\\)\n(?!\s*$)/,UR=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jo=/[\p{P}\p{S}]/u,Cc=/[\s\p{P}\p{S}]/u,v4=/[^\s\p{P}\p{S}]/u,qR=Ne(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cc).getRegex(),T4=/(?!~)[\p{P}\p{S}]/u,$R=/(?!~)[\s\p{P}\p{S}]/u,jR=/(?:[^\s\p{P}\p{S}]|~)/u,GR=Ne(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",AR?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),w4=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,VR=Ne(w4,"u").replace(/punct/g,jo).getRegex(),WR=Ne(w4,"u").replace(/punct/g,T4).getRegex(),k4="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",YR=Ne(k4,"gu").replace(/notPunctSpace/g,v4).replace(/punctSpace/g,Cc).replace(/punct/g,jo).getRegex(),XR=Ne(k4,"gu").replace(/notPunctSpace/g,jR).replace(/punctSpace/g,$R).replace(/punct/g,T4).getRegex(),QR=Ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,v4).replace(/punctSpace/g,Cc).replace(/punct/g,jo).getRegex(),KR=Ne(/\\(punct)/,"gu").replace(/punct/g,jo).getRegex(),ZR=Ne(/^<(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(),JR=Ne(Sc).replace("(?:-->|$)","-->").getRegex(),eP=Ne("^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",JR).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ao=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,tP=Ne(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ao).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),S4=Ne(/^!?\[(label)\]\[(ref)\]/).replace("label",ao).replace("ref",kc).getRegex(),A4=Ne(/^!?\[(ref)\](?:\[\])?/).replace("ref",kc).getRegex(),rP=Ne("reflink|nolink(?!\\()","g").replace("reflink",S4).replace("nolink",A4).getRegex(),Yf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,_c={_backpedal:pa,anyPunctuation:KR,autolink:ZR,blockSkip:GR,br:E4,code:zR,del:pa,emStrongLDelim:VR,emStrongRDelimAst:YR,emStrongRDelimUnd:QR,escape:HR,link:tP,nolink:A4,punctuation:qR,reflink:S4,reflinkSearch:rP,tag:eP,text:UR,url:pa},nP={..._c,link:Ne(/^!?\[(label)\]\((.*?)\)/).replace("label",ao).getRegex(),reflink:Ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ao).getRegex()},Ql={..._c,emStrongRDelimAst:XR,emStrongLDelim:WR,url:Ne(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Yf).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ne(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Yf).getRegex()},iP={...Ql,br:Ne(E4).replace("{2,}","*").getRegex(),text:Ne(Ql.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bs={normal:Ac,gfm:BR,pedantic:FR},Qi={normal:_c,gfm:Ql,breaks:iP,pedantic:nP},aP={"&":"&","<":"<",">":">",'"':""","'":"'"},Xf=e=>aP[e];function mr(e,t){if(t){if(kt.escapeTest.test(e))return e.replace(kt.escapeReplace,Xf)}else if(kt.escapeTestNoEncode.test(e))return e.replace(kt.escapeReplaceNoEncode,Xf);return e}function Qf(e){try{e=encodeURI(e).replace(kt.percentDecode,"%")}catch{return null}return e}function Kf(e,t){var a;let r=e.replace(kt.findPipe,(s,o,u)=>{let l=!1,h=o;for(;--h>=0&&u[h]==="\\";)l=!l;return l?"|":" |"}),n=r.split(kt.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(kt.slashPipe,"|");return n}function Ki(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&(e.charAt(n-i-1)===t&&!r);)i++;return e.slice(0,n-i)}function sP(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Zf(e,t,r,n,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,u}function oP(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
452
|
+
`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
|
|
453
|
+
`)}var so=class{constructor(e){q(this,"options");q(this,"rules");q(this,"lexer");this.options=e||Zn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ki(r,`
|
|
454
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=oP(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Ki(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ki(t[0],`
|
|
455
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ki(t[0],`
|
|
456
|
+
`).split(`
|
|
457
|
+
`),n="",i="",a=[];for(;r.length>0;){let s=!1,o=[],u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))o.push(r[u]),s=!0;else if(!s)o.push(r[u]);else break;r=r.slice(u);let l=o.join(`
|
|
458
|
+
`),h=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
459
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
460
|
+
${l}`:l,i=i?`${i}
|
|
461
|
+
${h}`:h;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,a,!0),this.lexer.state.top=c,r.length===0)break;let d=a.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let f=d,g=f.raw+`
|
|
462
|
+
`+r.join(`
|
|
463
|
+
`),y=this.blockquote(g);a[a.length-1]=y,n=n.substring(0,n.length-f.raw.length)+y.raw,i=i.substring(0,i.length-f.text.length)+y.text;break}else if((d==null?void 0:d.type)==="list"){let f=d,g=f.raw+`
|
|
464
|
+
`+r.join(`
|
|
465
|
+
`),y=this.list(g);a[a.length-1]=y,n=n.substring(0,n.length-d.raw.length)+y.raw,i=i.substring(0,i.length-f.raw.length)+y.raw,r=g.substring(a.at(-1).raw.length).split(`
|
|
466
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;e;){let u=!1,l="",h="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let c=t[2].split(`
|
|
467
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),d=e.split(`
|
|
468
|
+
`,1)[0],f=!c.trim(),g=0;if(this.options.pedantic?(g=2,h=c.trimStart()):f?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,h=c.slice(g),g+=t[1].length),f&&this.rules.other.blankLine.test(d)&&(l+=d+`
|
|
469
|
+
`,e=e.substring(d.length+1),u=!0),!u){let x=this.rules.other.nextBulletRegex(g),v=this.rules.other.hrRegex(g),k=this.rules.other.fencesBeginRegex(g),R=this.rules.other.headingBeginRegex(g),O=this.rules.other.htmlBeginRegex(g);for(;e;){let I=e.split(`
|
|
470
|
+
`,1)[0],F;if(d=I,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),F=d):F=d.replace(this.rules.other.tabCharGlobal," "),k.test(d)||R.test(d)||O.test(d)||x.test(d)||v.test(d))break;if(F.search(this.rules.other.nonSpaceChar)>=g||!d.trim())h+=`
|
|
471
|
+
`+F.slice(g);else{if(f||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(c)||R.test(c)||v.test(c))break;h+=`
|
|
472
|
+
`+d}!f&&!d.trim()&&(f=!0),l+=I+`
|
|
473
|
+
`,e=e.substring(I.length+1),c=F.slice(g)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(s=!0));let y=null,T;this.options.gfm&&(y=this.rules.other.listIsTask.exec(h),y&&(T=y[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:l,task:!!y,checked:T,loose:!1,text:h,tokens:[]}),i.raw+=l}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){let l=i.items[u].tokens.filter(c=>c.type==="space"),h=l.length>0&&l.some(c=>this.rules.other.anyLine.test(c.raw));i.loose=h}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Kf(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
474
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?a.align.push("right"):this.rules.other.tableAlignCenter.test(o)?a.align.push("center"):this.rules.other.tableAlignLeft.test(o)?a.align.push("left"):a.align.push(null);for(let o=0;o<r.length;o++)a.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:a.align[o]});for(let o of i)a.rows.push(Kf(o,a.header.length).map((u,l)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:a.align[l]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
475
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=Ki(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=sP(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Zf(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return Zf(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,a,s,o=i,u=0,l=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(n=l.exec(t))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(s=[...a].length,n[3]||n[4]){o+=s;continue}else if((n[5]||n[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+u);let h=[...n[0]][0].length,c=e.slice(0,i+n.index+h+s);if(Math.min(i,s)%2){let f=c.slice(1,-1);return{type:"em",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}let d=c.slice(2,-2);return{type:"strong",raw:c,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=t[0],i="mailto:"+n;else{let a;do a=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(a!==t[0]);n=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Wt=class Kl{constructor(t){q(this,"tokens");q(this,"options");q(this,"state");q(this,"tokenizer");q(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zn,this.options.tokenizer=this.options.tokenizer||new so,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:kt,block:bs.normal,inline:Qi.normal};this.options.pedantic?(r.block=bs.pedantic,r.inline=Qi.pedantic):this.options.gfm&&(r.block=bs.gfm,this.options.breaks?r.inline=Qi.breaks:r.inline=Qi.gfm),this.tokenizer.rules=r}static get rules(){return{block:bs,inline:Qi}}static lex(t,r){return new Kl(r).lex(t)}static lexInline(t,r){return new Kl(r).inlineTokens(t)}lex(t){t=t.replace(kt.carriageReturn,`
|
|
476
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,a,s;for(this.options.pedantic&&(t=t.replace(kt.tabCharGlobal," ").replace(kt.spaceLine,""));t;){let o;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(l=>(o=l.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let l=r.at(-1);o.raw.length===1&&l!==void 0?l.raw+=`
|
|
477
|
+
`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
|
|
478
|
+
`)?"":`
|
|
479
|
+
`)+o.raw,l.text+=`
|
|
480
|
+
`+o.text,this.inlineQueue.at(-1).src=l.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
|
|
481
|
+
`)?"":`
|
|
482
|
+
`)+o.raw,l.text+=`
|
|
483
|
+
`+o.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let u=t;if((s=this.options.extensions)!=null&&s.startBlock){let l=1/0,h=t.slice(1),c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},h),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(u=t.substring(0,l+1))}if(this.state.top&&(o=this.tokenizer.paragraph(u))){let l=r.at(-1);n&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=(l.raw.endsWith(`
|
|
484
|
+
`)?"":`
|
|
485
|
+
`)+o.raw,l.text+=`
|
|
486
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(o),n=u.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
|
|
487
|
+
`)?"":`
|
|
488
|
+
`)+o.raw,l.text+=`
|
|
489
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(o);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var u,l,h,c,d;let n=t,i=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)f.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)a=i[2]?i[2].length:0,n=n.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((l=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:l.call({lexer:this},n))??n;let s=!1,o="";for(;t;){s||(o=""),s=!1;let f;if((c=(h=this.options.extensions)==null?void 0:h.inline)!=null&&c.some(y=>(f=y.call({lexer:this},t,r))?(t=t.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let y=r.at(-1);f.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=f.raw,y.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(t,n,o)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),r.push(f);continue}let g=t;if((d=this.options.extensions)!=null&&d.startInline){let y=1/0,T=t.slice(1),x;this.options.extensions.startInline.forEach(v=>{x=v.call({lexer:this},T),typeof x=="number"&&x>=0&&(y=Math.min(y,x))}),y<1/0&&y>=0&&(g=t.substring(0,y+1))}if(f=this.tokenizer.inlineText(g)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(o=f.raw.slice(-1)),s=!0;let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=f.raw,y.text+=f.text):r.push(f);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return r}},oo=class{constructor(e){q(this,"options");q(this,"parser");this.options=e||Zn}space(e){return""}code({text:e,lang:t,escaped:r}){var a;let n=(a=(t||"").match(kt.notSpaceStart))==null?void 0:a[0],i=e.replace(kt.endingNewline,"")+`
|
|
490
|
+
`;return n?'<pre><code class="language-'+mr(n)+'">'+(r?i:mr(i,!0))+`</code></pre>
|
|
491
|
+
`:"<pre><code>"+(r?i:mr(i,!0))+`</code></pre>
|
|
492
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
493
|
+
${this.parser.parse(e)}</blockquote>
|
|
494
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
495
|
+
`}hr(e){return`<hr>
|
|
496
|
+
`}list(e){let t=e.ordered,r=e.start,n="";for(let s=0;s<e.items.length;s++){let o=e.items[s];n+=this.listitem(o)}let i=t?"ol":"ul",a=t&&r!==1?' start="'+r+'"':"";return"<"+i+a+`>
|
|
497
|
+
`+n+"</"+i+`>
|
|
498
|
+
`}listitem(e){var r;let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+mr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
499
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
500
|
+
`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let a=e.rows[i];r="";for(let s=0;s<a.length;s++)r+=this.tablecell(a[s]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
501
|
+
<thead>
|
|
502
|
+
`+t+`</thead>
|
|
503
|
+
`+n+`</table>
|
|
504
|
+
`}tablerow({text:e}){return`<tr>
|
|
505
|
+
${e}</tr>
|
|
506
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
507
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${mr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=Qf(e);if(i===null)return n;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+mr(t)+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=Qf(e);if(i===null)return mr(r);e=i;let a=`<img src="${e}" alt="${r}"`;return t&&(a+=` title="${mr(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:mr(e.text)}},Nc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ar=class Zl{constructor(t){q(this,"options");q(this,"renderer");q(this,"textRenderer");this.options=t||Zn,this.options.renderer=this.options.renderer||new oo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Nc}static parse(t,r){return new Zl(r).parse(t)}static parseInline(t,r){return new Zl(r).parseInline(t)}parse(t,r=!0){var i,a;let n="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[o.type]){let l=o,h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=h||"";continue}}let u=o;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let l=u,h=this.renderer.text(l);for(;s+1<t.length&&t[s+1].type==="text";)l=t[++s],h+=`
|
|
508
|
+
`+this.renderer.text(l);r?n+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):n+=h;continue}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,r=this.renderer){var i,a;let n="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[o.type]){let l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=l||"";continue}}let u=o;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},ys,ra=(ys=class{constructor(t){q(this,"options");q(this,"block");this.options=t||Zn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Wt.lex:Wt.lexInline}provideParser(){return this.block?ar.parse:ar.parseInline}},q(ys,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),q(ys,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ys),uP=class{constructor(...e){q(this,"defaults",vc());q(this,"options",this.setOptions);q(this,"parse",this.parseMarkdown(!0));q(this,"parseInline",this.parseMarkdown(!1));q(this,"Parser",ar);q(this,"Renderer",oo);q(this,"TextRenderer",Nc);q(this,"Lexer",Wt);q(this,"Tokenizer",so);q(this,"Hooks",ra);this.use(...e)}walkTokens(e,t){var n,i;let r=[];for(let a of e)switch(r=r.concat(t.call(this,a)),a.type){case"table":{let s=a;for(let o of s.header)r=r.concat(this.walkTokens(o.tokens,t));for(let o of s.rows)for(let u of o)r=r.concat(this.walkTokens(u.tokens,t));break}case"list":{let s=a;r=r.concat(this.walkTokens(s.items,t));break}default:{let s=a;(i=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{let u=s[o].flat(1/0);r=r.concat(this.walkTokens(u,t))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let o=i.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new oo(this.defaults);for(let a in r.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=r.renderer[s],u=i[s];i[s]=(...l)=>{let h=o.apply(i,l);return h===!1&&(h=u.apply(i,l)),h||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new so(this.defaults);for(let a in r.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=r.tokenizer[s],u=i[s];i[s]=(...l)=>{let h=o.apply(i,l);return h===!1&&(h=u.apply(i,l)),h}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new ra;for(let a in r.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=r.hooks[s],u=i[s];ra.passThroughHooks.has(a)?i[s]=l=>{if(this.defaults.async&&ra.passThroughHooksRespectAsync.has(a))return(async()=>{let c=await o.call(i,l);return u.call(i,c)})();let h=o.call(i,l);return u.call(i,h)}:i[s]=(...l)=>{if(this.defaults.async)return(async()=>{let c=await o.apply(i,l);return c===!1&&(c=await u.apply(i,l)),c})();let h=o.apply(i,l);return h===!1&&(h=u.apply(i,l)),h}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,a=r.walkTokens;n.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),i&&(o=o.concat(i.call(this,s))),o}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Wt.lex(e,t??this.defaults)}parser(e,t){return ar.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return a(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 t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer():e?Wt.lex:Wt.lexInline)(s,i),u=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let l=await(i.hooks?await i.hooks.provideParser():e?ar.parse:ar.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(l):l})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer():e?Wt.lex:Wt.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let o=(i.hooks?i.hooks.provideParser():e?ar.parse:ar.parseInline)(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(e,t){return r=>{if(r.message+=`
|
|
509
|
+
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+mr(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Vn=new uP;function Re(e,t){return Vn.parse(e,t)}Re.options=Re.setOptions=function(e){return Vn.setOptions(e),Re.defaults=Vn.defaults,g4(Re.defaults),Re};Re.getDefaults=vc;Re.defaults=Zn;Re.use=function(...e){return Vn.use(...e),Re.defaults=Vn.defaults,g4(Re.defaults),Re};Re.walkTokens=function(e,t){return Vn.walkTokens(e,t)};Re.parseInline=Vn.parseInline;Re.Parser=ar;Re.parser=ar.parse;Re.Renderer=oo;Re.TextRenderer=Nc;Re.Lexer=Wt;Re.lexer=Wt.lex;Re.Tokenizer=so;Re.Hooks=ra;Re.parse=Re;Re.options;Re.setOptions;Re.use;Re.walkTokens;Re.parseInline;ar.parse;Wt.lex;var Se=(...e)=>am.twMerge(t0(e)),Ic=(e,t,r)=>{let n=typeof t=="string"?new Blob([t],{type:r}):t,i=URL.createObjectURL(n),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},Rc=j.createContext({code:""});function lP(e,t=200,r=50){let[n,i]=j.useState(e),a=j.useRef(0),s=j.useRef(null);return j.useEffect(()=>{let o=Date.now(),u=o-a.current;return s.current&&window.clearTimeout(s.current),u>=t?(i(e),a.current=o):s.current=window.setTimeout(()=>{i(e),a.current=Date.now()},r),()=>{s.current&&window.clearTimeout(s.current)}},[e,t,r]),n}var cP=e=>e<50?{minHighlightInterval:100,debounceMs:500}:e<150?{minHighlightInterval:500,debounceMs:800}:e<300?{minHighlightInterval:1500,debounceMs:1200}:{minHighlightInterval:Number.POSITIVE_INFINITY,debounceMs:1500},hP=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),dP=e=>{let t=e.lastIndexOf(`
|
|
510
|
+
`),r=t>=0?e.slice(0,t+1):"",n=t>=0?e.slice(t+1):e;return[r,n]},fP=e=>e?[{pre(t){return this.addClassToHast(t,e),t}}]:[],mP=class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null,this.loadLanguagePromise=null,this.cache=new Map,this.cacheKeys=[],this.MAX_CACHE_SIZE=50,this.highlightQueue=new Map}isLanguageSupported(e){return Object.hasOwn(j2,e)}getFallbackLanguage(){return"text"}getCacheKey(e,t,r){return`${t}::${r||""}::${e}`}addToCache(e,t){if(this.cache.size>=this.MAX_CACHE_SIZE){let r=this.cacheKeys.shift();r&&this.cache.delete(r)}this.cache.set(e,t),this.cacheKeys.push(e)}needsHighlightersInitialization(e){let[t,r]=e,n=!this.lightHighlighter||this.lightTheme!==t,i=!this.darkHighlighter||this.darkTheme!==r;return[n,i]}async ensureHighlightersInitialized(e,t){let[r,n]=t,[i,a]=e,s=SR({forgiving:!0});this.loadedLanguages.clear(),this.cache.clear(),this.cacheKeys=[],this.highlightQueue.clear(),r&&(this.lightHighlighter=await Af({themes:[i],langs:[],engine:s}),this.lightTheme=i),n&&(this.darkHighlighter=await Af({themes:[a],langs:[],engine:s}),this.darkTheme=a)}async loadLanguage(e){var t,r;await((t=this.darkHighlighter)==null?void 0:t.loadLanguage(e)),await((r=this.lightHighlighter)==null?void 0:r.loadLanguage(e)),this.loadedLanguages.add(e)}async initializeHighlighters(e){this.initializationPromise&&await this.initializationPromise;let t=this.needsHighlightersInitialization(e),[r,n]=t;(r||n)&&(this.initializationPromise=this.ensureHighlightersInitialized(e,t),await this.initializationPromise,this.initializationPromise=null)}performHighlights(e,t,r){let n=this.isLanguageSupported(t)?t:this.getFallbackLanguage();if(this.lightHighlighter===null||this.darkHighlighter===null||this.lightTheme===null||this.darkTheme===null)throw new Error("highlightCode must be called after initializeHighlighters.");let i=fP(r),a=this.lightHighlighter.codeToHtml(e,{lang:n,theme:this.lightTheme,transformers:i}),s=this.darkHighlighter.codeToHtml(e,{lang:n,theme:this.darkTheme,transformers:i});return[a,s]}async highlightCode(e,t,r,n){let i=this.getCacheKey(e,t,r),a=this.cache.get(i);if(a)return this.cacheKeys=this.cacheKeys.filter(l=>l!==i),this.cacheKeys.push(i),a;let s=this.highlightQueue.get(i);if(s)return s;let o=()=>{if(n!=null&&n.aborted)throw new DOMException("Aborted","AbortError")},u=(async()=>{try{await new Promise(h=>setTimeout(h,0)),o(),this.initializationPromise&&await this.initializationPromise,o(),this.loadLanguagePromise&&await this.loadLanguagePromise,o(),!this.loadedLanguages.has(t)&&this.isLanguageSupported(t)&&(this.loadLanguagePromise=this.loadLanguage(t),await this.loadLanguagePromise,this.loadLanguagePromise=null),o();let l=this.performHighlights(e,t,r);return this.addToCache(i,l),l}finally{this.highlightQueue.delete(i)}})();return this.highlightQueue.set(i,u),u}},Zu=new mP,pP=({code:e,language:t,className:r,children:n,preClassName:i,...a})=>{let[s,o]=j.useState(""),[u,l]=j.useState(""),[h,c]=j.useState(""),[d,f]=j.useState(""),g=lP(e),y=j.useRef(0),T=j.useRef(!1),x=j.useRef(null),v=j.useRef(0),[k,R]=j.useContext(r3);j.useEffect(()=>{Zu.initializeHighlighters([k,R])},[k,R]),j.useEffect(()=>{T.current=!0,x.current&&x.current.abort(),x.current=new AbortController;let I=x.current.signal;y.current&&clearTimeout(y.current);let[F,G]=dP(g),Y=g.split(`
|
|
511
|
+
`).length,{minHighlightInterval:B,debounceMs:X}=cP(Y);if(F&&F!==h){let V=Date.now();V-v.current>B||!G?(v.current=V,Zu.highlightCode(F,t,i,I).then(([ue,Q])=>{T.current&&!I.aborted&&j.startTransition(()=>{o(ue),l(Q),c(F),f(G)})}).catch(ue=>{if(ue.name!=="AbortError")throw ue})):f(G)}else f(G);return y.current=window.setTimeout(()=>{G&&g!==h&&!I.aborted&&Zu.highlightCode(g,t,i,I).then(([V,ue])=>{T.current&&!I.aborted&&j.startTransition(()=>{o(V),l(ue),c(g),f("")})}).catch(V=>{if(V.name!=="AbortError")throw V})},X),()=>{var V;T.current=!1,(V=x.current)==null||V.abort()}},[g,t,i]);let O=d?`<span class="line"><span>${hP(d)}</span></span>`:"";return D.jsx(Rc.Provider,{value:{code:e},children:D.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border border-border","data-code-block-container":!0,"data-language":t,children:[D.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[D.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),D.jsx("div",{className:"flex items-center gap-2",children:n})]}),D.jsx("div",{className:"w-full",children:D.jsxs("div",{className:"min-w-full",children:[D.jsx("div",{className:Se("overflow-x-auto dark:hidden",r),dangerouslySetInnerHTML:{__html:O?s+O:s},"data-code-block":!0,"data-language":t,...a}),D.jsx("div",{className:Se("hidden overflow-x-auto dark:block",r),dangerouslySetInnerHTML:{__html:O?u+O:u},"data-code-block":!0,"data-language":t,...a})]})})]})})},Jf={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},em=({onDownload:e,onError:t,language:r,children:n,className:i,code:a,...s})=>{let{code:o}=j.useContext(Rc),{isAnimating:u}=j.useContext(Hi),l=a??o,h=`file.${r&&r in Jf?Jf[r]:"txt"}`,c="text/plain",d=()=>{try{Ic(h,l,c),e==null||e()}catch(f){t==null||t(f)}};return D.jsx("button",{className:Se("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:u,onClick:d,title:"Download file",type:"button",...s,children:n??D.jsx(qt.DownloadIcon,{size:14})})},tm=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:i,code:a,...s})=>{let[o,u]=j.useState(!1),l=j.useRef(0),{code:h}=j.useContext(Rc),{isAnimating:c}=j.useContext(Hi),d=a??h,f=async()=>{var y;if(typeof window>"u"||!((y=navigator==null?void 0:navigator.clipboard)!=null&&y.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(d),u(!0),e==null||e(),l.current=window.setTimeout(()=>u(!1),r))}catch(T){t==null||t(T)}};j.useEffect(()=>()=>{window.clearTimeout(l.current)},[]);let g=o?qt.CheckIcon:qt.CopyIcon;return D.jsx("button",{className:Se("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:c,onClick:f,type:"button",...s,children:n??D.jsx(g,{size:14})})},gP=/\.[^/.]+$/,bP=({node:e,className:t,src:r,alt:n,...i})=>{let a=async()=>{if(r)try{let s=await(await fetch(r)).blob(),o=new URL(r,window.location.origin).pathname.split("/").pop()||"",u=o.split(".").pop(),l=o.includes(".")&&u!==void 0&&u.length<=4,h="";if(l)h=o;else{let c=s.type,d="png";c.includes("jpeg")||c.includes("jpg")?d="jpg":c.includes("png")?d="png":c.includes("svg")?d="svg":c.includes("gif")?d="gif":c.includes("webp")&&(d="webp"),h=`${(n||o||"image").replace(gP,"")}.${d}`}Ic(h,s,s.type)}catch(s){console.error("Failed to download image:",s)}};return r?D.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[D.jsx("img",{alt:n,className:Se("max-w-full rounded-lg",t),"data-streamdown":"image",src:r,...i}),D.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),D.jsx("button",{className:Se("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:a,title:"Download image",type:"button",children:D.jsx(qt.DownloadIcon,{size:14})})]}):null},ga=0,yP=()=>{ga+=1,ga===1&&(document.body.style.overflow="hidden")},xP=()=>{ga=Math.max(0,ga-1),ga===0&&(document.body.style.overflow="")},EP=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},r=(await Promise.resolve().then(()=>require("./mermaid.core-Cop_RRH4.cjs")).then(n=>n.mermaid_core)).default;return r.initialize(t),r},vP=({chart:e,config:t,onFullscreen:r,onExit:n,className:i,...a})=>{let[s,o]=j.useState(!1),{isAnimating:u}=j.useContext(Hi),l=()=>{o(!s)};return j.useEffect(()=>{if(s){yP();let h=c=>{c.key==="Escape"&&o(!1)};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h),xP()}}},[s]),j.useEffect(()=>{s?r==null||r():n&&n()},[s,r,n]),D.jsxs(D.Fragment,{children:[D.jsx("button",{className:Se("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:u,onClick:l,title:"View fullscreen",type:"button",...a,children:D.jsx(qt.Maximize2Icon,{size:14})}),s&&D.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:l,onKeyDown:h=>{h.key==="Escape"&&l()},role:"button",tabIndex:0,children:[D.jsx("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:l,title:"Exit fullscreen",type:"button",children:D.jsx(qt.XIcon,{size:20})}),D.jsx("div",{className:"flex h-full w-full items-center justify-center p-12",onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),role:"presentation",children:D.jsx("div",{className:"max-h-full max-w-full",children:D.jsx(C4,{chart:e,className:"[&>div]:my-0 [&_svg]:h-auto [&_svg]:min-h-[60vh] [&_svg]:w-auto [&_svg]:min-w-[60vw]",config:t})})})]})]})},C4=({chart:e,className:t,config:r})=>{let[n,i]=j.useState(null),[a,s]=j.useState(!0),[o,u]=j.useState(""),[l,h]=j.useState("");if(j.useEffect(()=>{(async()=>{try{i(null),s(!0);let d=await EP(r),f=e.split("").reduce((T,x)=>(T<<5)-T+x.charCodeAt(0)|0,0),g=`mermaid-${Math.abs(f)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:y}=await d.render(g,e);u(y),h(y)}catch(d){if(!(l||o)){let f=d instanceof Error?d.message:"Failed to render Mermaid chart";i(f)}}finally{s(!1)}})()},[e,r]),a&&!o&&!l)return D.jsx("div",{className:Se("my-4 flex justify-center p-4",t),children:D.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[D.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),D.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(n&&!o&&!l)return D.jsxs("div",{className:Se("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[D.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",n]}),D.jsxs("details",{className:"mt-2",children:[D.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),D.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let c=o||l;return D.jsx("div",{"aria-label":"Mermaid chart",className:Se("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:c},role:"img"})};function _4(e){var t,r;let n=[],i=[],a=e.querySelectorAll("thead th");for(let o of a)n.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let u=[],l=o.querySelectorAll("td");for(let h of l)u.push(((r=h.textContent)==null?void 0:r.trim())||"");i.push(u)}return{headers:n,rows:i}}function N4(e){let{headers:t,rows:r}=e,n=a=>a.includes(",")||a.includes('"')||a.includes(`
|
|
512
|
+
`)?`"${a.replace(/"/g,'""')}"`:a,i=[];t.length>0&&i.push(t.map(n).join(","));for(let a of r)i.push(a.map(n).join(","));return i.join(`
|
|
513
|
+
`)}function TP(e){let{headers:t,rows:r}=e,n=a=>a.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),i=[];t.length>0&&i.push(t.map(n).join(" "));for(let a of r)i.push(a.map(n).join(" "));return i.join(`
|
|
514
|
+
`)}function wP(e){let{headers:t,rows:r}=e;if(t.length===0)return"";let n=[],i=t.map(a=>a.replace(/\|/g,"\\|"));n.push(`| ${i.join(" | ")} |`),n.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let a of r){let s=[...a];for(;s.length<t.length;)s.push("");let o=s.map(u=>u.replace(/\|/g,"\\|"));n.push(`| ${o.join(" | ")} |`)}return n.join(`
|
|
515
|
+
`)}var kP=({children:e,className:t,onCopy:r,onError:n,timeout:i=2e3})=>{let[a,s]=j.useState(!1),[o,u]=j.useState(!1),l=j.useRef(null),h=j.useRef(0),{isAnimating:c}=j.useContext(Hi),d=async g=>{var y,T;if(typeof window>"u"||!((y=navigator==null?void 0:navigator.clipboard)!=null&&y.write)){n==null||n(new Error("Clipboard API not available"));return}try{let x=(T=l.current)==null?void 0:T.closest('[data-streamdown="table-wrapper"]'),v=x==null?void 0:x.querySelector("table");if(!v){n==null||n(new Error("Table not found"));return}let k=_4(v),R=g==="csv"?N4(k):TP(k),O=new ClipboardItem({"text/plain":new Blob([R],{type:"text/plain"}),"text/html":new Blob([v.outerHTML],{type:"text/html"})});await navigator.clipboard.write([O]),u(!0),s(!1),r==null||r(g),h.current=window.setTimeout(()=>u(!1),i)}catch(x){n==null||n(x)}};j.useEffect(()=>{let g=y=>{l.current&&!l.current.contains(y.target)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g),window.clearTimeout(h.current)}},[]);let f=o?qt.CheckIcon:qt.CopyIcon;return D.jsxs("div",{className:"relative",ref:l,children:[D.jsx("button",{className:Se("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??D.jsx(f,{size:14})}),a&&D.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[D.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("csv"),type:"button",children:"CSV"}),D.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("tsv"),type:"button",children:"TSV"})]})]})},SP=({children:e,className:t,onDownload:r,onError:n})=>{let[i,a]=j.useState(!1),s=j.useRef(null),{isAnimating:o}=j.useContext(Hi),u=l=>{var h;try{let c=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),d=c==null?void 0:c.querySelector("table");if(!d){n==null||n(new Error("Table not found"));return}let f=_4(d),g=l==="csv"?N4(f):wP(f);Ic(`table.${l==="csv"?"csv":"md"}`,g,l==="csv"?"text/csv":"text/markdown"),a(!1),r==null||r(l)}catch(c){n==null||n(c)}};return j.useEffect(()=>{let l=h=>{s.current&&!s.current.contains(h.target)&&a(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),D.jsxs("div",{className:"relative",ref:s,children:[D.jsx("button",{className:Se("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>a(!i),title:"Download table",type:"button",children:e??D.jsx(qt.DownloadIcon,{size:14})}),i&&D.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[D.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),type:"button",children:"CSV"}),D.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("markdown"),type:"button",children:"Markdown"})]})]})},AP=/language-([^\s]+)/;function Go(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,i=e.position.end,a=t.position.end;return(r==null?void 0:r.line)===(n==null?void 0:n.line)&&(r==null?void 0:r.column)===(n==null?void 0:n.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function Ve(e,t){return e.className===t.className&&Go(e.node,t.node)}var Jl=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Ju=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Pc=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("ol",{className:Se("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>Ve(e,t));Pc.displayName="MarkdownOl";var I4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("li",{className:Se("py-1",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&Go(e.node,t.node));I4.displayName="MarkdownLi";var R4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("ul",{className:Se("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>Ve(e,t));R4.displayName="MarkdownUl";var P4=j.memo(({className:e,node:t,...r})=>D.jsx("hr",{className:Se("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>Ve(e,t));P4.displayName="MarkdownHr";var L4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("span",{className:Se("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>Ve(e,t));L4.displayName="MarkdownStrong";var D4=j.memo(({children:e,className:t,href:r,node:n,...i})=>{let a=r==="streamdown:incomplete-link";return D.jsx("a",{className:Se("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":a,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...i,children:e})},(e,t)=>Ve(e,t)&&e.href===t.href);D4.displayName="MarkdownA";var M4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("h1",{className:Se("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>Ve(e,t));M4.displayName="MarkdownH1";var O4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("h2",{className:Se("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>Ve(e,t));O4.displayName="MarkdownH2";var B4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("h3",{className:Se("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>Ve(e,t));B4.displayName="MarkdownH3";var F4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("h4",{className:Se("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>Ve(e,t));F4.displayName="MarkdownH4";var H4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("h5",{className:Se("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>Ve(e,t));H4.displayName="MarkdownH5";var z4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("h6",{className:Se("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>Ve(e,t));z4.displayName="MarkdownH6";var U4=j.memo(({children:e,className:t,node:r,...n})=>{let i=j.useContext(Lc),a=Jl(i,"table");return D.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[a&&D.jsxs("div",{className:"flex items-center justify-end gap-1",children:[D.jsx(kP,{}),D.jsx(SP,{})]}),D.jsx("div",{className:"overflow-x-auto",children:D.jsx("table",{className:Se("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]})},(e,t)=>Ve(e,t));U4.displayName="MarkdownTable";var q4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("thead",{className:Se("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>Ve(e,t));q4.displayName="MarkdownThead";var $4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("tbody",{className:Se("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>Ve(e,t));$4.displayName="MarkdownTbody";var j4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("tr",{className:Se("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>Ve(e,t));j4.displayName="MarkdownTr";var G4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("th",{className:Se("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>Ve(e,t));G4.displayName="MarkdownTh";var V4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("td",{className:Se("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>Ve(e,t));V4.displayName="MarkdownTd";var W4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("blockquote",{className:Se("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>Ve(e,t));W4.displayName="MarkdownBlockquote";var Y4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("sup",{className:Se("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>Ve(e,t));Y4.displayName="MarkdownSup";var X4=j.memo(({children:e,className:t,node:r,...n})=>D.jsx("sub",{className:Se("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>Ve(e,t));X4.displayName="MarkdownSub";var Q4=j.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let i=s=>{var o,u;if(!j.isValidElement(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,c=!1;for(let d of l)if(d){if(typeof d=="string")d.trim()!==""&&(h=!0);else if(j.isValidElement(d))if(((o=d.props)==null?void 0:o["data-footnote-backref"])!==void 0)c=!0;else{let f=Array.isArray(d.props.children)?d.props.children:[d.props.children];for(let g of f){if(typeof g=="string"&&g.trim()!==""){h=!0;break}if(j.isValidElement(g)&&((u=g.props)==null?void 0:u["data-footnote-backref"])===void 0){h=!0;break}}}}return c&&!h},a=Array.isArray(e)?e.map(s=>{if(!j.isValidElement(s))return s;if(s.type===Pc){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(u=>!i(u));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?D.jsx("section",{className:t,...n,children:a}):null}return D.jsx("section",{className:t,...n,children:e})},(e,t)=>Ve(e,t));Q4.displayName="MarkdownSection";var CP=({node:e,className:t,children:r,...n})=>{var i,a,s;let o=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((a=e==null?void 0:e.position)==null?void 0:a.end.line),u=j.useContext(n3),l=j.useContext(Lc);if(o)return D.jsx("code",{className:Se("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let h=t==null?void 0:t.match(AP),c=(s=h==null?void 0:h.at(1))!=null?s:"",d="";if(j.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?d=r.props.children:typeof r=="string"&&(d=r),c==="mermaid"){let g=Jl(l,"mermaid"),y=Ju(l,"download"),T=Ju(l,"copy"),x=Ju(l,"fullscreen");return D.jsxs("div",{className:Se("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[g&&(y||T||x)&&D.jsxs("div",{className:"flex items-center justify-end gap-2",children:[y&&D.jsx(em,{code:d,language:c}),T&&D.jsx(tm,{code:d}),x&&D.jsx(vP,{chart:d,config:u})]}),D.jsx(C4,{chart:d,config:u})]})}let f=Jl(l,"code");return D.jsx(pP,{className:Se("overflow-x-auto border-border border-t",t),code:d,"data-language":c,"data-streamdown":"code-block",language:c,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:f&&D.jsxs(D.Fragment,{children:[D.jsx(em,{code:d,language:c}),D.jsx(tm,{})]})})},K4=j.memo(CP,(e,t)=>e.className===t.className&&Go(e.node,t.node));K4.displayName="MarkdownCode";var Z4=j.memo(bP,(e,t)=>e.className===t.className&&Go(e.node,t.node));Z4.displayName="MarkdownImg";var J4=j.memo(({children:e,className:t,node:r,...n})=>{var i;let a=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");return a.length===1&&j.isValidElement(a[0])&&((i=a[0].props.node)==null?void 0:i.tagName)==="img"?D.jsx(D.Fragment,{children:e}):D.jsx("p",{className:t,...n,children:e})},(e,t)=>Ve(e,t));J4.displayName="MarkdownParagraph";var _P={ol:Pc,li:I4,ul:R4,hr:P4,strong:L4,a:D4,h1:M4,h2:O4,h3:B4,h4:F4,h5:H4,h6:z4,table:U4,thead:q4,tbody:$4,tr:j4,th:G4,td:V4,blockquote:W4,code:K4,img:Z4,pre:({children:e})=>e,sup:Y4,sub:X4,p:J4,section:Q4},NP=/\[\^[^\]\s]{1,200}\](?!:)/,IP=/\[\^[^\]\s]{1,200}\]:/,RP=/<\/(\w+)>/,PP=/<(\w+)[\s>]/,LP=e=>{let t=NP.test(e),r=IP.test(e);if(t||r)return[e];let n=Wt.lex(e,{gfm:!0}),i=[],a=[];for(let s of n){let o=s.raw;if(a.length>0){if(i[i.length-1]+=o,s.type==="html"){let u=o.match(RP);if(u){let l=u[1];a.at(-1)===l&&a.pop()}}continue}if(s.type==="html"&&s.block){let u=o.match(PP);if(u){let l=u[1];o.includes(`</${l}>`)||a.push(l)}}if(o.trim()==="$$"&&i.length>0){let u=i.at(-1);if(!u){i.push(o);continue}let l=u.trimStart().startsWith("$$"),h=(u.match(/\$\$/g)||[]).length;if(l&&h%2===1){i[i.length-1]=u+o;continue}}if(i.length>0&&o.trimEnd().endsWith("$$")){let u=i.at(-1);if(!u){i.push(o);continue}let l=u.trimStart().startsWith("$$"),h=(u.match(/\$\$/g)||[]).length,c=(o.match(/\$\$/g)||[]).length;if(l&&h%2===1&&!o.trimStart().startsWith("$$")&&c===1){i[i.length-1]=u+o;continue}}i.push(o)}return i},DP=/(!?\[)([^\]]*?)$/,MP=/(\*\*)([^*]*?)$/,OP=/(__)([^_]*?)$/,BP=/(\*\*\*)([^*]*?)$/,FP=/(\*)([^*]*?)$/,HP=/(_)([^_]*?)$/,zP=/(`)([^`]*?)$/,UP=/(~~)([^~]*?)$/,qP=/(!?)\[([^\]]+)\]\(([^)]+)$/,Jn=/^[\s_~*`]*$/,e3=/^[\s]*[-*+][\s]+$/,kn=/[\p{L}\p{N}_]/u,$P=/\n+$/,jP=/^```[^`\n]*```?$/,GP=/^\*{4,}$/,Vo=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
|
|
516
|
+
`)},VP=e=>{let t=e.match(qP);if(t){let n=t[1]==="!",i=t[2],a=t[3],s=e.lastIndexOf(`${n?"!":""}[${i}](${a}`),o=e.substring(0,s);return n?o:`${o}[${i}](streamdown:incomplete-link)`}let r=e.match(DP);if(r){if(r[1].startsWith("!")){let n=e.lastIndexOf(r[1]);return e.substring(0,n)}return`${e}](streamdown:incomplete-link)`}return e},WP=e=>{if(Vo(e))return e;let t=e.match(MP);if(t){let r=t[2];if(!r||Jn.test(r))return e;let n=e.lastIndexOf(t[1]),i=e.substring(0,n).lastIndexOf(`
|
|
517
|
+
`),a=i===-1?0:i+1,s=e.substring(a,n);if(e3.test(s)&&r.includes(`
|
|
518
|
+
`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},YP=e=>{let t=e.match(OP);if(t){let r=t[2];if(!r||Jn.test(r))return e;let n=e.lastIndexOf(t[1]),i=e.substring(0,n).lastIndexOf(`
|
|
519
|
+
`),a=i===-1?0:i+1,s=e.substring(a,n);if(e3.test(s)&&r.includes(`
|
|
520
|
+
`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},XP=e=>e.split("").reduce((t,r,n)=>{if(r==="*"){let i=e[n-1],a=e[n+1];if(i==="\\"||i&&a&&kn.test(i)&&kn.test(a))return t;let s=n;for(let o=n-1;o>=0;o--){if(e[o]===`
|
|
521
|
+
`){s=o+1;break}if(o===0){s=0;break}}if(e.substring(s,n).trim()===""&&(a===" "||a===" "))return t;if(i!=="*"&&a!=="*")return t+1}return t},0),QP=e=>{if(Vo(e))return e;if(e.match(FP)){let t=-1;for(let n=0;n<e.length;n++)if(e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"){let i=n>0?e[n-1]:"",a=n<e.length-1?e[n+1]:"";if(i&&a&&kn.test(i)&&kn.test(a))continue;t=n;break}if(t===-1)return e;let r=e.substring(t+1);if(!r||Jn.test(r))return e;if(XP(e)%2===1)return`${e}*`}return e},t3=(e,t)=>{let r=!1,n=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(n=!n,i+=1,r=!1):n||(r=!r))}return r||n},KP=e=>e.split("").reduce((t,r,n)=>{if(r==="_"){let i=e[n-1],a=e[n+1];if(i==="\\"||t3(e,n)||i&&a&&kn.test(i)&&kn.test(a))return t;if(i!=="_"&&a!=="_")return t+1}return t},0),ZP=e=>{if(Vo(e))return e;if(e.match(HP)){let t=-1;for(let n=0;n<e.length;n++)if(e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!t3(e,n)){let i=n>0?e[n-1]:"",a=n<e.length-1?e[n+1]:"";if(i&&a&&kn.test(i)&&kn.test(a))continue;t=n;break}if(t===-1)return e;let r=e.substring(t+1);if(!r||Jn.test(r))return e;if(KP(e)%2===1){let n=e.match($P);return n?`${e.slice(0,-n[0].length)}_${n[0]}`:`${e}_`}}return e},JP=(e,t)=>{let r=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return r||n||i},eL=e=>{let t=0;for(let r=0;r<e.length;r+=1)e[r]==="`"&&!JP(e,r)&&(t+=1);return t},tL=e=>{if(e.match(jP)&&!e.includes(`
|
|
522
|
+
`))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,r=t%2===1;if(t>0&&t%2===0&&e.includes(`
|
|
523
|
+
`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)return e;let n=e.match(zP);if(n&&!r){let i=n[2];if(!i||Jn.test(i))return e;if(eL(e)%2===1)return`${e}\``}return e},rL=e=>{let t=e.match(UP);if(t){let r=t[2];if(!r||Jn.test(r))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},nL=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
524
|
+
`,t)!==-1&&!e.endsWith(`
|
|
525
|
+
`)?`${e}
|
|
526
|
+
$$`:`${e}$$`},iL=e=>{let t=0,r=e.match(/\*+/g)||[];for(let n of r){let i=n.length;i>=3&&(t+=Math.floor(i/3))}return t},aL=e=>{if(Vo(e)||GP.test(e))return e;let t=e.match(BP);if(t){let r=t[2];if(!r||Jn.test(r))return e;if(iL(e)%2===1)return`${e}***`}return e},sL=e=>{if(!e||typeof e!="string")return e;let t=e,r=VP(t);return r.endsWith("](streamdown:incomplete-link)")?r:(t=r,t=aL(t),t=WP(t),t=YP(t),t=QP(t),t=ZP(t),t=tL(t),t=rL(t),t=nL(t),t)},oL={harden:[mx,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],defaultOrigin:void 0,allowDataImages:!0}],raw:Zw,katex:[Cl,{errorColor:"var(--color-muted-foreground)"}]},uL={gfm:[PA,{}],math:[$A,{singleDollarTextMath:!1}],cjkFriendly:[Tk,{}],cjkFriendlyGfmStrikethrough:[kk,{}]},r3=j.createContext(["github-light","github-dark"]),n3=j.createContext(void 0),Lc=j.createContext(!0),Hi=j.createContext({isAnimating:!1}),i3=j.memo(({content:e,shouldParseIncompleteMarkdown:t,...r})=>{let n=j.useMemo(()=>typeof e=="string"&&t?sL(e.trim()):e,[e,t]);return D.jsx(lx,{...r,children:n})},(e,t)=>e.content===t.content);i3.displayName="Block";var lL=["github-light","github-dark"],Dc=j.memo(({children:e,parseIncompleteMarkdown:t=!0,components:r,rehypePlugins:n=Object.values(oL),remarkPlugins:i=Object.values(uL),className:a,shikiTheme:s=lL,mermaidConfig:o,controls:u=!0,isAnimating:l=!1,urlTransform:h=g=>g,BlockComponent:c=i3,parseMarkdownIntoBlocksFn:d=LP,...f})=>{let g=j.useId(),y=j.useMemo(()=>d(typeof e=="string"?e:""),[e,d]);j.useEffect(()=>{Array.isArray(n)&&n.some(x=>Array.isArray(x)?x[0]===Cl:x===Cl)&&Promise.resolve().then(()=>require("./katex.min-Dyvby5gX.cjs"))},[n]);let T=j.useMemo(()=>({isAnimating:l}),[l]);return D.jsx(r3.Provider,{value:s,children:D.jsx(n3.Provider,{value:o,children:D.jsx(Lc.Provider,{value:u,children:D.jsx(Hi.Provider,{value:T,children:D.jsx("div",{className:Se("space-y-4",a),children:y.map((x,v)=>D.jsx(c,{components:{..._P,...r},content:x,index:v,rehypePlugins:n,remarkPlugins:i,shouldParseIncompleteMarkdown:t,urlTransform:h,...f},`${g}-block-${v}`))})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating);Dc.displayName="Streamdown";const cL=({className:e,from:t,...r})=>D.jsx("div",{className:dt("group flex w-full max-w-[80%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),hL=({children:e,className:t,...r})=>D.jsx("div",{className:dt("is-user:dark flex w-fit flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...r,children:e});j.createContext(null);const a3=j.memo(({className:e,...t})=>D.jsx(Dc,{className:dt("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);a3.displayName="MessageResponse";var Wo="Collapsible",[dL,zL]=co(Wo),[fL,Mc]=dL(Wo),s3=U.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:s,...o}=e,[u,l]=Ps({prop:n,defaultProp:i??!1,onChange:s,caller:Wo});return D.jsx(fL,{scope:r,disabled:a,contentId:vm(),open:u,onOpenToggle:U.useCallback(()=>l(h=>!h),[l]),children:D.jsx(cr.div,{"data-state":Bc(u),"data-disabled":a?"":void 0,...o,ref:t})})});s3.displayName=Wo;var o3="CollapsibleTrigger",u3=U.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=Mc(o3,r);return D.jsx(cr.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Bc(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:ir(e.onClick,i.onOpenToggle)})});u3.displayName=o3;var Oc="CollapsibleContent",l3=U.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Mc(Oc,e.__scopeCollapsible);return D.jsx(go,{present:r||i.open,children:({present:a})=>D.jsx(mL,{...n,ref:t,present:a})})});l3.displayName=Oc;var mL=U.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,s=Mc(Oc,r),[o,u]=U.useState(n),l=U.useRef(null),h=Jr(t,l),c=U.useRef(0),d=c.current,f=U.useRef(0),g=f.current,y=s.open||o,T=U.useRef(y),x=U.useRef(void 0);return U.useEffect(()=>{const v=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(v)},[]),Wr(()=>{const v=l.current;if(v){x.current=x.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const k=v.getBoundingClientRect();c.current=k.height,f.current=k.width,T.current||(v.style.transitionDuration=x.current.transitionDuration,v.style.animationName=x.current.animationName),u(n)}},[s.open,n]),D.jsx(cr.div,{"data-state":Bc(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y,...a,ref:h,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:y&&i})});function Bc(e){return e?"open":"closed"}var pL=s3;const gL=pL,bL=u3,yL=l3,xL=({children:e,as:t="p",className:r,duration:n=2,spread:i=2})=>{const a=S3.motion.create(t),s=j.useMemo(()=>((e==null?void 0:e.length)??0)*i,[e,i]);return D.jsx(a,{animate:{backgroundPosition:"0% center"},className:dt("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",r),initial:{backgroundPosition:"100% center"},style:{"--spread":`${s}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:n,ease:"linear"},children:e})},c3=j.memo(xL),h3=j.createContext(null),EL=()=>{const e=j.useContext(h3);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},vL=1e3,TL=1e3,d3=j.memo(({className:e,isStreaming:t=!1,open:r,defaultOpen:n=!0,onOpenChange:i,duration:a,children:s,...o})=>{const[u,l]=Ps({prop:r,defaultProp:n,onChange:i}),[h,c]=Ps({prop:a,defaultProp:void 0}),[d,f]=j.useState(!1),[g,y]=j.useState(null);j.useEffect(()=>{t?g===null&&y(Date.now()):g!==null&&(c(Math.ceil((Date.now()-g)/TL)),y(null))},[t,g,c]),j.useEffect(()=>{if(n&&!t&&u&&!d){const x=setTimeout(()=>{l(!1),f(!0)},vL);return()=>clearTimeout(x)}},[t,u,n,l,d]);const T=x=>{l(x)};return D.jsx(h3.Provider,{value:{isStreaming:t,isOpen:u,setIsOpen:l,duration:h},children:D.jsx(gL,{className:dt("not-prose mb-4",e),onOpenChange:T,open:u,...o,children:s})})}),wL=(e,t)=>e||t===0?D.jsx(c3,{duration:1,children:"Thinking..."}):t===void 0?D.jsx("p",{children:"Thought for a few seconds"}):D.jsxs("p",{children:["Thought for ",t," seconds"]}),f3=j.memo(({className:e,children:t,...r})=>{const{isStreaming:n,isOpen:i,duration:a}=EL();return D.jsx(bL,{className:dt("flex w-full items-center gap-2 text-sm text-muted-foreground transition-colors hover:text-foreground",e),...r,children:t??D.jsxs(D.Fragment,{children:[D.jsx(qt.BrainIcon,{className:"size-4"}),wL(n,a),D.jsx(qt.ChevronDownIcon,{className:dt("size-4 transition-transform",i?"rotate-180":"rotate-0")})]})})}),m3=j.memo(({className:e,children:t,...r})=>D.jsx(yL,{className:dt("mt-4 text-sm","text-muted-foreground outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2",e),...r,children:D.jsx(Dc,{...r,children:t})}));d3.displayName="Reasoning";f3.displayName="ReasoningTrigger";m3.displayName="ReasoningContent";const kL=({className:e,content:t,isLoading:r=!1,...n})=>D.jsx("div",{className:dt("is-assistant flex w-full max-w-[80%] flex-col gap-2",e),...n,children:D.jsx("div",{className:"flex w-fit flex-col gap-2 overflow-hidden text-sm",children:D.jsx("div",{className:"flex items-center gap-2 rounded-lg border border-muted-foreground/20 bg-muted/50 p-3",children:D.jsxs("div",{className:"flex flex-1 items-center gap-2",children:[r&&D.jsx(c3,{duration:1.5,children:t}),!r&&D.jsx("div",{className:"text-xs text-muted-foreground",children:t})]})})})});function SL({userInput:e,language:t="en",currentHtml:r}){const n=el.LANGUAGES[t]||"English";return r&&r.trim().length>0?`
|
|
527
|
+
MODE: EDIT
|
|
528
|
+
CURRENT HTML:
|
|
529
|
+
${r}
|
|
530
|
+
|
|
531
|
+
USER REQUEST: ${e}
|
|
532
|
+
Use ${n} language.
|
|
533
|
+
`.trim():`
|
|
534
|
+
USER REQUEST: ${e}
|
|
535
|
+
Use ${n} language.
|
|
536
|
+
`.trim()}function AL({fallbackLang:e,language:t,blocks:r=[],userInput:n}){const i=el.LANGUAGES[t]||"English";return`
|
|
537
|
+
USER REQUEST: ${n||"Translate the content"}
|
|
538
|
+
LANGUAGE TO TRANSLATE: ${i}
|
|
539
|
+
REQUESTED TRANSLATION LANGUAGE CODE: ${t}
|
|
540
|
+
FALLBACK LANGUAGE: ${el.LANGUAGES[e]}
|
|
541
|
+
BLOCKS: ${JSON.stringify(r)}`.trim()}const CL=({onRemove:e,isLoading:t=!1})=>{const{t:r}=Uc.useTranslation(),n=Uc.useSelectedBlock(),i=(n==null?void 0:n._type)||"Unknown",a=(n==null?void 0:n._name)||i;return D.jsx(D.Fragment,{children:D.jsxs("div",{className:"mx-auto flex w-[95%] items-center justify-between rounded-t-md border border-b-0 border-blue-200 bg-blue-50",children:[D.jsxs("div",{className:"flex items-center",children:[D.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-l rounded-bl-none bg-blue-500 text-xs font-semibold text-white",children:"@"}),D.jsx("div",{className:"flex w-[95%] flex-col",children:n?D.jsx(D.Fragment,{children:D.jsxs("span",{className:"truncate text-xs font-medium text-blue-900",children:[" ",r("Context: ")," ",a]})}):D.jsxs("span",{className:"text-xs font-medium text-blue-900",children:[" ",r("Context: Entire Page")]})})]}),n&&D.jsx(A3.Button,{variant:"ghost",size:"icon",onClick:e,disabled:t,className:"h-6 w-6 text-blue-600 hover:bg-blue-100 hover:text-blue-800",title:"Remove block from context",children:D.jsx(qt.X,{size:14})})]})})};exports.Anchor=$m;exports.Arrow=Gm;exports.Button=r0;exports.Content=jm;exports.Conversation=q3;exports.ConversationContent=$3;exports.ConversationEmptyState=j3;exports.ConversationScrollButton=G3;exports.DismissableLayer=i0;exports.Message=cL;exports.MessageContent=hL;exports.MessageResponse=a3;exports.Presence=go;exports.Primitive=cr;exports.Reasoning=d3;exports.ReasoningContent=m3;exports.ReasoningTrigger=f3;exports.Root2=Mb;exports.SelectedBlockDisplay=CL;exports.TaskMessage=kL;exports.VISUALLY_HIDDEN_STYLES=Vm;exports.cn=dt;exports.composeEventHandlers=ir;exports.composeRefs=uo;exports.createContext2=Z3;exports.createContextScope=co;exports.createPopperScope=d0;exports.createSlot=gm;exports.cva=hm;exports.dispatchDiscreteCustomEvent=ym;exports.getDefaultExportFromCjs=e0;exports.getTranslationUserPrompt=AL;exports.getUserPrompt=SL;exports.k=Re;exports.katex=F9;exports.useCallbackRef=Pa;exports.useComposedRefs=Jr;exports.useControllableState=Ps;exports.useId=vm;exports.useLayoutEffect2=Wr;
|