@shell-shock/preset-cli 0.9.11 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +16 -0
- package/dist/_virtual/_rolldown/runtime.mjs +42 -0
- package/dist/components/banner-builtin.cjs +3 -3
- package/dist/components/banner-builtin.mjs +3 -3
- package/dist/components/banner-builtin.mjs.map +1 -1
- package/dist/components/command-entry.cjs +1 -0
- package/dist/components/command-entry.mjs +1 -0
- package/dist/components/command-entry.mjs.map +1 -1
- package/dist/components/upgrade-builtin.cjs +1 -1
- package/dist/components/upgrade-builtin.mjs +1 -1
- package/dist/components/upgrade-builtin.mjs.map +1 -1
- package/dist/components/virtual-command-entry.cjs +1 -0
- package/dist/components/virtual-command-entry.mjs +1 -0
- package/dist/components/virtual-command-entry.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs +94 -0
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +167 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +167 -0
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +373 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +374 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +60 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +59 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +59 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +59 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +338 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +333 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +6 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +6 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +4095 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +4093 -0
- package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +449 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +450 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +47 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +48 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +78 -0
- package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +123 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +123 -0
- package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +246 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +244 -0
- package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +94 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +92 -0
- package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +3 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +9 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +205 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +189 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +19 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +61 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +43 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +44 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +488 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +489 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +148 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +149 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +51 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +52 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +126 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +127 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +217 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +218 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +274 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +274 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +107 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +108 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +36 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +72 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +53 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +53 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +158 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +140 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +141 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +139 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +140 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +81 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +82 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +13 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +14 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +55 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +55 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +64 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +45 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +49 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +35 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +82 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +83 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +84 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +85 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +42 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +42 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +26 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +74 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +75 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +21 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +17 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +74 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +74 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +57 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +57 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +18 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +18 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +175 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +175 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +19 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +15 -0
- package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +104 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +104 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +73 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +68 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +266 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +262 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +575 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +543 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +27 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +21 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +105 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +94 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +33 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +34 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +99 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +93 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +2544 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +2545 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +296 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +297 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +28 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +2069 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +2069 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +156 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +157 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +166 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +167 -0
- package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +299 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +295 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +25 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +21 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +6 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +15 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +17 -0
- package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -0
- package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/changelog-command.cjs +5 -4
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -3
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
- package/dist/{plugin-changelog → packages/plugin-changelog}/dist/index.cjs +1 -1
- package/dist/packages/unified/dist/html-DzncQodH.cjs +156 -0
- package/dist/packages/unified/dist/html-DzncQodH.mjs +157 -0
- package/dist/packages/unified/dist/html-DzncQodH.mjs.map +1 -0
- package/dist/packages/unified/dist/markdown/index.cjs +1 -0
- package/dist/packages/unified/dist/markdown/index.mjs +3 -0
- package/dist/packages/unified/dist/markdown-BiaU4FQg.cjs +82 -0
- package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs +83 -0
- package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs.map +1 -0
- package/package.json +35 -12
- package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs +0 -10
- package/dist/packages/unified/dist/markdown-Bs-BRrSC.mjs.map +0 -1
- package/dist/unified/dist/markdown-Bs-BRrSC.cjs +0 -10
- /package/dist/{plugin-changelog → packages/plugin-changelog}/dist/components/index.cjs +0 -0
package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
const require_html = require('../common/html.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js
|
|
4
|
+
const IMPLICIT_END_TAG_REQUIRED = new Set([
|
|
5
|
+
require_html.TAG_ID.DD,
|
|
6
|
+
require_html.TAG_ID.DT,
|
|
7
|
+
require_html.TAG_ID.LI,
|
|
8
|
+
require_html.TAG_ID.OPTGROUP,
|
|
9
|
+
require_html.TAG_ID.OPTION,
|
|
10
|
+
require_html.TAG_ID.P,
|
|
11
|
+
require_html.TAG_ID.RB,
|
|
12
|
+
require_html.TAG_ID.RP,
|
|
13
|
+
require_html.TAG_ID.RT,
|
|
14
|
+
require_html.TAG_ID.RTC
|
|
15
|
+
]);
|
|
16
|
+
const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([
|
|
17
|
+
...IMPLICIT_END_TAG_REQUIRED,
|
|
18
|
+
require_html.TAG_ID.CAPTION,
|
|
19
|
+
require_html.TAG_ID.COLGROUP,
|
|
20
|
+
require_html.TAG_ID.TBODY,
|
|
21
|
+
require_html.TAG_ID.TD,
|
|
22
|
+
require_html.TAG_ID.TFOOT,
|
|
23
|
+
require_html.TAG_ID.TH,
|
|
24
|
+
require_html.TAG_ID.THEAD,
|
|
25
|
+
require_html.TAG_ID.TR
|
|
26
|
+
]);
|
|
27
|
+
const SCOPING_ELEMENTS_HTML = new Set([
|
|
28
|
+
require_html.TAG_ID.APPLET,
|
|
29
|
+
require_html.TAG_ID.CAPTION,
|
|
30
|
+
require_html.TAG_ID.HTML,
|
|
31
|
+
require_html.TAG_ID.MARQUEE,
|
|
32
|
+
require_html.TAG_ID.OBJECT,
|
|
33
|
+
require_html.TAG_ID.TABLE,
|
|
34
|
+
require_html.TAG_ID.TD,
|
|
35
|
+
require_html.TAG_ID.TEMPLATE,
|
|
36
|
+
require_html.TAG_ID.TH
|
|
37
|
+
]);
|
|
38
|
+
const SCOPING_ELEMENTS_HTML_LIST = new Set([
|
|
39
|
+
...SCOPING_ELEMENTS_HTML,
|
|
40
|
+
require_html.TAG_ID.OL,
|
|
41
|
+
require_html.TAG_ID.UL
|
|
42
|
+
]);
|
|
43
|
+
const SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, require_html.TAG_ID.BUTTON]);
|
|
44
|
+
const SCOPING_ELEMENTS_MATHML = new Set([
|
|
45
|
+
require_html.TAG_ID.ANNOTATION_XML,
|
|
46
|
+
require_html.TAG_ID.MI,
|
|
47
|
+
require_html.TAG_ID.MN,
|
|
48
|
+
require_html.TAG_ID.MO,
|
|
49
|
+
require_html.TAG_ID.MS,
|
|
50
|
+
require_html.TAG_ID.MTEXT
|
|
51
|
+
]);
|
|
52
|
+
const SCOPING_ELEMENTS_SVG = new Set([
|
|
53
|
+
require_html.TAG_ID.DESC,
|
|
54
|
+
require_html.TAG_ID.FOREIGN_OBJECT,
|
|
55
|
+
require_html.TAG_ID.TITLE
|
|
56
|
+
]);
|
|
57
|
+
const TABLE_ROW_CONTEXT = new Set([
|
|
58
|
+
require_html.TAG_ID.TR,
|
|
59
|
+
require_html.TAG_ID.TEMPLATE,
|
|
60
|
+
require_html.TAG_ID.HTML
|
|
61
|
+
]);
|
|
62
|
+
const TABLE_BODY_CONTEXT = new Set([
|
|
63
|
+
require_html.TAG_ID.TBODY,
|
|
64
|
+
require_html.TAG_ID.TFOOT,
|
|
65
|
+
require_html.TAG_ID.THEAD,
|
|
66
|
+
require_html.TAG_ID.TEMPLATE,
|
|
67
|
+
require_html.TAG_ID.HTML
|
|
68
|
+
]);
|
|
69
|
+
const TABLE_CONTEXT = new Set([
|
|
70
|
+
require_html.TAG_ID.TABLE,
|
|
71
|
+
require_html.TAG_ID.TEMPLATE,
|
|
72
|
+
require_html.TAG_ID.HTML
|
|
73
|
+
]);
|
|
74
|
+
const TABLE_CELLS = new Set([require_html.TAG_ID.TD, require_html.TAG_ID.TH]);
|
|
75
|
+
var OpenElementStack = class {
|
|
76
|
+
get currentTmplContentOrNode() {
|
|
77
|
+
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
78
|
+
}
|
|
79
|
+
constructor(document, treeAdapter, handler) {
|
|
80
|
+
this.treeAdapter = treeAdapter;
|
|
81
|
+
this.handler = handler;
|
|
82
|
+
this.items = [];
|
|
83
|
+
this.tagIDs = [];
|
|
84
|
+
this.stackTop = -1;
|
|
85
|
+
this.tmplCount = 0;
|
|
86
|
+
this.currentTagId = require_html.TAG_ID.UNKNOWN;
|
|
87
|
+
this.current = document;
|
|
88
|
+
}
|
|
89
|
+
_indexOf(element) {
|
|
90
|
+
return this.items.lastIndexOf(element, this.stackTop);
|
|
91
|
+
}
|
|
92
|
+
_isInTemplate() {
|
|
93
|
+
return this.currentTagId === require_html.TAG_ID.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === require_html.NS.HTML;
|
|
94
|
+
}
|
|
95
|
+
_updateCurrentElement() {
|
|
96
|
+
this.current = this.items[this.stackTop];
|
|
97
|
+
this.currentTagId = this.tagIDs[this.stackTop];
|
|
98
|
+
}
|
|
99
|
+
push(element, tagID) {
|
|
100
|
+
this.stackTop++;
|
|
101
|
+
this.items[this.stackTop] = element;
|
|
102
|
+
this.current = element;
|
|
103
|
+
this.tagIDs[this.stackTop] = tagID;
|
|
104
|
+
this.currentTagId = tagID;
|
|
105
|
+
if (this._isInTemplate()) this.tmplCount++;
|
|
106
|
+
this.handler.onItemPush(element, tagID, true);
|
|
107
|
+
}
|
|
108
|
+
pop() {
|
|
109
|
+
const popped = this.current;
|
|
110
|
+
if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount--;
|
|
111
|
+
this.stackTop--;
|
|
112
|
+
this._updateCurrentElement();
|
|
113
|
+
this.handler.onItemPop(popped, true);
|
|
114
|
+
}
|
|
115
|
+
replace(oldElement, newElement) {
|
|
116
|
+
const idx = this._indexOf(oldElement);
|
|
117
|
+
this.items[idx] = newElement;
|
|
118
|
+
if (idx === this.stackTop) this.current = newElement;
|
|
119
|
+
}
|
|
120
|
+
insertAfter(referenceElement, newElement, newElementID) {
|
|
121
|
+
const insertionIdx = this._indexOf(referenceElement) + 1;
|
|
122
|
+
this.items.splice(insertionIdx, 0, newElement);
|
|
123
|
+
this.tagIDs.splice(insertionIdx, 0, newElementID);
|
|
124
|
+
this.stackTop++;
|
|
125
|
+
if (insertionIdx === this.stackTop) this._updateCurrentElement();
|
|
126
|
+
if (this.current && this.currentTagId !== void 0) this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);
|
|
127
|
+
}
|
|
128
|
+
popUntilTagNamePopped(tagName) {
|
|
129
|
+
let targetIdx = this.stackTop + 1;
|
|
130
|
+
do
|
|
131
|
+
targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);
|
|
132
|
+
while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== require_html.NS.HTML);
|
|
133
|
+
this.shortenToLength(Math.max(targetIdx, 0));
|
|
134
|
+
}
|
|
135
|
+
shortenToLength(idx) {
|
|
136
|
+
while (this.stackTop >= idx) {
|
|
137
|
+
const popped = this.current;
|
|
138
|
+
if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount -= 1;
|
|
139
|
+
this.stackTop--;
|
|
140
|
+
this._updateCurrentElement();
|
|
141
|
+
this.handler.onItemPop(popped, this.stackTop < idx);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
popUntilElementPopped(element) {
|
|
145
|
+
const idx = this._indexOf(element);
|
|
146
|
+
this.shortenToLength(Math.max(idx, 0));
|
|
147
|
+
}
|
|
148
|
+
popUntilPopped(tagNames, targetNS) {
|
|
149
|
+
const idx = this._indexOfTagNames(tagNames, targetNS);
|
|
150
|
+
this.shortenToLength(Math.max(idx, 0));
|
|
151
|
+
}
|
|
152
|
+
popUntilNumberedHeaderPopped() {
|
|
153
|
+
this.popUntilPopped(require_html.NUMBERED_HEADERS, require_html.NS.HTML);
|
|
154
|
+
}
|
|
155
|
+
popUntilTableCellPopped() {
|
|
156
|
+
this.popUntilPopped(TABLE_CELLS, require_html.NS.HTML);
|
|
157
|
+
}
|
|
158
|
+
popAllUpToHtmlElement() {
|
|
159
|
+
this.tmplCount = 0;
|
|
160
|
+
this.shortenToLength(1);
|
|
161
|
+
}
|
|
162
|
+
_indexOfTagNames(tagNames, namespace) {
|
|
163
|
+
for (let i = this.stackTop; i >= 0; i--) if (tagNames.has(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) return i;
|
|
164
|
+
return -1;
|
|
165
|
+
}
|
|
166
|
+
clearBackTo(tagNames, targetNS) {
|
|
167
|
+
const idx = this._indexOfTagNames(tagNames, targetNS);
|
|
168
|
+
this.shortenToLength(idx + 1);
|
|
169
|
+
}
|
|
170
|
+
clearBackToTableContext() {
|
|
171
|
+
this.clearBackTo(TABLE_CONTEXT, require_html.NS.HTML);
|
|
172
|
+
}
|
|
173
|
+
clearBackToTableBodyContext() {
|
|
174
|
+
this.clearBackTo(TABLE_BODY_CONTEXT, require_html.NS.HTML);
|
|
175
|
+
}
|
|
176
|
+
clearBackToTableRowContext() {
|
|
177
|
+
this.clearBackTo(TABLE_ROW_CONTEXT, require_html.NS.HTML);
|
|
178
|
+
}
|
|
179
|
+
remove(element) {
|
|
180
|
+
const idx = this._indexOf(element);
|
|
181
|
+
if (idx >= 0) if (idx === this.stackTop) this.pop();
|
|
182
|
+
else {
|
|
183
|
+
this.items.splice(idx, 1);
|
|
184
|
+
this.tagIDs.splice(idx, 1);
|
|
185
|
+
this.stackTop--;
|
|
186
|
+
this._updateCurrentElement();
|
|
187
|
+
this.handler.onItemPop(element, false);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
tryPeekProperlyNestedBodyElement() {
|
|
191
|
+
return this.stackTop >= 1 && this.tagIDs[1] === require_html.TAG_ID.BODY ? this.items[1] : null;
|
|
192
|
+
}
|
|
193
|
+
contains(element) {
|
|
194
|
+
return this._indexOf(element) > -1;
|
|
195
|
+
}
|
|
196
|
+
getCommonAncestor(element) {
|
|
197
|
+
const elementIdx = this._indexOf(element) - 1;
|
|
198
|
+
return elementIdx >= 0 ? this.items[elementIdx] : null;
|
|
199
|
+
}
|
|
200
|
+
isRootHtmlElementCurrent() {
|
|
201
|
+
return this.stackTop === 0 && this.tagIDs[0] === require_html.TAG_ID.HTML;
|
|
202
|
+
}
|
|
203
|
+
hasInDynamicScope(tagName, htmlScope) {
|
|
204
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
205
|
+
const tn = this.tagIDs[i];
|
|
206
|
+
switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
|
|
207
|
+
case require_html.NS.HTML:
|
|
208
|
+
if (tn === tagName) return true;
|
|
209
|
+
if (htmlScope.has(tn)) return false;
|
|
210
|
+
break;
|
|
211
|
+
case require_html.NS.SVG:
|
|
212
|
+
if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
|
|
213
|
+
break;
|
|
214
|
+
case require_html.NS.MATHML:
|
|
215
|
+
if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
221
|
+
hasInScope(tagName) {
|
|
222
|
+
return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);
|
|
223
|
+
}
|
|
224
|
+
hasInListItemScope(tagName) {
|
|
225
|
+
return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);
|
|
226
|
+
}
|
|
227
|
+
hasInButtonScope(tagName) {
|
|
228
|
+
return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);
|
|
229
|
+
}
|
|
230
|
+
hasNumberedHeaderInScope() {
|
|
231
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
232
|
+
const tn = this.tagIDs[i];
|
|
233
|
+
switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
|
|
234
|
+
case require_html.NS.HTML:
|
|
235
|
+
if (require_html.NUMBERED_HEADERS.has(tn)) return true;
|
|
236
|
+
if (SCOPING_ELEMENTS_HTML.has(tn)) return false;
|
|
237
|
+
break;
|
|
238
|
+
case require_html.NS.SVG:
|
|
239
|
+
if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
|
|
240
|
+
break;
|
|
241
|
+
case require_html.NS.MATHML:
|
|
242
|
+
if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return true;
|
|
247
|
+
}
|
|
248
|
+
hasInTableScope(tagName) {
|
|
249
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
250
|
+
if (this.treeAdapter.getNamespaceURI(this.items[i]) !== require_html.NS.HTML) continue;
|
|
251
|
+
switch (this.tagIDs[i]) {
|
|
252
|
+
case tagName: return true;
|
|
253
|
+
case require_html.TAG_ID.TABLE:
|
|
254
|
+
case require_html.TAG_ID.HTML: return false;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
hasTableBodyContextInTableScope() {
|
|
260
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
261
|
+
if (this.treeAdapter.getNamespaceURI(this.items[i]) !== require_html.NS.HTML) continue;
|
|
262
|
+
switch (this.tagIDs[i]) {
|
|
263
|
+
case require_html.TAG_ID.TBODY:
|
|
264
|
+
case require_html.TAG_ID.THEAD:
|
|
265
|
+
case require_html.TAG_ID.TFOOT: return true;
|
|
266
|
+
case require_html.TAG_ID.TABLE:
|
|
267
|
+
case require_html.TAG_ID.HTML: return false;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return true;
|
|
271
|
+
}
|
|
272
|
+
hasInSelectScope(tagName) {
|
|
273
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
274
|
+
if (this.treeAdapter.getNamespaceURI(this.items[i]) !== require_html.NS.HTML) continue;
|
|
275
|
+
switch (this.tagIDs[i]) {
|
|
276
|
+
case tagName: return true;
|
|
277
|
+
case require_html.TAG_ID.OPTION:
|
|
278
|
+
case require_html.TAG_ID.OPTGROUP: break;
|
|
279
|
+
default: return false;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
generateImpliedEndTags() {
|
|
285
|
+
while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) this.pop();
|
|
286
|
+
}
|
|
287
|
+
generateImpliedEndTagsThoroughly() {
|
|
288
|
+
while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
|
|
289
|
+
}
|
|
290
|
+
generateImpliedEndTagsWithExclusion(exclusionId) {
|
|
291
|
+
while (this.currentTagId !== void 0 && this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
//#endregion
|
|
296
|
+
exports.OpenElementStack = OpenElementStack;
|
package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { NS, NUMBERED_HEADERS, TAG_ID } from "../common/html.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js
|
|
4
|
+
const IMPLICIT_END_TAG_REQUIRED = new Set([
|
|
5
|
+
TAG_ID.DD,
|
|
6
|
+
TAG_ID.DT,
|
|
7
|
+
TAG_ID.LI,
|
|
8
|
+
TAG_ID.OPTGROUP,
|
|
9
|
+
TAG_ID.OPTION,
|
|
10
|
+
TAG_ID.P,
|
|
11
|
+
TAG_ID.RB,
|
|
12
|
+
TAG_ID.RP,
|
|
13
|
+
TAG_ID.RT,
|
|
14
|
+
TAG_ID.RTC
|
|
15
|
+
]);
|
|
16
|
+
const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([
|
|
17
|
+
...IMPLICIT_END_TAG_REQUIRED,
|
|
18
|
+
TAG_ID.CAPTION,
|
|
19
|
+
TAG_ID.COLGROUP,
|
|
20
|
+
TAG_ID.TBODY,
|
|
21
|
+
TAG_ID.TD,
|
|
22
|
+
TAG_ID.TFOOT,
|
|
23
|
+
TAG_ID.TH,
|
|
24
|
+
TAG_ID.THEAD,
|
|
25
|
+
TAG_ID.TR
|
|
26
|
+
]);
|
|
27
|
+
const SCOPING_ELEMENTS_HTML = new Set([
|
|
28
|
+
TAG_ID.APPLET,
|
|
29
|
+
TAG_ID.CAPTION,
|
|
30
|
+
TAG_ID.HTML,
|
|
31
|
+
TAG_ID.MARQUEE,
|
|
32
|
+
TAG_ID.OBJECT,
|
|
33
|
+
TAG_ID.TABLE,
|
|
34
|
+
TAG_ID.TD,
|
|
35
|
+
TAG_ID.TEMPLATE,
|
|
36
|
+
TAG_ID.TH
|
|
37
|
+
]);
|
|
38
|
+
const SCOPING_ELEMENTS_HTML_LIST = new Set([
|
|
39
|
+
...SCOPING_ELEMENTS_HTML,
|
|
40
|
+
TAG_ID.OL,
|
|
41
|
+
TAG_ID.UL
|
|
42
|
+
]);
|
|
43
|
+
const SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, TAG_ID.BUTTON]);
|
|
44
|
+
const SCOPING_ELEMENTS_MATHML = new Set([
|
|
45
|
+
TAG_ID.ANNOTATION_XML,
|
|
46
|
+
TAG_ID.MI,
|
|
47
|
+
TAG_ID.MN,
|
|
48
|
+
TAG_ID.MO,
|
|
49
|
+
TAG_ID.MS,
|
|
50
|
+
TAG_ID.MTEXT
|
|
51
|
+
]);
|
|
52
|
+
const SCOPING_ELEMENTS_SVG = new Set([
|
|
53
|
+
TAG_ID.DESC,
|
|
54
|
+
TAG_ID.FOREIGN_OBJECT,
|
|
55
|
+
TAG_ID.TITLE
|
|
56
|
+
]);
|
|
57
|
+
const TABLE_ROW_CONTEXT = new Set([
|
|
58
|
+
TAG_ID.TR,
|
|
59
|
+
TAG_ID.TEMPLATE,
|
|
60
|
+
TAG_ID.HTML
|
|
61
|
+
]);
|
|
62
|
+
const TABLE_BODY_CONTEXT = new Set([
|
|
63
|
+
TAG_ID.TBODY,
|
|
64
|
+
TAG_ID.TFOOT,
|
|
65
|
+
TAG_ID.THEAD,
|
|
66
|
+
TAG_ID.TEMPLATE,
|
|
67
|
+
TAG_ID.HTML
|
|
68
|
+
]);
|
|
69
|
+
const TABLE_CONTEXT = new Set([
|
|
70
|
+
TAG_ID.TABLE,
|
|
71
|
+
TAG_ID.TEMPLATE,
|
|
72
|
+
TAG_ID.HTML
|
|
73
|
+
]);
|
|
74
|
+
const TABLE_CELLS = new Set([TAG_ID.TD, TAG_ID.TH]);
|
|
75
|
+
var OpenElementStack = class {
|
|
76
|
+
get currentTmplContentOrNode() {
|
|
77
|
+
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
78
|
+
}
|
|
79
|
+
constructor(document, treeAdapter, handler) {
|
|
80
|
+
this.treeAdapter = treeAdapter;
|
|
81
|
+
this.handler = handler;
|
|
82
|
+
this.items = [];
|
|
83
|
+
this.tagIDs = [];
|
|
84
|
+
this.stackTop = -1;
|
|
85
|
+
this.tmplCount = 0;
|
|
86
|
+
this.currentTagId = TAG_ID.UNKNOWN;
|
|
87
|
+
this.current = document;
|
|
88
|
+
}
|
|
89
|
+
_indexOf(element) {
|
|
90
|
+
return this.items.lastIndexOf(element, this.stackTop);
|
|
91
|
+
}
|
|
92
|
+
_isInTemplate() {
|
|
93
|
+
return this.currentTagId === TAG_ID.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;
|
|
94
|
+
}
|
|
95
|
+
_updateCurrentElement() {
|
|
96
|
+
this.current = this.items[this.stackTop];
|
|
97
|
+
this.currentTagId = this.tagIDs[this.stackTop];
|
|
98
|
+
}
|
|
99
|
+
push(element, tagID) {
|
|
100
|
+
this.stackTop++;
|
|
101
|
+
this.items[this.stackTop] = element;
|
|
102
|
+
this.current = element;
|
|
103
|
+
this.tagIDs[this.stackTop] = tagID;
|
|
104
|
+
this.currentTagId = tagID;
|
|
105
|
+
if (this._isInTemplate()) this.tmplCount++;
|
|
106
|
+
this.handler.onItemPush(element, tagID, true);
|
|
107
|
+
}
|
|
108
|
+
pop() {
|
|
109
|
+
const popped = this.current;
|
|
110
|
+
if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount--;
|
|
111
|
+
this.stackTop--;
|
|
112
|
+
this._updateCurrentElement();
|
|
113
|
+
this.handler.onItemPop(popped, true);
|
|
114
|
+
}
|
|
115
|
+
replace(oldElement, newElement) {
|
|
116
|
+
const idx = this._indexOf(oldElement);
|
|
117
|
+
this.items[idx] = newElement;
|
|
118
|
+
if (idx === this.stackTop) this.current = newElement;
|
|
119
|
+
}
|
|
120
|
+
insertAfter(referenceElement, newElement, newElementID) {
|
|
121
|
+
const insertionIdx = this._indexOf(referenceElement) + 1;
|
|
122
|
+
this.items.splice(insertionIdx, 0, newElement);
|
|
123
|
+
this.tagIDs.splice(insertionIdx, 0, newElementID);
|
|
124
|
+
this.stackTop++;
|
|
125
|
+
if (insertionIdx === this.stackTop) this._updateCurrentElement();
|
|
126
|
+
if (this.current && this.currentTagId !== void 0) this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);
|
|
127
|
+
}
|
|
128
|
+
popUntilTagNamePopped(tagName) {
|
|
129
|
+
let targetIdx = this.stackTop + 1;
|
|
130
|
+
do
|
|
131
|
+
targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);
|
|
132
|
+
while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);
|
|
133
|
+
this.shortenToLength(Math.max(targetIdx, 0));
|
|
134
|
+
}
|
|
135
|
+
shortenToLength(idx) {
|
|
136
|
+
while (this.stackTop >= idx) {
|
|
137
|
+
const popped = this.current;
|
|
138
|
+
if (this.tmplCount > 0 && this._isInTemplate()) this.tmplCount -= 1;
|
|
139
|
+
this.stackTop--;
|
|
140
|
+
this._updateCurrentElement();
|
|
141
|
+
this.handler.onItemPop(popped, this.stackTop < idx);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
popUntilElementPopped(element) {
|
|
145
|
+
const idx = this._indexOf(element);
|
|
146
|
+
this.shortenToLength(Math.max(idx, 0));
|
|
147
|
+
}
|
|
148
|
+
popUntilPopped(tagNames, targetNS) {
|
|
149
|
+
const idx = this._indexOfTagNames(tagNames, targetNS);
|
|
150
|
+
this.shortenToLength(Math.max(idx, 0));
|
|
151
|
+
}
|
|
152
|
+
popUntilNumberedHeaderPopped() {
|
|
153
|
+
this.popUntilPopped(NUMBERED_HEADERS, NS.HTML);
|
|
154
|
+
}
|
|
155
|
+
popUntilTableCellPopped() {
|
|
156
|
+
this.popUntilPopped(TABLE_CELLS, NS.HTML);
|
|
157
|
+
}
|
|
158
|
+
popAllUpToHtmlElement() {
|
|
159
|
+
this.tmplCount = 0;
|
|
160
|
+
this.shortenToLength(1);
|
|
161
|
+
}
|
|
162
|
+
_indexOfTagNames(tagNames, namespace) {
|
|
163
|
+
for (let i = this.stackTop; i >= 0; i--) if (tagNames.has(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) return i;
|
|
164
|
+
return -1;
|
|
165
|
+
}
|
|
166
|
+
clearBackTo(tagNames, targetNS) {
|
|
167
|
+
const idx = this._indexOfTagNames(tagNames, targetNS);
|
|
168
|
+
this.shortenToLength(idx + 1);
|
|
169
|
+
}
|
|
170
|
+
clearBackToTableContext() {
|
|
171
|
+
this.clearBackTo(TABLE_CONTEXT, NS.HTML);
|
|
172
|
+
}
|
|
173
|
+
clearBackToTableBodyContext() {
|
|
174
|
+
this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);
|
|
175
|
+
}
|
|
176
|
+
clearBackToTableRowContext() {
|
|
177
|
+
this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);
|
|
178
|
+
}
|
|
179
|
+
remove(element) {
|
|
180
|
+
const idx = this._indexOf(element);
|
|
181
|
+
if (idx >= 0) if (idx === this.stackTop) this.pop();
|
|
182
|
+
else {
|
|
183
|
+
this.items.splice(idx, 1);
|
|
184
|
+
this.tagIDs.splice(idx, 1);
|
|
185
|
+
this.stackTop--;
|
|
186
|
+
this._updateCurrentElement();
|
|
187
|
+
this.handler.onItemPop(element, false);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
tryPeekProperlyNestedBodyElement() {
|
|
191
|
+
return this.stackTop >= 1 && this.tagIDs[1] === TAG_ID.BODY ? this.items[1] : null;
|
|
192
|
+
}
|
|
193
|
+
contains(element) {
|
|
194
|
+
return this._indexOf(element) > -1;
|
|
195
|
+
}
|
|
196
|
+
getCommonAncestor(element) {
|
|
197
|
+
const elementIdx = this._indexOf(element) - 1;
|
|
198
|
+
return elementIdx >= 0 ? this.items[elementIdx] : null;
|
|
199
|
+
}
|
|
200
|
+
isRootHtmlElementCurrent() {
|
|
201
|
+
return this.stackTop === 0 && this.tagIDs[0] === TAG_ID.HTML;
|
|
202
|
+
}
|
|
203
|
+
hasInDynamicScope(tagName, htmlScope) {
|
|
204
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
205
|
+
const tn = this.tagIDs[i];
|
|
206
|
+
switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
|
|
207
|
+
case NS.HTML:
|
|
208
|
+
if (tn === tagName) return true;
|
|
209
|
+
if (htmlScope.has(tn)) return false;
|
|
210
|
+
break;
|
|
211
|
+
case NS.SVG:
|
|
212
|
+
if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
|
|
213
|
+
break;
|
|
214
|
+
case NS.MATHML:
|
|
215
|
+
if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
221
|
+
hasInScope(tagName) {
|
|
222
|
+
return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);
|
|
223
|
+
}
|
|
224
|
+
hasInListItemScope(tagName) {
|
|
225
|
+
return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);
|
|
226
|
+
}
|
|
227
|
+
hasInButtonScope(tagName) {
|
|
228
|
+
return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);
|
|
229
|
+
}
|
|
230
|
+
hasNumberedHeaderInScope() {
|
|
231
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
232
|
+
const tn = this.tagIDs[i];
|
|
233
|
+
switch (this.treeAdapter.getNamespaceURI(this.items[i])) {
|
|
234
|
+
case NS.HTML:
|
|
235
|
+
if (NUMBERED_HEADERS.has(tn)) return true;
|
|
236
|
+
if (SCOPING_ELEMENTS_HTML.has(tn)) return false;
|
|
237
|
+
break;
|
|
238
|
+
case NS.SVG:
|
|
239
|
+
if (SCOPING_ELEMENTS_SVG.has(tn)) return false;
|
|
240
|
+
break;
|
|
241
|
+
case NS.MATHML:
|
|
242
|
+
if (SCOPING_ELEMENTS_MATHML.has(tn)) return false;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return true;
|
|
247
|
+
}
|
|
248
|
+
hasInTableScope(tagName) {
|
|
249
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
250
|
+
if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) continue;
|
|
251
|
+
switch (this.tagIDs[i]) {
|
|
252
|
+
case tagName: return true;
|
|
253
|
+
case TAG_ID.TABLE:
|
|
254
|
+
case TAG_ID.HTML: return false;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
hasTableBodyContextInTableScope() {
|
|
260
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
261
|
+
if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) continue;
|
|
262
|
+
switch (this.tagIDs[i]) {
|
|
263
|
+
case TAG_ID.TBODY:
|
|
264
|
+
case TAG_ID.THEAD:
|
|
265
|
+
case TAG_ID.TFOOT: return true;
|
|
266
|
+
case TAG_ID.TABLE:
|
|
267
|
+
case TAG_ID.HTML: return false;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return true;
|
|
271
|
+
}
|
|
272
|
+
hasInSelectScope(tagName) {
|
|
273
|
+
for (let i = this.stackTop; i >= 0; i--) {
|
|
274
|
+
if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) continue;
|
|
275
|
+
switch (this.tagIDs[i]) {
|
|
276
|
+
case tagName: return true;
|
|
277
|
+
case TAG_ID.OPTION:
|
|
278
|
+
case TAG_ID.OPTGROUP: break;
|
|
279
|
+
default: return false;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
generateImpliedEndTags() {
|
|
285
|
+
while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) this.pop();
|
|
286
|
+
}
|
|
287
|
+
generateImpliedEndTagsThoroughly() {
|
|
288
|
+
while (this.currentTagId !== void 0 && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
|
|
289
|
+
}
|
|
290
|
+
generateImpliedEndTagsWithExclusion(exclusionId) {
|
|
291
|
+
while (this.currentTagId !== void 0 && this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) this.pop();
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
//#endregion
|
|
296
|
+
export { OpenElementStack };
|
|
297
|
+
//# sourceMappingURL=open-element-stack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-element-stack.mjs","names":["$"],"sources":["../../../../../../../../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js"],"sourcesContent":["import { TAG_ID as $, NS, NUMBERED_HEADERS } from '../common/html.js';\n//Element utils\nconst IMPLICIT_END_TAG_REQUIRED = new Set([$.DD, $.DT, $.LI, $.OPTGROUP, $.OPTION, $.P, $.RB, $.RP, $.RT, $.RTC]);\nconst IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([\n ...IMPLICIT_END_TAG_REQUIRED,\n $.CAPTION,\n $.COLGROUP,\n $.TBODY,\n $.TD,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TR,\n]);\nconst SCOPING_ELEMENTS_HTML = new Set([\n $.APPLET,\n $.CAPTION,\n $.HTML,\n $.MARQUEE,\n $.OBJECT,\n $.TABLE,\n $.TD,\n $.TEMPLATE,\n $.TH,\n]);\nconst SCOPING_ELEMENTS_HTML_LIST = new Set([...SCOPING_ELEMENTS_HTML, $.OL, $.UL]);\nconst SCOPING_ELEMENTS_HTML_BUTTON = new Set([...SCOPING_ELEMENTS_HTML, $.BUTTON]);\nconst SCOPING_ELEMENTS_MATHML = new Set([$.ANNOTATION_XML, $.MI, $.MN, $.MO, $.MS, $.MTEXT]);\nconst SCOPING_ELEMENTS_SVG = new Set([$.DESC, $.FOREIGN_OBJECT, $.TITLE]);\nconst TABLE_ROW_CONTEXT = new Set([$.TR, $.TEMPLATE, $.HTML]);\nconst TABLE_BODY_CONTEXT = new Set([$.TBODY, $.TFOOT, $.THEAD, $.TEMPLATE, $.HTML]);\nconst TABLE_CONTEXT = new Set([$.TABLE, $.TEMPLATE, $.HTML]);\nconst TABLE_CELLS = new Set([$.TD, $.TH]);\n//Stack of open elements\nexport class OpenElementStack {\n get currentTmplContentOrNode() {\n return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;\n }\n constructor(document, treeAdapter, handler) {\n this.treeAdapter = treeAdapter;\n this.handler = handler;\n this.items = [];\n this.tagIDs = [];\n this.stackTop = -1;\n this.tmplCount = 0;\n this.currentTagId = $.UNKNOWN;\n this.current = document;\n }\n //Index of element\n _indexOf(element) {\n return this.items.lastIndexOf(element, this.stackTop);\n }\n //Update current element\n _isInTemplate() {\n return this.currentTagId === $.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;\n }\n _updateCurrentElement() {\n this.current = this.items[this.stackTop];\n this.currentTagId = this.tagIDs[this.stackTop];\n }\n //Mutations\n push(element, tagID) {\n this.stackTop++;\n this.items[this.stackTop] = element;\n this.current = element;\n this.tagIDs[this.stackTop] = tagID;\n this.currentTagId = tagID;\n if (this._isInTemplate()) {\n this.tmplCount++;\n }\n this.handler.onItemPush(element, tagID, true);\n }\n pop() {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount--;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, true);\n }\n replace(oldElement, newElement) {\n const idx = this._indexOf(oldElement);\n this.items[idx] = newElement;\n if (idx === this.stackTop) {\n this.current = newElement;\n }\n }\n insertAfter(referenceElement, newElement, newElementID) {\n const insertionIdx = this._indexOf(referenceElement) + 1;\n this.items.splice(insertionIdx, 0, newElement);\n this.tagIDs.splice(insertionIdx, 0, newElementID);\n this.stackTop++;\n if (insertionIdx === this.stackTop) {\n this._updateCurrentElement();\n }\n if (this.current && this.currentTagId !== undefined) {\n this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);\n }\n }\n popUntilTagNamePopped(tagName) {\n let targetIdx = this.stackTop + 1;\n do {\n targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);\n } while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);\n this.shortenToLength(Math.max(targetIdx, 0));\n }\n shortenToLength(idx) {\n while (this.stackTop >= idx) {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount -= 1;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, this.stackTop < idx);\n }\n }\n popUntilElementPopped(element) {\n const idx = this._indexOf(element);\n this.shortenToLength(Math.max(idx, 0));\n }\n popUntilPopped(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(Math.max(idx, 0));\n }\n popUntilNumberedHeaderPopped() {\n this.popUntilPopped(NUMBERED_HEADERS, NS.HTML);\n }\n popUntilTableCellPopped() {\n this.popUntilPopped(TABLE_CELLS, NS.HTML);\n }\n popAllUpToHtmlElement() {\n //NOTE: here we assume that the root <html> element is always first in the open element stack, so\n //we perform this fast stack clean up.\n this.tmplCount = 0;\n this.shortenToLength(1);\n }\n _indexOfTagNames(tagNames, namespace) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (tagNames.has(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) {\n return i;\n }\n }\n return -1;\n }\n clearBackTo(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx + 1);\n }\n clearBackToTableContext() {\n this.clearBackTo(TABLE_CONTEXT, NS.HTML);\n }\n clearBackToTableBodyContext() {\n this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);\n }\n clearBackToTableRowContext() {\n this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);\n }\n remove(element) {\n const idx = this._indexOf(element);\n if (idx >= 0) {\n if (idx === this.stackTop) {\n this.pop();\n }\n else {\n this.items.splice(idx, 1);\n this.tagIDs.splice(idx, 1);\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(element, false);\n }\n }\n }\n //Search\n tryPeekProperlyNestedBodyElement() {\n //Properly nested <body> element (should be second element in stack).\n return this.stackTop >= 1 && this.tagIDs[1] === $.BODY ? this.items[1] : null;\n }\n contains(element) {\n return this._indexOf(element) > -1;\n }\n getCommonAncestor(element) {\n const elementIdx = this._indexOf(element) - 1;\n return elementIdx >= 0 ? this.items[elementIdx] : null;\n }\n isRootHtmlElementCurrent() {\n return this.stackTop === 0 && this.tagIDs[0] === $.HTML;\n }\n //Element in scope\n hasInDynamicScope(tagName, htmlScope) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n switch (this.treeAdapter.getNamespaceURI(this.items[i])) {\n case NS.HTML: {\n if (tn === tagName)\n return true;\n if (htmlScope.has(tn))\n return false;\n break;\n }\n case NS.SVG: {\n if (SCOPING_ELEMENTS_SVG.has(tn))\n return false;\n break;\n }\n case NS.MATHML: {\n if (SCOPING_ELEMENTS_MATHML.has(tn))\n return false;\n break;\n }\n }\n }\n return true;\n }\n hasInScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML);\n }\n hasInListItemScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_LIST);\n }\n hasInButtonScope(tagName) {\n return this.hasInDynamicScope(tagName, SCOPING_ELEMENTS_HTML_BUTTON);\n }\n hasNumberedHeaderInScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n switch (this.treeAdapter.getNamespaceURI(this.items[i])) {\n case NS.HTML: {\n if (NUMBERED_HEADERS.has(tn))\n return true;\n if (SCOPING_ELEMENTS_HTML.has(tn))\n return false;\n break;\n }\n case NS.SVG: {\n if (SCOPING_ELEMENTS_SVG.has(tn))\n return false;\n break;\n }\n case NS.MATHML: {\n if (SCOPING_ELEMENTS_MATHML.has(tn))\n return false;\n break;\n }\n }\n }\n return true;\n }\n hasInTableScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case tagName: {\n return true;\n }\n case $.TABLE:\n case $.HTML: {\n return false;\n }\n }\n }\n return true;\n }\n hasTableBodyContextInTableScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case $.TBODY:\n case $.THEAD:\n case $.TFOOT: {\n return true;\n }\n case $.TABLE:\n case $.HTML: {\n return false;\n }\n }\n }\n return true;\n }\n hasInSelectScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (this.treeAdapter.getNamespaceURI(this.items[i]) !== NS.HTML) {\n continue;\n }\n switch (this.tagIDs[i]) {\n case tagName: {\n return true;\n }\n case $.OPTION:\n case $.OPTGROUP: {\n break;\n }\n default: {\n return false;\n }\n }\n }\n return true;\n }\n //Implied end tags\n generateImpliedEndTags() {\n while (this.currentTagId !== undefined && IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsThoroughly() {\n while (this.currentTagId !== undefined && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsWithExclusion(exclusionId) {\n while (this.currentTagId !== undefined &&\n this.currentTagId !== exclusionId &&\n IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,MAAM,4BAA4B,IAAI,IAAI;CAACA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAUA,OAAE;CAAQA,OAAE;CAAGA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAI,CAAC;AACjH,MAAM,uCAAuC,IAAI,IAAI;CACjD,GAAG;CACHA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACL,CAAC;AACF,MAAM,wBAAwB,IAAI,IAAI;CAClCA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACFA,OAAE;CACL,CAAC;AACF,MAAM,6BAA6B,IAAI,IAAI;CAAC,GAAG;CAAuBA,OAAE;CAAIA,OAAE;CAAG,CAAC;AAClF,MAAM,+BAA+B,IAAI,IAAI,CAAC,GAAG,uBAAuBA,OAAE,OAAO,CAAC;AAClF,MAAM,0BAA0B,IAAI,IAAI;CAACA,OAAE;CAAgBA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAIA,OAAE;CAAM,CAAC;AAC5F,MAAM,uBAAuB,IAAI,IAAI;CAACA,OAAE;CAAMA,OAAE;CAAgBA,OAAE;CAAM,CAAC;AACzE,MAAM,oBAAoB,IAAI,IAAI;CAACA,OAAE;CAAIA,OAAE;CAAUA,OAAE;CAAK,CAAC;AAC7D,MAAM,qBAAqB,IAAI,IAAI;CAACA,OAAE;CAAOA,OAAE;CAAOA,OAAE;CAAOA,OAAE;CAAUA,OAAE;CAAK,CAAC;AACnF,MAAM,gBAAgB,IAAI,IAAI;CAACA,OAAE;CAAOA,OAAE;CAAUA,OAAE;CAAK,CAAC;AAC5D,MAAM,cAAc,IAAI,IAAI,CAACA,OAAE,IAAIA,OAAE,GAAG,CAAC;AAEzC,IAAa,mBAAb,MAA8B;CAC1B,IAAI,2BAA2B;AAC3B,SAAO,KAAK,eAAe,GAAG,KAAK,YAAY,mBAAmB,KAAK,QAAQ,GAAG,KAAK;;CAE3F,YAAY,UAAU,aAAa,SAAS;AACxC,OAAK,cAAc;AACnB,OAAK,UAAU;AACf,OAAK,QAAQ,EAAE;AACf,OAAK,SAAS,EAAE;AAChB,OAAK,WAAW;AAChB,OAAK,YAAY;AACjB,OAAK,eAAeA,OAAE;AACtB,OAAK,UAAU;;CAGnB,SAAS,SAAS;AACd,SAAO,KAAK,MAAM,YAAY,SAAS,KAAK,SAAS;;CAGzD,gBAAgB;AACZ,SAAO,KAAK,iBAAiBA,OAAE,YAAY,KAAK,YAAY,gBAAgB,KAAK,QAAQ,KAAK,GAAG;;CAErG,wBAAwB;AACpB,OAAK,UAAU,KAAK,MAAM,KAAK;AAC/B,OAAK,eAAe,KAAK,OAAO,KAAK;;CAGzC,KAAK,SAAS,OAAO;AACjB,OAAK;AACL,OAAK,MAAM,KAAK,YAAY;AAC5B,OAAK,UAAU;AACf,OAAK,OAAO,KAAK,YAAY;AAC7B,OAAK,eAAe;AACpB,MAAI,KAAK,eAAe,CACpB,MAAK;AAET,OAAK,QAAQ,WAAW,SAAS,OAAO,KAAK;;CAEjD,MAAM;EACF,MAAM,SAAS,KAAK;AACpB,MAAI,KAAK,YAAY,KAAK,KAAK,eAAe,CAC1C,MAAK;AAET,OAAK;AACL,OAAK,uBAAuB;AAC5B,OAAK,QAAQ,UAAU,QAAQ,KAAK;;CAExC,QAAQ,YAAY,YAAY;EAC5B,MAAM,MAAM,KAAK,SAAS,WAAW;AACrC,OAAK,MAAM,OAAO;AAClB,MAAI,QAAQ,KAAK,SACb,MAAK,UAAU;;CAGvB,YAAY,kBAAkB,YAAY,cAAc;EACpD,MAAM,eAAe,KAAK,SAAS,iBAAiB,GAAG;AACvD,OAAK,MAAM,OAAO,cAAc,GAAG,WAAW;AAC9C,OAAK,OAAO,OAAO,cAAc,GAAG,aAAa;AACjD,OAAK;AACL,MAAI,iBAAiB,KAAK,SACtB,MAAK,uBAAuB;AAEhC,MAAI,KAAK,WAAW,KAAK,iBAAiB,OACtC,MAAK,QAAQ,WAAW,KAAK,SAAS,KAAK,cAAc,iBAAiB,KAAK,SAAS;;CAGhG,sBAAsB,SAAS;EAC3B,IAAI,YAAY,KAAK,WAAW;AAChC;AACI,eAAY,KAAK,OAAO,YAAY,SAAS,YAAY,EAAE;SACtD,YAAY,KAAK,KAAK,YAAY,gBAAgB,KAAK,MAAM,WAAW,KAAK,GAAG;AACzF,OAAK,gBAAgB,KAAK,IAAI,WAAW,EAAE,CAAC;;CAEhD,gBAAgB,KAAK;AACjB,SAAO,KAAK,YAAY,KAAK;GACzB,MAAM,SAAS,KAAK;AACpB,OAAI,KAAK,YAAY,KAAK,KAAK,eAAe,CAC1C,MAAK,aAAa;AAEtB,QAAK;AACL,QAAK,uBAAuB;AAC5B,QAAK,QAAQ,UAAU,QAAQ,KAAK,WAAW,IAAI;;;CAG3D,sBAAsB,SAAS;EAC3B,MAAM,MAAM,KAAK,SAAS,QAAQ;AAClC,OAAK,gBAAgB,KAAK,IAAI,KAAK,EAAE,CAAC;;CAE1C,eAAe,UAAU,UAAU;EAC/B,MAAM,MAAM,KAAK,iBAAiB,UAAU,SAAS;AACrD,OAAK,gBAAgB,KAAK,IAAI,KAAK,EAAE,CAAC;;CAE1C,+BAA+B;AAC3B,OAAK,eAAe,kBAAkB,GAAG,KAAK;;CAElD,0BAA0B;AACtB,OAAK,eAAe,aAAa,GAAG,KAAK;;CAE7C,wBAAwB;AAGpB,OAAK,YAAY;AACjB,OAAK,gBAAgB,EAAE;;CAE3B,iBAAiB,UAAU,WAAW;AAClC,OAAK,IAAI,IAAI,KAAK,UAAU,KAAK,GAAG,IAChC,KAAI,SAAS,IAAI,KAAK,OAAO,GAAG,IAAI,KAAK,YAAY,gBAAgB,KAAK,MAAM,GAAG,KAAK,UACpF,QAAO;AAGf,SAAO;;CAEX,YAAY,UAAU,UAAU;EAC5B,MAAM,MAAM,KAAK,iBAAiB,UAAU,SAAS;AACrD,OAAK,gBAAgB,MAAM,EAAE;;CAEjC,0BAA0B;AACtB,OAAK,YAAY,eAAe,GAAG,KAAK;;CAE5C,8BAA8B;AAC1B,OAAK,YAAY,oBAAoB,GAAG,KAAK;;CAEjD,6BAA6B;AACzB,OAAK,YAAY,mBAAmB,GAAG,KAAK;;CAEhD,OAAO,SAAS;EACZ,MAAM,MAAM,KAAK,SAAS,QAAQ;AAClC,MAAI,OAAO,EACP,KAAI,QAAQ,KAAK,SACb,MAAK,KAAK;OAET;AACD,QAAK,MAAM,OAAO,KAAK,EAAE;AACzB,QAAK,OAAO,OAAO,KAAK,EAAE;AAC1B,QAAK;AACL,QAAK,uBAAuB;AAC5B,QAAK,QAAQ,UAAU,SAAS,MAAM;;;CAKlD,mCAAmC;AAE/B,SAAO,KAAK,YAAY,KAAK,KAAK,OAAO,OAAOA,OAAE,OAAO,KAAK,MAAM,KAAK;;CAE7E,SAAS,SAAS;AACd,SAAO,KAAK,SAAS,QAAQ,GAAG;;CAEpC,kBAAkB,SAAS;EACvB,MAAM,aAAa,KAAK,SAAS,QAAQ,GAAG;AAC5C,SAAO,cAAc,IAAI,KAAK,MAAM,cAAc;;CAEtD,2BAA2B;AACvB,SAAO,KAAK,aAAa,KAAK,KAAK,OAAO,OAAOA,OAAE;;CAGvD,kBAAkB,SAAS,WAAW;AAClC,OAAK,IAAI,IAAI,KAAK,UAAU,KAAK,GAAG,KAAK;GACrC,MAAM,KAAK,KAAK,OAAO;AACvB,WAAQ,KAAK,YAAY,gBAAgB,KAAK,MAAM,GAAG,EAAvD;IACI,KAAK,GAAG;AACJ,SAAI,OAAO,QACP,QAAO;AACX,SAAI,UAAU,IAAI,GAAG,CACjB,QAAO;AACX;IAEJ,KAAK,GAAG;AACJ,SAAI,qBAAqB,IAAI,GAAG,CAC5B,QAAO;AACX;IAEJ,KAAK,GAAG;AACJ,SAAI,wBAAwB,IAAI,GAAG,CAC/B,QAAO;AACX;;;AAIZ,SAAO;;CAEX,WAAW,SAAS;AAChB,SAAO,KAAK,kBAAkB,SAAS,sBAAsB;;CAEjE,mBAAmB,SAAS;AACxB,SAAO,KAAK,kBAAkB,SAAS,2BAA2B;;CAEtE,iBAAiB,SAAS;AACtB,SAAO,KAAK,kBAAkB,SAAS,6BAA6B;;CAExE,2BAA2B;AACvB,OAAK,IAAI,IAAI,KAAK,UAAU,KAAK,GAAG,KAAK;GACrC,MAAM,KAAK,KAAK,OAAO;AACvB,WAAQ,KAAK,YAAY,gBAAgB,KAAK,MAAM,GAAG,EAAvD;IACI,KAAK,GAAG;AACJ,SAAI,iBAAiB,IAAI,GAAG,CACxB,QAAO;AACX,SAAI,sBAAsB,IAAI,GAAG,CAC7B,QAAO;AACX;IAEJ,KAAK,GAAG;AACJ,SAAI,qBAAqB,IAAI,GAAG,CAC5B,QAAO;AACX;IAEJ,KAAK,GAAG;AACJ,SAAI,wBAAwB,IAAI,GAAG,CAC/B,QAAO;AACX;;;AAIZ,SAAO;;CAEX,gBAAgB,SAAS;AACrB,OAAK,IAAI,IAAI,KAAK,UAAU,KAAK,GAAG,KAAK;AACrC,OAAI,KAAK,YAAY,gBAAgB,KAAK,MAAM,GAAG,KAAK,GAAG,KACvD;AAEJ,WAAQ,KAAK,OAAO,IAApB;IACI,KAAK,QACD,QAAO;IAEX,KAAKA,OAAE;IACP,KAAKA,OAAE,KACH,QAAO;;;AAInB,SAAO;;CAEX,kCAAkC;AAC9B,OAAK,IAAI,IAAI,KAAK,UAAU,KAAK,GAAG,KAAK;AACrC,OAAI,KAAK,YAAY,gBAAgB,KAAK,MAAM,GAAG,KAAK,GAAG,KACvD;AAEJ,WAAQ,KAAK,OAAO,IAApB;IACI,KAAKA,OAAE;IACP,KAAKA,OAAE;IACP,KAAKA,OAAE,MACH,QAAO;IAEX,KAAKA,OAAE;IACP,KAAKA,OAAE,KACH,QAAO;;;AAInB,SAAO;;CAEX,iBAAiB,SAAS;AACtB,OAAK,IAAI,IAAI,KAAK,UAAU,KAAK,GAAG,KAAK;AACrC,OAAI,KAAK,YAAY,gBAAgB,KAAK,MAAM,GAAG,KAAK,GAAG,KACvD;AAEJ,WAAQ,KAAK,OAAO,IAApB;IACI,KAAK,QACD,QAAO;IAEX,KAAKA,OAAE;IACP,KAAKA,OAAE,SACH;IAEJ,QACI,QAAO;;;AAInB,SAAO;;CAGX,yBAAyB;AACrB,SAAO,KAAK,iBAAiB,UAAa,0BAA0B,IAAI,KAAK,aAAa,CACtF,MAAK,KAAK;;CAGlB,mCAAmC;AAC/B,SAAO,KAAK,iBAAiB,UAAa,qCAAqC,IAAI,KAAK,aAAa,CACjG,MAAK,KAAK;;CAGlB,oCAAoC,aAAa;AAC7C,SAAO,KAAK,iBAAiB,UACzB,KAAK,iBAAiB,eACtB,qCAAqC,IAAI,KAAK,aAAa,CAC3D,MAAK,KAAK"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_html = require('../common/html.cjs');
|
|
2
|
+
require('../tree-adapters/default.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.js
|
|
5
|
+
const VOID_ELEMENTS = new Set([
|
|
6
|
+
require_html.TAG_NAMES.AREA,
|
|
7
|
+
require_html.TAG_NAMES.BASE,
|
|
8
|
+
require_html.TAG_NAMES.BASEFONT,
|
|
9
|
+
require_html.TAG_NAMES.BGSOUND,
|
|
10
|
+
require_html.TAG_NAMES.BR,
|
|
11
|
+
require_html.TAG_NAMES.COL,
|
|
12
|
+
require_html.TAG_NAMES.EMBED,
|
|
13
|
+
require_html.TAG_NAMES.FRAME,
|
|
14
|
+
require_html.TAG_NAMES.HR,
|
|
15
|
+
require_html.TAG_NAMES.IMG,
|
|
16
|
+
require_html.TAG_NAMES.INPUT,
|
|
17
|
+
require_html.TAG_NAMES.KEYGEN,
|
|
18
|
+
require_html.TAG_NAMES.LINK,
|
|
19
|
+
require_html.TAG_NAMES.META,
|
|
20
|
+
require_html.TAG_NAMES.PARAM,
|
|
21
|
+
require_html.TAG_NAMES.SOURCE,
|
|
22
|
+
require_html.TAG_NAMES.TRACK,
|
|
23
|
+
require_html.TAG_NAMES.WBR
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TAG_NAMES } from "../common/html.mjs";
|
|
2
|
+
import "../tree-adapters/default.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.js
|
|
5
|
+
const VOID_ELEMENTS = new Set([
|
|
6
|
+
TAG_NAMES.AREA,
|
|
7
|
+
TAG_NAMES.BASE,
|
|
8
|
+
TAG_NAMES.BASEFONT,
|
|
9
|
+
TAG_NAMES.BGSOUND,
|
|
10
|
+
TAG_NAMES.BR,
|
|
11
|
+
TAG_NAMES.COL,
|
|
12
|
+
TAG_NAMES.EMBED,
|
|
13
|
+
TAG_NAMES.FRAME,
|
|
14
|
+
TAG_NAMES.HR,
|
|
15
|
+
TAG_NAMES.IMG,
|
|
16
|
+
TAG_NAMES.INPUT,
|
|
17
|
+
TAG_NAMES.KEYGEN,
|
|
18
|
+
TAG_NAMES.LINK,
|
|
19
|
+
TAG_NAMES.META,
|
|
20
|
+
TAG_NAMES.PARAM,
|
|
21
|
+
TAG_NAMES.SOURCE,
|
|
22
|
+
TAG_NAMES.TRACK,
|
|
23
|
+
TAG_NAMES.WBR
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { };
|
|
28
|
+
//# sourceMappingURL=index.mjs.map
|