@aquera/nile-elements 0.0.96 → 0.0.98
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/README.md +11 -0
- package/demo/filenames.txt +1 -1
- package/demo/variables.css +8 -0
- package/demo/variables_v2.css +6 -0
- package/dist/{angular-ts-a95c67aa.cjs.js → angular-ts-8eef275b.cjs.js} +2 -2
- package/dist/{angular-ts-a95c67aa.cjs.js.map → angular-ts-8eef275b.cjs.js.map} +1 -1
- package/dist/{asciidoc-b8046ce8.esm.js → asciidoc-45b24fbf.esm.js} +1 -1
- package/dist/{asciidoc-c0ae04c3.cjs.js → asciidoc-d9a554a9.cjs.js} +2 -2
- package/dist/{asciidoc-c0ae04c3.cjs.js.map → asciidoc-d9a554a9.cjs.js.map} +1 -1
- package/dist/coq-112048d4.cjs.js +2 -0
- package/dist/coq-112048d4.cjs.js.map +1 -0
- package/dist/coq-2b59f292.esm.js +1 -0
- package/dist/{edge-f122fee4.cjs.js → edge-117795ef.cjs.js} +2 -2
- package/dist/{edge-f122fee4.cjs.js.map → edge-117795ef.cjs.js.map} +1 -1
- package/dist/{fortran-fixed-form-48ce1631.cjs.js → fortran-fixed-form-04eb2c2b.cjs.js} +2 -2
- package/dist/{fortran-fixed-form-48ce1631.cjs.js.map → fortran-fixed-form-04eb2c2b.cjs.js.map} +1 -1
- package/dist/{fsharp-9f65d045.cjs.js → fsharp-b73adc59.cjs.js} +2 -2
- package/dist/{fsharp-9f65d045.cjs.js.map → fsharp-b73adc59.cjs.js.map} +1 -1
- package/dist/{gdresource-f69c4269.cjs.js → gdresource-165d80c9.cjs.js} +2 -2
- package/dist/{gdresource-f69c4269.cjs.js.map → gdresource-165d80c9.cjs.js.map} +1 -1
- package/dist/github-dark-high-contrast-7b0d7429.cjs.js +2 -0
- package/dist/github-dark-high-contrast-7b0d7429.cjs.js.map +1 -0
- package/dist/github-dark-high-contrast-bf87cfb0.esm.js +1 -0
- package/dist/github-light-high-contrast-3683d923.esm.js +1 -0
- package/dist/github-light-high-contrast-caee8ed6.cjs.js +2 -0
- package/dist/github-light-high-contrast-caee8ed6.cjs.js.map +1 -0
- package/dist/gleam-69ca4750.cjs.js +2 -0
- package/dist/gleam-69ca4750.cjs.js.map +1 -0
- package/dist/gleam-79f887fd.esm.js +1 -0
- package/dist/{haml-a62722ee.cjs.js → haml-bdfaf5bf.cjs.js} +2 -2
- package/dist/{haml-a62722ee.cjs.js.map → haml-bdfaf5bf.cjs.js.map} +1 -1
- package/dist/{http-243ce707.cjs.js → http-bdc26351.cjs.js} +2 -2
- package/dist/{http-243ce707.cjs.js.map → http-bdc26351.cjs.js.map} +1 -1
- package/dist/{hxml-36e954b2.cjs.js → hxml-ec409b05.cjs.js} +2 -2
- package/dist/{hxml-36e954b2.cjs.js.map → hxml-ec409b05.cjs.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{latex-1732805a.cjs.js → latex-13abd118.cjs.js} +2 -2
- package/dist/{latex-1732805a.cjs.js.map → latex-13abd118.cjs.js.map} +1 -1
- package/dist/{mdc-a3ab9285.cjs.js → mdc-31e30669.cjs.js} +2 -2
- package/dist/{mdc-a3ab9285.cjs.js.map → mdc-31e30669.cjs.js.map} +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.esm.js +4 -4
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-calendar/index.cjs.js +1 -1
- package/dist/nile-calendar/index.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +0 -5
- package/dist/nile-calendar/nile-calendar.esm.js +51 -53
- package/dist/nile-chip/nile-chip.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.esm.js +3 -2
- package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.esm.js +6 -2
- package/dist/nile-date-picker/nile-date-picker.esm.js +6 -6
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +2 -2
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +7 -7
- package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
- package/dist/nile-highlighter/nile-highlighter.cjs.js.map +1 -1
- package/dist/nile-highlighter/nile-highlighter.esm.js +1 -1
- package/dist/nile-icon/icons/svg/compare.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/compare.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/compare.esm.js +1 -0
- package/dist/nile-icon/icons/svg/dock-to-right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/dock-to-right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/dock-to-right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-inline-edit/index.cjs.js +2 -0
- package/dist/nile-inline-edit/index.cjs.js.map +1 -0
- package/dist/nile-inline-edit/index.esm.js +1 -0
- package/dist/nile-inline-edit/nile-inline-edit.cjs.js +2 -0
- package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -0
- package/dist/nile-inline-edit/nile-inline-edit.css.cjs.js +2 -0
- package/dist/nile-inline-edit/nile-inline-edit.css.cjs.js.map +1 -0
- package/dist/nile-inline-edit/nile-inline-edit.css.esm.js +42 -0
- package/dist/nile-inline-edit/nile-inline-edit.esm.js +6 -0
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +16 -19
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.esm.js +4 -4
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.esm.js +3 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +1 -1
- package/dist/nile-tree/index.esm.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.esm.js +1 -1
- package/dist/nile-tree-item/index.cjs.js +1 -1
- package/dist/nile-tree-item/index.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
- package/dist/{nim-df5f9efe.cjs.js → nim-175a1e94.cjs.js} +2 -2
- package/dist/{nim-df5f9efe.cjs.js.map → nim-175a1e94.cjs.js.map} +1 -1
- package/dist/{proto-11466e41.esm.js → proto-7cb7fd99.esm.js} +1 -1
- package/dist/{proto-bdf8f839.cjs.js → proto-c0d38a59.cjs.js} +2 -2
- package/dist/{proto-bdf8f839.cjs.js.map → proto-c0d38a59.cjs.js.map} +1 -1
- package/dist/{rst-64e995dc.cjs.js → rst-939eae95.cjs.js} +2 -2
- package/dist/{rst-64e995dc.cjs.js.map → rst-939eae95.cjs.js.map} +1 -1
- package/dist/{shaderlab-8f7349ac.cjs.js → shaderlab-f1b8150d.cjs.js} +2 -2
- package/dist/{shaderlab-8f7349ac.cjs.js.map → shaderlab-f1b8150d.cjs.js.map} +1 -1
- package/dist/{sparql-cd3386f5.cjs.js → sparql-fa708d4c.cjs.js} +2 -2
- package/dist/{sparql-cd3386f5.cjs.js.map → sparql-fa708d4c.cjs.js.map} +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-auto-complete/nile-auto-complete.js +2 -2
- package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +0 -5
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +94 -56
- package/dist/src/nile-calendar/nile-calendar.js +465 -490
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.js +3 -2
- package/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/dist/src/nile-date-picker/nile-date-picker.css.js +4 -0
- package/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -1
- package/dist/src/nile-date-picker/nile-date-picker.js +7 -6
- package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/dist/src/nile-drawer/nile-drawer.d.ts +4 -0
- package/dist/src/nile-drawer/nile-drawer.js +9 -0
- package/dist/src/nile-drawer/nile-drawer.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/compare.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/compare.js +5 -0
- package/dist/src/nile-icon/icons/svg/compare.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/dock-to-right.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/dock-to-right.js +5 -0
- package/dist/src/nile-icon/icons/svg/dock-to-right.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/index.d.ts +2 -0
- package/dist/src/nile-icon/icons/svg/index.js +2 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-inline-edit/index.d.ts +1 -0
- package/dist/src/nile-inline-edit/index.js +2 -0
- package/dist/src/nile-inline-edit/index.js.map +1 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.css.d.ts +12 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.css.js +54 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.css.js.map +1 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.d.ts +41 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.js +76 -0
- package/dist/src/nile-inline-edit/nile-inline-edit.js.map +1 -0
- package/dist/src/nile-input/nile-input.css.js +16 -19
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.d.ts +1 -1
- package/dist/src/nile-popover/nile-popover.js +2 -2
- package/dist/src/nile-popover/nile-popover.js.map +1 -1
- package/dist/src/nile-toast/nile-toast.css.js +3 -1
- package/dist/src/nile-toast/nile-toast.css.js.map +1 -1
- package/dist/{svelte-eaee6dea.cjs.js → svelte-1c9200e6.cjs.js} +2 -2
- package/dist/{svelte-eaee6dea.cjs.js.map → svelte-1c9200e6.cjs.js.map} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{twig-ef3a2f8e.cjs.js → twig-e82a0f10.cjs.js} +2 -2
- package/dist/{twig-ef3a2f8e.cjs.js.map → twig-e82a0f10.cjs.js.map} +1 -1
- package/dist/{typespec-2408a2c5.esm.js → typespec-5b65452b.esm.js} +1 -1
- package/dist/{typespec-df7168c5.cjs.js → typespec-5f9c7522.cjs.js} +2 -2
- package/dist/{typespec-df7168c5.cjs.js.map → typespec-5f9c7522.cjs.js.map} +1 -1
- package/dist/vitesse-black-02f9013c.esm.js +1 -0
- package/dist/vitesse-black-c8b0af08.cjs.js +2 -0
- package/dist/vitesse-black-c8b0af08.cjs.js.map +1 -0
- package/dist/vitesse-dark-362560d8.esm.js +1 -0
- package/dist/vitesse-dark-4d62a96c.cjs.js +2 -0
- package/dist/vitesse-dark-4d62a96c.cjs.js.map +1 -0
- package/dist/vitesse-light-64c34e5b.esm.js +1 -0
- package/dist/vitesse-light-c347b81b.cjs.js +2 -0
- package/dist/vitesse-light-c347b81b.cjs.js.map +1 -0
- package/dist/{vue-711d75a4.esm.js → vue-8a11ba51.esm.js} +1 -1
- package/dist/{vue-d4c63178.cjs.js → vue-ec02ac11.cjs.js} +2 -2
- package/dist/{vue-d4c63178.cjs.js.map → vue-ec02ac11.cjs.js.map} +1 -1
- package/dist/{vue-html-b805e078.esm.js → vue-html-223d6d0d.esm.js} +1 -1
- package/dist/{vue-html-13711be2.cjs.js → vue-html-39fa1a8f.cjs.js} +2 -2
- package/dist/{vue-html-13711be2.cjs.js.map → vue-html-39fa1a8f.cjs.js.map} +1 -1
- package/dist/{wikitext-724303c6.esm.js → wikitext-194e2520.esm.js} +1 -1
- package/dist/{wikitext-d4ad7e43.cjs.js → wikitext-f8506da8.cjs.js} +2 -2
- package/dist/{wikitext-d4ad7e43.cjs.js.map → wikitext-f8506da8.cjs.js.map} +1 -1
- package/package.json +4 -3
- package/src/index.ts +2 -0
- package/src/nile-auto-complete/nile-auto-complete.ts +2 -2
- package/src/nile-calendar/nile-calendar.css.ts +0 -5
- package/src/nile-calendar/nile-calendar.ts +481 -557
- package/src/nile-chip/nile-chip.ts +3 -2
- package/src/nile-date-picker/nile-date-picker.css.ts +4 -0
- package/src/nile-date-picker/nile-date-picker.ts +7 -7
- package/src/nile-drawer/nile-drawer.ts +6 -0
- package/src/nile-icon/icons/svg/compare.ts +5 -0
- package/src/nile-icon/icons/svg/dock-to-right.ts +5 -0
- package/src/nile-icon/icons/svg/index.ts +2 -0
- package/src/nile-inline-edit/index.ts +1 -0
- package/src/nile-inline-edit/nile-inline-edit.css.ts +56 -0
- package/src/nile-inline-edit/nile-inline-edit.ts +80 -0
- package/src/nile-input/nile-input.css.ts +16 -19
- package/src/nile-popover/nile-popover.ts +1 -1
- package/src/nile-toast/nile-toast.css.ts +3 -1
- package/dist/gleam-13d71b99.cjs.js +0 -2
- package/dist/gleam-13d71b99.cjs.js.map +0 -1
- package/dist/gleam-780849b8.esm.js +0 -1
- package/dist/vitesse-black-36f4f5ae.esm.js +0 -1
- package/dist/vitesse-black-8f7b8bf9.cjs.js +0 -2
- package/dist/vitesse-black-8f7b8bf9.cjs.js.map +0 -1
- package/dist/vitesse-dark-877d0b03.cjs.js +0 -2
- package/dist/vitesse-dark-877d0b03.cjs.js.map +0 -1
- package/dist/vitesse-dark-b177c06b.esm.js +0 -1
- package/dist/vitesse-light-1305bc40.esm.js +0 -1
- package/dist/vitesse-light-3f1d75bb.cjs.js +0 -2
- package/dist/vitesse-light-3f1d75bb.cjs.js.map +0 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_excluded,_xt,_templateObject,l,a,c,u,m,p,h,w,k,L,T,A,P,O,R,E,$,B,I,z,F,H,U,q,W,V,J,X,K,Y,Q,Z,tt,et,nt,rt,ot,st,lt,at,ct,ut,mt,pt,jt,kt,St,xt,Ct,Lt,Tt,At,Pt,Ot,Mt,Nt,_t,Dt,Rt,Et,$t,Bt,It,Gt,zt,Ft,Zt,te,re,le,ae,ye,ke,ve,Ce,Le,Te,Ae,Pe,Oe,Me,Ne,_e,Re,Ee,$e,Ie,ze,Fe,qe,We,Ve,Je,Xe,Ke,Ye,tn,en,nn,on,sn,ln,an,cn,un,hn,dn,fn,bn,vn,Sn,xn,Ln,An,Nn,_n,Rn,$n,Bn,In,Gn,qn,Wn,Vn,Jn,Xn,Qn,Zn,ti,ni,ii,ri,oi,ui,_ci,mi,pi,hi,di,fi,gi,ji,yi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e47){function e(_x39){return _e47.apply(this,arguments);}e.toString=function(){return _e47.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e48){function e(_x40){return _e48.apply(this,arguments);}e.toString=function(){return _e48.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function d(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t2=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t2=1;break;case"L":_t2=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e2=s();if(n.push({matcher:_e2,priority:_t2}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t3=o();return function(e){return!!_t3&&!_t3(e);};}if("("===r){r=i.next();var _t4=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t4;}if(f(r)){var _t5=[];do{_t5.push(r),r=i.next();}while(f(r));return function(n){return e(_t5,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function f(t){return!!t&&!!t.match(/[\w\.:]+/);}function g(t){"function"==typeof t.dispose&&t.dispose();}function j(t){return Array.isArray(t)?function(t){var e=[];for(var _n2=0,_i=t.length;_n2<_i;_n2++)e[_n2]=j(t[_n2]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n3 in t)e[_n3]=j(t[_n3]);return e;}(t):t;}function y(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n4 in e)t[_n4]=e[_n4];}),t;}function b(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?b(t.substring(0,t.length-1)):t.substr(1+~e);}function v(t,e){return t<e?-1:t>e?1:0;}function S(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i2=0;_i2<n;_i2++){var _n5=v(t[_i2],e[_i2]);if(0!==_n5)return _n5;}return 0;}return n-i;}function x(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function C(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function M(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof T?_({baseGrammar:o,selfGrammar:r},i):N(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator3=_createForOfIteratorHelper(s),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t8=_step3.value;i.add(new T(_t8));}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}function N(t,e,n){if(e.repository&&e.repository[t]){D([e.repository[t]],e,n);}}function _(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&D(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&D(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function D(t,e,n){var _iterator4=_createForOfIteratorHelper(t),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _i3=_step4.value;if(n.visitedRule.has(_i3))continue;n.visitedRule.add(_i3);var _t9=_i3.repository?y({},e.repository,_i3.repository):e.repository;Array.isArray(_i3.patterns)&&D(_i3.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t9}),n);var _r=_i3.include;if(!_r)continue;var _o=G(_r);switch(_o.kind){case 0:_(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:_(e,n);break;case 2:N(_o.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t9}),n);break;case 3:case 4:var _i4=_o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i4){var _r2={baseGrammar:e.baseGrammar,selfGrammar:_i4,repository:_t9};4===_o.kind?N(_o.ruleName,_r2,n):_(_r2,n);}else 4===_o.kind?n.add(new A(_o.scopeName,_o.ruleName)):n.add(new T(_o.scopeName));}}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}function G(t){if("$base"===t)return new R();if("$self"===t)return new E();var e=t.indexOf("#");if(-1===e)return new B(t);if(0===e)return new $(t.substring(1));{var _n7=t.substring(0,e),_i5=t.substring(e+1);return new I(_n7,_i5);}}function it(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function ht(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s6=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e18=r;_e18;_e18=_e18.pop()){var _n20=_e18.getRule(t);_n20 instanceof K&&l.push({rule:_n20,stack:_e18});}for(var _a3=l.pop();_a3;_a3=l.pop()){var _ft=ft(_a3.rule,t,_a3.stack.endRule,n,i===s),_l3=_ft.ruleScanner,_c2=_ft.findOptions,_u2=_l3.findNextMatchSync(e,i,_c2);if(!_u2){r=_a3.stack.pop();break;}if(_u2.ruleId!==U){r=_a3.stack.pop();break;}_u2.captureIndices&&_u2.captureIndices.length&&(o.produce(_a3.stack,_u2.captureIndices[0].start),gt(t,e,n,_a3.stack,o,_a3.rule.whileCaptures,_u2.captureIndices),o.produce(_a3.stack,_u2.captureIndices[0].end),s=_u2.captureIndices[0].end,_u2.captureIndices[0].end>i&&(i=_u2.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s6.stack,i=_s6.linePos,n=_s6.isFirstLine,u=_s6.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new pt(r,!0);}p();}return new pt(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_dt=dt(s,t,r.endRule,n,i===o),l=_dt.ruleScanner,a=_dt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o11=0,_p=t.length;_o11<_p;_o11++){var _p2=t[_o11];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_dt2=dt(_h,e,null,i,r===s),_d=_dt2.ruleScanner,_f=_dt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===H){var _s7=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),gt(t,e,n,r,o,_s7.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s8=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s8.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s8 instanceof X){var _i11=_s8;gt(t,e,n,r,o,_i11.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i11.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i11.endHasBackReferences&&(r=r.withEndRule(_i11.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s8 instanceof K){var _i12=_s8;gt(t,e,n,r,o,_i12.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i12.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i12.whileHasBackReferences&&(r=r.withEndRule(_i12.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(gt(t,e,n,r,o,_s8.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function dt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function ft(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function gt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e19=0;_e19<a;_e19++){var _a4=o[_e19];if(null===_a4)continue;var _m4=s[_e19];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a4.retokenizeCapturedWithRuleId){var _e20=_a4.getName(l,s),_o12=i.contentNameScopesList.pushAttributed(_e20,t),_c3=_a4.getContentName(l,s),_u3=_o12.pushAttributed(_c3,t),_p3=i.push(_a4.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o12,_u3),_h3=t.createOnigString(l.substring(0,_m4.end));ht(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),g(_h3);continue;}var _p4=_a4.getName(l,s);if(null!==_p4){var _e21=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new jt(_e21,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function yt(t,e,n,i,r){var o=d(e,bt),s=Y.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n21=_step9.value;t.push({debugSelector:e,matcher:_n21.matcher,ruleId:s,grammar:r,priority:_n21.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function bt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var _i13=n;_i13<e.length;_i13++)if(wt(e[_i13],t))return n=_i13+1,!0;return!1;});}function wt(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function vt(t,e){return(t=j(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Ht(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t32=0;_t32<n.length;_t32+=2){var _n28;var _o15=e?n[_t32]+(n[_t32+1]||""):n[_t32];r.push([_o15,i]),i+=n[_t32].length,i+=((_n28=n[_t32+1])===null||_n28===void 0?void 0:_n28.length)||0;}return r;}function Ut(t){return!t||["plaintext","txt","text","plain"].includes(t);}function qt(t){return"ansi"===t||Ut(t);}function Wt(t){return"none"===t;}function Vt(t){return Wt(t);}function Jt(t,e){var _t$properties;if(!e)return t;t.properties||(t.properties={}),(_t$properties=t.properties)["class"]||(_t$properties["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var n=Array.isArray(e)?e:e.split(/\s+/g);var _iterator18=_createForOfIteratorHelper(n),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e27=_step18.value;_e27&&!t.properties["class"].includes(_e27)&&t.properties["class"].push(_e27);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return t;}function Xt(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i17=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i17<_Object$entries.length;_i17++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i17],2),_t33=_Object$entries$_i[0],_r13=_Object$entries$_i[1];"string"==typeof _r13?n[_t33]=_r13:_t33===i&&Object.assign(n,_r13);}return n;}function Kt(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Yt(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&p.Italic&&(e["font-style"]="italic"),t.fontStyle&p.Bold&&(e["font-weight"]="bold"),t.fontStyle&p.Underline&&(e["text-decoration"]="underline")),e;}function Qt(t){return Object.entries(t).map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return"".concat(t,":").concat(e);}).join(";");}function ee(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e28=t.indexOf("m",n);return{sequence:t.substring(n+2,_e28).split(";"),startPosition:n,position:_e28+1};}return{position:t.length};}function ne(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i18=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i18.length||_i18.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i18});}else if("5"===i){var _i19=Number.parseInt(t[e+n]);Number.isNaN(_i19)||(r={type:"table",index:Number(_i19)});}return[n,r];}function ie(t){var e=[];for(var _n29=0;_n29<t.length;_n29++){var _i20=t[_n29],_r14=Number.parseInt(_i20);if(!Number.isNaN(_r14))if(0===_r14)e.push({type:"resetAll"});else if(_r14<=9){te[_r14]&&e.push({type:"setDecoration",value:te[_r14]});}else if(_r14<=29){var _t34=te[_r14-20];_t34&&e.push({type:"resetDecoration",value:_t34});}else if(_r14<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Zt[_r14-30]}});else if(38===_r14){var _ne=ne(t,_n29),_ne2=_slicedToArray(_ne,2),_i21=_ne2[0],_r15=_ne2[1];_r15&&e.push({type:"setForegroundColor",value:_r15}),_n29+=_i21;}else if(39===_r14)e.push({type:"resetForegroundColor"});else if(_r14<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[_r14-40]}});else if(48===_r14){var _ne3=ne(t,_n29),_ne4=_slicedToArray(_ne3,2),_i22=_ne4[0],_r16=_ne4[1];_r16&&e.push({type:"setBackgroundColor",value:_r16}),_n29+=_i22;}else 49===_r14?e.push({type:"resetBackgroundColor"}):_r14>=90&&_r14<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Zt[_r14-90+8]}}):_r14>=100&&_r14<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[_r14-100+8]}});}return e;}function oe(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:re;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t35=0;_t35<Zt.length;_t35++)i.push(e(Zt[_t35]));var t=[0,95,135,175,215,255];for(var _e29=0;_e29<6;_e29++)for(var _r17=0;_r17<6;_r17++)for(var _o16=0;_o16<6;_o16++)i.push(n([t[_e29],t[_r17],t[_o16]]));var r=8;for(var _t36=0;_t36<24;_t36++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function se(t,e,n){var i=Xt(t,n),r=Ht(e),o=oe(Object.fromEntries(Zt.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s10=ee(i,o),_l4=_s10.sequence?i.substring(o,_s10.startPosition):i.substring(o);if(_l4.length>0&&r.push({value:_l4,foreground:t,background:e,decorations:new Set(n)}),_s10.sequence){var _i23=ie(_s10.sequence);var _iterator19=_createForOfIteratorHelper(_i23),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _r18=_step19.value;"resetAll"===_r18.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r18.type?t=null:"resetBackgroundColor"===_r18.type?e=null:"resetDecoration"===_r18.type&&n["delete"](_r18.value);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}var _iterator20=_createForOfIteratorHelper(_i23),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _r19=_step20.value;"setForegroundColor"===_r19.type?t=_r19.value:"setBackgroundColor"===_r19.type?e=_r19.value:"setDecoration"===_r19.type&&n.add(_r19.value);}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}}o=_s10.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Kt(r,i),s=Kt(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t37=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t37);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=p.None;return n.decorations.has("bold")&&(l|=p.Bold),n.decorations.has("italic")&&(l|=p.Italic),n.decorations.has("underline")&&(l|=p.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function ce(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(Ut(i)||Wt(r))return Ht(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return se(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new le("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(n.grammarState.theme!==r)throw new le("Grammar state theme \"".concat(n.grammarState.theme,"\" does not match highlight theme \"").concat(r,"\""));}return function(t,e,n,i,r){return ue(t,e,n,i,r).tokens;}(e,l,o,s,n);}function ue(t,e,n,i,r){var o=Xt(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=Ht(t);var c=r.grammarState?function(t){if(!(t instanceof ae))throw new le("Invalid grammar state");return t._stack;}(r.grammarState):null!=r.grammarContextCode?ue(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Pt,u=[];var m=[],p=[];if(r.includeExplanation){var _iterator21=_createForOfIteratorHelper(n.settings),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _t38=_step21.value;var _e30=void 0;switch(_typeof(_t38.scope)){case"string":_e30=_t38.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_e30=_t38.scope;break;default:continue;}p.push({settings:_t38,selectors:_e30.map(function(t){return t.split(/ /);})});}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}}for(var _t39=0,_n30=a.length;_t39<_n30;_t39++){var _a$_t=_slicedToArray(a[_t39],2),_n31=_a$_t[0],_h4=_a$_t[1];if(""===_n31){u=[],m.push([]);continue;}if(s>0&&_n31.length>=s){u=[],m.push([{content:_n31,offset:_h4,color:"",fontStyle:0}]);continue;}var _d5=void 0,_f3=void 0,_g2=void 0;r.includeExplanation&&(_d5=e.tokenizeLine(_n31,c),_f3=_d5.tokens,_g2=0);var _j2=e.tokenizeLine2(_n31,c,l),_y=_j2.tokens.length/2;for(var _t40=0;_t40<_y;_t40++){var _e31=_j2.tokens[2*_t40],_s11=_t40+1<_y?_j2.tokens[2*_t40+2]:_n31.length;if(_e31===_s11)continue;var _l5=_j2.tokens[2*_t40+1],_a5=Kt(i[Ft.getForeground(_l5)],o),_c4=Ft.getFontStyle(_l5),_m5={content:_n31.substring(_e31,_s11),offset:_h4+_e31,color:_a5,fontStyle:_c4};if(r.includeExplanation){_m5.explanation=[];var _t41=0;for(;_e31+_t41<_s11;){var _e32=_f3[_g2],_i24=_n31.substring(_e32.startIndex,_e32.endIndex);_t41+=_i24.length,_m5.explanation.push({content:_i24,scopes:me(p,_e32.scopes)}),_g2+=1;}}u.push(_m5);}m.push(u),u=[],c=_j2.ruleStack;}return{tokens:m,stateStack:c};}function me(t,e){var n=[];for(var _i25=0,_r20=e.length;_i25<_r20;_i25++){var _r21=e.slice(0,_i25),_o17=e[_i25];n[_i25]={scopeName:_o17,themeMatches:de(t,_o17,_r21)};}return n;}function pe(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function he(t,e,n){if(!pe(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)pe(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function de(t,e,n){var i=[];var _iterator22=_createForOfIteratorHelper(t),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _step22$value=_step22.value,_r22=_step22$value.selectors,_o18=_step22$value.settings;var _iterator23=_createForOfIteratorHelper(_r22),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _t42=_step23.value;if(he(_t42,e,n)){i.push(_o18);break;}}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}return i;}function fe(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=function(){for(var _len2=arguments.length,t=new Array(_len2),_key2=0;_key2<_len2;_key2++){t[_key2]=arguments[_key2];}var e=t.map(function(){return[];}),n=t.length;var _loop=function _loop(_i26){var r=t.map(function(t){return t[_i26];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t43=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e33=0;_e33<n;_e33++){var _n32=l[_e33];_n32.content.length===_t43?(o[_e33].push(_n32),s[_e33]+=1,l[_e33]=r[_e33][s[_e33]]):(o[_e33].push(_objectSpread(_objectSpread({},_n32),{},{content:_n32.content.slice(0,_t43)})),l[_e33]=_objectSpread(_objectSpread({},_n32),{},{content:_n32.content.slice(_t43),offset:_n32.offset+_t43}));}}};for(var _i26=0;_i26<t[0].length;_i26++){_loop(_i26);}return e;}.apply(void 0,_toConsumableArray(i.map(function(i){return ce(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));}))),o=r[0].map(function(t,e){return t.map(function(t,o){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(function(t,n){var _t$e$o=t[e][o],r=_t$e$o.content,l=_t$e$o.explanation,a=_t$e$o.offset,c=_objectWithoutProperties(_t$e$o,_excluded);s.variants[i[n].color]=c;}),s;});});return o;}function ge(t,e,n){var i,r,o,s,l;if("themes"in n){var _n$defaultColor=n.defaultColor,_a6=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_c5=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_u4=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_a6?-1:e.color===_a6?1:0;});if(0===_u4.length)throw new le("`themes` option must not be empty");var _m6=fe(t,e,n);if(_a6&&!_u4.find(function(t){return t.color===_a6;}))throw new le("`themes` option must contain the defaultColor key `".concat(_a6,"`"));var _p5=_u4.map(function(e){return t.getTheme(e.theme);}),_h5=_u4.map(function(t){return t.color;});o=_m6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return Yt(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l=o.reduce(function(t,r,o){var _iterator24=_createForOfIteratorHelper(s),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _l6=_step24.value;var _s12=r[_l6]||"inherit";if(0===o&&i)t[_l6]=_s12;else{var _i27="color"===_l6?"":"background-color"===_l6?"-bg":"-".concat(_l6),_r23=n+e[o]+("color"===_l6?"":_i27);t[_l6]?t[_l6]+=";".concat(_r23,":").concat(_s12):t[_l6]="".concat(_r23,":").concat(_s12);}}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}return t;},{});return r.htmlStyle=i?Qt(l):Object.values(l).join(";"),r;}(t,_h5,_c5,_a6);});});var _d6=_u4.map(function(t){return Xt(t.theme,n);});r=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c5+t.color,":"))+(Kt(_p5[e].fg,_d6[e])||"inherit");}).join(";"),i=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c5+t.color,"-bg:"))+(Kt(_p5[e].bg,_d6[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_p5.map(function(t){return t.name;}).join(" ")),l=_a6?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new le("Invalid options, either `theme` or `themes` must be provided");{var _l7=Xt(n.theme,n);o=ce(t,e,n);var _a7=t.getTheme(n.theme);i=Kt(_a7.bg,_l7),r=Kt(_a7.fg,_l7),s=_a7.name;}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l};}function je(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _i28=function _i28(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new le("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},_n33.indexToPos(t)),{},{offset:t});}{var _e34=_n33.lines[t.line];if(void 0===_e34)throw new le("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(_n33.lines.length));if(t.character<0||t.character>_e34.length)throw new le("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e34.length));return _objectSpread(_objectSpread({},t),{},{offset:_n33.posToIndex(t.line,t.character)});}};var _n33=function(t){var e=Ht(t,!0).map(function(_ref6){var _ref7=_slicedToArray(_ref6,1),t=_ref7[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator25=_createForOfIteratorHelper(e),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _t44=_step25.value;if(i<_t44.length)break;i-=_t44.length,r++;}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n34=0;_n34<t;_n34++)i+=e[_n34].length;return i+=n,i;}};}(e.source);var _r24=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_i28(t.start),end:_i28(t.end)});});!function(t){for(var _e35=0;_e35<t.length;_e35++){var _n35=t[_e35];if(_n35.start.offset>_n35.end.offset)throw new le("Invalid decoration range: ".concat(JSON.stringify(_n35.start)," - ").concat(JSON.stringify(_n35.end)));for(var _i29=_e35+1;_i29<t.length;_i29++){var _e36=t[_i29],_r25=_n35.start.offset<_e36.start.offset&&_e36.start.offset<_n35.end.offset,_o19=_n35.start.offset<_e36.end.offset&&_e36.end.offset<_n35.end.offset,_s13=_e36.start.offset<_n35.start.offset&&_n35.start.offset<_e36.end.offset,_l8=_e36.start.offset<_n35.end.offset&&_n35.end.offset<_e36.end.offset;if(_r25||_o19||_s13||_l8){if(_o19&&_o19)continue;if(_s13&&_l8)continue;throw new le("Decorations ".concat(JSON.stringify(_n35.start)," and ").concat(JSON.stringify(_e36.start)," intersect."));}}}}(_r24),t.set(e.meta,{decorations:_r24,converter:_n33,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator26=_createForOfIteratorHelper(e),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _r26=_step26.value;_r26>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r26),offset:t.offset+n})),n=_r26;}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new le("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;function u(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(u).join(""):"";}if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t45=0;_t45<o.children.length;_t45++)l+=u(o.children[_t45]),-1===a&&l.length===e&&(a=_t45+1),-1===c&&l.length===n&&(c=_t45+1);if(-1===a)throw new le("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new le("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var m=o.children.slice(a,c);if(r.alwaysWrap||m.length!==o.children.length){if(r.alwaysWrap||1!==m.length||"element"!==m[0].type){var _t46={type:"element",tagName:"span",properties:{},children:m};s(_t46,r,"wrapper"),o.children.splice(a,m.length,_t46);}else s(m[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&Jt(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator27=_createForOfIteratorHelper(a),_step27;try{var _loop2=function _loop2(){var t=_step27.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop3=function _loop3(_i30){l.unshift(function(){return o(_i30,t);});};for(var _i30=e.line+1;_i30<n.line;_i30++){_loop3(_i30);}r(n.line,0,n.character,t);}};for(_iterator27.s();!(_step27=_iterator27.n()).done;){_loop2();}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}l.forEach(function(t){return t();});}};}function be(t){return[].concat(_toConsumableArray(t.transformers||[]),ye);}function we(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return we(t,e,n);},codeToTokens:function codeToTokens(e,n){return ge(t,e,n);}};var r=e;var _iterator28=_createForOfIteratorHelper(be(n)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _t52$preprocess;var _t52=_step28.value;r=((_t52$preprocess=_t52.preprocess)===null||_t52$preprocess===void 0?void 0:_t52$preprocess.call(i,r,n))||r;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _ge=ge(t,r,n),o=_ge.tokens,s=_ge.fg,l=_ge.bg,a=_ge.themeName,c=_ge.rootStyle;var _n$mergeWhitespaces=n.mergeWhitespaces,u=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===u?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&p.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===u&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e37=_slicedToArray(e,4),n=_e37[1],i=_e37[2],r=_e37[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var m=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator29=_createForOfIteratorHelper(be(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t53$tokens;var _t53=_step29.value;o=((_t53$tokens=_t53.tokens)===null||_t53$tokens===void 0?void 0:_t53$tokens.call(m,o))||o;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return function(t,e,n){var i=be(e),r=[],o={type:"root",children:[]},_e$structure=e.structure,s=_e$structure===void 0?"classic":_e$structure;var l={type:"element",tagName:"pre",properties:_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg),tabindex:"0"},Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return!t.startsWith("_");}))),children:[]},a={type:"element",tagName:"code",properties:{},children:r};var c=[],u=_objectSpread(_objectSpread({},n),{},{structure:s,addClassToHast:Jt,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return l;},get code(){return a;},get lines(){return c;}});if(t.forEach(function(t,e){e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},l=0;var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r27=_step30.value;var _t48={type:"element",tagName:"span",properties:{},children:[{type:"text",value:_r27.content}]};var _a8=_r27.htmlStyle||Qt(Yt(_r27));_a8&&(_t48.properties.style=_a8);var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _r28$span;var _r28=_step32.value;_t48=(_r28===null||_r28===void 0||(_r28$span=_r28.span)===null||_r28$span===void 0?void 0:_r28$span.call(u,_t48,e+1,l,n))||_t48;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}"inline"===s?o.children.push(_t48):"classic"===s&&n.children.push(_t48),l+=_r27.content.length;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if("classic"===s){var _iterator31=_createForOfIteratorHelper(i),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t47$line;var _t47=_step31.value;n=(_t47===null||_t47===void 0||(_t47$line=_t47.line)===null||_t47$line===void 0?void 0:_t47$line.call(u,n,e+1))||n;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}c.push(n),r.push(n);}}),"classic"===s){var _iterator33=_createForOfIteratorHelper(i),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _t49$code;var _t49=_step33.value;a=(_t49===null||_t49===void 0||(_t49$code=_t49.code)===null||_t49$code===void 0?void 0:_t49$code.call(u,a))||a;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}l.children.push(a);var _iterator34=_createForOfIteratorHelper(i),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t50$pre;var _t50=_step34.value;l=(_t50===null||_t50===void 0||(_t50$pre=_t50.pre)===null||_t50$pre===void 0?void 0:_t50$pre.call(u,l))||l;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}o.children.push(l);}var m=o;var _iterator35=_createForOfIteratorHelper(i),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t51$root;var _t51=_step35.value;m=(_t51===null||_t51===void 0||(_t51$root=_t51.root)===null||_t51$root===void 0?void 0:_t51$root.call(u,m))||m;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return m;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),m);}function Se(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new ve(n,i,e);}function xe(t){return t.toLowerCase();}function De(){return Math.pow(2,++Le);}function Be(t,e,n){n&&(t[e]=n);}function Ge(t){var e={},n={};var i;for(i in t.properties)if(Ie.call(t.properties,i)){var _r29=t.properties[i],_o20=new $e(i,t.transform(t.attributes||{},i),_r29,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o20.mustUseProperty=!0),e[i]=_o20,n[xe(i)]=i,n[xe(_o20.attribute)]=i;}return new ve(e,n,t.space);}function He(t,e){return e in t?t[e]:e;}function Ue(t,e){return He(t,e.toLowerCase());}function Qe(t){return"-"+t.toLowerCase();}function Ze(t){return t.charAt(1).toUpperCase();}function rn(t,e){return t=t.replace(e.subset?function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function mn(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(an.call(cn,r)){var _t55=cn[r],_o21="&"+_t55;return n&&on.includes(_t55)&&!ln.includes(_t55)&&(!i||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?_o21:_o21+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i31=function(t,e,n){var i="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i31.length<r.length&&(r=_i31);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function pn(t,e){return rn(t,Object.assign({format:mn},e));}function gn(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function jn(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function yn(t){return t.join(" ").trim();}function wn(t){return"object"==_typeof(t)?"text"===t.type&&kn(t.value):kn(t);}function kn(t){return""===t.replace(bn,"");}function Cn(t){return function(e,n,i){var r=e?e.children:xn;var o=(n||0)+t,s=r[o];if(!i)for(;s&&wn(s);)o+=t,s=r[o];return s;};}function Tn(t){return function(e,n,i){return Ln.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function Pn(t,e,n){var i=vn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&wn(i.value.charAt(0)));}function On(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function Mn(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function Dn(t,e,n){var i=function(t,e){var n=xe(e);var i=e,r=Ce;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Xe.test(e)){if("-"===e.charAt(4)){var _t57=e.slice(5).replace(Ke,Ze);i="data"+_t57.charAt(0).toUpperCase()+_t57.slice(1);}else{var _t58=e.slice(4);if(!Ke.test(_t58)){var _n36=_t58.replace(Ye,Qe);"-"!==_n36.charAt(0)&&(_n36="-"+_n36),e="data"+_n36;}}r=$e;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=pn(i.attribute,Object.assign({},t.settings.characterReferences,{subset:_n.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?jn:yn)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=pn(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:_n.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&gn(n,l)>gn(n,t.alternative)&&(l=t.alternative),s=l+pn(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?_n.single:_n["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function En(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?pn(t.value,Object.assign({},i.settings.characterReferences,{subset:Rn})):t.value;}function zn(t,e,n){return $n(t,e,n,this);}function Fn(t){var e=[],n=t&&t.children||Gn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function Hn(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return we(t,e,n);},codeToTokens:function codeToTokens(e,n){return ge(t,e,n);}};var r=function(t,e){var n=e||Bn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:zn,all:Fn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ke,characterReferences:n.characterReferences||In,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?en:tn,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(we(t,e,n,i));var _iterator36=_createForOfIteratorHelper(be(n)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t59$postprocess;var _t59=_step36.value;r=((_t59$postprocess=_t59.postprocess)===null||_t59$postprocess===void 0?void 0:_t59$postprocess.call(i,r,n))||r;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return r;}function Un(_x15){return _Un.apply(this,arguments);}function _Un(){_Un=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:l=function _l9(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n50=t[e++];if(!(128&_n50)){o+=String.fromCharCode(_n50);continue;}var _i39=63&t[e++];if(192==(224&_n50)){o+=String.fromCharCode((31&_n50)<<6|_i39);continue;}var _r36=63&t[e++];if(_n50=224==(240&_n50)?(15&_n50)<<12|_i39<<6|_r36:(7&_n50)<<18|_i39<<12|_r36<<6|63&t[e++],_n50<65536)o+=String.fromCharCode(_n50);else{var _t68=_n50-65536;o+=String.fromCharCode(55296|_t68>>10,56320|1023&_t68);}}return o;}(i.HEAPU8,t,e):"";};o=function _o25(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r37(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:function emscripten_get_now(){return"undefined"!=typeof performance?performance.now():Date.now();},emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;var r=function r(t,e){return t+(e-t%e)%e;};for(var _i40=1;_i40<=4;_i40*=2){var _s15=e*(1+.2/_i40);_s15=Math.min(_s15,t+100663296);if(o(Math.min(n,r(Math.max(t,_s15),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context25.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var n,o;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context24.next=3;return t(n);case 3:o=_context24.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context24.stop();}},_callee23);}))();case 8:return _context25.abrupt("return",i);case 9:case"end":return _context25.stop();}},_callee24);}));return _Un.apply(this,arguments);}function Kn(t){if(qn)return qn;return qn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return Un(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(e){var n,i;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:n=t;_context9.next=3;return n;case 3:n=_context9.sent;_context9.t0="function"==typeof n;if(!_context9.t0){_context9.next=9;break;}_context9.next=8;return n(e);case 8:n=_context9.sent;case 9:_context9.t1="function"==typeof n;if(!_context9.t1){_context9.next=14;break;}_context9.next=13;return n(e);case 13:n=_context9.sent;case 14:if(!("function"==typeof n.instantiator)){_context9.next=20;break;}_context9.next=17;return n.instantiator(e);case 17:n=_context9.sent;_context9.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context9.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context9.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context9.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context9.next=30;break;}_context9.next=27;return Yn(n)(e);case 27:n=_context9.sent;_context9.next=35;break;case 30:_context9.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context9.t2){_context9.next=35;break;}_context9.next=34;return Yn(n["default"])(e);case 34:n=_context9.sent;case 35:_context9.next=40;break;case 37:_context9.next=39;return Yn(n)(e);case 39:n=_context9.sent;case 40:_context9.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context9.next=48;break;}_context9.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context9.t3=_context9.sent;_context9.next=51;break;case 48:_context9.next=50;return function(t){return/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(e){var n;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return t.arrayBuffer();case 2:n=_context8.sent;return _context8.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context8.stop();}},_callee7);}));return function(_x17){return _ref12.apply(this,arguments);};}();}(n)(e);case 50:_context9.t3=_context9.sent;case 51:n=_context9.t3;case 52:_context9.next=57;break;case 54:_context9.next=56;return n["default"](e);case 56:n=_context9.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context9.abrupt("return",n);case 60:case"end":return _context9.stop();}},_callee8);}));return function(_x16){return _ref11.apply(this,arguments);};}());case 2:Wn=_context10.sent;case 3:case"end":return _context10.stop();}},_callee9);}))(),qn;}function Yn(t){return function(e){return WebAssembly.instantiate(t,e);};}function ei(t){if(t!==null&&t!==void 0&&t[ti])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t60$settings,_t60$settings2,_e$colors,_e$colors2;var _t60=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t60!==null&&_t60!==void 0&&(_t60$settings=_t60.settings)!==null&&_t60$settings!==void 0&&_t60$settings.foreground&&(i=_t60.settings.foreground),_t60!==null&&_t60!==void 0&&(_t60$settings2=_t60.settings)!==null&&_t60$settings2!==void 0&&_t60$settings2.background&&(n=_t60.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?Qn.light:Qn.dark),n||(n="light"===e.type?Zn.light:Zn.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n43=s(t.settings.foreground);e.colorReplacements[_n43]=t.settings.foreground,r.settings.foreground=_n43;}if(i){var _n44=s(t.settings.background);e.colorReplacements[_n44]=t.settings.background,r.settings.background=_n44;}return r;});for(var _i36=0,_Object$keys2=Object.keys(e.colors||{});_i36<_Object$keys2.length;_i36++){var _e$colors$_t;var _t61=_Object$keys2[_i36];if(("editor.foreground"===_t61||"editor.background"===_t61||_t61.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t61])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n45=s(e.colors[_t61]);e.colorReplacements[_n45]=e.colors[_t61],e.colors[_t61]=_n45;}}return Object.defineProperty(e,ti,{enumerable:!1,writable:!1,value:!0}),e;}function si(){return _si.apply(this,arguments);}function _si(){_si=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee31(){var t,e,n,_n51,i,_i41,r,_yield$Promise$all,_yield$Promise$all2,o,s,l,a,c,u,m,p,_args11=arguments;return _regeneratorRuntime().wrap(function _callee31$(_context32){while(1)switch(_context32.prev=_context32.next){case 0:p=function _p6(){e||(e=!0,a.dispose(),oi-=1);};m=function _m7(){if(e)throw new le("Shiki instance has been disposed");};u=function _u6(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();var e=a.getTheme(t);if(!e)throw new le("Theme `".concat(t,"` not found, you may need to load it first"));return e;};_i41=function _i43(){_i41=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee30(t){return _regeneratorRuntime().wrap(function _callee30$(_context31){while(1)switch(_context31.prev=_context31.next){case 0:_context31.t0=Array;_context31.t1=Set;_context31.next=4;return Promise.all(t.filter(function(t){return!qt(t);}).map(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee29(t){return _regeneratorRuntime().wrap(function _callee29$(_context30){while(1)switch(_context30.prev=_context30.next){case 0:_context30.next=2;return n(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context30.abrupt("return",_context30.sent);case 3:case"end":return _context30.stop();}},_callee29);}));return function(_x38){return _ref26.apply(this,arguments);};}()));case 4:_context31.t2=_context31.sent.flat();_context31.t3=new _context31.t1(_context31.t2);return _context31.abrupt("return",_context31.t0.from.call(_context31.t0,_context31.t3));case 7:case"end":return _context31.stop();}},_callee30);}));return _i41.apply(this,arguments);};i=function _i42(_x36){return _i41.apply(this,arguments);};_n51=function _n53(){_n51=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee28(t){return _regeneratorRuntime().wrap(function _callee28$(_context29){while(1)switch(_context29.prev=_context29.next){case 0:return _context29.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context29.stop();}},_callee28);}));return _n51.apply(this,arguments);};n=function _n52(_x35){return _n51.apply(this,arguments);};t=_args11.length>0&&_args11[0]!==undefined?_args11[0]:{};oi+=1,!1!==t.warnings&&oi>=10&&oi%10==0&&console.warn("[Shiki] ".concat(oi," 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."));e=!1;r=t.loadWasm||ri;_context32.next=13;return Promise.all([Promise.all((t.themes||[]).map(n)).then(function(t){return t.map(ei);}),i(t.langs||[]),r?Kn(r):void 0]);case 13:_yield$Promise$all=_context32.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2);o=_yield$Promise$all2[0];s=_yield$Promise$all2[1];l=new ii(Promise.resolve({createOnigScanner:function createOnigScanner(t){return function(t){return new Xn(t);}(t);},createOnigString:function createOnigString(t){return new Jn(t);}}),s);a=new ni(l,o,s,t.langAlias);_context32.next=21;return a.init();case 21:return _context32.abrupt("return",_defineProperty({setTheme:function setTheme(t){m();var e=u(t);return c!==t&&(a.setTheme(e),c=t),{theme:e,colorMap:a.getColorMap()};},getTheme:u,getLanguage:function getLanguage(t){m();var e=a.getGrammar("string"==typeof t?t:t.name);if(!e)throw new le("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return m(),a.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return m(),a.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(){var _len6,t,_key6,_args4=arguments;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:for(_len6=_args4.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=_args4[_key6];}m();_context26.t0=a;_context26.next=5;return i(t);case 5:_context26.t1=_context26.sent;_context26.next=8;return _context26.t0.loadLanguages.call(_context26.t0,_context26.t1);case 8:case"end":return _context26.stop();}},_callee25);}));function loadLanguage(){return _loadLanguage2.apply(this,arguments);}return loadLanguage;}(),loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee27(){var _len7,t,_key7,_args7=arguments;return _regeneratorRuntime().wrap(function _callee27$(_context28){while(1)switch(_context28.prev=_context28.next){case 0:for(_len7=_args7.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=_args7[_key7];}m();_context28.next=4;return Promise.all(t.map(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(t){return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:if(!Vt(t)){_context27.next=4;break;}_context27.t0=null;_context27.next=9;break;case 4:_context27.t1=a;_context27.next=7;return n(t);case 7:_context27.t2=_context27.sent;_context27.t0=_context27.t1.loadTheme.call(_context27.t1,_context27.t2);case 9:return _context27.abrupt("return",_context27.t0);case 10:case"end":return _context27.stop();}},_callee26);}));return function(_x37){return _ref24.apply(this,arguments);};}()));case 4:case"end":return _context28.stop();}},_callee27);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),dispose:p},Symbol.dispose,p));case 22:case"end":return _context32.stop();}},_callee31);}));return _si.apply(this,arguments);}function li(){return _li.apply(this,arguments);}function _li(){_li=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee32(){var t,e,_args12=arguments;return _regeneratorRuntime().wrap(function _callee32$(_context33){while(1)switch(_context33.prev=_context33.next){case 0:t=_args12.length>0&&_args12[0]!==undefined?_args12[0]:{};_context33.next=3;return si(t);case 3:e=_context33.sent;return _context33.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(t,n){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang2=n.lang,i=_n$lang2===void 0?"text":_n$lang2,_n$theme2=n.theme,r=_n$theme2===void 0?t.getLoadedThemes()[0]:_n$theme2;if(Ut(i)||Wt(r))throw new le("Plain language does not have grammar state");if("ansi"===i)throw new le("ANSI language does not have grammar state");var _t$setTheme2=t.setTheme(r),o=_t$setTheme2.theme,s=_t$setTheme2.colorMap,l=t.getLanguage(i);return new ae(ue(e,l,o,s,n).stateStack,l.name,o.name);}(e,t,n);},codeToTokensBase:function codeToTokensBase(t,n){return ce(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return fe(e,t,n);},codeToTokens:function codeToTokens(t,n){return ge(e,t,n);},codeToHast:function codeToHast(t,n){return we(e,t,n);},codeToHtml:function codeToHtml(t,n){return Hn(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context33.stop();}},_callee32);}));return _li.apply(this,arguments);}function ai(t,e,n){return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(i){var _i$themes,_i$langs;var r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:o=function _o23(t){if(Vt(t))return"none";if("string"==typeof t){var _n49=e[t];if(!_n49)throw new le("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _n49;}return t;};r=function _r35(e){if("string"==typeof e){if(qt(e))return[];var _n48=t[e];if(!_n48)throw new le("Language `".concat(e,"` is not included in this bundle. You may want to load it from external source."));return _n48;}return e;};s=((_i$themes=i.themes)!==null&&_i$themes!==void 0?_i$themes:[]).map(function(t){return o(t);});l=((_i$langs=i.langs)!==null&&_i$langs!==void 0?_i$langs:[]).map(function(t){return r(t);});_context15.next=6;return li(_objectSpread(_objectSpread({},i),{},{themes:s,langs:l,loadWasm:n}));case 6:a=_context15.sent;return _context15.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(r)));},loadTheme:function loadTheme(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadTheme.apply(a,_toConsumableArray(t.map(o)));}}));case 8:case"end":return _context15.stop();}},_callee14);}));return function(_x21){return _ref23.apply(this,arguments);};}();}function ci(t){var e=function(t){var e;return/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var n,_t67,_args15=arguments;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:n=_args15.length>0&&_args15[0]!==undefined?_args15[0]:{};if(!e){_context16.next=8;break;}_context16.next=4;return e;case 4:_t67=_context16.sent;_context16.next=7;return Promise.all([_t67.loadTheme.apply(_t67,_toConsumableArray(n.themes||[])),_t67.loadLanguage.apply(_t67,_toConsumableArray(n.langs||[]))]);case 7:return _context16.abrupt("return",_t67);case 8:return _context16.abrupt("return",(e=t(_objectSpread(_objectSpread({},n),{},{themes:n.themes||[],langs:n.langs||[]})),e));case 9:case"end":return _context16.stop();}},_callee15);}));}(t);return{getSingletonHighlighter:function getSingletonHighlighter(t){return e(t);},codeToHtml:function(){var _codeToHtml=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(t,n){return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context17.abrupt("return",_context17.sent.codeToHtml(t,n));case 3:case"end":return _context17.stop();}},_callee16);}));function codeToHtml(_x22,_x23){return _codeToHtml.apply(this,arguments);}return codeToHtml;}(),codeToHast:function(){var _codeToHast=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t,n){return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context18.abrupt("return",_context18.sent.codeToHast(t,n));case 3:case"end":return _context18.stop();}},_callee17);}));function codeToHast(_x24,_x25){return _codeToHast.apply(this,arguments);}return codeToHast;}(),codeToTokens:function(){var _codeToTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t,n){return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context19.abrupt("return",_context19.sent.codeToTokens(t,n));case 3:case"end":return _context19.stop();}},_callee18);}));function codeToTokens(_x26,_x27){return _codeToTokens.apply(this,arguments);}return codeToTokens;}(),codeToTokensBase:function(){var _codeToTokensBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(t,n){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context20.abrupt("return",_context20.sent.codeToTokensBase(t,n));case 3:case"end":return _context20.stop();}},_callee19);}));function codeToTokensBase(_x28,_x29){return _codeToTokensBase.apply(this,arguments);}return codeToTokensBase;}(),codeToTokensWithThemes:function(){var _codeToTokensWithThemes=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t,n){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.next=2;return e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)});case 2:return _context21.abrupt("return",_context21.sent.codeToTokensWithThemes(t,n));case 3:case"end":return _context21.stop();}},_callee20);}));function codeToTokensWithThemes(_x30,_x31){return _codeToTokensWithThemes.apply(this,arguments);}return codeToTokensWithThemes;}(),getLastGrammarState:function(){var _getLastGrammarState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t,n){return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context22.abrupt("return",_context22.sent.getLastGrammarState(t,n));case 3:case"end":return _context22.stop();}},_callee21);}));function getLastGrammarState(_x32,_x33){return _getLastGrammarState.apply(this,arguments);}return getLastGrammarState;}()};}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-57e07c7f.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-439da50e.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-4472c0f4.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-25b72ebb.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-a95c67aa.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-46d295f1.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-e0a4bd06.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-ca833690.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-96a7c27f.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-3454a3c2.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-c0ae04c3.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-b3953699.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-97602850.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-8ded4382.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-8765873b.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-7164ad4c.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-9809419e.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-0829e78b.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-8a35fee3.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-57d8b01b.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-a084128c.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-38d4a70a.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-6decb9b1.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-6c1956d1.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-2e19228a.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-a8e8c28b.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-0d45dbb1.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-df1ec844.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-452c3b80.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-21202924.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-83243d90.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-3f531dc7.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-bfe435a1.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-838bc1dd.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-40c27a10.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-e35de69e.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-6afa4dd5.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-5bf38d68.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-00a158ae.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-6a9452f3.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-c75e3354.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-09716540.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-8c3ddad5.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-cfbd2b03.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-6a845f3d.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-92d094f5.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-f122fee4.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-f3533e71.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-feacbe40.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-b5649357.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-4ff167eb.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-efdbc078.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-853cc7f6.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-90111def.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-90cd540b.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-48ce1631.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-c44a3681.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-9f65d045.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-f69c4269.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-7df03c32.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-8c26c04d.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-2a9c523c.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-fc9bb7f1.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-103797c9.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-d4b1bf1e.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-13d71b99.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-6fc23a1e.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-bd149b79.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-4ade4dba.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-cc292e78.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-9d667452.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-bfbf14c7.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-487c992b.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-0f1935ea.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-a62722ee.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-07494bd1.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-be8cb605.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-ede89bee.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-5ea3dbd5.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-ea0e5cad.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-cc7b807d.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-c14c2905.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-d0746389.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-243ce707.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-36e954b2.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-3a919182.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-a7675811.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-5c368136.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-0e1ce5e0.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-b7695d18.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-326b1407.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-3ce047ba.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-c6fae2d7.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-fa8a357e.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-763623e9.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-4990259e.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-b9add75d.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-9c0ddd11.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-173b1f3e.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-e6d02a84.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-0426de90.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-0149a35c.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-1732805a.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-b6e72eea.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-d05a73ab.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-e6270bd4.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-d86ed05c.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-aafb1a4f.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-9fdfb242.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-db35c924.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-3e73f218.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-12fcdaf4.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-5bdb0e54.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-b22a9896.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-a3ab9285.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-c0d7f235.cjs.js");}},{id:"mermaid",name:"Mermaid","import":function _import(){return _context["import"]("../mermaid-92dff8f5.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-9b94a7bb.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-70c9ff24.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-e5a07b74.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-87233527.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-877de254.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-df5f9efe.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-74c59002.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-13a19c70.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-60645cf6.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-7275c0a1.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-28f53bbc.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-b82e29b4.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-831c0ca4.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-033ef277.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-8558fd1a.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-1b7d27f8.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-5cbc5107.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-3db3e07b.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-eb6f20e6.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-d6a6e901.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-c2f3d068.cjs.js");}},{id:"proto",name:"Protocol Buffer 3","import":function _import(){return _context["import"]("../proto-bdf8f839.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-166543a6.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-c976db94.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-0e7507cf.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-373d4127.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-75dfad83.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-a3db3c1f.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-03f34da2.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-c4c88a84.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-a091accb.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-febbf285.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-007bb0c2.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-a926375a.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-055ce2e3.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-c2ba649b.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-73eb17f7.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-64e995dc.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-82bc8c10.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-7539d335.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-cb93f1de.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-035e7f8e.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-a70f8399.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-5163dd06.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-706ec12c.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-8f7349ac.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-9c815bf4.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-c07da9ea.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-ac3b6366.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-7b2614f5.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-e12c9060.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-cd3386f5.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-6f3f1f3b.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-a6a4a6ff.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-a3548a04.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-8b4a8039.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-cf6ffb6a.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-eaee6dea.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-e604d6bb.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-f81c28c5.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-1d49fbcb.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-66437078.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-ce167df4.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-4b5d43c9.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-feebf5c1.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-2d7c3d02.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-981b77f0.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-bf26a4cd.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-11fce737.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-a7f6b974.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-03fb07d4.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-ef3a2f8e.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-5f0ccd11.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-df7168c5.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-24a77c1b.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-618038b5.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-c98915eb.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-f3274858.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-a1e52389.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-2a1a864c.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-95572d4c.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-d4c63178.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-13711be2.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-4c9a382b.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-0e4f2c0c.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-2d84a154.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-479b8e6e.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-d4ad7e43.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-0fb7a53d.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-18af58fa.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-80482586.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-77ec15d3.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-84108b64.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-904c5e64.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",_context["import"]("../wasm-2b3accdb.cjs.js").then(function(e){return e["default"](t);}));case 1:case"end":return _context2.stop();}},_callee);}));return function c(_x){return _ref.apply(this,arguments);};}();u=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-123d3c00.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-8180368b.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-0cf7a0f0.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-cf3e1ada.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-61603c64.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-56e83acc.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-93b9527b.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-8ac91d63.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-0264d406.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-0d891f5a.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-0ddfeebd.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-eee329e3.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-7888cdf8.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-a4342077.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-6d8cfe5f.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-5d2e59f1.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-a2cc3491.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-17d51311.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-5d78b81d.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a14ae0a.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-1e70322e.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-7c78ef32.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-cd7515fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-4e847bdf.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-5168fd63.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b65008a8.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-718a3275.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-a73fe966.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-45735b6a.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-c1c05174.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-5acc6d52.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-bea79cf9.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-29968b94.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d8c9d4b0.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-9516af0e.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-15da7ed8.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-18ae2a43.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-0a1b6c0b.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-869d8085.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-afe282dc.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-9bd52d45.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-218912d1.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-82a00987.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-be0e89d9.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-4c99f83d.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-8f7b8bf9.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-877d0b03.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-3f1d75bb.cjs.js");}}];m=Object.fromEntries(u.map(function(t){return[t.id,t["import"]];}));!function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline";}(p||(p={})),"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG,function(t){t.toBinaryStr=function(t){return t.toString(2).padStart(32,"0");},t.print=function(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});},t.getLanguageId=function(t){return(255&t)>>>0;},t.getTokenType=function(t){return(768&t)>>>8;},t.containsBalancedBrackets=function(t){return!!(1024&t);},t.getFontStyle=function(t){return(30720&t)>>>11;},t.getForeground=function(t){return(16744448&t)>>>15;},t.getBackground=function(t){return(4278190080&t)>>>24;},t.set=function(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;};}(h||(h={}));w=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;k=/*#__PURE__*/function(){function k(){_classCallCheck(this,k);}return _createClass(k,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(w.lastIndex=0,w.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(w,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t6=e.substring(s.start,s.end);for(;"."===_t6[0];)_t6=_t6.substring(1);switch(o){case"downcase":return _t6.toLowerCase();case"upcase":return _t6.toUpperCase();default:return _t6;}}});}}]);}();L=/*#__PURE__*/function(){function L(t){_classCallCheck(this,L);_defineProperty(this,"fn",void 0);_defineProperty(this,"cache",new Map());this.fn=t;}return _createClass(L,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();T=/*#__PURE__*/function(){function T(t){_classCallCheck(this,T);_defineProperty(this,"scopeName",void 0);this.scopeName=t;}return _createClass(T,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();A=/*#__PURE__*/function(){function A(t,e){_classCallCheck(this,A);_defineProperty(this,"scopeName",void 0);_defineProperty(this,"ruleName",void 0);this.scopeName=t,this.ruleName=e;}return _createClass(A,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();P=/*#__PURE__*/function(){function P(){_classCallCheck(this,P);_defineProperty(this,"_references",[]);_defineProperty(this,"_seenReferenceKeys",new Set());_defineProperty(this,"visitedRule",new Set());}return _createClass(P,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();O=/*#__PURE__*/function(){function O(t,e){_classCallCheck(this,O);_defineProperty(this,"repo",void 0);_defineProperty(this,"initialScopeName",void 0);_defineProperty(this,"seenFullScopeRequests",new Set());_defineProperty(this,"seenPartialScopeRequests",new Set());_defineProperty(this,"Q",void 0);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)];}return _createClass(O,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new P();var _iterator=_createForOfIteratorHelper(t),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _n6=_step.value;M(_n6,this.initialScopeName,this.repo,e);}}catch(err){_iterator.e(err);}finally{_iterator.f();}var _iterator2=_createForOfIteratorHelper(e.references),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _t7=_step2.value;if(_t7 instanceof T){if(this.seenFullScopeRequests.has(_t7.scopeName))continue;this.seenFullScopeRequests.add(_t7.scopeName),this.Q.push(_t7);}else{if(this.seenFullScopeRequests.has(_t7.scopeName))continue;if(this.seenPartialScopeRequests.has(_t7.toKey()))continue;this.seenPartialScopeRequests.add(_t7.toKey()),this.Q.push(_t7);}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}}]);}();R=/*#__PURE__*/_createClass(function R(){_classCallCheck(this,R);_defineProperty(this,"kind",0);});E=/*#__PURE__*/_createClass(function E(){_classCallCheck(this,E);_defineProperty(this,"kind",1);});$=/*#__PURE__*/_createClass(function $(t){_classCallCheck(this,$);_defineProperty(this,"ruleName",void 0);_defineProperty(this,"kind",2);this.ruleName=t;});B=/*#__PURE__*/_createClass(function B(t){_classCallCheck(this,B);_defineProperty(this,"scopeName",void 0);_defineProperty(this,"kind",3);this.scopeName=t;});I=/*#__PURE__*/_createClass(function I(t,e){_classCallCheck(this,I);_defineProperty(this,"scopeName",void 0);_defineProperty(this,"ruleName",void 0);_defineProperty(this,"kind",4);this.scopeName=t,this.ruleName=e;});z=/\\(\d+)/;F=/\\(\d+)/g;H=-1;U=-2;q=/*#__PURE__*/function(){function q(t,e,n,i){_classCallCheck(this,q);_defineProperty(this,"$location",void 0);_defineProperty(this,"id",void 0);_defineProperty(this,"_nameIsCapturing",void 0);_defineProperty(this,"_name",void 0);_defineProperty(this,"_contentNameIsCapturing",void 0);_defineProperty(this,"_contentName",void 0);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=k.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=k.hasCaptures(this._contentName);}return _createClass(q,[{key:"debugName",get:function get(){var t=this.$location?"".concat(b(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?k.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?k.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();W=/*#__PURE__*/function(_q2){function W(t,e,n,i,r){var _this;_classCallCheck(this,W);(_this=_callSuper(this,W,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this),"retokenizeCapturedWithRuleId",void 0)),_this.retokenizeCapturedWithRuleId=r;return _this;}_inherits(W,_q2);return _createClass(W,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(q);V=/*#__PURE__*/function(_q3){function V(t,e,n,i,r){var _this2;_classCallCheck(this,V);(_this2=_callSuper(this,V,[t,e,n,null]),_defineProperty(_assertThisInitialized(_this2),"_match",void 0),_defineProperty(_assertThisInitialized(_this2),"captures",void 0),_defineProperty(_assertThisInitialized(_this2),"_cachedCompiledPatterns",void 0)),_this2._match=new Q(i,_this2.id),_this2.captures=r,_this2._cachedCompiledPatterns=null;return _this2;}_inherits(V,_q3);return _createClass(V,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(q);J=/*#__PURE__*/function(_q4){function J(t,e,n,i,r){var _this3;_classCallCheck(this,J);(_this3=_callSuper(this,J,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this3),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this3),"patterns",void 0),_defineProperty(_assertThisInitialized(_this3),"_cachedCompiledPatterns",void 0)),_this3.patterns=r.patterns,_this3.hasMissingPatterns=r.hasMissingPatterns,_this3._cachedCompiledPatterns=null;return _this3;}_inherits(J,_q4);return _createClass(J,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator5=_createForOfIteratorHelper(this.patterns),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _n8=_step5.value;t.getRule(_n8).collectPatterns(t,e);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(q);X=/*#__PURE__*/function(_q5){function X(t,e,n,i,r,o,s,l,a,c){var _this4;_classCallCheck(this,X);(_this4=_callSuper(this,X,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this4),"_begin",void 0),_defineProperty(_assertThisInitialized(_this4),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this4),"_end",void 0),_defineProperty(_assertThisInitialized(_this4),"endHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this4),"endCaptures",void 0),_defineProperty(_assertThisInitialized(_this4),"applyEndPatternLast",void 0),_defineProperty(_assertThisInitialized(_this4),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this4),"patterns",void 0),_defineProperty(_assertThisInitialized(_this4),"_cachedCompiledPatterns",void 0)),_this4._begin=new Q(r,_this4.id),_this4.beginCaptures=o,_this4._end=new Q(s||"",-1),_this4.endHasBackReferences=_this4._end.hasBackReferences,_this4.endCaptures=l,_this4.applyEndPatternLast=a||!1,_this4.patterns=c.patterns,_this4.hasMissingPatterns=c.hasMissingPatterns,_this4._cachedCompiledPatterns=null;return _this4;}_inherits(X,_q5);return _createClass(X,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z();var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _e3=_step6.value;t.getRule(_e3).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(q);K=/*#__PURE__*/function(_q6){function K(t,e,n,i,r,o,s,l,a){var _this5;_classCallCheck(this,K);(_this5=_callSuper(this,K,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this5),"_begin",void 0),_defineProperty(_assertThisInitialized(_this5),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this5),"whileCaptures",void 0),_defineProperty(_assertThisInitialized(_this5),"_while",void 0),_defineProperty(_assertThisInitialized(_this5),"whileHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this5),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this5),"patterns",void 0),_defineProperty(_assertThisInitialized(_this5),"_cachedCompiledPatterns",void 0),_defineProperty(_assertThisInitialized(_this5),"_cachedCompiledWhilePatterns",void 0)),_this5._begin=new Q(r,_this5.id),_this5.beginCaptures=o,_this5.whileCaptures=l,_this5._while=new Q(s,U),_this5.whileHasBackReferences=_this5._while.hasBackReferences,_this5.patterns=a.patterns,_this5.hasMissingPatterns=a.hasMissingPatterns,_this5._cachedCompiledPatterns=null,_this5._cachedCompiledWhilePatterns=null;return _this5;}_inherits(K,_q6);return _createClass(K,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e4=_step7.value;t.getRule(_e4).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Z(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns;}}]);}(q);Y=/*#__PURE__*/function(){function Y(){_classCallCheck(this,Y);}return _createClass(Y,null,[{key:"createCaptureRule",value:function createCaptureRule(t,e,n,i,r){return t.registerRule(function(t){return new W(e,t,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(t,e,n){return t.id||e.registerRule(function(i){if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,Y._compileCaptures(t.captures,e,n));if(void 0===t.begin){t.repository&&(n=y({},n,t.repository));var _i6=t.patterns;return void 0===_i6&&t.include&&(_i6=[{include:t.include}]),new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Y._compilePatterns(_i6,e,n));}return t["while"]?new K(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t["while"],Y._compileCaptures(t.whileCaptures||t.captures,e,n),Y._compilePatterns(t.patterns,e,n)):new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t.end,Y._compileCaptures(t.endCaptures||t.captures,e,n),t.applyEndPatternLast,Y._compilePatterns(t.patterns,e,n));}),t.id;}},{key:"_compileCaptures",value:function _compileCaptures(t,e,n){var i=[];if(t){var _r3=0;for(var _e5 in t){if("$vscodeTextmateLocation"===_e5)continue;var _t10=parseInt(_e5,10);_t10>_r3&&(_r3=_t10);}for(var _t11=0;_t11<=_r3;_t11++)i[_t11]=null;for(var _r4 in t){if("$vscodeTextmateLocation"===_r4)continue;var _o2=parseInt(_r4,10);var _s=0;t[_r4].patterns&&(_s=Y.getCompiledRuleId(t[_r4],e,n)),i[_o2]=Y.createCaptureRule(e,t[_r4].$vscodeTextmateLocation,t[_r4].name,t[_r4].contentName,_s);}}return i;}},{key:"_compilePatterns",value:function _compilePatterns(t,e,n){var i=[];if(t)for(var _r5=0,_o3=t.length;_r5<_o3;_r5++){var _o4=t[_r5];var _s2=-1;if(_o4.include){var _t12=G(_o4.include);switch(_t12.kind){case 0:case 1:_s2=Y.getCompiledRuleId(n[_o4.include],e,n);break;case 2:var _i7=n[_t12.ruleName];_i7&&(_s2=Y.getCompiledRuleId(_i7,e,n));break;case 3:case 4:var _r6=_t12.scopeName,_l=4===_t12.kind?_t12.ruleName:null,_a=e.getExternalGrammar(_r6,n);if(_a)if(_l){var _t13=_a.repository[_l];_t13&&(_s2=Y.getCompiledRuleId(_t13,e,_a.repository));}else _s2=Y.getCompiledRuleId(_a.repository.$self,e,_a.repository);}}else _s2=Y.getCompiledRuleId(_o4,e,n);if(-1!==_s2){var _t14=e.getRule(_s2);var _n9=!1;if((_t14 instanceof J||_t14 instanceof X||_t14 instanceof K)&&_t14.hasMissingPatterns&&0===_t14.patterns.length&&(_n9=!0),_n9)continue;i.push(_s2);}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length};}}]);}();Q=/*#__PURE__*/function(){function Q(t,e){_classCallCheck(this,Q);_defineProperty(this,"source",void 0);_defineProperty(this,"ruleId",void 0);_defineProperty(this,"hasAnchor",void 0);_defineProperty(this,"hasBackReferences",void 0);_defineProperty(this,"_anchorCache",void 0);if(t){var _e6=t.length;var _n10=0,_i8=[],_r7=!1;for(var _o5=0;_o5<_e6;_o5++){if("\\"===t.charAt(_o5)&&_o5+1<_e6){var _e7=t.charAt(_o5+1);"z"===_e7?(_i8.push(t.substring(_n10,_o5)),_i8.push("$(?!\\n)(?<!\\n)"),_n10=_o5+2):"A"!==_e7&&"G"!==_e7||(_r7=!0),_o5++;}}this.hasAnchor=_r7,0===_n10?this.source=t:(_i8.push(t.substring(_n10,_e6)),this.source=_i8.join(""));}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=z.test(this.source);}return _createClass(Q,[{key:"clone",value:function clone(){return new Q(this.source,this.ruleId);}},{key:"setSource",value:function setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(t,e){var n=e.map(function(e){return t.substring(e.start,e.end);});return F.lastIndex=0,this.source.replace(F,function(t,e){return C(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var t,e,n,i,r=[],o=[],s=[],l=[];for(t=0,e=this.source.length;t<e;t++)n=this.source.charAt(t),r[t]=n,o[t]=n,s[t]=n,l[t]=n,"\\"===n&&t+1<e&&(i=this.source.charAt(t+1),"A"===i?(r[t+1]="",o[t+1]="",s[t+1]="A",l[t+1]="A"):"G"===i?(r[t+1]="",o[t+1]="G",s[t+1]="",l[t+1]="G"):(r[t+1]=i,o[t+1]=i,s[t+1]=i,l[t+1]=i),t++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(t,e){return this.hasAnchor&&this._anchorCache?t?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();Z=/*#__PURE__*/function(){function Z(){_classCallCheck(this,Z);_defineProperty(this,"_items",void 0);_defineProperty(this,"_hasAnchors",void 0);_defineProperty(this,"_cached",void 0);_defineProperty(this,"_anchorCache",void 0);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(Z,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _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);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e8=this._items.map(function(t){return t.source;});this._cached=new tt(t,_e8,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new tt(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();tt=/*#__PURE__*/function(){function tt(t,e,n){_classCallCheck(this,tt);_defineProperty(this,"regExps",void 0);_defineProperty(this,"rules",void 0);_defineProperty(this,"scanner",void 0);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(tt,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e9=0,_n11=this.rules.length;_e9<_n11;_e9++)t.push(" - "+this.rules[_e9]+": "+this.regExps[_e9]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();et=/*#__PURE__*/function(){function et(_t15,e,n){var _this6=this;_classCallCheck(this,et);_defineProperty(this,"_colorMap",void 0);_defineProperty(this,"_defaults",void 0);_defineProperty(this,"_root",void 0);_defineProperty(this,"_cachedMatchRoot",new L(function(t){return _this6._root.match(t);}));this._colorMap=_t15,this._defaults=e,this._root=n;}return _createClass(et,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(null===e)return!0;var n=0,i=e[n];for(;t;){if(it(t.scopeName,i)){if(n++,n===e.length)return!0;i=e[n];}t=t.parent;}return!1;}(t.parent,e.parentScopes);});return n?new rt(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t16=0,_r8=e.length;_t16<_r8;_t16++){var _r9=void 0,_o6=e[_t16];if(!_o6.settings)continue;if("string"==typeof _o6.scope){var _t17=_o6.scope;_t17=_t17.replace(/^[,]+/,""),_t17=_t17.replace(/[,]+$/,""),_r9=_t17.split(",");}else _r9=Array.isArray(_o6.scope)?_o6.scope:[""];var _s3=-1;if("string"==typeof _o6.settings.fontStyle){_s3=0;var _t18=_o6.settings.fontStyle.split(" ");for(var _e10=0,_n12=_t18.length;_e10<_n12;_e10++){switch(_t18[_e10]){case"italic":_s3|=1;break;case"bold":_s3|=2;break;case"underline":_s3|=4;break;case"strikethrough":_s3|=8;}}}var _l2=null;"string"==typeof _o6.settings.foreground&&x(_o6.settings.foreground)&&(_l2=_o6.settings.foreground);var _a2=null;"string"==typeof _o6.settings.background&&x(_o6.settings.background)&&(_a2=_o6.settings.background);for(var _e11=0,_o7=_r9.length;_e11<_o7;_e11++){var _o8=_r9[_e11].trim().split(" "),_c=_o8[_o8.length-1],_u=null;_o8.length>1&&(_u=_o8.slice(0,_o8.length-1),_u.reverse()),n[i++]=new ot(_c,_u,_t16,_s3,_l2,_a2);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=v(t.scope,e.scope);return 0!==n?n:(n=S(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e12=t.shift();-1!==_e12.fontStyle&&(n=_e12.fontStyle),null!==_e12.foreground&&(i=_e12.foreground),null!==_e12.background&&(r=_e12.background);}var o=new st(e),s=new rt(n,o.getId(i),o.getId(r)),l=new at(new lt(0,null,-1,0,0),[]);for(var _e13=0,_n13=t.length;_e13<_n13;_e13++){var _n14=t[_e13];l.insert(0,_n14.scope,_n14.parentScopes,_n14.fontStyle,o.getId(_n14.foreground),o.getId(_n14.background));}return new et(o,s,l);}(t,e);}}]);}();nt=/*#__PURE__*/function(){function nt(t,e){_classCallCheck(this,nt);_defineProperty(this,"parent",void 0);_defineProperty(this,"scopeName",void 0);this.parent=t,this.scopeName=e;}return _createClass(nt,[{key:"push",value:function push(t){return new nt(this,t);}},{key:"getSegments",value:function getSegments(){var t=this;var e=[];for(;t;)e.push(t.scopeName),t=t.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(t){return this===t||null!==this.parent&&this.parent["extends"](t);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(t){var e=[];var n=this;for(;n&&n!==t;)e.push(n.scopeName),n=n.parent;return n===t?e.reverse():void 0;}}],[{key:"push",value:function push(t,e){var _iterator8=_createForOfIteratorHelper(e),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _n15=_step8.value;t=new nt(t,_n15);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}return t;}},{key:"from",value:function from(){var e=null;for(var _n16=0;_n16<arguments.length;_n16++)e=new nt(e,_n16<0||arguments.length<=_n16?undefined:arguments[_n16]);return e;}}]);}();rt=/*#__PURE__*/_createClass(function rt(t,e,n){_classCallCheck(this,rt);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foregroundId",void 0);_defineProperty(this,"backgroundId",void 0);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});ot=/*#__PURE__*/_createClass(function ot(t,e,n,i,r,o){_classCallCheck(this,ot);_defineProperty(this,"scope",void 0);_defineProperty(this,"parentScopes",void 0);_defineProperty(this,"index",void 0);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foreground",void 0);_defineProperty(this,"background",void 0);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});st=/*#__PURE__*/function(){function st(t){_classCallCheck(this,st);_defineProperty(this,"_isFrozen",void 0);_defineProperty(this,"_lastColorId",void 0);_defineProperty(this,"_id2color",void 0);_defineProperty(this,"_color2id",void 0);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e14=0,_n17=t.length;_e14<_n17;_e14++)this._color2id[t[_e14]]=_e14,this._id2color[_e14]=t[_e14];}else this._isFrozen=!1;}return _createClass(st,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();lt=/*#__PURE__*/function(){function lt(t,e,n,i,r){_classCallCheck(this,lt);_defineProperty(this,"scopeDepth",void 0);_defineProperty(this,"parentScopes",void 0);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foreground",void 0);_defineProperty(this,"background",void 0);this.scopeDepth=t,this.parentScopes=e,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(lt,[{key:"clone",value:function clone(){return new lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(t,e,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(t){var e=[];for(var _n18=0,_i9=t.length;_n18<_i9;_n18++)e[_n18]=t[_n18].clone();return e;}}]);}();at=/*#__PURE__*/function(){function at(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,at);_defineProperty(this,"_mainRule",void 0);_defineProperty(this,"_children",void 0);_defineProperty(this,"_rulesWithParentScopes",void 0);this._mainRule=t,this._children=n,this._rulesWithParentScopes=e;}return _createClass(at,[{key:"match",value:function match(t){if(""===t)return at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));var e,n,i=t.indexOf(".");return-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e)?this._children[e].match(n):at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));}},{key:"insert",value:function insert(t,e,n,i,r,o){if(""===e)return void this._doInsertHere(t,n,i,r,o);var s,l,a,c=e.indexOf(".");-1===c?(s=e,l=""):(s=e.substring(0,c),l=e.substring(c+1)),this._children.hasOwnProperty(s)?a=this._children[s]:(a=new at(this._mainRule.clone(),lt.cloneArr(this._rulesWithParentScopes)),this._children[s]=a),a.insert(t+1,l,n,i,r,o);}},{key:"_doInsertHere",value:function _doInsertHere(t,e,n,i,r){if(null!==e){for(var _o9=0,_s4=this._rulesWithParentScopes.length;_o9<_s4;_o9++){var _s5=this._rulesWithParentScopes[_o9];if(0===S(_s5.parentScopes,e))return void _s5.acceptOverwrite(t,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new lt(t,e,n,i,r));}else this._mainRule.acceptOverwrite(t,n,i,r);}}],[{key:"_sortBySpecificity",value:function _sortBySpecificity(t){return 1===t.length||t.sort(this._cmpBySpecificity),t;}},{key:"_cmpBySpecificity",value:function _cmpBySpecificity(t,e){if(t.scopeDepth===e.scopeDepth){var _n19=t.parentScopes,_i10=e.parentScopes;var _r10=null===_n19?0:_n19.length,_o10=null===_i10?0:_i10.length;if(_r10===_o10)for(var _t19=0;_t19<_r10;_t19++){var _e15=_n19[_t19].length,_r11=_i10[_t19].length;if(_e15!==_r11)return _r11-_e15;}return _o10-_r10;}return e.scopeDepth-t.scopeDepth;}}]);}();ct=/*#__PURE__*/_createClass(function ct(t,e){_classCallCheck(this,ct);_defineProperty(this,"languageId",void 0);_defineProperty(this,"tokenType",void 0);this.languageId=t,this.tokenType=e;});ut=/*#__PURE__*/function(){function ut(_t20,_e16){var _this7=this;_classCallCheck(this,ut);_defineProperty(this,"_defaultAttributes",void 0);_defineProperty(this,"_embeddedLanguagesMatcher",void 0);_defineProperty(this,"_getBasicScopeAttributes",new L(function(t){var e=_this7._scopeToLanguage(t),n=_this7._toStandardTokenType(t);return new ct(e,n);}));this._defaultAttributes=new ct(_t20,8),this._embeddedLanguagesMatcher=new mt(Object.entries(_e16||{}));}return _createClass(ut,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(t){return null===t?ut._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(t){var e=t.match(ut.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[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!");}}]);}();_defineProperty(ut,"_NULL_SCOPE_METADATA",new ct(0,0));_defineProperty(ut,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);mt=/*#__PURE__*/function(){function mt(t){_classCallCheck(this,mt);_defineProperty(this,"values",void 0);_defineProperty(this,"scopesRegExp",void 0);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e17=t.map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),t=_ref3[0],e=_ref3[1];return C(t);});_e17.sort(),_e17.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e17.join(")|("),"))($|\\.)"),"");}}return _createClass(mt,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();pt=/*#__PURE__*/_createClass(function pt(t,e){_classCallCheck(this,pt);_defineProperty(this,"stack",void 0);_defineProperty(this,"stoppedEarly",void 0);this.stack=t,this.stoppedEarly=e;});jt=/*#__PURE__*/_createClass(function jt(t,e){_classCallCheck(this,jt);_defineProperty(this,"scopes",void 0);_defineProperty(this,"endPos",void 0);this.scopes=t,this.endPos=e;});kt=/*#__PURE__*/function(){function kt(t,e,n,i,r,o,s,l){_classCallCheck(this,kt);_defineProperty(this,"_rootScopeName",void 0);_defineProperty(this,"balancedBracketSelectors",void 0);_defineProperty(this,"_onigLib",void 0);_defineProperty(this,"_rootId",void 0);_defineProperty(this,"_lastRuleId",void 0);_defineProperty(this,"_ruleId2desc",void 0);_defineProperty(this,"_includedGrammars",void 0);_defineProperty(this,"_grammarRepository",void 0);_defineProperty(this,"_grammar",void 0);_defineProperty(this,"_injections",void 0);_defineProperty(this,"_basicScopeAttributesProvider",void 0);_defineProperty(this,"_tokenTypeMatchers",void 0);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ut(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=vt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i14=0,_Object$keys=Object.keys(r);_i14<_Object$keys.length;_i14++){var _t21=_Object$keys[_i14];var _e22=d(_t21,bt);var _iterator10=_createForOfIteratorHelper(_e22),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n22=_step10.value;this._tokenTypeMatchers.push({matcher:_n22.matcher,type:r[_t21]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(kt,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t22=_step11.value;_t22&&_t22.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this8=this;var t=function t(_t23){return _t23===_this8._rootScopeName?_this8._grammar:_this8.getExternalGrammar(_t23);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t24=i.injections;if(_t24)for(var _n23 in _t24)yt(e,_n23,_t24[_n23],this,i);var _r12=this._grammarRepository.injections(n);_r12&&_r12.forEach(function(t){var n=_this8.getExternalGrammar(t);if(n){var _t25=n.injectionSelector;_t25&&yt(e,_t25,n,_this8,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n24=this._grammarRepository.lookup(t);if(_n24)return this._includedGrammars[t]=vt(_n24,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=Y.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==xt.NULL)r=!1,e.reset();else{r=!0;var _t26=this._basicScopeAttributesProvider.getDefaultAttributes(),_n25=this.themeProvider.getDefaults(),_i15=h.set(0,_t26.languageId,_t26.tokenType,null,_n25.fontStyle,_n25.foregroundId,_n25.backgroundId),_o13=this.getRule(this._rootId).getName(null,null);var _s9;_s9=_o13?St.createRootAndLookUpScopeName(_o13,_i15,this):St.createRoot("unknown",_i15),e=new xt(null,this._rootId,-1,-1,!1,null,_s9,_s9);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Lt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=ht(this,o,r,0,e,l,!0,i);return g(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();St=/*#__PURE__*/function(){function St(t,e,n){_classCallCheck(this,St);_defineProperty(this,"parent",void 0);_defineProperty(this,"scopePath",void 0);_defineProperty(this,"tokenAttributes",void 0);this.parent=t,this.scopePath=e,this.tokenAttributes=n;}return _createClass(St,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(t){return St.equals(this,t);}},{key:"pushAttributed",value:function pushAttributed(t,e){if(null===t)return this;if(-1===t.indexOf(" "))return St._pushAttributed(this,t,e);var n=t.split(/ /g);var i=this;var _iterator12=_createForOfIteratorHelper(n),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _t27=_step12.value;i=St._pushAttributed(i,_t27,e);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return i;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(t){var e=[];var n=this;for(;n&&n!==t;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===t?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(t,e){var _t$scopePath;var n=t,i=(_t$scopePath=t===null||t===void 0?void 0:t.scopePath)!==null&&_t$scopePath!==void 0?_t$scopePath:null;var _iterator13=_createForOfIteratorHelper(e),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _t28=_step13.value;i=nt.push(i,_t28.scopeNames),n=new St(n,i,_t28.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return n;}},{key:"createRoot",value:function createRoot(t,e){return new St(null,new nt(null,t),e);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(t,e,n){var i=n.getMetadataForScope(t),r=new nt(null,t),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(e,i,o);return new St(null,r,s);}},{key:"equals",value:function equals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.scopeName!==e.scopeName||t.tokenAttributes!==e.tokenAttributes)return!1;t=t.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(t,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),h.set(t,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(t,e,n){var i=n.getMetadataForScope(e),r=t.scopePath.push(e),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(t.tokenAttributes,i,o);return new St(t,r,s);}}]);}();xt=/*#__PURE__*/function(){function xt(t,e,n,i,r,o,s,l){_classCallCheck(this,xt);_defineProperty(this,"parent",void 0);_defineProperty(this,"ruleId",void 0);_defineProperty(this,"beginRuleCapturedEOL",void 0);_defineProperty(this,"endRule",void 0);_defineProperty(this,"nameScopesList",void 0);_defineProperty(this,"contentNameScopesList",void 0);_defineProperty(this,"_stackElementBrand",void 0);_defineProperty(this,"_enterPos",void 0);_defineProperty(this,"_anchorPos",void 0);_defineProperty(this,"depth",void 0);this.parent=t,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(xt,[{key:"equals",value:function equals(t){return null!==t&&xt._equals(this,t);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){xt._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(t,e,n,i,r,o,s){return new xt(this,t,e,n,i,r,o,s);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(t){return t.getRule(this.ruleId);}},{key:"toString",value:function toString(){var t=[];return this._writeString(t,0),"["+t.join(",")+"]";}},{key:"_writeString",value:function _writeString(t,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(t,e)),t[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t);}},{key:"withEndRule",value:function withEndRule(t){return this.endRule===t?this:new xt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(t){var e=this;for(;e&&e._enterPos===t._enterPos;){if(e.ruleId===t.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(t,e){return t===e||!!this._structuralEquals(t,e)&&St.equals(t.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.depth!==e.depth||t.ruleId!==e.ruleId||t.endRule!==e.endRule)return!1;t=t.parent,e=e.parent;}}},{key:"_reset",value:function _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent;}},{key:"pushFrame",value:function pushFrame(t,e){var _t$nameScopesList,_e$enterPos,_e$anchorPos;var n=St.fromExtension((_t$nameScopesList=t===null||t===void 0?void 0:t.nameScopesList)!==null&&_t$nameScopesList!==void 0?_t$nameScopesList:null,e.nameScopesList);return new xt(t,e.ruleId,(_e$enterPos=e.enterPos)!==null&&_e$enterPos!==void 0?_e$enterPos:-1,(_e$anchorPos=e.anchorPos)!==null&&_e$anchorPos!==void 0?_e$anchorPos:-1,e.beginRuleCapturedEOL,e.endRule,n,St.fromExtension(n,e.contentNameScopesList));}}]);}();_xt=xt;_defineProperty(xt,"NULL",new _xt(null,0,0,0,!1,null,null,null));Ct=/*#__PURE__*/function(){function Ct(t,e){var _this9=this;_classCallCheck(this,Ct);_defineProperty(this,"balancedBracketScopes",void 0);_defineProperty(this,"unbalancedBracketScopes",void 0);_defineProperty(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this9.allowAny=!0,[]):d(t,bt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return d(t,bt).map(function(t){return t.matcher;});});}return _createClass(Ct,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e23=_step14.value;if(_e23(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e24=_step15.value;if(_e24(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Lt=/*#__PURE__*/function(){function Lt(t,e,n,i){_classCallCheck(this,Lt);_defineProperty(this,"balancedBracketSelectors",void 0);_defineProperty(this,"_emitBinaryTokens",void 0);_defineProperty(this,"_lineText",void 0);_defineProperty(this,"_tokens",void 0);_defineProperty(this,"_binaryTokens",void 0);_defineProperty(this,"_lastTokenEndIndex",void 0);_defineProperty(this,"_tokenTypeOverrides",void 0);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Lt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n26=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,_i16=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(_i16=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e25=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t29=_step16.value;_t29.matcher(_e25)&&(_n26=h.set(_n26,0,_t29.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(_i16=this.balancedBracketSelectors.match(_e25));}return _i16&&(_n26=h.set(_n26,0,8,_i16,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n26?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n26),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t30=0,_e26=this._binaryTokens.length;_t30<_e26;_t30++)n[_t30]=this._binaryTokens[_t30];return n;}}]);}();Tt=/*#__PURE__*/function(){function Tt(t,e){_classCallCheck(this,Tt);_defineProperty(this,"_onigLibPromise",void 0);_defineProperty(this,"_grammars",new Map());_defineProperty(this,"_rawGrammars",new Map());_defineProperty(this,"_injectionGrammars",new Map());_defineProperty(this,"_theme",void 0);this._onigLibPromise=e,this._theme=t;}return _createClass(Tt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t31=_step17.value;_t31.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function(){var _grammarForScopeName=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,e,n,i,r){var _o14;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(this._grammars.has(t)){_context3.next=19;break;}_o14=this._rawGrammars.get(t);if(_o14){_context3.next=4;break;}return _context3.abrupt("return",null);case 4:_context3.t0=this._grammars;_context3.t1=t;_context3.t2=function(t,e,n,i,r,o,s,l){return new kt(t,e,n,i,r,o,s,l);};_context3.t3=t;_context3.t4=_o14;_context3.t5=e;_context3.t6=n;_context3.t7=i;_context3.t8=r;_context3.t9=this;_context3.next=16;return this._onigLibPromise;case 16:_context3.t10=_context3.sent;_context3.t11=(0,_context3.t2)(_context3.t3,_context3.t4,_context3.t5,_context3.t6,_context3.t7,_context3.t8,_context3.t9,_context3.t10);_context3.t0.set.call(_context3.t0,_context3.t1,_context3.t11);case 19:return _context3.abrupt("return",this._grammars.get(t));case 20:case"end":return _context3.stop();}},_callee2,this);}));function grammarForScopeName(_x2,_x3,_x4,_x5,_x6){return _grammarForScopeName.apply(this,arguments);}return grammarForScopeName;}()}]);}();At=/*#__PURE__*/function(){function At(t){_classCallCheck(this,At);_defineProperty(this,"_options",void 0);_defineProperty(this,"_syncRegistry",void 0);_defineProperty(this,"_ensureGrammarCache",void 0);this._options=t,this._syncRegistry=new Tt(et.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(At,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(et.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ct(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function(){var _loadGrammar2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(t,e,n,i,r){var _this10=this;var o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o=new O(this._syncRegistry,t);case 1:if(!(o.Q.length>0)){_context4.next=7;break;}_context4.next=4;return Promise.all(o.Q.map(function(t){return _this10._loadSingleGrammar(t.scopeName);}));case 4:o.processQueue();case 5:_context4.next=1;break;case 7:return _context4.abrupt("return",this._grammarForScopeName(t,e,n,i,r));case 8:case"end":return _context4.stop();}},_callee3,this);}));function _loadGrammar(_x7,_x8,_x9,_x10,_x11){return _loadGrammar2.apply(this,arguments);}return _loadGrammar;}()},{key:"_loadSingleGrammar",value:function(){var _loadSingleGrammar2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:return _context5.abrupt("return",(this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)));case 1:case"end":return _context5.stop();}},_callee4,this);}));function _loadSingleGrammar(_x12){return _loadSingleGrammar2.apply(this,arguments);}return _loadSingleGrammar;}()},{key:"_doLoadSingleGrammar",value:function(){var _doLoadSingleGrammar2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var e,_n27;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return this._options.loadGrammar(t);case 2:e=_context6.sent;if(e){_n27="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n27);}case 4:case"end":return _context6.stop();}},_callee5,this);}));function _doLoadSingleGrammar(_x13){return _doLoadSingleGrammar2.apply(this,arguments);}return _doLoadSingleGrammar;}()},{key:"addGrammar",value:function(){var _addGrammar=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t){var e,n,i,_args6=arguments;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=_args6.length>1&&_args6[1]!==undefined?_args6[1]:[];n=_args6.length>2&&_args6[2]!==undefined?_args6[2]:0;i=_args6.length>3&&_args6[3]!==undefined?_args6[3]:null;this._syncRegistry.addGrammar(t,e);_context7.next=6;return this._grammarForScopeName(t.scopeName,n,i);case 6:return _context7.abrupt("return",_context7.sent);case 7:case"end":return _context7.stop();}},_callee6,this);}));function addGrammar(_x14){return _addGrammar.apply(this,arguments);}return addGrammar;}()},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Pt=xt.NULL;Ot=255;Mt=768;Nt=1024;_t=14336;Dt=8372224;Rt=4286578688;Et=0;$t=8;Bt=10;It=11;Gt=15;zt=24;Ft=/*#__PURE__*/function(){function Ft(){_classCallCheck(this,Ft);}return _createClass(Ft,null,[{key:"toBinaryStr",value:function toBinaryStr(t){var e=t.toString(2);for(;e.length<32;)e="0".concat(e);return e;}},{key:"getLanguageId",value:function getLanguageId(t){return(t&Ot)>>>Et;}},{key:"getTokenType",value:function getTokenType(t){return(t&Mt)>>>$t;}},{key:"getFontStyle",value:function getFontStyle(t){return(t&_t)>>>It;}},{key:"getForeground",value:function getForeground(t){return(t&Dt)>>>Gt;}},{key:"getBackground",value:function getBackground(t){return(t&Rt)>>>zt;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(t){return!!(t&Nt);}},{key:"set",value:function set(t,e,n,i,r,o){var s=Ft.getLanguageId(t),l=Ft.getTokenType(t),a=Ft.getFontStyle(t),c=Ft.getForeground(t),u=Ft.getBackground(t);var m=Ft.containsBalancedBrackets(t)?1:0;return 0!==e&&(s=e),0!==n&&(l=8===n?0:n),i!==p.NotSet&&(a=i),0!==r&&(c=r),0!==o&&(u=o),(s<<Et|l<<$t|a<<It|m<<Bt|c<<Gt|u<<zt)>>>0;}}]);}();Zt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];te={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};re={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"};le=/*#__PURE__*/function(_Error){function le(t){var _this11;_classCallCheck(this,le);_this11=_callSuper(this,le,[t]),_this11.name="ShikiError";return _this11;}_inherits(le,_Error);return _createClass(le);}(/*#__PURE__*/_wrapNativeSuper(Error));ae=/*#__PURE__*/function(){function ae(t,e,n){_classCallCheck(this,ae);_defineProperty(this,"_stack",void 0);_defineProperty(this,"lang",void 0);_defineProperty(this,"theme",void 0);this._stack=t,this.lang=e,this.theme=n;}return _createClass(ae,[{key:"scopes",get:function get(){return function(t){var e=[],n=new Set();function i(t){var _t$nameScopesList2;if(n.has(t))return;n.add(t);var r=t===null||t===void 0||(_t$nameScopesList2=t.nameScopesList)===null||_t$nameScopesList2===void 0?void 0:_t$nameScopesList2.scopeName;r&&e.push(r),t.parent&&i(t.parent);}return i(t),e;}(this._stack);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new ae(Pt,t,e);}}]);}();ye=[je()];ke=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];ve=/*#__PURE__*/_createClass(function ve(t,e,n){_classCallCheck(this,ve);this.property=t,this.normal=e,n&&(this.space=n);});ve.prototype.property={},ve.prototype.normal={},ve.prototype.space=null;Ce=/*#__PURE__*/_createClass(function Ce(t,e){_classCallCheck(this,Ce);this.property=t,this.attribute=e;});Ce.prototype.space=null,Ce.prototype["boolean"]=!1,Ce.prototype.booleanish=!1,Ce.prototype.overloadedBoolean=!1,Ce.prototype.number=!1,Ce.prototype.commaSeparated=!1,Ce.prototype.spaceSeparated=!1,Ce.prototype.commaOrSpaceSeparated=!1,Ce.prototype.mustUseProperty=!1,Ce.prototype.defined=!1;Le=0;Te=De();Ae=De();Pe=De();Oe=De();Me=De();Ne=De();_e=De();Re=Object.freeze({__proto__:null,"boolean":Te,booleanish:Ae,commaOrSpaceSeparated:_e,commaSeparated:Ne,number:Oe,overloadedBoolean:Pe,spaceSeparated:Me});Ee=Object.keys(Re);$e=/*#__PURE__*/function(_Ce){function $e(t,e,n,i){var _this12;_classCallCheck(this,$e);var r=-1;if(_this12=_callSuper(this,$e,[t,e]),Be(_assertThisInitialized(_this12),"space",i),"number"==typeof n)for(;++r<Ee.length;){var _t54=Ee[r];Be(_assertThisInitialized(_this12),Ee[r],(n&Re[_t54])===Re[_t54]);}return _assertThisInitialized(_this12);}_inherits($e,_Ce);return _createClass($e);}(Ce);$e.prototype.defined=!0;Ie={}.hasOwnProperty;ze=Ge({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});Fe=Ge({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});qe=Ge({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ue,properties:{xmlns:null,xmlnsXLink:null}});We=Ge({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:Me,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:Oe,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:Me,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Ae,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null}});Ve=Ge({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ue,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Me,autoFocus:Te,autoPlay:Te,blocking:Me,capture:null,charSet:null,checked:Te,cite:null,className:Me,cols:Oe,colSpan:null,content:null,contentEditable:Ae,controls:Te,controlsList:Me,coords:Oe|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Te,defer:Te,dir:null,dirName:null,disabled:Te,download:Pe,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Me,height:Oe,hidden:Te,high:Oe,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Me,itemRef:Me,itemScope:Te,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Oe,manifest:null,max:null,maxLength:Oe,media:null,method:null,min:null,minLength:Oe,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:Oe,pattern:null,ping:Me,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Me,required:Te,reversed:Te,rows:Oe,rowSpan:Oe,sandbox:Me,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Oe,sizes:null,slot:null,span:Oe,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe,step:null,style:null,tabIndex:Oe,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Ae,width:Oe,wrap:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:Oe,borderColor:null,bottomMargin:Oe,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe,leftMargin:Oe,link:null,longDesc:null,lowSrc:null,marginHeight:Oe,marginWidth:Oe,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:Oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Oe,security:null,unselectable:null}});Je=Ge({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:He,properties:{about:_e,accentHeight:Oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe,amplitude:Oe,arabicForm:null,ascent:Oe,attributeName:null,attributeType:null,azimuth:Oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe,by:null,calcMode:null,capHeight:Oe,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:Oe,diffuseConstant:Oe,direction:null,display:null,dur:null,divisor:Oe,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe,enableBackground:null,end:null,event:null,exponent:Oe,externalResourcesRequired:null,fill:null,fillOpacity:Oe,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe,horizOriginX:Oe,horizOriginY:Oe,id:null,ideographic:Oe,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:Oe,k:Oe,k1:Oe,k2:Oe,k3:Oe,k4:Oe,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe,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:Oe,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:Oe,overlineThickness:Oe,paintOrder:null,panose1:null,path:null,pathLength:Oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe,pointsAtY:Oe,pointsAtZ:Oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,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:Oe,specularExponent:Oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe,strikethroughThickness:Oe,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe,strokeOpacity:Oe,strokeWidth:null,style:null,surfaceScale:Oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:Oe,tableValues:null,target:null,targetX:Oe,targetY:Oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe,underlineThickness:Oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe,values:null,vAlphabetic:Oe,vMathematical:Oe,vectorEffect:null,vHanging:Oe,vIdeographic:Oe,version:null,vertAdvY:Oe,vertOriginX:Oe,vertOriginY:Oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});Xe=/^data[-\w.:]+$/i;Ke=/-[a-z]/g;Ye=/[A-Z]/g;tn=Se([Fe,ze,qe,We,Ve],"html");en=Se([Fe,ze,qe,We,Je],"svg");nn={}.hasOwnProperty;on=["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"];sn={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:"€"};ln=["cent","copy","divide","gt","lt","not","para","times"];an={}.hasOwnProperty;cn={};for(un in sn)an.call(sn,un)&&(cn[sn[un]]=un);hn=/^>|^->|<!--|-->|--!>|<!-$/g;dn=[">"];fn=["<",">"];bn=/[ \t\n\f\r]/g;vn=Cn(1);Sn=Cn(-1);xn=[];Ln={}.hasOwnProperty;An=Tn({body:function body(t,e,n){var i=vn(n,e);return!i||"comment"!==i.type;},caption:Pn,colgroup:Pn,dd:function dd(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=vn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:Pn,html:function html(t,e,n){var i=vn(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=vn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:On,rt:On,tbody:function tbody(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:Mn,tfoot:function tfoot(t,e,n){return!vn(n,e);},th:Mn,thead:function thead(t,e,n){var i=vn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});Nn=Tn({body:function body(t){var e=vn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&wn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=Sn(n,e),r=vn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=t.children,n=[];var i=-1;for(;++i<e.length;){var _t56=e[i];if("element"===_t56.type&&("title"===_t56.tagName||"base"===_t56.tagName)){if(n.includes(_t56.tagName))return!1;n.push(_t56.tagName);}}return e.length>0;},html:function html(t){var e=vn(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=Sn(n,e),r=vn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});_n={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};Rn=["<","&"];$n=function(t,e){var n=e||{};function i(e){var _r30;var r=i.invalid;var o=i.handlers;if(e&&nn.call(e,t)){var _n37=String(e[t]);r=nn.call(o,_n37)?o[_n37]:i.unknown;}for(var _len3=arguments.length,n=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){n[_key3-1]=arguments[_key3];}if(r)return(_r30=r).call.apply(_r30,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+pn(t.value,Object.assign({},i.settings.characterReferences,{subset:dn}))+">":"\x3c!--"+t.value.replace(hn,function(t){return pn(t,Object.assign({},i.settings.characterReferences,{subset:fn}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=en);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r31=Dn(t,i,e[i]);_r31&&n.push(_r31);}for(;++r<n.length;){var _e38=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e38&&"'"!==_e38&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&Nn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&An(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:En(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:En}});Bn={};In={};Gn=[];Wn=null;Vn=/*#__PURE__*/function(){function Vn(t){_classCallCheck(this,Vn);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=Vn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n38=0;_n38<e;_n38++){var _a9=t.charCodeAt(_n38);var _c6=_a9,_u5=!1;if(_a9>=55296&&_a9<=56319&&_n38+1<e){var _e39=t.charCodeAt(_n38+1);_e39>=56320&&_e39<=57343&&(_c6=65536+(_a9-55296<<10)|_e39-56320,_u5=!0);}i&&(r[_n38]=l,_u5&&(r[_n38+1]=l),_c6<=127?o[l+0]=_n38:_c6<=2047?(o[l+0]=_n38,o[l+1]=_n38):_c6<=65535?(o[l+0]=_n38,o[l+1]=_n38,o[l+2]=_n38):(o[l+0]=_n38,o[l+1]=_n38,o[l+2]=_n38,o[l+3]=_n38)),_c6<=127?s[l++]=_c6:_c6<=2047?(s[l++]=192|(1984&_c6)>>>6,s[l++]=128|(63&_c6)>>>0):_c6<=65535?(s[l++]=224|(61440&_c6)>>>12,s[l++]=128|(4032&_c6)>>>6,s[l++]=128|(63&_c6)>>>0):(s[l++]=240|(1835008&_c6)>>>18,s[l++]=128|(258048&_c6)>>>12,s[l++]=128|(4032&_c6)>>>6,s[l++]=128|(63&_c6)>>>0),_u5&&_n38++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(Vn,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n39=0,_i32=t.length;_n39<_i32;_n39++){var _r32=t.charCodeAt(_n39);var _o22=_r32,_s14=!1;if(_r32>=55296&&_r32<=56319&&_n39+1<_i32){var _e40=t.charCodeAt(_n39+1);_e40>=56320&&_e40<=57343&&(_o22=65536+(_r32-55296<<10)|_e40-56320,_s14=!0);}e+=_o22<=127?1:_o22<=2047?2:_o22<=65535?3:4,_s14&&_n39++;}return e;}}]);}();Jn=/*#__PURE__*/function(){function Jn(t){_classCallCheck(this,Jn);_defineProperty(this,"id",++Jn.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!Wn)throw new le("Must invoke loadWasm first.");this._onigBinding=Wn,this.content=t;var e=new Vn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!Jn._sharedPtrInUse?(Jn._sharedPtr||(Jn._sharedPtr=Wn.omalloc(1e4)),Jn._sharedPtrInUse=!0,Wn.HEAPU8.set(e.utf8Value,Jn._sharedPtr),this.ptr=Jn._sharedPtr):this.ptr=e.createString(Wn);}return _createClass(Jn,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===Jn._sharedPtr?Jn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(Jn,"LAST_ID",0);_defineProperty(Jn,"_sharedPtr",0);_defineProperty(Jn,"_sharedPtrInUse",!1);Xn=/*#__PURE__*/function(){function Xn(t){_classCallCheck(this,Xn);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!Wn)throw new le("Must invoke loadWasm first.");var e=[],n=[];for(var _i33=0,_r33=t.length;_i33<_r33;_i33++){var _r34=new Vn(t[_i33]);e[_i33]=_r34.createString(Wn),n[_i33]=_r34.utf8Length;}var i=Wn.omalloc(4*t.length);Wn.HEAPU32.set(e,i/4);var r=Wn.omalloc(4*t.length);Wn.HEAPU32.set(n,r/4);var o=Wn.createOnigScanner(i,r,t.length);for(var _n40=0,_i34=t.length;_n40<_i34;_n40++)Wn.ofree(e[_n40]);Wn.ofree(r),Wn.ofree(i),0===o&&function(t){throw new le(t.UTF8ToString(t.getLastOnigError()));}(Wn),this._onigBinding=Wn,this._ptr=o;}return _createClass(Xn,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=false,r=0;if("number"==typeof n?(8&n&&(i=!0),r=n):"boolean"==typeof n&&(i=n),"string"==typeof t){t=new Jn(t);var _n41=this._findNextMatchSync(t,e,i,r);return t.dispose(),_n41;}return this._findNextMatchSync(t,e,i,r);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding;var o;if(o=n?r.findNextOnigScannerMatchDbg(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i):r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i),0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e41=0;_e41<c;_e41++){var _n42=t.convertUtf8OffsetToUtf16(s[l++]),_i35=t.convertUtf8OffsetToUtf16(s[l++]);u[_e41]={start:_n42,end:_i35,length:_i35-_n42};}return{index:a,captureIndices:u};}}]);}();Qn={light:"#333333",dark:"#bbbbbb"};Zn={light:"#fffffe",dark:"#1e1e1e"};ti="__shiki_resolved";ni=/*#__PURE__*/function(_At){function ni(t,e,n){var _this13;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,ni);(_this13=_callSuper(this,ni,[t]),_defineProperty(_assertThisInitialized(_this13),"_resolver",void 0),_defineProperty(_assertThisInitialized(_this13),"_themes",void 0),_defineProperty(_assertThisInitialized(_this13),"_langs",void 0),_defineProperty(_assertThisInitialized(_this13),"_alias",void 0),_defineProperty(_assertThisInitialized(_this13),"_resolvedThemes",new Map()),_defineProperty(_assertThisInitialized(_this13),"_resolvedGrammars",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langMap",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langGraph",new Map()),_defineProperty(_assertThisInitialized(_this13),"_textmateThemeCache",new WeakMap()),_defineProperty(_assertThisInitialized(_this13),"_loadedThemesCache",null),_defineProperty(_assertThisInitialized(_this13),"_loadedLanguagesCache",null)),_this13._resolver=t,_this13._themes=e,_this13._langs=n,_this13._alias=i,e.forEach(function(t){return _this13.loadTheme(t);}),n.forEach(function(t){return _this13.loadLanguage(t);});return _this13;}_inherits(ni,_At);return _createClass(ni,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=ei(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=et.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e42=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e42.has(t))throw new le("Circular alias `".concat(Array.from(_e42).join(" -> ")," -> ").concat(t,"`"));_e42.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){var _this14=this;var e,n,i,_iterator37,_step37,_this$_syncRegistry,_this$_syncRegistry2,_t62;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:if(!this.getGrammar(t.name)){_context11.next=2;break;}return _context11.abrupt("return");case 2:e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);_context11.next=8;return this.loadGrammarWithConfiguration(t.scopeName,1,n);case 8:i=_context11.sent;if(!(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this14._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size)){_context11.next=31;break;}_iterator37=_createForOfIteratorHelper(e);_context11.prev=11;_iterator37.s();case 13:if((_step37=_iterator37.n()).done){_context11.next=23;break;}_t62=_step37.value;this._resolvedGrammars["delete"](_t62.name);this._loadedLanguagesCache=null;(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t62.scopeName);(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t62.scopeName);_context11.next=21;return this.loadLanguage(this._langMap.get(_t62.name));case 21:_context11.next=13;break;case 23:_context11.next=28;break;case 25:_context11.prev=25;_context11.t0=_context11["catch"](11);_iterator37.e(_context11.t0);case 28:_context11.prev=28;_iterator37.f();return _context11.finish(28);case 31:case"end":return _context11.stop();}},_callee10,this,[[11,25,28,31]]);}));function loadLanguage(_x18){return _loadLanguage.apply(this,arguments);}return loadLanguage;}()},{key:"init",value:function(){var _init=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _this15=this;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:this._themes.map(function(t){return _this15.loadTheme(t);});_context12.next=3;return this.loadLanguages(this._langs);case 3:case"end":return _context12.stop();}},_callee11,this);}));function init(){return _init.apply(this,arguments);}return init;}()},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(ni.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function(){var _loadLanguages=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){var _iterator38,_step38,_e45,e,n,_t63,_i37,_e43,_e43$_i,_t64,_n46,_i38,_e44,_e44$_i,_t65,_n47;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_iterator38=_createForOfIteratorHelper(t);try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){_e45=_step38.value;this.resolveEmbeddedLanguages(_e45);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(!n.length){_context13.next=6;break;}_t63=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new le("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t63.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));case 6:for(_i37=0,_e43=e;_i37<_e43.length;_i37++){_e43$_i=_slicedToArray(_e43[_i37],2),_t64=_e43$_i[0],_n46=_e43$_i[1];this._resolver.addLanguage(_n46);}_i38=0,_e44=e;case 8:if(!(_i38<_e44.length)){_context13.next=15;break;}_e44$_i=_slicedToArray(_e44[_i38],2),_t65=_e44$_i[0],_n47=_e44$_i[1];_context13.next=12;return this.loadLanguage(_n47);case 12:_i38++;_context13.next=8;break;case 15:case"end":return _context13.stop();}},_callee12,this);}));function loadLanguages(_x19){return _loadLanguages.apply(this,arguments);}return loadLanguages;}()},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator39=_createForOfIteratorHelper(t.embeddedLangs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e46=_step39.value;this._langGraph.set(_e46,this._langMap.get(_e46));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}}]);}(At);ii=/*#__PURE__*/function(){function ii(t,e){var _this16=this;_classCallCheck(this,ii);_defineProperty(this,"_langs",new Map());_defineProperty(this,"_scopeToLang",new Map());_defineProperty(this,"_injections",new Map());_defineProperty(this,"_onigLibPromise",void 0);this._onigLibPromise=t,e.forEach(function(t){return _this16.addLanguage(t);});}return _createClass(ii,[{key:"onigLib",get:function get(){return this._onigLibPromise;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function(){var _loadGrammar3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:return _context14.abrupt("return",this._scopeToLang.get(t));case 1:case"end":return _context14.stop();}},_callee13,this);}));function loadGrammar(_x20){return _loadGrammar3.apply(this,arguments);}return loadGrammar;}()},{key:"addLanguage",value:function addLanguage(t){var _this17=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this17._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this17._injections.get(e)||_this17._injections.set(e,[]),_this17._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t66=1;_t66<=e.length;_t66++){var i=e.slice(0,_t66).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();oi=0;ui=ai(a,m,c);_ci=ci(ui);mi=_ci.codeToHtml;pi=_ci.codeToHast;hi=_ci.codeToTokens;di=_ci.codeToTokensBase;fi=_ci.codeToTokensWithThemes;gi=_ci.getSingletonHighlighter;ji=_ci.getLastGrammarState;_export("N",yi=/*#__PURE__*/function(_o24){function yi(){var _this18;_classCallCheck(this,yi);_this18=_callSuper(this,yi,arguments),_this18.code="",_this18.language="javascript",_this18.theme="min-light",_this18.highlightedCode="";return _this18;}_inherits(yi,_o24);return _createClass(yi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(t){return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:_context23.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context23.t0){_context23.next=6;break;}_context23.next=4;return mi(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context23.sent;this.requestUpdate();case 6:case"end":return _context23.stop();}},_callee22,this);}));function updated(_x34){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],yi.prototype,"code",void 0),t([s({type:String,reflect:!0})],yi.prototype,"language",void 0),t([s({type:String,reflect:!0})],yi.prototype,"theme",void 0),t([n()],yi.prototype,"highlightedCode",void 0),_export("N",yi=t([i("nile-highlighter")],yi));}};});
|
1
|
+
System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_excluded,_xt,_templateObject,l,a,c,u,m,p,h,w,k,L,T,A,P,O,R,E,$,B,I,H,q,z,F,U,W,V,J,X,K,Y,Q,Z,tt,et,nt,rt,ot,st,lt,at,ct,ut,mt,pt,jt,kt,St,xt,Ct,Lt,Tt,At,Pt,Ot,Mt,Nt,_t,Dt,Rt,Et,$t,Bt,It,Gt,Ht,qt,Zt,te,re,le,ae,ye,ke,ve,Ce,Le,Te,Ae,Pe,Oe,Me,Ne,_e,Re,Ee,$e,Ie,He,qe,Ue,We,Ve,Je,Xe,Ke,Ye,tn,en,nn,on,sn,ln,an,cn,un,hn,dn,fn,bn,vn,Sn,xn,Ln,An,Nn,_n,Rn,$n,Bn,In,Gn,Un,Wn,Vn,Jn,Xn,Qn,Zn,ti,ni,ii,ri,oi,ui,_ci,mi,pi,hi,di,fi,gi,ji,yi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e47){function e(_x39){return _e47.apply(this,arguments);}e.toString=function(){return _e47.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e48){function e(_x40){return _e48.apply(this,arguments);}e.toString=function(){return _e48.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function d(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t2=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t2=1;break;case"L":_t2=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e2=s();if(n.push({matcher:_e2,priority:_t2}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t3=o();return function(e){return!!_t3&&!_t3(e);};}if("("===r){r=i.next();var _t4=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t4;}if(f(r)){var _t5=[];do{_t5.push(r),r=i.next();}while(f(r));return function(n){return e(_t5,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function f(t){return!!t&&!!t.match(/[\w\.:]+/);}function g(t){"function"==typeof t.dispose&&t.dispose();}function j(t){return Array.isArray(t)?function(t){var e=[];for(var _n2=0,_i=t.length;_n2<_i;_n2++)e[_n2]=j(t[_n2]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n3 in t)e[_n3]=j(t[_n3]);return e;}(t):t;}function y(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n4 in e)t[_n4]=e[_n4];}),t;}function b(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?b(t.substring(0,t.length-1)):t.substr(1+~e);}function v(t,e){return t<e?-1:t>e?1:0;}function S(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i2=0;_i2<n;_i2++){var _n5=v(t[_i2],e[_i2]);if(0!==_n5)return _n5;}return 0;}return n-i;}function x(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function C(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function M(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof T?_({baseGrammar:o,selfGrammar:r},i):N(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator3=_createForOfIteratorHelper(s),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t8=_step3.value;i.add(new T(_t8));}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}function N(t,e,n){if(e.repository&&e.repository[t]){D([e.repository[t]],e,n);}}function _(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&D(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&D(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function D(t,e,n){var _iterator4=_createForOfIteratorHelper(t),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _i3=_step4.value;if(n.visitedRule.has(_i3))continue;n.visitedRule.add(_i3);var _t9=_i3.repository?y({},e.repository,_i3.repository):e.repository;Array.isArray(_i3.patterns)&&D(_i3.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t9}),n);var _r=_i3.include;if(!_r)continue;var _o=G(_r);switch(_o.kind){case 0:_(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:_(e,n);break;case 2:N(_o.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t9}),n);break;case 3:case 4:var _i4=_o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i4){var _r2={baseGrammar:e.baseGrammar,selfGrammar:_i4,repository:_t9};4===_o.kind?N(_o.ruleName,_r2,n):_(_r2,n);}else 4===_o.kind?n.add(new A(_o.scopeName,_o.ruleName)):n.add(new T(_o.scopeName));}}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}function G(t){if("$base"===t)return new R();if("$self"===t)return new E();var e=t.indexOf("#");if(-1===e)return new B(t);if(0===e)return new $(t.substring(1));{var _n7=t.substring(0,e),_i5=t.substring(e+1);return new I(_n7,_i5);}}function it(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function ht(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s6=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e18=r;_e18;_e18=_e18.pop()){var _n20=_e18.getRule(t);_n20 instanceof K&&l.push({rule:_n20,stack:_e18});}for(var _a3=l.pop();_a3;_a3=l.pop()){var _ft=ft(_a3.rule,t,_a3.stack.endRule,n,i===s),_l3=_ft.ruleScanner,_c2=_ft.findOptions,_u2=_l3.findNextMatchSync(e,i,_c2);if(!_u2){r=_a3.stack.pop();break;}if(_u2.ruleId!==F){r=_a3.stack.pop();break;}_u2.captureIndices&&_u2.captureIndices.length&&(o.produce(_a3.stack,_u2.captureIndices[0].start),gt(t,e,n,_a3.stack,o,_a3.rule.whileCaptures,_u2.captureIndices),o.produce(_a3.stack,_u2.captureIndices[0].end),s=_u2.captureIndices[0].end,_u2.captureIndices[0].end>i&&(i=_u2.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s6.stack,i=_s6.linePos,n=_s6.isFirstLine,u=_s6.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new pt(r,!0);}p();}return new pt(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_dt=dt(s,t,r.endRule,n,i===o),l=_dt.ruleScanner,a=_dt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o11=0,_p=t.length;_o11<_p;_o11++){var _p2=t[_o11];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_dt2=dt(_h,e,null,i,r===s),_d=_dt2.ruleScanner,_f=_dt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===z){var _s7=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),gt(t,e,n,r,o,_s7.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s8=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s8.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s8 instanceof X){var _i11=_s8;gt(t,e,n,r,o,_i11.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i11.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i11.endHasBackReferences&&(r=r.withEndRule(_i11.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s8 instanceof K){var _i12=_s8;gt(t,e,n,r,o,_i12.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i12.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i12.whileHasBackReferences&&(r=r.withEndRule(_i12.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(gt(t,e,n,r,o,_s8.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function dt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function ft(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function gt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e19=0;_e19<a;_e19++){var _a4=o[_e19];if(null===_a4)continue;var _m4=s[_e19];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a4.retokenizeCapturedWithRuleId){var _e20=_a4.getName(l,s),_o12=i.contentNameScopesList.pushAttributed(_e20,t),_c3=_a4.getContentName(l,s),_u3=_o12.pushAttributed(_c3,t),_p3=i.push(_a4.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o12,_u3),_h3=t.createOnigString(l.substring(0,_m4.end));ht(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),g(_h3);continue;}var _p4=_a4.getName(l,s);if(null!==_p4){var _e21=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new jt(_e21,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function yt(t,e,n,i,r){var o=d(e,bt),s=Y.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n21=_step9.value;t.push({debugSelector:e,matcher:_n21.matcher,ruleId:s,grammar:r,priority:_n21.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function bt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var _i13=n;_i13<e.length;_i13++)if(wt(e[_i13],t))return n=_i13+1,!0;return!1;});}function wt(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function vt(t,e){return(t=j(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function zt(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t32=0;_t32<n.length;_t32+=2){var _n28;var _o15=e?n[_t32]+(n[_t32+1]||""):n[_t32];r.push([_o15,i]),i+=n[_t32].length,i+=((_n28=n[_t32+1])===null||_n28===void 0?void 0:_n28.length)||0;}return r;}function Ft(t){return!t||["plaintext","txt","text","plain"].includes(t);}function Ut(t){return"ansi"===t||Ft(t);}function Wt(t){return"none"===t;}function Vt(t){return Wt(t);}function Jt(t,e){var _t$properties;if(!e)return t;t.properties||(t.properties={}),(_t$properties=t.properties)["class"]||(_t$properties["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var n=Array.isArray(e)?e:e.split(/\s+/g);var _iterator18=_createForOfIteratorHelper(n),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e27=_step18.value;_e27&&!t.properties["class"].includes(_e27)&&t.properties["class"].push(_e27);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return t;}function Xt(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i17=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i17<_Object$entries.length;_i17++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i17],2),_t33=_Object$entries$_i[0],_r13=_Object$entries$_i[1];"string"==typeof _r13?n[_t33]=_r13:_t33===i&&Object.assign(n,_r13);}return n;}function Kt(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Yt(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&p.Italic&&(e["font-style"]="italic"),t.fontStyle&p.Bold&&(e["font-weight"]="bold"),t.fontStyle&p.Underline&&(e["text-decoration"]="underline")),e;}function Qt(t){return Object.entries(t).map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return"".concat(t,":").concat(e);}).join(";");}function ee(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e28=t.indexOf("m",n);return{sequence:t.substring(n+2,_e28).split(";"),startPosition:n,position:_e28+1};}return{position:t.length};}function ne(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i18=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i18.length||_i18.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i18});}else if("5"===i){var _i19=Number.parseInt(t[e+n]);Number.isNaN(_i19)||(r={type:"table",index:Number(_i19)});}return[n,r];}function ie(t){var e=[];for(var _n29=0;_n29<t.length;_n29++){var _i20=t[_n29],_r14=Number.parseInt(_i20);if(!Number.isNaN(_r14))if(0===_r14)e.push({type:"resetAll"});else if(_r14<=9){te[_r14]&&e.push({type:"setDecoration",value:te[_r14]});}else if(_r14<=29){var _t34=te[_r14-20];_t34&&e.push({type:"resetDecoration",value:_t34});}else if(_r14<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Zt[_r14-30]}});else if(38===_r14){var _ne=ne(t,_n29),_ne2=_slicedToArray(_ne,2),_i21=_ne2[0],_r15=_ne2[1];_r15&&e.push({type:"setForegroundColor",value:_r15}),_n29+=_i21;}else if(39===_r14)e.push({type:"resetForegroundColor"});else if(_r14<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[_r14-40]}});else if(48===_r14){var _ne3=ne(t,_n29),_ne4=_slicedToArray(_ne3,2),_i22=_ne4[0],_r16=_ne4[1];_r16&&e.push({type:"setBackgroundColor",value:_r16}),_n29+=_i22;}else 49===_r14?e.push({type:"resetBackgroundColor"}):_r14>=90&&_r14<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Zt[_r14-90+8]}}):_r14>=100&&_r14<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[_r14-100+8]}});}return e;}function oe(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:re;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t35=0;_t35<Zt.length;_t35++)i.push(e(Zt[_t35]));var t=[0,95,135,175,215,255];for(var _e29=0;_e29<6;_e29++)for(var _r17=0;_r17<6;_r17++)for(var _o16=0;_o16<6;_o16++)i.push(n([t[_e29],t[_r17],t[_o16]]));var r=8;for(var _t36=0;_t36<24;_t36++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function se(t,e,n){var i=Xt(t,n),r=zt(e),o=oe(Object.fromEntries(Zt.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s10=ee(i,o),_l4=_s10.sequence?i.substring(o,_s10.startPosition):i.substring(o);if(_l4.length>0&&r.push({value:_l4,foreground:t,background:e,decorations:new Set(n)}),_s10.sequence){var _i23=ie(_s10.sequence);var _iterator19=_createForOfIteratorHelper(_i23),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _r18=_step19.value;"resetAll"===_r18.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r18.type?t=null:"resetBackgroundColor"===_r18.type?e=null:"resetDecoration"===_r18.type&&n["delete"](_r18.value);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}var _iterator20=_createForOfIteratorHelper(_i23),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _r19=_step20.value;"setForegroundColor"===_r19.type?t=_r19.value:"setBackgroundColor"===_r19.type?e=_r19.value:"setDecoration"===_r19.type&&n.add(_r19.value);}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}}o=_s10.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Kt(r,i),s=Kt(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t37=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t37);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=p.None;return n.decorations.has("bold")&&(l|=p.Bold),n.decorations.has("italic")&&(l|=p.Italic),n.decorations.has("underline")&&(l|=p.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function ce(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(Ft(i)||Wt(r))return zt(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return se(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new le("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(n.grammarState.theme!==r)throw new le("Grammar state theme \"".concat(n.grammarState.theme,"\" does not match highlight theme \"").concat(r,"\""));}return function(t,e,n,i,r){return ue(t,e,n,i,r).tokens;}(e,l,o,s,n);}function ue(t,e,n,i,r){var o=Xt(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=zt(t);var c=r.grammarState?function(t){if(!(t instanceof ae))throw new le("Invalid grammar state");return t._stack;}(r.grammarState):null!=r.grammarContextCode?ue(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Pt,u=[];var m=[];for(var _t38=0,_h4=a.length;_t38<_h4;_t38++){var _a$_t=_slicedToArray(a[_t38],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f3=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f3=e.tokenizeLine(_h5,c),_g2=_f3.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t39=0;_t39<_b;_t39++){var _e30=_y.tokens[2*_t39],_s11=_t39+1<_b?_y.tokens[2*_t39+2]:_h5.length;if(_e30===_s11)continue;var _l5=_y.tokens[2*_t39+1],_a5=Kt(i[qt.getForeground(_l5)],o),_c4=qt.getFontStyle(_l5),_m5={content:_h5.substring(_e30,_s11),offset:_d5+_e30,color:_a5,fontStyle:_c4};if(r.includeExplanation){var _t40=[];if("scopeName"!==r.includeExplanation){var _iterator21=_createForOfIteratorHelper(n.settings),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _e31=_step21.value;var _n30=void 0;switch(_typeof(_e31.scope)){case"string":_n30=_e31.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n30=_e31.scope;break;default:continue;}_t40.push({settings:_e31,selectors:_n30.map(function(t){return t.split(/ /);})});}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}}_m5.explanation=[];var _i24=0;for(;_e30+_i24<_s11;){var _e32=_g2[_j2],_n31=_h5.substring(_e32.startIndex,_e32.endIndex);_i24+=_n31.length,_m5.explanation.push({content:_n31,scopes:"scopeName"===r.includeExplanation?(p=_e32.scopes,p.map(function(t){return{scopeName:t};})):me(_t40,_e32.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function me(t,e){var n=[];for(var _i25=0,_r20=e.length;_i25<_r20;_i25++){var _r21=e[_i25];n[_i25]={scopeName:_r21,themeMatches:de(t,_r21,e.slice(0,_i25))};}return n;}function pe(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function he(t,e,n){if(!pe(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)pe(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function de(t,e,n){var i=[];var _iterator22=_createForOfIteratorHelper(t),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _step22$value=_step22.value,_r22=_step22$value.selectors,_o17=_step22$value.settings;var _iterator23=_createForOfIteratorHelper(_r22),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _t41=_step23.value;if(he(_t41,e,n)){i.push(_o17);break;}}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}return i;}function fe(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=function(){for(var _len2=arguments.length,t=new Array(_len2),_key2=0;_key2<_len2;_key2++){t[_key2]=arguments[_key2];}var e=t.map(function(){return[];}),n=t.length;var _loop=function _loop(_i26){var r=t.map(function(t){return t[_i26];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t42=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e33=0;_e33<n;_e33++){var _n32=l[_e33];_n32.content.length===_t42?(o[_e33].push(_n32),s[_e33]+=1,l[_e33]=r[_e33][s[_e33]]):(o[_e33].push(_objectSpread(_objectSpread({},_n32),{},{content:_n32.content.slice(0,_t42)})),l[_e33]=_objectSpread(_objectSpread({},_n32),{},{content:_n32.content.slice(_t42),offset:_n32.offset+_t42}));}}};for(var _i26=0;_i26<t[0].length;_i26++){_loop(_i26);}return e;}.apply(void 0,_toConsumableArray(i.map(function(i){return ce(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));}))),o=r[0].map(function(t,e){return t.map(function(t,o){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(function(t,n){var _t$e$o=t[e][o],r=_t$e$o.content,l=_t$e$o.explanation,a=_t$e$o.offset,c=_objectWithoutProperties(_t$e$o,_excluded);s.variants[i[n].color]=c;}),s;});});return o;}function ge(t,e,n){var i,r,o,s,l;if("themes"in n){var _n$defaultColor=n.defaultColor,_a6=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_c5=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_u4=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_a6?-1:e.color===_a6?1:0;});if(0===_u4.length)throw new le("`themes` option must not be empty");var _m6=fe(t,e,n);if(_a6&&!_u4.find(function(t){return t.color===_a6;}))throw new le("`themes` option must contain the defaultColor key `".concat(_a6,"`"));var _p5=_u4.map(function(e){return t.getTheme(e.theme);}),_h6=_u4.map(function(t){return t.color;});o=_m6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return Yt(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l=o.reduce(function(t,r,o){var _iterator24=_createForOfIteratorHelper(s),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _l6=_step24.value;var _s12=r[_l6]||"inherit";if(0===o&&i)t[_l6]=_s12;else{var _i27="color"===_l6?"":"background-color"===_l6?"-bg":"-".concat(_l6),_r23=n+e[o]+("color"===_l6?"":_i27);t[_l6]?t[_l6]+=";".concat(_r23,":").concat(_s12):t[_l6]="".concat(_r23,":").concat(_s12);}}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}return t;},{});return r.htmlStyle=i?Qt(l):Object.values(l).join(";"),r;}(t,_h6,_c5,_a6);});});var _d6=_u4.map(function(t){return Xt(t.theme,n);});r=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c5+t.color,":"))+(Kt(_p5[e].fg,_d6[e])||"inherit");}).join(";"),i=_u4.map(function(t,e){return(0===e&&_a6?"":"".concat(_c5+t.color,"-bg:"))+(Kt(_p5[e].bg,_d6[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_p5.map(function(t){return t.name;}).join(" ")),l=_a6?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new le("Invalid options, either `theme` or `themes` must be provided");{var _l7=Xt(n.theme,n);o=ce(t,e,n);var _a7=t.getTheme(n.theme);i=Kt(_a7.bg,_l7),r=Kt(_a7.fg,_l7),s=_a7.name;}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l};}function je(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _i28=function _i28(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new le("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},_n33.indexToPos(t)),{},{offset:t});}{var _e34=_n33.lines[t.line];if(void 0===_e34)throw new le("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(_n33.lines.length));if(t.character<0||t.character>_e34.length)throw new le("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e34.length));return _objectSpread(_objectSpread({},t),{},{offset:_n33.posToIndex(t.line,t.character)});}};var _n33=function(t){var e=zt(t,!0).map(function(_ref6){var _ref7=_slicedToArray(_ref6,1),t=_ref7[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator25=_createForOfIteratorHelper(e),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _t43=_step25.value;if(i<_t43.length)break;i-=_t43.length,r++;}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n34=0;_n34<t;_n34++)i+=e[_n34].length;return i+=n,i;}};}(e.source);var _r24=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_i28(t.start),end:_i28(t.end)});});!function(t){for(var _e35=0;_e35<t.length;_e35++){var _n35=t[_e35];if(_n35.start.offset>_n35.end.offset)throw new le("Invalid decoration range: ".concat(JSON.stringify(_n35.start)," - ").concat(JSON.stringify(_n35.end)));for(var _i29=_e35+1;_i29<t.length;_i29++){var _e36=t[_i29],_r25=_n35.start.offset<_e36.start.offset&&_e36.start.offset<_n35.end.offset,_o18=_n35.start.offset<_e36.end.offset&&_e36.end.offset<_n35.end.offset,_s13=_e36.start.offset<_n35.start.offset&&_n35.start.offset<_e36.end.offset,_l8=_e36.start.offset<_n35.end.offset&&_n35.end.offset<_e36.end.offset;if(_r25||_o18||_s13||_l8){if(_o18&&_o18)continue;if(_s13&&_l8)continue;throw new le("Decorations ".concat(JSON.stringify(_n35.start)," and ").concat(JSON.stringify(_e36.start)," intersect."));}}}}(_r24),t.set(e.meta,{decorations:_r24,converter:_n33,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator26=_createForOfIteratorHelper(e),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _r26=_step26.value;_r26>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r26),offset:t.offset+n})),n=_r26;}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new le("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;function u(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(u).join(""):"";}if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t44=0;_t44<o.children.length;_t44++)l+=u(o.children[_t44]),-1===a&&l.length===e&&(a=_t44+1),-1===c&&l.length===n&&(c=_t44+1);if(-1===a)throw new le("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new le("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var m=o.children.slice(a,c);if(r.alwaysWrap||m.length!==o.children.length){if(r.alwaysWrap||1!==m.length||"element"!==m[0].type){var _t45={type:"element",tagName:"span",properties:{},children:m};s(_t45,r,"wrapper"),o.children.splice(a,m.length,_t45);}else s(m[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&Jt(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator27=_createForOfIteratorHelper(a),_step27;try{var _loop2=function _loop2(){var t=_step27.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop3=function _loop3(_i30){l.unshift(function(){return o(_i30,t);});};for(var _i30=e.line+1;_i30<n.line;_i30++){_loop3(_i30);}r(n.line,0,n.character,t);}};for(_iterator27.s();!(_step27=_iterator27.n()).done;){_loop2();}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}l.forEach(function(t){return t();});}};}function be(t){return[].concat(_toConsumableArray(t.transformers||[]),ye);}function we(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return we(t,e,n);},codeToTokens:function codeToTokens(e,n){return ge(t,e,n);}};var r=e;var _iterator28=_createForOfIteratorHelper(be(n)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _t51$preprocess;var _t51=_step28.value;r=((_t51$preprocess=_t51.preprocess)===null||_t51$preprocess===void 0?void 0:_t51$preprocess.call(i,r,n))||r;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _ge=ge(t,r,n),o=_ge.tokens,s=_ge.fg,l=_ge.bg,a=_ge.themeName,c=_ge.rootStyle;var _n$mergeWhitespaces=n.mergeWhitespaces,u=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===u?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&p.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===u&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e37=_slicedToArray(e,4),n=_e37[1],i=_e37[2],r=_e37[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var m=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator29=_createForOfIteratorHelper(be(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t52$tokens;var _t52=_step29.value;o=((_t52$tokens=_t52.tokens)===null||_t52$tokens===void 0?void 0:_t52$tokens.call(m,o))||o;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return function(t,e,n){var i=be(e),r=[],o={type:"root",children:[]},_e$structure=e.structure,s=_e$structure===void 0?"classic":_e$structure;var l={type:"element",tagName:"pre",properties:_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg),tabindex:"0"},Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return!t.startsWith("_");}))),children:[]},a={type:"element",tagName:"code",properties:{},children:r};var c=[],u=_objectSpread(_objectSpread({},n),{},{structure:s,addClassToHast:Jt,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return l;},get code(){return a;},get lines(){return c;}});if(t.forEach(function(t,e){e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},l=0;var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r27=_step30.value;var _t47={type:"element",tagName:"span",properties:{},children:[{type:"text",value:_r27.content}]};var _a8=_r27.htmlStyle||Qt(Yt(_r27));_a8&&(_t47.properties.style=_a8);var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _r28$span;var _r28=_step32.value;_t47=(_r28===null||_r28===void 0||(_r28$span=_r28.span)===null||_r28$span===void 0?void 0:_r28$span.call(u,_t47,e+1,l,n))||_t47;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}"inline"===s?o.children.push(_t47):"classic"===s&&n.children.push(_t47),l+=_r27.content.length;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if("classic"===s){var _iterator31=_createForOfIteratorHelper(i),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t46$line;var _t46=_step31.value;n=(_t46===null||_t46===void 0||(_t46$line=_t46.line)===null||_t46$line===void 0?void 0:_t46$line.call(u,n,e+1))||n;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}c.push(n),r.push(n);}}),"classic"===s){var _iterator33=_createForOfIteratorHelper(i),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _t48$code;var _t48=_step33.value;a=(_t48===null||_t48===void 0||(_t48$code=_t48.code)===null||_t48$code===void 0?void 0:_t48$code.call(u,a))||a;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}l.children.push(a);var _iterator34=_createForOfIteratorHelper(i),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t49$pre;var _t49=_step34.value;l=(_t49===null||_t49===void 0||(_t49$pre=_t49.pre)===null||_t49$pre===void 0?void 0:_t49$pre.call(u,l))||l;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}o.children.push(l);}var m=o;var _iterator35=_createForOfIteratorHelper(i),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t50$root;var _t50=_step35.value;m=(_t50===null||_t50===void 0||(_t50$root=_t50.root)===null||_t50$root===void 0?void 0:_t50$root.call(u,m))||m;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return m;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),m);}function Se(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new ve(n,i,e);}function xe(t){return t.toLowerCase();}function De(){return Math.pow(2,++Le);}function Be(t,e,n){n&&(t[e]=n);}function Ge(t){var e={},n={};var i;for(i in t.properties)if(Ie.call(t.properties,i)){var _r29=t.properties[i],_o19=new $e(i,t.transform(t.attributes||{},i),_r29,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o19.mustUseProperty=!0),e[i]=_o19,n[xe(i)]=i,n[xe(_o19.attribute)]=i;}return new ve(e,n,t.space);}function ze(t,e){return e in t?t[e]:e;}function Fe(t,e){return ze(t,e.toLowerCase());}function Qe(t){return"-"+t.toLowerCase();}function Ze(t){return t.charAt(1).toUpperCase();}function rn(t,e){return t=t.replace(e.subset?function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function mn(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(an.call(cn,r)){var _t54=cn[r],_o20="&"+_t54;return n&&on.includes(_t54)&&!ln.includes(_t54)&&(!i||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?_o20:_o20+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i31=function(t,e,n){var i="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i31.length<r.length&&(r=_i31);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function pn(t,e){return rn(t,Object.assign({format:mn},e));}function gn(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function jn(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function yn(t){return t.join(" ").trim();}function wn(t){return"object"==_typeof(t)?"text"===t.type&&kn(t.value):kn(t);}function kn(t){return""===t.replace(bn,"");}function Cn(t){return function(e,n,i){var r=e?e.children:xn;var o=(n||0)+t,s=r[o];if(!i)for(;s&&wn(s);)o+=t,s=r[o];return s;};}function Tn(t){return function(e,n,i){return Ln.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function Pn(t,e,n){var i=vn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&wn(i.value.charAt(0)));}function On(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function Mn(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function Dn(t,e,n){var i=function(t,e){var n=xe(e);var i=e,r=Ce;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Xe.test(e)){if("-"===e.charAt(4)){var _t56=e.slice(5).replace(Ke,Ze);i="data"+_t56.charAt(0).toUpperCase()+_t56.slice(1);}else{var _t57=e.slice(4);if(!Ke.test(_t57)){var _n36=_t57.replace(Ye,Qe);"-"!==_n36.charAt(0)&&(_n36="-"+_n36),e="data"+_n36;}}r=$e;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=pn(i.attribute,Object.assign({},t.settings.characterReferences,{subset:_n.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?jn:yn)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=pn(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:_n.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&gn(n,l)>gn(n,t.alternative)&&(l=t.alternative),s=l+pn(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?_n.single:_n["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function En(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?pn(t.value,Object.assign({},i.settings.characterReferences,{subset:Rn})):t.value;}function Hn(t,e,n){return $n(t,e,n,this);}function qn(t){var e=[],n=t&&t.children||Gn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function zn(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return we(t,e,n);},codeToTokens:function codeToTokens(e,n){return ge(t,e,n);}};var r=function(t,e){var n=e||Bn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Hn,all:qn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ke,characterReferences:n.characterReferences||In,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?en:tn,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(we(t,e,n,i));var _iterator36=_createForOfIteratorHelper(be(n)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t58$postprocess;var _t58=_step36.value;r=((_t58$postprocess=_t58.postprocess)===null||_t58$postprocess===void 0?void 0:_t58$postprocess.call(i,r,n))||r;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return r;}function Fn(_x15){return _Fn.apply(this,arguments);}function _Fn(){_Fn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:l=function _l9(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n50=t[e++];if(!(128&_n50)){o+=String.fromCharCode(_n50);continue;}var _i39=63&t[e++];if(192==(224&_n50)){o+=String.fromCharCode((31&_n50)<<6|_i39);continue;}var _r36=63&t[e++];if(_n50=224==(240&_n50)?(15&_n50)<<12|_i39<<6|_r36:(7&_n50)<<18|_i39<<12|_r36<<6|63&t[e++],_n50<65536)o+=String.fromCharCode(_n50);else{var _t67=_n50-65536;o+=String.fromCharCode(55296|_t67>>10,56320|1023&_t67);}}return o;}(i.HEAPU8,t,e):"";};o=function _o24(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r37(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:function emscripten_get_now(){return"undefined"!=typeof performance?performance.now():Date.now();},emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;var r=function r(t,e){return t+(e-t%e)%e;};for(var _i40=1;_i40<=4;_i40*=2){var _s15=e*(1+.2/_i40);_s15=Math.min(_s15,t+100663296);if(o(Math.min(n,r(Math.max(t,_s15),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context25.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var n,o;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context24.next=3;return t(n);case 3:o=_context24.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context24.stop();}},_callee23);}))();case 8:return _context25.abrupt("return",i);case 9:case"end":return _context25.stop();}},_callee24);}));return _Fn.apply(this,arguments);}function Kn(t){if(Un)return Un;return Un=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return Fn(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(e){var n,i;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:n=t;_context9.next=3;return n;case 3:n=_context9.sent;_context9.t0="function"==typeof n;if(!_context9.t0){_context9.next=9;break;}_context9.next=8;return n(e);case 8:n=_context9.sent;case 9:_context9.t1="function"==typeof n;if(!_context9.t1){_context9.next=14;break;}_context9.next=13;return n(e);case 13:n=_context9.sent;case 14:if(!("function"==typeof n.instantiator)){_context9.next=20;break;}_context9.next=17;return n.instantiator(e);case 17:n=_context9.sent;_context9.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context9.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context9.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context9.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context9.next=30;break;}_context9.next=27;return Yn(n)(e);case 27:n=_context9.sent;_context9.next=35;break;case 30:_context9.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context9.t2){_context9.next=35;break;}_context9.next=34;return Yn(n["default"])(e);case 34:n=_context9.sent;case 35:_context9.next=40;break;case 37:_context9.next=39;return Yn(n)(e);case 39:n=_context9.sent;case 40:_context9.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context9.next=48;break;}_context9.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context9.t3=_context9.sent;_context9.next=51;break;case 48:_context9.next=50;return function(t){return/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(e){var n;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return t.arrayBuffer();case 2:n=_context8.sent;return _context8.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context8.stop();}},_callee7);}));return function(_x17){return _ref12.apply(this,arguments);};}();}(n)(e);case 50:_context9.t3=_context9.sent;case 51:n=_context9.t3;case 52:_context9.next=57;break;case 54:_context9.next=56;return n["default"](e);case 56:n=_context9.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context9.abrupt("return",n);case 60:case"end":return _context9.stop();}},_callee8);}));return function(_x16){return _ref11.apply(this,arguments);};}());case 2:Wn=_context10.sent;case 3:case"end":return _context10.stop();}},_callee9);}))(),Un;}function Yn(t){return function(e){return WebAssembly.instantiate(t,e);};}function ei(t){if(t!==null&&t!==void 0&&t[ti])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t59$settings,_t59$settings2,_e$colors,_e$colors2;var _t59=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t59!==null&&_t59!==void 0&&(_t59$settings=_t59.settings)!==null&&_t59$settings!==void 0&&_t59$settings.foreground&&(i=_t59.settings.foreground),_t59!==null&&_t59!==void 0&&(_t59$settings2=_t59.settings)!==null&&_t59$settings2!==void 0&&_t59$settings2.background&&(n=_t59.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?Qn.light:Qn.dark),n||(n="light"===e.type?Zn.light:Zn.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n43=s(t.settings.foreground);e.colorReplacements[_n43]=t.settings.foreground,r.settings.foreground=_n43;}if(i){var _n44=s(t.settings.background);e.colorReplacements[_n44]=t.settings.background,r.settings.background=_n44;}return r;});for(var _i36=0,_Object$keys2=Object.keys(e.colors||{});_i36<_Object$keys2.length;_i36++){var _e$colors$_t;var _t60=_Object$keys2[_i36];if(("editor.foreground"===_t60||"editor.background"===_t60||_t60.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t60])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n45=s(e.colors[_t60]);e.colorReplacements[_n45]=e.colors[_t60],e.colors[_t60]=_n45;}}return Object.defineProperty(e,ti,{enumerable:!1,writable:!1,value:!0}),e;}function si(){return _si.apply(this,arguments);}function _si(){_si=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee31(){var t,e,n,_n51,i,_i41,r,_yield$Promise$all,_yield$Promise$all2,o,s,l,a,c,u,m,p,_args11=arguments;return _regeneratorRuntime().wrap(function _callee31$(_context32){while(1)switch(_context32.prev=_context32.next){case 0:p=function _p6(){e||(e=!0,a.dispose(),oi-=1);};m=function _m7(){if(e)throw new le("Shiki instance has been disposed");};u=function _u6(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();var e=a.getTheme(t);if(!e)throw new le("Theme `".concat(t,"` not found, you may need to load it first"));return e;};_i41=function _i43(){_i41=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee30(t){return _regeneratorRuntime().wrap(function _callee30$(_context31){while(1)switch(_context31.prev=_context31.next){case 0:_context31.t0=Array;_context31.t1=Set;_context31.next=4;return Promise.all(t.filter(function(t){return!Ut(t);}).map(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee29(t){return _regeneratorRuntime().wrap(function _callee29$(_context30){while(1)switch(_context30.prev=_context30.next){case 0:_context30.next=2;return n(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context30.abrupt("return",_context30.sent);case 3:case"end":return _context30.stop();}},_callee29);}));return function(_x38){return _ref26.apply(this,arguments);};}()));case 4:_context31.t2=_context31.sent.flat();_context31.t3=new _context31.t1(_context31.t2);return _context31.abrupt("return",_context31.t0.from.call(_context31.t0,_context31.t3));case 7:case"end":return _context31.stop();}},_callee30);}));return _i41.apply(this,arguments);};i=function _i42(_x36){return _i41.apply(this,arguments);};_n51=function _n53(){_n51=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee28(t){return _regeneratorRuntime().wrap(function _callee28$(_context29){while(1)switch(_context29.prev=_context29.next){case 0:return _context29.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context29.stop();}},_callee28);}));return _n51.apply(this,arguments);};n=function _n52(_x35){return _n51.apply(this,arguments);};t=_args11.length>0&&_args11[0]!==undefined?_args11[0]:{};oi+=1,!1!==t.warnings&&oi>=10&&oi%10==0&&console.warn("[Shiki] ".concat(oi," 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."));e=!1;r=t.loadWasm||ri;_context32.next=13;return Promise.all([Promise.all((t.themes||[]).map(n)).then(function(t){return t.map(ei);}),i(t.langs||[]),r?Kn(r):void 0]);case 13:_yield$Promise$all=_context32.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2);o=_yield$Promise$all2[0];s=_yield$Promise$all2[1];l=new ii(Promise.resolve({createOnigScanner:function createOnigScanner(t){return function(t){return new Xn(t);}(t);},createOnigString:function createOnigString(t){return new Jn(t);}}),s);a=new ni(l,o,s,t.langAlias);_context32.next=21;return a.init();case 21:return _context32.abrupt("return",_defineProperty({setTheme:function setTheme(t){m();var e=u(t);return c!==t&&(a.setTheme(e),c=t),{theme:e,colorMap:a.getColorMap()};},getTheme:u,getLanguage:function getLanguage(t){m();var e=a.getGrammar("string"==typeof t?t:t.name);if(!e)throw new le("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return m(),a.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return m(),a.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(){var _len6,t,_key6,_args4=arguments;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:for(_len6=_args4.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=_args4[_key6];}m();_context26.t0=a;_context26.next=5;return i(t);case 5:_context26.t1=_context26.sent;_context26.next=8;return _context26.t0.loadLanguages.call(_context26.t0,_context26.t1);case 8:case"end":return _context26.stop();}},_callee25);}));function loadLanguage(){return _loadLanguage2.apply(this,arguments);}return loadLanguage;}(),loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee27(){var _len7,t,_key7,_args7=arguments;return _regeneratorRuntime().wrap(function _callee27$(_context28){while(1)switch(_context28.prev=_context28.next){case 0:for(_len7=_args7.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=_args7[_key7];}m();_context28.next=4;return Promise.all(t.map(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(t){return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:if(!Vt(t)){_context27.next=4;break;}_context27.t0=null;_context27.next=9;break;case 4:_context27.t1=a;_context27.next=7;return n(t);case 7:_context27.t2=_context27.sent;_context27.t0=_context27.t1.loadTheme.call(_context27.t1,_context27.t2);case 9:return _context27.abrupt("return",_context27.t0);case 10:case"end":return _context27.stop();}},_callee26);}));return function(_x37){return _ref24.apply(this,arguments);};}()));case 4:case"end":return _context28.stop();}},_callee27);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),dispose:p},Symbol.dispose,p));case 22:case"end":return _context32.stop();}},_callee31);}));return _si.apply(this,arguments);}function li(){return _li.apply(this,arguments);}function _li(){_li=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee32(){var t,e,_args12=arguments;return _regeneratorRuntime().wrap(function _callee32$(_context33){while(1)switch(_context33.prev=_context33.next){case 0:t=_args12.length>0&&_args12[0]!==undefined?_args12[0]:{};_context33.next=3;return si(t);case 3:e=_context33.sent;return _context33.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(t,n){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang2=n.lang,i=_n$lang2===void 0?"text":_n$lang2,_n$theme2=n.theme,r=_n$theme2===void 0?t.getLoadedThemes()[0]:_n$theme2;if(Ft(i)||Wt(r))throw new le("Plain language does not have grammar state");if("ansi"===i)throw new le("ANSI language does not have grammar state");var _t$setTheme2=t.setTheme(r),o=_t$setTheme2.theme,s=_t$setTheme2.colorMap,l=t.getLanguage(i);return new ae(ue(e,l,o,s,n).stateStack,l.name,o.name);}(e,t,n);},codeToTokensBase:function codeToTokensBase(t,n){return ce(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return fe(e,t,n);},codeToTokens:function codeToTokens(t,n){return ge(e,t,n);},codeToHast:function codeToHast(t,n){return we(e,t,n);},codeToHtml:function codeToHtml(t,n){return zn(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context33.stop();}},_callee32);}));return _li.apply(this,arguments);}function ai(t,e,n){return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(i){var _i$themes,_i$langs;var r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:o=function _o22(t){if(Vt(t))return"none";if("string"==typeof t){var _n49=e[t];if(!_n49)throw new le("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _n49;}return t;};r=function _r35(e){if("string"==typeof e){if(Ut(e))return[];var _n48=t[e];if(!_n48)throw new le("Language `".concat(e,"` is not included in this bundle. You may want to load it from external source."));return _n48;}return e;};s=((_i$themes=i.themes)!==null&&_i$themes!==void 0?_i$themes:[]).map(function(t){return o(t);});l=((_i$langs=i.langs)!==null&&_i$langs!==void 0?_i$langs:[]).map(function(t){return r(t);});_context15.next=6;return li(_objectSpread(_objectSpread({},i),{},{themes:s,langs:l,loadWasm:n}));case 6:a=_context15.sent;return _context15.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(r)));},loadTheme:function loadTheme(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadTheme.apply(a,_toConsumableArray(t.map(o)));}}));case 8:case"end":return _context15.stop();}},_callee14);}));return function(_x21){return _ref23.apply(this,arguments);};}();}function ci(t){var e=function(t){var e;return/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var n,_t66,_args15=arguments;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:n=_args15.length>0&&_args15[0]!==undefined?_args15[0]:{};if(!e){_context16.next=8;break;}_context16.next=4;return e;case 4:_t66=_context16.sent;_context16.next=7;return Promise.all([_t66.loadTheme.apply(_t66,_toConsumableArray(n.themes||[])),_t66.loadLanguage.apply(_t66,_toConsumableArray(n.langs||[]))]);case 7:return _context16.abrupt("return",_t66);case 8:return _context16.abrupt("return",(e=t(_objectSpread(_objectSpread({},n),{},{themes:n.themes||[],langs:n.langs||[]})),e));case 9:case"end":return _context16.stop();}},_callee15);}));}(t);return{getSingletonHighlighter:function getSingletonHighlighter(t){return e(t);},codeToHtml:function(){var _codeToHtml=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(t,n){return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context17.abrupt("return",_context17.sent.codeToHtml(t,n));case 3:case"end":return _context17.stop();}},_callee16);}));function codeToHtml(_x22,_x23){return _codeToHtml.apply(this,arguments);}return codeToHtml;}(),codeToHast:function(){var _codeToHast=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t,n){return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context18.abrupt("return",_context18.sent.codeToHast(t,n));case 3:case"end":return _context18.stop();}},_callee17);}));function codeToHast(_x24,_x25){return _codeToHast.apply(this,arguments);}return codeToHast;}(),codeToTokens:function(){var _codeToTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t,n){return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context19.abrupt("return",_context19.sent.codeToTokens(t,n));case 3:case"end":return _context19.stop();}},_callee18);}));function codeToTokens(_x26,_x27){return _codeToTokens.apply(this,arguments);}return codeToTokens;}(),codeToTokensBase:function(){var _codeToTokensBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(t,n){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context20.abrupt("return",_context20.sent.codeToTokensBase(t,n));case 3:case"end":return _context20.stop();}},_callee19);}));function codeToTokensBase(_x28,_x29){return _codeToTokensBase.apply(this,arguments);}return codeToTokensBase;}(),codeToTokensWithThemes:function(){var _codeToTokensWithThemes=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t,n){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.next=2;return e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)});case 2:return _context21.abrupt("return",_context21.sent.codeToTokensWithThemes(t,n));case 3:case"end":return _context21.stop();}},_callee20);}));function codeToTokensWithThemes(_x30,_x31){return _codeToTokensWithThemes.apply(this,arguments);}return codeToTokensWithThemes;}(),getLastGrammarState:function(){var _getLastGrammarState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t,n){return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context22.abrupt("return",_context22.sent.getLastGrammarState(t,n));case 3:case"end":return _context22.stop();}},_callee21);}));function getLastGrammarState(_x32,_x33){return _getLastGrammarState.apply(this,arguments);}return getLastGrammarState;}()};}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-57e07c7f.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-439da50e.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-4472c0f4.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-25b72ebb.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-8eef275b.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-46d295f1.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-e0a4bd06.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-ca833690.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-96a7c27f.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-3454a3c2.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-d9a554a9.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-b3953699.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-97602850.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-8ded4382.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-8765873b.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-7164ad4c.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-9809419e.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-0829e78b.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-8a35fee3.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-57d8b01b.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-a084128c.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-38d4a70a.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-6decb9b1.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-6c1956d1.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-2e19228a.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-a8e8c28b.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-0d45dbb1.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-df1ec844.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-452c3b80.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-21202924.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-83243d90.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-112048d4.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-3f531dc7.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-bfe435a1.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-838bc1dd.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-40c27a10.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-e35de69e.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-6afa4dd5.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-5bf38d68.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-00a158ae.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-6a9452f3.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-c75e3354.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-09716540.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-8c3ddad5.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-cfbd2b03.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-6a845f3d.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-92d094f5.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-117795ef.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-f3533e71.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-feacbe40.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-b5649357.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-4ff167eb.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-efdbc078.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-853cc7f6.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-90111def.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-90cd540b.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-04eb2c2b.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-c44a3681.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-b73adc59.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-165d80c9.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-7df03c32.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-8c26c04d.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-2a9c523c.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-fc9bb7f1.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-103797c9.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-d4b1bf1e.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-69ca4750.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-6fc23a1e.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-bd149b79.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-4ade4dba.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-cc292e78.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-9d667452.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-bfbf14c7.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-487c992b.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-0f1935ea.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-bdfaf5bf.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-07494bd1.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-be8cb605.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-ede89bee.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-5ea3dbd5.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-ea0e5cad.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-cc7b807d.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-c14c2905.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-d0746389.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-bdc26351.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-ec409b05.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-3a919182.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-a7675811.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-5c368136.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-0e1ce5e0.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-b7695d18.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-326b1407.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-3ce047ba.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-c6fae2d7.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-fa8a357e.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-763623e9.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-4990259e.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-b9add75d.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-9c0ddd11.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-173b1f3e.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-e6d02a84.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-0426de90.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-0149a35c.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-13abd118.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-b6e72eea.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-d05a73ab.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-e6270bd4.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-d86ed05c.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-aafb1a4f.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-9fdfb242.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-db35c924.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-3e73f218.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-12fcdaf4.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-5bdb0e54.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-b22a9896.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-31e30669.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-c0d7f235.cjs.js");}},{id:"mermaid",name:"Mermaid","import":function _import(){return _context["import"]("../mermaid-92dff8f5.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-9b94a7bb.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-70c9ff24.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-e5a07b74.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-87233527.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-877de254.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-175a1e94.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-74c59002.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-13a19c70.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-60645cf6.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-7275c0a1.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-28f53bbc.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-b82e29b4.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-831c0ca4.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-033ef277.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-8558fd1a.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-1b7d27f8.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-5cbc5107.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-3db3e07b.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-eb6f20e6.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-d6a6e901.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-c2f3d068.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-c0d38a59.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-166543a6.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-c976db94.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-0e7507cf.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-373d4127.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-75dfad83.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-a3db3c1f.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-03f34da2.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-c4c88a84.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-a091accb.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-febbf285.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-007bb0c2.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-a926375a.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-055ce2e3.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-c2ba649b.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-73eb17f7.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-939eae95.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-82bc8c10.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-7539d335.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-cb93f1de.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-035e7f8e.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-a70f8399.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-5163dd06.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-706ec12c.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-f1b8150d.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-9c815bf4.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-c07da9ea.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-ac3b6366.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-7b2614f5.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-e12c9060.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-fa708d4c.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-6f3f1f3b.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-a6a4a6ff.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-a3548a04.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-8b4a8039.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-cf6ffb6a.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-1c9200e6.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-e604d6bb.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-f81c28c5.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-1d49fbcb.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-66437078.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-ce167df4.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-4b5d43c9.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-feebf5c1.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-2d7c3d02.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-981b77f0.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-bf26a4cd.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-11fce737.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-a7f6b974.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-03fb07d4.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-e82a0f10.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-5f0ccd11.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-5f9c7522.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-24a77c1b.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-618038b5.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-c98915eb.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-f3274858.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-a1e52389.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-2a1a864c.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-95572d4c.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-ec02ac11.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-39fa1a8f.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-4c9a382b.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-0e4f2c0c.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-2d84a154.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-479b8e6e.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-f8506da8.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-0fb7a53d.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-18af58fa.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-80482586.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-77ec15d3.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-84108b64.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-904c5e64.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",_context["import"]("../wasm-2b3accdb.cjs.js").then(function(e){return e["default"](t);}));case 1:case"end":return _context2.stop();}},_callee);}));return function c(_x){return _ref.apply(this,arguments);};}();u=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-123d3c00.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-8180368b.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-0cf7a0f0.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-cf3e1ada.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-61603c64.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-56e83acc.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-93b9527b.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-8ac91d63.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-0264d406.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-0d891f5a.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-0ddfeebd.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-eee329e3.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-7888cdf8.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-a4342077.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-6d8cfe5f.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-7b0d7429.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-5d2e59f1.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-a2cc3491.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-caee8ed6.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-17d51311.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-5d78b81d.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a14ae0a.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-1e70322e.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-7c78ef32.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-cd7515fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-4e847bdf.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-5168fd63.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b65008a8.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-718a3275.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-a73fe966.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-45735b6a.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-c1c05174.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-5acc6d52.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-bea79cf9.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-29968b94.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d8c9d4b0.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-9516af0e.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-15da7ed8.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-18ae2a43.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-0a1b6c0b.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-869d8085.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-afe282dc.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-9bd52d45.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-218912d1.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-82a00987.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-be0e89d9.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-4c99f83d.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-c8b0af08.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-4d62a96c.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-c347b81b.cjs.js");}}];m=Object.fromEntries(u.map(function(t){return[t.id,t["import"]];}));!function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline";}(p||(p={})),"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG,function(t){t.toBinaryStr=function(t){return t.toString(2).padStart(32,"0");},t.print=function(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});},t.getLanguageId=function(t){return(255&t)>>>0;},t.getTokenType=function(t){return(768&t)>>>8;},t.containsBalancedBrackets=function(t){return!!(1024&t);},t.getFontStyle=function(t){return(30720&t)>>>11;},t.getForeground=function(t){return(16744448&t)>>>15;},t.getBackground=function(t){return(4278190080&t)>>>24;},t.set=function(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;};}(h||(h={}));w=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;k=/*#__PURE__*/function(){function k(){_classCallCheck(this,k);}return _createClass(k,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(w.lastIndex=0,w.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(w,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t6=e.substring(s.start,s.end);for(;"."===_t6[0];)_t6=_t6.substring(1);switch(o){case"downcase":return _t6.toLowerCase();case"upcase":return _t6.toUpperCase();default:return _t6;}}});}}]);}();L=/*#__PURE__*/function(){function L(t){_classCallCheck(this,L);_defineProperty(this,"fn",void 0);_defineProperty(this,"cache",new Map());this.fn=t;}return _createClass(L,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();T=/*#__PURE__*/function(){function T(t){_classCallCheck(this,T);_defineProperty(this,"scopeName",void 0);this.scopeName=t;}return _createClass(T,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();A=/*#__PURE__*/function(){function A(t,e){_classCallCheck(this,A);_defineProperty(this,"scopeName",void 0);_defineProperty(this,"ruleName",void 0);this.scopeName=t,this.ruleName=e;}return _createClass(A,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();P=/*#__PURE__*/function(){function P(){_classCallCheck(this,P);_defineProperty(this,"_references",[]);_defineProperty(this,"_seenReferenceKeys",new Set());_defineProperty(this,"visitedRule",new Set());}return _createClass(P,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();O=/*#__PURE__*/function(){function O(t,e){_classCallCheck(this,O);_defineProperty(this,"repo",void 0);_defineProperty(this,"initialScopeName",void 0);_defineProperty(this,"seenFullScopeRequests",new Set());_defineProperty(this,"seenPartialScopeRequests",new Set());_defineProperty(this,"Q",void 0);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)];}return _createClass(O,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new P();var _iterator=_createForOfIteratorHelper(t),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _n6=_step.value;M(_n6,this.initialScopeName,this.repo,e);}}catch(err){_iterator.e(err);}finally{_iterator.f();}var _iterator2=_createForOfIteratorHelper(e.references),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _t7=_step2.value;if(_t7 instanceof T){if(this.seenFullScopeRequests.has(_t7.scopeName))continue;this.seenFullScopeRequests.add(_t7.scopeName),this.Q.push(_t7);}else{if(this.seenFullScopeRequests.has(_t7.scopeName))continue;if(this.seenPartialScopeRequests.has(_t7.toKey()))continue;this.seenPartialScopeRequests.add(_t7.toKey()),this.Q.push(_t7);}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}}]);}();R=/*#__PURE__*/_createClass(function R(){_classCallCheck(this,R);_defineProperty(this,"kind",0);});E=/*#__PURE__*/_createClass(function E(){_classCallCheck(this,E);_defineProperty(this,"kind",1);});$=/*#__PURE__*/_createClass(function $(t){_classCallCheck(this,$);_defineProperty(this,"ruleName",void 0);_defineProperty(this,"kind",2);this.ruleName=t;});B=/*#__PURE__*/_createClass(function B(t){_classCallCheck(this,B);_defineProperty(this,"scopeName",void 0);_defineProperty(this,"kind",3);this.scopeName=t;});I=/*#__PURE__*/_createClass(function I(t,e){_classCallCheck(this,I);_defineProperty(this,"scopeName",void 0);_defineProperty(this,"ruleName",void 0);_defineProperty(this,"kind",4);this.scopeName=t,this.ruleName=e;});H=/\\(\d+)/;q=/\\(\d+)/g;z=-1;F=-2;U=/*#__PURE__*/function(){function U(t,e,n,i){_classCallCheck(this,U);_defineProperty(this,"$location",void 0);_defineProperty(this,"id",void 0);_defineProperty(this,"_nameIsCapturing",void 0);_defineProperty(this,"_name",void 0);_defineProperty(this,"_contentNameIsCapturing",void 0);_defineProperty(this,"_contentName",void 0);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=k.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=k.hasCaptures(this._contentName);}return _createClass(U,[{key:"debugName",get:function get(){var t=this.$location?"".concat(b(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?k.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?k.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();W=/*#__PURE__*/function(_U2){function W(t,e,n,i,r){var _this;_classCallCheck(this,W);(_this=_callSuper(this,W,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this),"retokenizeCapturedWithRuleId",void 0)),_this.retokenizeCapturedWithRuleId=r;return _this;}_inherits(W,_U2);return _createClass(W,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(U);V=/*#__PURE__*/function(_U3){function V(t,e,n,i,r){var _this2;_classCallCheck(this,V);(_this2=_callSuper(this,V,[t,e,n,null]),_defineProperty(_assertThisInitialized(_this2),"_match",void 0),_defineProperty(_assertThisInitialized(_this2),"captures",void 0),_defineProperty(_assertThisInitialized(_this2),"_cachedCompiledPatterns",void 0)),_this2._match=new Q(i,_this2.id),_this2.captures=r,_this2._cachedCompiledPatterns=null;return _this2;}_inherits(V,_U3);return _createClass(V,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(U);J=/*#__PURE__*/function(_U4){function J(t,e,n,i,r){var _this3;_classCallCheck(this,J);(_this3=_callSuper(this,J,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this3),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this3),"patterns",void 0),_defineProperty(_assertThisInitialized(_this3),"_cachedCompiledPatterns",void 0)),_this3.patterns=r.patterns,_this3.hasMissingPatterns=r.hasMissingPatterns,_this3._cachedCompiledPatterns=null;return _this3;}_inherits(J,_U4);return _createClass(J,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator5=_createForOfIteratorHelper(this.patterns),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _n8=_step5.value;t.getRule(_n8).collectPatterns(t,e);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(U);X=/*#__PURE__*/function(_U5){function X(t,e,n,i,r,o,s,l,a,c){var _this4;_classCallCheck(this,X);(_this4=_callSuper(this,X,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this4),"_begin",void 0),_defineProperty(_assertThisInitialized(_this4),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this4),"_end",void 0),_defineProperty(_assertThisInitialized(_this4),"endHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this4),"endCaptures",void 0),_defineProperty(_assertThisInitialized(_this4),"applyEndPatternLast",void 0),_defineProperty(_assertThisInitialized(_this4),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this4),"patterns",void 0),_defineProperty(_assertThisInitialized(_this4),"_cachedCompiledPatterns",void 0)),_this4._begin=new Q(r,_this4.id),_this4.beginCaptures=o,_this4._end=new Q(s||"",-1),_this4.endHasBackReferences=_this4._end.hasBackReferences,_this4.endCaptures=l,_this4.applyEndPatternLast=a||!1,_this4.patterns=c.patterns,_this4.hasMissingPatterns=c.hasMissingPatterns,_this4._cachedCompiledPatterns=null;return _this4;}_inherits(X,_U5);return _createClass(X,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z();var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _e3=_step6.value;t.getRule(_e3).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(U);K=/*#__PURE__*/function(_U6){function K(t,e,n,i,r,o,s,l,a){var _this5;_classCallCheck(this,K);(_this5=_callSuper(this,K,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this5),"_begin",void 0),_defineProperty(_assertThisInitialized(_this5),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this5),"whileCaptures",void 0),_defineProperty(_assertThisInitialized(_this5),"_while",void 0),_defineProperty(_assertThisInitialized(_this5),"whileHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this5),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this5),"patterns",void 0),_defineProperty(_assertThisInitialized(_this5),"_cachedCompiledPatterns",void 0),_defineProperty(_assertThisInitialized(_this5),"_cachedCompiledWhilePatterns",void 0)),_this5._begin=new Q(r,_this5.id),_this5.beginCaptures=o,_this5.whileCaptures=l,_this5._while=new Q(s,F),_this5.whileHasBackReferences=_this5._while.hasBackReferences,_this5.patterns=a.patterns,_this5.hasMissingPatterns=a.hasMissingPatterns,_this5._cachedCompiledPatterns=null,_this5._cachedCompiledWhilePatterns=null;return _this5;}_inherits(K,_U6);return _createClass(K,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e4=_step7.value;t.getRule(_e4).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Z(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns;}}]);}(U);Y=/*#__PURE__*/function(){function Y(){_classCallCheck(this,Y);}return _createClass(Y,null,[{key:"createCaptureRule",value:function createCaptureRule(t,e,n,i,r){return t.registerRule(function(t){return new W(e,t,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(t,e,n){return t.id||e.registerRule(function(i){if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,Y._compileCaptures(t.captures,e,n));if(void 0===t.begin){t.repository&&(n=y({},n,t.repository));var _i6=t.patterns;return void 0===_i6&&t.include&&(_i6=[{include:t.include}]),new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Y._compilePatterns(_i6,e,n));}return t["while"]?new K(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t["while"],Y._compileCaptures(t.whileCaptures||t.captures,e,n),Y._compilePatterns(t.patterns,e,n)):new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t.end,Y._compileCaptures(t.endCaptures||t.captures,e,n),t.applyEndPatternLast,Y._compilePatterns(t.patterns,e,n));}),t.id;}},{key:"_compileCaptures",value:function _compileCaptures(t,e,n){var i=[];if(t){var _r3=0;for(var _e5 in t){if("$vscodeTextmateLocation"===_e5)continue;var _t10=parseInt(_e5,10);_t10>_r3&&(_r3=_t10);}for(var _t11=0;_t11<=_r3;_t11++)i[_t11]=null;for(var _r4 in t){if("$vscodeTextmateLocation"===_r4)continue;var _o2=parseInt(_r4,10);var _s=0;t[_r4].patterns&&(_s=Y.getCompiledRuleId(t[_r4],e,n)),i[_o2]=Y.createCaptureRule(e,t[_r4].$vscodeTextmateLocation,t[_r4].name,t[_r4].contentName,_s);}}return i;}},{key:"_compilePatterns",value:function _compilePatterns(t,e,n){var i=[];if(t)for(var _r5=0,_o3=t.length;_r5<_o3;_r5++){var _o4=t[_r5];var _s2=-1;if(_o4.include){var _t12=G(_o4.include);switch(_t12.kind){case 0:case 1:_s2=Y.getCompiledRuleId(n[_o4.include],e,n);break;case 2:var _i7=n[_t12.ruleName];_i7&&(_s2=Y.getCompiledRuleId(_i7,e,n));break;case 3:case 4:var _r6=_t12.scopeName,_l=4===_t12.kind?_t12.ruleName:null,_a=e.getExternalGrammar(_r6,n);if(_a)if(_l){var _t13=_a.repository[_l];_t13&&(_s2=Y.getCompiledRuleId(_t13,e,_a.repository));}else _s2=Y.getCompiledRuleId(_a.repository.$self,e,_a.repository);}}else _s2=Y.getCompiledRuleId(_o4,e,n);if(-1!==_s2){var _t14=e.getRule(_s2);var _n9=!1;if((_t14 instanceof J||_t14 instanceof X||_t14 instanceof K)&&_t14.hasMissingPatterns&&0===_t14.patterns.length&&(_n9=!0),_n9)continue;i.push(_s2);}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length};}}]);}();Q=/*#__PURE__*/function(){function Q(t,e){_classCallCheck(this,Q);_defineProperty(this,"source",void 0);_defineProperty(this,"ruleId",void 0);_defineProperty(this,"hasAnchor",void 0);_defineProperty(this,"hasBackReferences",void 0);_defineProperty(this,"_anchorCache",void 0);if(t){var _e6=t.length;var _n10=0,_i8=[],_r7=!1;for(var _o5=0;_o5<_e6;_o5++){if("\\"===t.charAt(_o5)&&_o5+1<_e6){var _e7=t.charAt(_o5+1);"z"===_e7?(_i8.push(t.substring(_n10,_o5)),_i8.push("$(?!\\n)(?<!\\n)"),_n10=_o5+2):"A"!==_e7&&"G"!==_e7||(_r7=!0),_o5++;}}this.hasAnchor=_r7,0===_n10?this.source=t:(_i8.push(t.substring(_n10,_e6)),this.source=_i8.join(""));}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=H.test(this.source);}return _createClass(Q,[{key:"clone",value:function clone(){return new Q(this.source,this.ruleId);}},{key:"setSource",value:function setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(t,e){var n=e.map(function(e){return t.substring(e.start,e.end);});return q.lastIndex=0,this.source.replace(q,function(t,e){return C(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var t,e,n,i,r=[],o=[],s=[],l=[];for(t=0,e=this.source.length;t<e;t++)n=this.source.charAt(t),r[t]=n,o[t]=n,s[t]=n,l[t]=n,"\\"===n&&t+1<e&&(i=this.source.charAt(t+1),"A"===i?(r[t+1]="",o[t+1]="",s[t+1]="A",l[t+1]="A"):"G"===i?(r[t+1]="",o[t+1]="G",s[t+1]="",l[t+1]="G"):(r[t+1]=i,o[t+1]=i,s[t+1]=i,l[t+1]=i),t++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(t,e){return this.hasAnchor&&this._anchorCache?t?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();Z=/*#__PURE__*/function(){function Z(){_classCallCheck(this,Z);_defineProperty(this,"_items",void 0);_defineProperty(this,"_hasAnchors",void 0);_defineProperty(this,"_cached",void 0);_defineProperty(this,"_anchorCache",void 0);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(Z,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _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);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e8=this._items.map(function(t){return t.source;});this._cached=new tt(t,_e8,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new tt(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();tt=/*#__PURE__*/function(){function tt(t,e,n){_classCallCheck(this,tt);_defineProperty(this,"regExps",void 0);_defineProperty(this,"rules",void 0);_defineProperty(this,"scanner",void 0);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(tt,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e9=0,_n11=this.rules.length;_e9<_n11;_e9++)t.push(" - "+this.rules[_e9]+": "+this.regExps[_e9]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();et=/*#__PURE__*/function(){function et(_t15,e,n){var _this6=this;_classCallCheck(this,et);_defineProperty(this,"_colorMap",void 0);_defineProperty(this,"_defaults",void 0);_defineProperty(this,"_root",void 0);_defineProperty(this,"_cachedMatchRoot",new L(function(t){return _this6._root.match(t);}));this._colorMap=_t15,this._defaults=e,this._root=n;}return _createClass(et,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(null===e)return!0;var n=0,i=e[n];for(;t;){if(it(t.scopeName,i)){if(n++,n===e.length)return!0;i=e[n];}t=t.parent;}return!1;}(t.parent,e.parentScopes);});return n?new rt(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t16=0,_r8=e.length;_t16<_r8;_t16++){var _r9=void 0,_o6=e[_t16];if(!_o6.settings)continue;if("string"==typeof _o6.scope){var _t17=_o6.scope;_t17=_t17.replace(/^[,]+/,""),_t17=_t17.replace(/[,]+$/,""),_r9=_t17.split(",");}else _r9=Array.isArray(_o6.scope)?_o6.scope:[""];var _s3=-1;if("string"==typeof _o6.settings.fontStyle){_s3=0;var _t18=_o6.settings.fontStyle.split(" ");for(var _e10=0,_n12=_t18.length;_e10<_n12;_e10++){switch(_t18[_e10]){case"italic":_s3|=1;break;case"bold":_s3|=2;break;case"underline":_s3|=4;break;case"strikethrough":_s3|=8;}}}var _l2=null;"string"==typeof _o6.settings.foreground&&x(_o6.settings.foreground)&&(_l2=_o6.settings.foreground);var _a2=null;"string"==typeof _o6.settings.background&&x(_o6.settings.background)&&(_a2=_o6.settings.background);for(var _e11=0,_o7=_r9.length;_e11<_o7;_e11++){var _o8=_r9[_e11].trim().split(" "),_c=_o8[_o8.length-1],_u=null;_o8.length>1&&(_u=_o8.slice(0,_o8.length-1),_u.reverse()),n[i++]=new ot(_c,_u,_t16,_s3,_l2,_a2);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=v(t.scope,e.scope);return 0!==n?n:(n=S(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e12=t.shift();-1!==_e12.fontStyle&&(n=_e12.fontStyle),null!==_e12.foreground&&(i=_e12.foreground),null!==_e12.background&&(r=_e12.background);}var o=new st(e),s=new rt(n,o.getId(i),o.getId(r)),l=new at(new lt(0,null,-1,0,0),[]);for(var _e13=0,_n13=t.length;_e13<_n13;_e13++){var _n14=t[_e13];l.insert(0,_n14.scope,_n14.parentScopes,_n14.fontStyle,o.getId(_n14.foreground),o.getId(_n14.background));}return new et(o,s,l);}(t,e);}}]);}();nt=/*#__PURE__*/function(){function nt(t,e){_classCallCheck(this,nt);_defineProperty(this,"parent",void 0);_defineProperty(this,"scopeName",void 0);this.parent=t,this.scopeName=e;}return _createClass(nt,[{key:"push",value:function push(t){return new nt(this,t);}},{key:"getSegments",value:function getSegments(){var t=this;var e=[];for(;t;)e.push(t.scopeName),t=t.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(t){return this===t||null!==this.parent&&this.parent["extends"](t);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(t){var e=[];var n=this;for(;n&&n!==t;)e.push(n.scopeName),n=n.parent;return n===t?e.reverse():void 0;}}],[{key:"push",value:function push(t,e){var _iterator8=_createForOfIteratorHelper(e),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _n15=_step8.value;t=new nt(t,_n15);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}return t;}},{key:"from",value:function from(){var e=null;for(var _n16=0;_n16<arguments.length;_n16++)e=new nt(e,_n16<0||arguments.length<=_n16?undefined:arguments[_n16]);return e;}}]);}();rt=/*#__PURE__*/_createClass(function rt(t,e,n){_classCallCheck(this,rt);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foregroundId",void 0);_defineProperty(this,"backgroundId",void 0);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});ot=/*#__PURE__*/_createClass(function ot(t,e,n,i,r,o){_classCallCheck(this,ot);_defineProperty(this,"scope",void 0);_defineProperty(this,"parentScopes",void 0);_defineProperty(this,"index",void 0);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foreground",void 0);_defineProperty(this,"background",void 0);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});st=/*#__PURE__*/function(){function st(t){_classCallCheck(this,st);_defineProperty(this,"_isFrozen",void 0);_defineProperty(this,"_lastColorId",void 0);_defineProperty(this,"_id2color",void 0);_defineProperty(this,"_color2id",void 0);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e14=0,_n17=t.length;_e14<_n17;_e14++)this._color2id[t[_e14]]=_e14,this._id2color[_e14]=t[_e14];}else this._isFrozen=!1;}return _createClass(st,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();lt=/*#__PURE__*/function(){function lt(t,e,n,i,r){_classCallCheck(this,lt);_defineProperty(this,"scopeDepth",void 0);_defineProperty(this,"parentScopes",void 0);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foreground",void 0);_defineProperty(this,"background",void 0);this.scopeDepth=t,this.parentScopes=e,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(lt,[{key:"clone",value:function clone(){return new lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(t,e,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(t){var e=[];for(var _n18=0,_i9=t.length;_n18<_i9;_n18++)e[_n18]=t[_n18].clone();return e;}}]);}();at=/*#__PURE__*/function(){function at(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,at);_defineProperty(this,"_mainRule",void 0);_defineProperty(this,"_children",void 0);_defineProperty(this,"_rulesWithParentScopes",void 0);this._mainRule=t,this._children=n,this._rulesWithParentScopes=e;}return _createClass(at,[{key:"match",value:function match(t){if(""===t)return at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));var e,n,i=t.indexOf(".");return-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e)?this._children[e].match(n):at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));}},{key:"insert",value:function insert(t,e,n,i,r,o){if(""===e)return void this._doInsertHere(t,n,i,r,o);var s,l,a,c=e.indexOf(".");-1===c?(s=e,l=""):(s=e.substring(0,c),l=e.substring(c+1)),this._children.hasOwnProperty(s)?a=this._children[s]:(a=new at(this._mainRule.clone(),lt.cloneArr(this._rulesWithParentScopes)),this._children[s]=a),a.insert(t+1,l,n,i,r,o);}},{key:"_doInsertHere",value:function _doInsertHere(t,e,n,i,r){if(null!==e){for(var _o9=0,_s4=this._rulesWithParentScopes.length;_o9<_s4;_o9++){var _s5=this._rulesWithParentScopes[_o9];if(0===S(_s5.parentScopes,e))return void _s5.acceptOverwrite(t,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new lt(t,e,n,i,r));}else this._mainRule.acceptOverwrite(t,n,i,r);}}],[{key:"_sortBySpecificity",value:function _sortBySpecificity(t){return 1===t.length||t.sort(this._cmpBySpecificity),t;}},{key:"_cmpBySpecificity",value:function _cmpBySpecificity(t,e){if(t.scopeDepth===e.scopeDepth){var _n19=t.parentScopes,_i10=e.parentScopes;var _r10=null===_n19?0:_n19.length,_o10=null===_i10?0:_i10.length;if(_r10===_o10)for(var _t19=0;_t19<_r10;_t19++){var _e15=_n19[_t19].length,_r11=_i10[_t19].length;if(_e15!==_r11)return _r11-_e15;}return _o10-_r10;}return e.scopeDepth-t.scopeDepth;}}]);}();ct=/*#__PURE__*/_createClass(function ct(t,e){_classCallCheck(this,ct);_defineProperty(this,"languageId",void 0);_defineProperty(this,"tokenType",void 0);this.languageId=t,this.tokenType=e;});ut=/*#__PURE__*/function(){function ut(_t20,_e16){var _this7=this;_classCallCheck(this,ut);_defineProperty(this,"_defaultAttributes",void 0);_defineProperty(this,"_embeddedLanguagesMatcher",void 0);_defineProperty(this,"_getBasicScopeAttributes",new L(function(t){var e=_this7._scopeToLanguage(t),n=_this7._toStandardTokenType(t);return new ct(e,n);}));this._defaultAttributes=new ct(_t20,8),this._embeddedLanguagesMatcher=new mt(Object.entries(_e16||{}));}return _createClass(ut,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(t){return null===t?ut._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(t){var e=t.match(ut.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[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!");}}]);}();_defineProperty(ut,"_NULL_SCOPE_METADATA",new ct(0,0));_defineProperty(ut,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);mt=/*#__PURE__*/function(){function mt(t){_classCallCheck(this,mt);_defineProperty(this,"values",void 0);_defineProperty(this,"scopesRegExp",void 0);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e17=t.map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),t=_ref3[0],e=_ref3[1];return C(t);});_e17.sort(),_e17.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e17.join(")|("),"))($|\\.)"),"");}}return _createClass(mt,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();pt=/*#__PURE__*/_createClass(function pt(t,e){_classCallCheck(this,pt);_defineProperty(this,"stack",void 0);_defineProperty(this,"stoppedEarly",void 0);this.stack=t,this.stoppedEarly=e;});jt=/*#__PURE__*/_createClass(function jt(t,e){_classCallCheck(this,jt);_defineProperty(this,"scopes",void 0);_defineProperty(this,"endPos",void 0);this.scopes=t,this.endPos=e;});kt=/*#__PURE__*/function(){function kt(t,e,n,i,r,o,s,l){_classCallCheck(this,kt);_defineProperty(this,"_rootScopeName",void 0);_defineProperty(this,"balancedBracketSelectors",void 0);_defineProperty(this,"_onigLib",void 0);_defineProperty(this,"_rootId",void 0);_defineProperty(this,"_lastRuleId",void 0);_defineProperty(this,"_ruleId2desc",void 0);_defineProperty(this,"_includedGrammars",void 0);_defineProperty(this,"_grammarRepository",void 0);_defineProperty(this,"_grammar",void 0);_defineProperty(this,"_injections",void 0);_defineProperty(this,"_basicScopeAttributesProvider",void 0);_defineProperty(this,"_tokenTypeMatchers",void 0);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ut(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=vt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i14=0,_Object$keys=Object.keys(r);_i14<_Object$keys.length;_i14++){var _t21=_Object$keys[_i14];var _e22=d(_t21,bt);var _iterator10=_createForOfIteratorHelper(_e22),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n22=_step10.value;this._tokenTypeMatchers.push({matcher:_n22.matcher,type:r[_t21]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(kt,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t22=_step11.value;_t22&&_t22.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this8=this;var t=function t(_t23){return _t23===_this8._rootScopeName?_this8._grammar:_this8.getExternalGrammar(_t23);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t24=i.injections;if(_t24)for(var _n23 in _t24)yt(e,_n23,_t24[_n23],this,i);var _r12=this._grammarRepository.injections(n);_r12&&_r12.forEach(function(t){var n=_this8.getExternalGrammar(t);if(n){var _t25=n.injectionSelector;_t25&&yt(e,_t25,n,_this8,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n24=this._grammarRepository.lookup(t);if(_n24)return this._includedGrammars[t]=vt(_n24,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=Y.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==xt.NULL)r=!1,e.reset();else{r=!0;var _t26=this._basicScopeAttributesProvider.getDefaultAttributes(),_n25=this.themeProvider.getDefaults(),_i15=h.set(0,_t26.languageId,_t26.tokenType,null,_n25.fontStyle,_n25.foregroundId,_n25.backgroundId),_o13=this.getRule(this._rootId).getName(null,null);var _s9;_s9=_o13?St.createRootAndLookUpScopeName(_o13,_i15,this):St.createRoot("unknown",_i15),e=new xt(null,this._rootId,-1,-1,!1,null,_s9,_s9);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Lt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=ht(this,o,r,0,e,l,!0,i);return g(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();St=/*#__PURE__*/function(){function St(t,e,n){_classCallCheck(this,St);_defineProperty(this,"parent",void 0);_defineProperty(this,"scopePath",void 0);_defineProperty(this,"tokenAttributes",void 0);this.parent=t,this.scopePath=e,this.tokenAttributes=n;}return _createClass(St,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(t){return St.equals(this,t);}},{key:"pushAttributed",value:function pushAttributed(t,e){if(null===t)return this;if(-1===t.indexOf(" "))return St._pushAttributed(this,t,e);var n=t.split(/ /g);var i=this;var _iterator12=_createForOfIteratorHelper(n),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _t27=_step12.value;i=St._pushAttributed(i,_t27,e);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return i;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(t){var e=[];var n=this;for(;n&&n!==t;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===t?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(t,e){var _t$scopePath;var n=t,i=(_t$scopePath=t===null||t===void 0?void 0:t.scopePath)!==null&&_t$scopePath!==void 0?_t$scopePath:null;var _iterator13=_createForOfIteratorHelper(e),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _t28=_step13.value;i=nt.push(i,_t28.scopeNames),n=new St(n,i,_t28.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return n;}},{key:"createRoot",value:function createRoot(t,e){return new St(null,new nt(null,t),e);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(t,e,n){var i=n.getMetadataForScope(t),r=new nt(null,t),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(e,i,o);return new St(null,r,s);}},{key:"equals",value:function equals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.scopeName!==e.scopeName||t.tokenAttributes!==e.tokenAttributes)return!1;t=t.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(t,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),h.set(t,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(t,e,n){var i=n.getMetadataForScope(e),r=t.scopePath.push(e),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(t.tokenAttributes,i,o);return new St(t,r,s);}}]);}();xt=/*#__PURE__*/function(){function xt(t,e,n,i,r,o,s,l){_classCallCheck(this,xt);_defineProperty(this,"parent",void 0);_defineProperty(this,"ruleId",void 0);_defineProperty(this,"beginRuleCapturedEOL",void 0);_defineProperty(this,"endRule",void 0);_defineProperty(this,"nameScopesList",void 0);_defineProperty(this,"contentNameScopesList",void 0);_defineProperty(this,"_stackElementBrand",void 0);_defineProperty(this,"_enterPos",void 0);_defineProperty(this,"_anchorPos",void 0);_defineProperty(this,"depth",void 0);this.parent=t,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(xt,[{key:"equals",value:function equals(t){return null!==t&&xt._equals(this,t);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){xt._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(t,e,n,i,r,o,s){return new xt(this,t,e,n,i,r,o,s);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(t){return t.getRule(this.ruleId);}},{key:"toString",value:function toString(){var t=[];return this._writeString(t,0),"["+t.join(",")+"]";}},{key:"_writeString",value:function _writeString(t,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(t,e)),t[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t);}},{key:"withEndRule",value:function withEndRule(t){return this.endRule===t?this:new xt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(t){var e=this;for(;e&&e._enterPos===t._enterPos;){if(e.ruleId===t.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(t,e){return t===e||!!this._structuralEquals(t,e)&&St.equals(t.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.depth!==e.depth||t.ruleId!==e.ruleId||t.endRule!==e.endRule)return!1;t=t.parent,e=e.parent;}}},{key:"_reset",value:function _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent;}},{key:"pushFrame",value:function pushFrame(t,e){var _t$nameScopesList,_e$enterPos,_e$anchorPos;var n=St.fromExtension((_t$nameScopesList=t===null||t===void 0?void 0:t.nameScopesList)!==null&&_t$nameScopesList!==void 0?_t$nameScopesList:null,e.nameScopesList);return new xt(t,e.ruleId,(_e$enterPos=e.enterPos)!==null&&_e$enterPos!==void 0?_e$enterPos:-1,(_e$anchorPos=e.anchorPos)!==null&&_e$anchorPos!==void 0?_e$anchorPos:-1,e.beginRuleCapturedEOL,e.endRule,n,St.fromExtension(n,e.contentNameScopesList));}}]);}();_xt=xt;_defineProperty(xt,"NULL",new _xt(null,0,0,0,!1,null,null,null));Ct=/*#__PURE__*/function(){function Ct(t,e){var _this9=this;_classCallCheck(this,Ct);_defineProperty(this,"balancedBracketScopes",void 0);_defineProperty(this,"unbalancedBracketScopes",void 0);_defineProperty(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this9.allowAny=!0,[]):d(t,bt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return d(t,bt).map(function(t){return t.matcher;});});}return _createClass(Ct,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e23=_step14.value;if(_e23(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e24=_step15.value;if(_e24(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Lt=/*#__PURE__*/function(){function Lt(t,e,n,i){_classCallCheck(this,Lt);_defineProperty(this,"balancedBracketSelectors",void 0);_defineProperty(this,"_emitBinaryTokens",void 0);_defineProperty(this,"_lineText",void 0);_defineProperty(this,"_tokens",void 0);_defineProperty(this,"_binaryTokens",void 0);_defineProperty(this,"_lastTokenEndIndex",void 0);_defineProperty(this,"_tokenTypeOverrides",void 0);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Lt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n26=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,_i16=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(_i16=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e25=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t29=_step16.value;_t29.matcher(_e25)&&(_n26=h.set(_n26,0,_t29.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(_i16=this.balancedBracketSelectors.match(_e25));}return _i16&&(_n26=h.set(_n26,0,8,_i16,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n26?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n26),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t30=0,_e26=this._binaryTokens.length;_t30<_e26;_t30++)n[_t30]=this._binaryTokens[_t30];return n;}}]);}();Tt=/*#__PURE__*/function(){function Tt(t,e){_classCallCheck(this,Tt);_defineProperty(this,"_onigLibPromise",void 0);_defineProperty(this,"_grammars",new Map());_defineProperty(this,"_rawGrammars",new Map());_defineProperty(this,"_injectionGrammars",new Map());_defineProperty(this,"_theme",void 0);this._onigLibPromise=e,this._theme=t;}return _createClass(Tt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t31=_step17.value;_t31.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function(){var _grammarForScopeName=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,e,n,i,r){var _o14;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(this._grammars.has(t)){_context3.next=19;break;}_o14=this._rawGrammars.get(t);if(_o14){_context3.next=4;break;}return _context3.abrupt("return",null);case 4:_context3.t0=this._grammars;_context3.t1=t;_context3.t2=function(t,e,n,i,r,o,s,l){return new kt(t,e,n,i,r,o,s,l);};_context3.t3=t;_context3.t4=_o14;_context3.t5=e;_context3.t6=n;_context3.t7=i;_context3.t8=r;_context3.t9=this;_context3.next=16;return this._onigLibPromise;case 16:_context3.t10=_context3.sent;_context3.t11=(0,_context3.t2)(_context3.t3,_context3.t4,_context3.t5,_context3.t6,_context3.t7,_context3.t8,_context3.t9,_context3.t10);_context3.t0.set.call(_context3.t0,_context3.t1,_context3.t11);case 19:return _context3.abrupt("return",this._grammars.get(t));case 20:case"end":return _context3.stop();}},_callee2,this);}));function grammarForScopeName(_x2,_x3,_x4,_x5,_x6){return _grammarForScopeName.apply(this,arguments);}return grammarForScopeName;}()}]);}();At=/*#__PURE__*/function(){function At(t){_classCallCheck(this,At);_defineProperty(this,"_options",void 0);_defineProperty(this,"_syncRegistry",void 0);_defineProperty(this,"_ensureGrammarCache",void 0);this._options=t,this._syncRegistry=new Tt(et.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(At,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(et.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ct(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function(){var _loadGrammar2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(t,e,n,i,r){var _this10=this;var o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o=new O(this._syncRegistry,t);case 1:if(!(o.Q.length>0)){_context4.next=7;break;}_context4.next=4;return Promise.all(o.Q.map(function(t){return _this10._loadSingleGrammar(t.scopeName);}));case 4:o.processQueue();case 5:_context4.next=1;break;case 7:return _context4.abrupt("return",this._grammarForScopeName(t,e,n,i,r));case 8:case"end":return _context4.stop();}},_callee3,this);}));function _loadGrammar(_x7,_x8,_x9,_x10,_x11){return _loadGrammar2.apply(this,arguments);}return _loadGrammar;}()},{key:"_loadSingleGrammar",value:function(){var _loadSingleGrammar2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:return _context5.abrupt("return",(this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)));case 1:case"end":return _context5.stop();}},_callee4,this);}));function _loadSingleGrammar(_x12){return _loadSingleGrammar2.apply(this,arguments);}return _loadSingleGrammar;}()},{key:"_doLoadSingleGrammar",value:function(){var _doLoadSingleGrammar2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var e,_n27;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return this._options.loadGrammar(t);case 2:e=_context6.sent;if(e){_n27="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n27);}case 4:case"end":return _context6.stop();}},_callee5,this);}));function _doLoadSingleGrammar(_x13){return _doLoadSingleGrammar2.apply(this,arguments);}return _doLoadSingleGrammar;}()},{key:"addGrammar",value:function(){var _addGrammar=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t){var e,n,i,_args6=arguments;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=_args6.length>1&&_args6[1]!==undefined?_args6[1]:[];n=_args6.length>2&&_args6[2]!==undefined?_args6[2]:0;i=_args6.length>3&&_args6[3]!==undefined?_args6[3]:null;this._syncRegistry.addGrammar(t,e);_context7.next=6;return this._grammarForScopeName(t.scopeName,n,i);case 6:return _context7.abrupt("return",_context7.sent);case 7:case"end":return _context7.stop();}},_callee6,this);}));function addGrammar(_x14){return _addGrammar.apply(this,arguments);}return addGrammar;}()},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Pt=xt.NULL;Ot=255;Mt=768;Nt=1024;_t=14336;Dt=8372224;Rt=4286578688;Et=0;$t=8;Bt=10;It=11;Gt=15;Ht=24;qt=/*#__PURE__*/function(){function qt(){_classCallCheck(this,qt);}return _createClass(qt,null,[{key:"toBinaryStr",value:function toBinaryStr(t){var e=t.toString(2);for(;e.length<32;)e="0".concat(e);return e;}},{key:"getLanguageId",value:function getLanguageId(t){return(t&Ot)>>>Et;}},{key:"getTokenType",value:function getTokenType(t){return(t&Mt)>>>$t;}},{key:"getFontStyle",value:function getFontStyle(t){return(t&_t)>>>It;}},{key:"getForeground",value:function getForeground(t){return(t&Dt)>>>Gt;}},{key:"getBackground",value:function getBackground(t){return(t&Rt)>>>Ht;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(t){return!!(t&Nt);}},{key:"set",value:function set(t,e,n,i,r,o){var s=qt.getLanguageId(t),l=qt.getTokenType(t),a=qt.getFontStyle(t),c=qt.getForeground(t),u=qt.getBackground(t);var m=qt.containsBalancedBrackets(t)?1:0;return 0!==e&&(s=e),0!==n&&(l=8===n?0:n),i!==p.NotSet&&(a=i),0!==r&&(c=r),0!==o&&(u=o),(s<<Et|l<<$t|a<<It|m<<Bt|c<<Gt|u<<Ht)>>>0;}}]);}();Zt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];te={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};re={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"};le=/*#__PURE__*/function(_Error){function le(t){var _this11;_classCallCheck(this,le);_this11=_callSuper(this,le,[t]),_this11.name="ShikiError";return _this11;}_inherits(le,_Error);return _createClass(le);}(/*#__PURE__*/_wrapNativeSuper(Error));ae=/*#__PURE__*/function(){function ae(t,e,n){_classCallCheck(this,ae);_defineProperty(this,"_stack",void 0);_defineProperty(this,"lang",void 0);_defineProperty(this,"theme",void 0);this._stack=t,this.lang=e,this.theme=n;}return _createClass(ae,[{key:"scopes",get:function get(){return function(t){var e=[],n=new Set();function i(t){var _t$nameScopesList2;if(n.has(t))return;n.add(t);var r=t===null||t===void 0||(_t$nameScopesList2=t.nameScopesList)===null||_t$nameScopesList2===void 0?void 0:_t$nameScopesList2.scopeName;r&&e.push(r),t.parent&&i(t.parent);}return i(t),e;}(this._stack);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new ae(Pt,t,e);}}]);}();ye=[je()];ke=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];ve=/*#__PURE__*/_createClass(function ve(t,e,n){_classCallCheck(this,ve);this.property=t,this.normal=e,n&&(this.space=n);});ve.prototype.property={},ve.prototype.normal={},ve.prototype.space=null;Ce=/*#__PURE__*/_createClass(function Ce(t,e){_classCallCheck(this,Ce);this.property=t,this.attribute=e;});Ce.prototype.space=null,Ce.prototype["boolean"]=!1,Ce.prototype.booleanish=!1,Ce.prototype.overloadedBoolean=!1,Ce.prototype.number=!1,Ce.prototype.commaSeparated=!1,Ce.prototype.spaceSeparated=!1,Ce.prototype.commaOrSpaceSeparated=!1,Ce.prototype.mustUseProperty=!1,Ce.prototype.defined=!1;Le=0;Te=De();Ae=De();Pe=De();Oe=De();Me=De();Ne=De();_e=De();Re=Object.freeze({__proto__:null,"boolean":Te,booleanish:Ae,commaOrSpaceSeparated:_e,commaSeparated:Ne,number:Oe,overloadedBoolean:Pe,spaceSeparated:Me});Ee=Object.keys(Re);$e=/*#__PURE__*/function(_Ce){function $e(t,e,n,i){var _this12;_classCallCheck(this,$e);var r=-1;if(_this12=_callSuper(this,$e,[t,e]),Be(_assertThisInitialized(_this12),"space",i),"number"==typeof n)for(;++r<Ee.length;){var _t53=Ee[r];Be(_assertThisInitialized(_this12),Ee[r],(n&Re[_t53])===Re[_t53]);}return _assertThisInitialized(_this12);}_inherits($e,_Ce);return _createClass($e);}(Ce);$e.prototype.defined=!0;Ie={}.hasOwnProperty;He=Ge({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});qe=Ge({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});Ue=Ge({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Fe,properties:{xmlns:null,xmlnsXLink:null}});We=Ge({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:Me,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:Oe,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:Me,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Ae,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null}});Ve=Ge({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Me,autoFocus:Te,autoPlay:Te,blocking:Me,capture:null,charSet:null,checked:Te,cite:null,className:Me,cols:Oe,colSpan:null,content:null,contentEditable:Ae,controls:Te,controlsList:Me,coords:Oe|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Te,defer:Te,dir:null,dirName:null,disabled:Te,download:Pe,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Me,height:Oe,hidden:Te,high:Oe,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Me,itemRef:Me,itemScope:Te,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Oe,manifest:null,max:null,maxLength:Oe,media:null,method:null,min:null,minLength:Oe,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:Oe,pattern:null,ping:Me,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Me,required:Te,reversed:Te,rows:Oe,rowSpan:Oe,sandbox:Me,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Oe,sizes:null,slot:null,span:Oe,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe,step:null,style:null,tabIndex:Oe,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Ae,width:Oe,wrap:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:Oe,borderColor:null,bottomMargin:Oe,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe,leftMargin:Oe,link:null,longDesc:null,lowSrc:null,marginHeight:Oe,marginWidth:Oe,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:Oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Oe,security:null,unselectable:null}});Je=Ge({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:ze,properties:{about:_e,accentHeight:Oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe,amplitude:Oe,arabicForm:null,ascent:Oe,attributeName:null,attributeType:null,azimuth:Oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe,by:null,calcMode:null,capHeight:Oe,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:Oe,diffuseConstant:Oe,direction:null,display:null,dur:null,divisor:Oe,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe,enableBackground:null,end:null,event:null,exponent:Oe,externalResourcesRequired:null,fill:null,fillOpacity:Oe,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe,horizOriginX:Oe,horizOriginY:Oe,id:null,ideographic:Oe,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:Oe,k:Oe,k1:Oe,k2:Oe,k3:Oe,k4:Oe,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe,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:Oe,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:Oe,overlineThickness:Oe,paintOrder:null,panose1:null,path:null,pathLength:Oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe,pointsAtY:Oe,pointsAtZ:Oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,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:Oe,specularExponent:Oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe,strikethroughThickness:Oe,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe,strokeOpacity:Oe,strokeWidth:null,style:null,surfaceScale:Oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:Oe,tableValues:null,target:null,targetX:Oe,targetY:Oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe,underlineThickness:Oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe,values:null,vAlphabetic:Oe,vMathematical:Oe,vectorEffect:null,vHanging:Oe,vIdeographic:Oe,version:null,vertAdvY:Oe,vertOriginX:Oe,vertOriginY:Oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});Xe=/^data[-\w.:]+$/i;Ke=/-[a-z]/g;Ye=/[A-Z]/g;tn=Se([qe,He,Ue,We,Ve],"html");en=Se([qe,He,Ue,We,Je],"svg");nn={}.hasOwnProperty;on=["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"];sn={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:"€"};ln=["cent","copy","divide","gt","lt","not","para","times"];an={}.hasOwnProperty;cn={};for(un in sn)an.call(sn,un)&&(cn[sn[un]]=un);hn=/^>|^->|<!--|-->|--!>|<!-$/g;dn=[">"];fn=["<",">"];bn=/[ \t\n\f\r]/g;vn=Cn(1);Sn=Cn(-1);xn=[];Ln={}.hasOwnProperty;An=Tn({body:function body(t,e,n){var i=vn(n,e);return!i||"comment"!==i.type;},caption:Pn,colgroup:Pn,dd:function dd(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=vn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:Pn,html:function html(t,e,n){var i=vn(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=vn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:On,rt:On,tbody:function tbody(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:Mn,tfoot:function tfoot(t,e,n){return!vn(n,e);},th:Mn,thead:function thead(t,e,n){var i=vn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=vn(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});Nn=Tn({body:function body(t){var e=vn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&wn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=Sn(n,e),r=vn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=t.children,n=[];var i=-1;for(;++i<e.length;){var _t55=e[i];if("element"===_t55.type&&("title"===_t55.tagName||"base"===_t55.tagName)){if(n.includes(_t55.tagName))return!1;n.push(_t55.tagName);}}return e.length>0;},html:function html(t){var e=vn(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=Sn(n,e),r=vn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});_n={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};Rn=["<","&"];$n=function(t,e){var n=e||{};function i(e){var _r30;var r=i.invalid;var o=i.handlers;if(e&&nn.call(e,t)){var _n37=String(e[t]);r=nn.call(o,_n37)?o[_n37]:i.unknown;}for(var _len3=arguments.length,n=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){n[_key3-1]=arguments[_key3];}if(r)return(_r30=r).call.apply(_r30,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+pn(t.value,Object.assign({},i.settings.characterReferences,{subset:dn}))+">":"\x3c!--"+t.value.replace(hn,function(t){return pn(t,Object.assign({},i.settings.characterReferences,{subset:fn}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=en);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r31=Dn(t,i,e[i]);_r31&&n.push(_r31);}for(;++r<n.length;){var _e38=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e38&&"'"!==_e38&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&Nn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&An(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:En(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:En}});Bn={};In={};Gn=[];Wn=null;Vn=/*#__PURE__*/function(){function Vn(t){_classCallCheck(this,Vn);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=Vn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n38=0;_n38<e;_n38++){var _a9=t.charCodeAt(_n38);var _c6=_a9,_u5=!1;if(_a9>=55296&&_a9<=56319&&_n38+1<e){var _e39=t.charCodeAt(_n38+1);_e39>=56320&&_e39<=57343&&(_c6=65536+(_a9-55296<<10)|_e39-56320,_u5=!0);}i&&(r[_n38]=l,_u5&&(r[_n38+1]=l),_c6<=127?o[l+0]=_n38:_c6<=2047?(o[l+0]=_n38,o[l+1]=_n38):_c6<=65535?(o[l+0]=_n38,o[l+1]=_n38,o[l+2]=_n38):(o[l+0]=_n38,o[l+1]=_n38,o[l+2]=_n38,o[l+3]=_n38)),_c6<=127?s[l++]=_c6:_c6<=2047?(s[l++]=192|(1984&_c6)>>>6,s[l++]=128|(63&_c6)>>>0):_c6<=65535?(s[l++]=224|(61440&_c6)>>>12,s[l++]=128|(4032&_c6)>>>6,s[l++]=128|(63&_c6)>>>0):(s[l++]=240|(1835008&_c6)>>>18,s[l++]=128|(258048&_c6)>>>12,s[l++]=128|(4032&_c6)>>>6,s[l++]=128|(63&_c6)>>>0),_u5&&_n38++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(Vn,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n39=0,_i32=t.length;_n39<_i32;_n39++){var _r32=t.charCodeAt(_n39);var _o21=_r32,_s14=!1;if(_r32>=55296&&_r32<=56319&&_n39+1<_i32){var _e40=t.charCodeAt(_n39+1);_e40>=56320&&_e40<=57343&&(_o21=65536+(_r32-55296<<10)|_e40-56320,_s14=!0);}e+=_o21<=127?1:_o21<=2047?2:_o21<=65535?3:4,_s14&&_n39++;}return e;}}]);}();Jn=/*#__PURE__*/function(){function Jn(t){_classCallCheck(this,Jn);_defineProperty(this,"id",++Jn.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!Wn)throw new le("Must invoke loadWasm first.");this._onigBinding=Wn,this.content=t;var e=new Vn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!Jn._sharedPtrInUse?(Jn._sharedPtr||(Jn._sharedPtr=Wn.omalloc(1e4)),Jn._sharedPtrInUse=!0,Wn.HEAPU8.set(e.utf8Value,Jn._sharedPtr),this.ptr=Jn._sharedPtr):this.ptr=e.createString(Wn);}return _createClass(Jn,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===Jn._sharedPtr?Jn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(Jn,"LAST_ID",0);_defineProperty(Jn,"_sharedPtr",0);_defineProperty(Jn,"_sharedPtrInUse",!1);Xn=/*#__PURE__*/function(){function Xn(t){_classCallCheck(this,Xn);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!Wn)throw new le("Must invoke loadWasm first.");var e=[],n=[];for(var _i33=0,_r33=t.length;_i33<_r33;_i33++){var _r34=new Vn(t[_i33]);e[_i33]=_r34.createString(Wn),n[_i33]=_r34.utf8Length;}var i=Wn.omalloc(4*t.length);Wn.HEAPU32.set(e,i/4);var r=Wn.omalloc(4*t.length);Wn.HEAPU32.set(n,r/4);var o=Wn.createOnigScanner(i,r,t.length);for(var _n40=0,_i34=t.length;_n40<_i34;_n40++)Wn.ofree(e[_n40]);Wn.ofree(r),Wn.ofree(i),0===o&&function(t){throw new le(t.UTF8ToString(t.getLastOnigError()));}(Wn),this._onigBinding=Wn,this._ptr=o;}return _createClass(Xn,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=false,r=0;if("number"==typeof n?(8&n&&(i=!0),r=n):"boolean"==typeof n&&(i=n),"string"==typeof t){t=new Jn(t);var _n41=this._findNextMatchSync(t,e,i,r);return t.dispose(),_n41;}return this._findNextMatchSync(t,e,i,r);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding;var o;if(o=n?r.findNextOnigScannerMatchDbg(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i):r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i),0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e41=0;_e41<c;_e41++){var _n42=t.convertUtf8OffsetToUtf16(s[l++]),_i35=t.convertUtf8OffsetToUtf16(s[l++]);u[_e41]={start:_n42,end:_i35,length:_i35-_n42};}return{index:a,captureIndices:u};}}]);}();Qn={light:"#333333",dark:"#bbbbbb"};Zn={light:"#fffffe",dark:"#1e1e1e"};ti="__shiki_resolved";ni=/*#__PURE__*/function(_At){function ni(t,e,n){var _this13;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,ni);(_this13=_callSuper(this,ni,[t]),_defineProperty(_assertThisInitialized(_this13),"_resolver",void 0),_defineProperty(_assertThisInitialized(_this13),"_themes",void 0),_defineProperty(_assertThisInitialized(_this13),"_langs",void 0),_defineProperty(_assertThisInitialized(_this13),"_alias",void 0),_defineProperty(_assertThisInitialized(_this13),"_resolvedThemes",new Map()),_defineProperty(_assertThisInitialized(_this13),"_resolvedGrammars",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langMap",new Map()),_defineProperty(_assertThisInitialized(_this13),"_langGraph",new Map()),_defineProperty(_assertThisInitialized(_this13),"_textmateThemeCache",new WeakMap()),_defineProperty(_assertThisInitialized(_this13),"_loadedThemesCache",null),_defineProperty(_assertThisInitialized(_this13),"_loadedLanguagesCache",null)),_this13._resolver=t,_this13._themes=e,_this13._langs=n,_this13._alias=i,e.forEach(function(t){return _this13.loadTheme(t);}),n.forEach(function(t){return _this13.loadLanguage(t);});return _this13;}_inherits(ni,_At);return _createClass(ni,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=ei(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=et.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e42=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e42.has(t))throw new le("Circular alias `".concat(Array.from(_e42).join(" -> ")," -> ").concat(t,"`"));_e42.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){var _this14=this;var e,n,i,_iterator37,_step37,_this$_syncRegistry,_this$_syncRegistry2,_t61;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:if(!this.getGrammar(t.name)){_context11.next=2;break;}return _context11.abrupt("return");case 2:e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);_context11.next=8;return this.loadGrammarWithConfiguration(t.scopeName,1,n);case 8:i=_context11.sent;if(!(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this14._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size)){_context11.next=31;break;}_iterator37=_createForOfIteratorHelper(e);_context11.prev=11;_iterator37.s();case 13:if((_step37=_iterator37.n()).done){_context11.next=23;break;}_t61=_step37.value;this._resolvedGrammars["delete"](_t61.name);this._loadedLanguagesCache=null;(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t61.scopeName);(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t61.scopeName);_context11.next=21;return this.loadLanguage(this._langMap.get(_t61.name));case 21:_context11.next=13;break;case 23:_context11.next=28;break;case 25:_context11.prev=25;_context11.t0=_context11["catch"](11);_iterator37.e(_context11.t0);case 28:_context11.prev=28;_iterator37.f();return _context11.finish(28);case 31:case"end":return _context11.stop();}},_callee10,this,[[11,25,28,31]]);}));function loadLanguage(_x18){return _loadLanguage.apply(this,arguments);}return loadLanguage;}()},{key:"init",value:function(){var _init=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _this15=this;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:this._themes.map(function(t){return _this15.loadTheme(t);});_context12.next=3;return this.loadLanguages(this._langs);case 3:case"end":return _context12.stop();}},_callee11,this);}));function init(){return _init.apply(this,arguments);}return init;}()},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(ni.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function(){var _loadLanguages=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){var _iterator38,_step38,_e45,e,n,_t62,_i37,_e43,_e43$_i,_t63,_n46,_i38,_e44,_e44$_i,_t64,_n47;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_iterator38=_createForOfIteratorHelper(t);try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){_e45=_step38.value;this.resolveEmbeddedLanguages(_e45);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(!n.length){_context13.next=6;break;}_t62=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new le("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t62.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));case 6:for(_i37=0,_e43=e;_i37<_e43.length;_i37++){_e43$_i=_slicedToArray(_e43[_i37],2),_t63=_e43$_i[0],_n46=_e43$_i[1];this._resolver.addLanguage(_n46);}_i38=0,_e44=e;case 8:if(!(_i38<_e44.length)){_context13.next=15;break;}_e44$_i=_slicedToArray(_e44[_i38],2),_t64=_e44$_i[0],_n47=_e44$_i[1];_context13.next=12;return this.loadLanguage(_n47);case 12:_i38++;_context13.next=8;break;case 15:case"end":return _context13.stop();}},_callee12,this);}));function loadLanguages(_x19){return _loadLanguages.apply(this,arguments);}return loadLanguages;}()},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator39=_createForOfIteratorHelper(t.embeddedLangs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e46=_step39.value;this._langGraph.set(_e46,this._langMap.get(_e46));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}}]);}(At);ii=/*#__PURE__*/function(){function ii(t,e){var _this16=this;_classCallCheck(this,ii);_defineProperty(this,"_langs",new Map());_defineProperty(this,"_scopeToLang",new Map());_defineProperty(this,"_injections",new Map());_defineProperty(this,"_onigLibPromise",void 0);this._onigLibPromise=t,e.forEach(function(t){return _this16.addLanguage(t);});}return _createClass(ii,[{key:"onigLib",get:function get(){return this._onigLibPromise;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function(){var _loadGrammar3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:return _context14.abrupt("return",this._scopeToLang.get(t));case 1:case"end":return _context14.stop();}},_callee13,this);}));function loadGrammar(_x20){return _loadGrammar3.apply(this,arguments);}return loadGrammar;}()},{key:"addLanguage",value:function addLanguage(t){var _this17=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this17._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this17._injections.get(e)||_this17._injections.set(e,[]),_this17._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t65=1;_t65<=e.length;_t65++){var i=e.slice(0,_t65).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();oi=0;ui=ai(a,m,c);_ci=ci(ui);mi=_ci.codeToHtml;pi=_ci.codeToHast;hi=_ci.codeToTokens;di=_ci.codeToTokensBase;fi=_ci.codeToTokensWithThemes;gi=_ci.getSingletonHighlighter;ji=_ci.getLastGrammarState;_export("N",yi=/*#__PURE__*/function(_o23){function yi(){var _this18;_classCallCheck(this,yi);_this18=_callSuper(this,yi,arguments),_this18.code="",_this18.language="javascript",_this18.theme="min-light",_this18.highlightedCode="";return _this18;}_inherits(yi,_o23);return _createClass(yi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(t){return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:_context23.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context23.t0){_context23.next=6;break;}_context23.next=4;return mi(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context23.sent;this.requestUpdate();case 6:case"end":return _context23.stop();}},_callee22,this);}));function updated(_x34){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],yi.prototype,"code",void 0),t([s({type:String,reflect:!0})],yi.prototype,"language",void 0),t([s({type:String,reflect:!0})],yi.prototype,"theme",void 0),t([n()],yi.prototype,"highlightedCode",void 0),_export("N",yi=t([i("nile-highlighter")],yi));}};});
|
2
2
|
//# sourceMappingURL=nile-highlighter.cjs.js.map
|