@prismicio/client 7.7.5-alpha.0 → 7.9.0-alpha.0
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/index.cjs +0 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/types/model/contentRelationship.d.ts +2 -0
- package/dist/types/model/link.cjs.map +1 -1
- package/dist/types/model/link.d.ts +2 -0
- package/dist/types/model/link.js.map +1 -1
- package/dist/types/model/linkToMedia.d.ts +2 -0
- package/dist/types/value/contentRelationship.d.ts +1 -0
- package/dist/types/value/link.cjs.map +1 -1
- package/dist/types/value/link.d.ts +1 -0
- package/dist/types/value/link.js.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +1 -0
- package/package.json +2 -16
- package/src/index.ts +0 -8
- package/src/types/model/contentRelationship.ts +2 -0
- package/src/types/model/link.ts +3 -0
- package/src/types/model/linkToMedia.ts +2 -0
- package/src/types/value/contentRelationship.ts +1 -0
- package/src/types/value/link.ts +1 -0
- package/src/types/value/linkToMedia.ts +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +0 -63
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +0 -63
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +0 -12
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js +0 -12
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +0 -127
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +0 -127
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +0 -23
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js +0 -23
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +0 -1
- package/dist/_node_modules/bail/index.cjs +0 -9
- package/dist/_node_modules/bail/index.cjs.map +0 -1
- package/dist/_node_modules/bail/index.js +0 -9
- package/dist/_node_modules/bail/index.js.map +0 -1
- package/dist/_node_modules/bcp-47-match/index.cjs +0 -74
- package/dist/_node_modules/bcp-47-match/index.cjs.map +0 -1
- package/dist/_node_modules/bcp-47-match/index.js +0 -74
- package/dist/_node_modules/bcp-47-match/index.js.map +0 -1
- package/dist/_node_modules/boolbase/index.cjs +0 -13
- package/dist/_node_modules/boolbase/index.cjs.map +0 -1
- package/dist/_node_modules/boolbase/index.js +0 -14
- package/dist/_node_modules/boolbase/index.js.map +0 -1
- package/dist/_node_modules/ccount/index.cjs +0 -17
- package/dist/_node_modules/ccount/index.cjs.map +0 -1
- package/dist/_node_modules/ccount/index.js +0 -17
- package/dist/_node_modules/ccount/index.js.map +0 -1
- package/dist/_node_modules/character-entities/index.cjs +0 -2131
- package/dist/_node_modules/character-entities/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities/index.js +0 -2131
- package/dist/_node_modules/character-entities/index.js.map +0 -1
- package/dist/_node_modules/character-entities-html4/index.cjs +0 -258
- package/dist/_node_modules/character-entities-html4/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities-html4/index.js +0 -258
- package/dist/_node_modules/character-entities-html4/index.js.map +0 -1
- package/dist/_node_modules/character-entities-legacy/index.cjs +0 -112
- package/dist/_node_modules/character-entities-legacy/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities-legacy/index.js +0 -112
- package/dist/_node_modules/character-entities-legacy/index.js.map +0 -1
- package/dist/_node_modules/comma-separated-tokens/index.cjs +0 -32
- package/dist/_node_modules/comma-separated-tokens/index.cjs.map +0 -1
- package/dist/_node_modules/comma-separated-tokens/index.js +0 -32
- package/dist/_node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/_node_modules/devlop/lib/default.cjs +0 -6
- package/dist/_node_modules/devlop/lib/default.cjs.map +0 -1
- package/dist/_node_modules/devlop/lib/default.js +0 -6
- package/dist/_node_modules/devlop/lib/default.js.map +0 -1
- package/dist/_node_modules/direction/index.cjs +0 -12
- package/dist/_node_modules/direction/index.cjs.map +0 -1
- package/dist/_node_modules/direction/index.js +0 -12
- package/dist/_node_modules/direction/index.js.map +0 -1
- package/dist/_node_modules/extend/index.cjs +0 -89
- package/dist/_node_modules/extend/index.cjs.map +0 -1
- package/dist/_node_modules/extend/index.js +0 -90
- package/dist/_node_modules/extend/index.js.map +0 -1
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs +0 -14
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-embedded/lib/index.js +0 -14
- package/dist/_node_modules/hast-util-embedded/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +0 -317
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/errors.js +0 -317
- package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs +0 -96
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/index.js +0 -96
- package/dist/_node_modules/hast-util-from-html/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +0 -187
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js +0 -187
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs +0 -9
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-has-property/lib/index.js +0 -9
- package/dist/_node_modules/hast-util-has-property/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs +0 -102
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-is-element/lib/index.js +0 -102
- package/dist/_node_modules/hast-util-is-element/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +0 -40
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js +0 -40
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs +0 -67
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/attribute.js +0 -67
- package/dist/_node_modules/hast-util-select/lib/attribute.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs +0 -12
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/class-name.js +0 -12
- package/dist/_node_modules/hast-util-select/lib/class-name.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +0 -79
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/enter-state.js +0 -79
- package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/id.cjs +0 -7
- package/dist/_node_modules/hast-util-select/lib/id.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/id.js +0 -7
- package/dist/_node_modules/hast-util-select/lib/id.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/index.cjs +0 -38
- package/dist/_node_modules/hast-util-select/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/index.js +0 -38
- package/dist/_node_modules/hast-util-select/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/name.cjs +0 -7
- package/dist/_node_modules/hast-util-select/lib/name.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/name.js +0 -7
- package/dist/_node_modules/hast-util-select/lib/name.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/parse.cjs +0 -12
- package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/parse.js +0 -12
- package/dist/_node_modules/hast-util-select/lib/parse.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +0 -231
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/pseudo.js +0 -231
- package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/test.cjs +0 -27
- package/dist/_node_modules/hast-util-select/lib/test.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/test.js +0 -27
- package/dist/_node_modules/hast-util-select/lib/test.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/walk.cjs +0 -132
- package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/walk.js +0 -132
- package/dist/_node_modules/hast-util-select/lib/walk.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +0 -137
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +0 -137
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +0 -26
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +0 -26
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +0 -8
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +0 -8
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +0 -14
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +0 -14
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs +0 -62
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/index.js +0 -62
- package/dist/_node_modules/hast-util-to-html/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +0 -92
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +0 -92
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +0 -11
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +0 -11
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +0 -52
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +0 -52
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +0 -1
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs +0 -24
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-string/lib/index.js +0 -24
- package/dist/_node_modules/hast-util-to-string/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +0 -11
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-whitespace/lib/index.js +0 -11
- package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/create-h.cjs +0 -159
- package/dist/_node_modules/hastscript/lib/create-h.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/create-h.js +0 -159
- package/dist/_node_modules/hastscript/lib/create-h.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/index.cjs +0 -10
- package/dist/_node_modules/hastscript/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/index.js +0 -10
- package/dist/_node_modules/hastscript/lib/index.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +0 -45
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -45
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +0 -1
- package/dist/_node_modules/html-void-elements/index.cjs +0 -26
- package/dist/_node_modules/html-void-elements/index.cjs.map +0 -1
- package/dist/_node_modules/html-void-elements/index.js +0 -26
- package/dist/_node_modules/html-void-elements/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +0 -720
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +0 -720
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +0 -116
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +0 -116
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +0 -42
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -42
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +0 -12
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -12
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +0 -20
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -20
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +0 -17
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -17
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +0 -60
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -60
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +0 -19
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -19
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +0 -65
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -65
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +0 -27
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -27
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +0 -15
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -15
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +0 -36
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -36
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +0 -40
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -40
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +0 -10
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -10
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +0 -30
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +0 -30
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +0 -149
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js +0 -149
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +0 -39
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-string/lib/index.js +0 -39
- package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/_node_modules/micromark/lib/constructs.cjs +0 -94
- package/dist/_node_modules/micromark/lib/constructs.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/constructs.js +0 -94
- package/dist/_node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +0 -316
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/create-tokenizer.js +0 -316
- package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/content.cjs +0 -58
- package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/content.js +0 -58
- package/dist/_node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/document.cjs +0 -212
- package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/document.js +0 -212
- package/dist/_node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs +0 -55
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/flow.js +0 -55
- package/dist/_node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/text.cjs +0 -143
- package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/text.js +0 -143
- package/dist/_node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/_node_modules/micromark/lib/parse.cjs +0 -35
- package/dist/_node_modules/micromark/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/parse.js +0 -35
- package/dist/_node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/_node_modules/micromark/lib/postprocess.cjs +0 -10
- package/dist/_node_modules/micromark/lib/postprocess.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/postprocess.js +0 -10
- package/dist/_node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/_node_modules/micromark/lib/preprocess.cjs +0 -81
- package/dist/_node_modules/micromark/lib/preprocess.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/preprocess.js +0 -81
- package/dist/_node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +0 -116
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +0 -116
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +0 -104
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +0 -104
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +0 -19
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +0 -62
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +0 -62
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +0 -29
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +0 -29
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +0 -69
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +0 -69
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +0 -187
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -187
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +0 -68
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +0 -68
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +0 -117
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +0 -117
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +0 -76
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js +0 -76
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +0 -95
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +0 -95
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +0 -24
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -24
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +0 -96
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -96
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +0 -384
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +0 -384
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +0 -310
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +0 -310
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +0 -219
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +0 -219
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +0 -34
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -34
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +0 -25
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -25
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +0 -18
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +0 -18
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +0 -136
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js +0 -136
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +0 -90
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -90
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +0 -43
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -43
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/_node_modules/micromark-factory-destination/index.cjs +0 -95
- package/dist/_node_modules/micromark-factory-destination/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-destination/index.js +0 -95
- package/dist/_node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-label/index.cjs +0 -64
- package/dist/_node_modules/micromark-factory-label/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-label/index.js +0 -64
- package/dist/_node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-space/index.cjs +0 -25
- package/dist/_node_modules/micromark-factory-space/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-space/index.js +0 -25
- package/dist/_node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-title/index.cjs +0 -66
- package/dist/_node_modules/micromark-factory-title/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-title/index.js +0 -66
- package/dist/_node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs +0 -27
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-whitespace/index.js +0 -27
- package/dist/_node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-character/index.cjs +0 -45
- package/dist/_node_modules/micromark-util-character/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-character/index.js +0 -45
- package/dist/_node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-chunked/index.cjs +0 -37
- package/dist/_node_modules/micromark-util-chunked/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-chunked/index.js +0 -37
- package/dist/_node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-classify-character/index.cjs +0 -13
- package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-classify-character/index.js +0 -13
- package/dist/_node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +0 -42
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-combine-extensions/index.js +0 -42
- package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +0 -20
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -20
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-decode-string/index.cjs +0 -22
- package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-decode-string/index.js +0 -22
- package/dist/_node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +0 -70
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-html-tag-name/index.js +0 -70
- package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +0 -7
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js +0 -7
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs +0 -16
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-resolve-all/index.js +0 -16
- package/dist/_node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +0 -42
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js +0 -42
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs +0 -149
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/index.js +0 -149
- package/dist/_node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +0 -195
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -195
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs +0 -20
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/compile.js +0 -20
- package/dist/_node_modules/nth-check/lib/esm/compile.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/index.cjs +0 -11
- package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/index.js +0 -11
- package/dist/_node_modules/nth-check/lib/esm/index.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs +0 -59
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/parse.js +0 -59
- package/dist/_node_modules/nth-check/lib/esm/parse.js.map +0 -1
- package/dist/_node_modules/property-information/index.cjs +0 -14
- package/dist/_node_modules/property-information/index.cjs.map +0 -1
- package/dist/_node_modules/property-information/index.js +0 -14
- package/dist/_node_modules/property-information/index.js.map +0 -1
- package/dist/_node_modules/property-information/lib/aria.cjs +0 -62
- package/dist/_node_modules/property-information/lib/aria.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/aria.js +0 -62
- package/dist/_node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/_node_modules/property-information/lib/find.cjs +0 -41
- package/dist/_node_modules/property-information/lib/find.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/find.js +0 -41
- package/dist/_node_modules/property-information/lib/find.js.map +0 -1
- package/dist/_node_modules/property-information/lib/html.cjs +0 -369
- package/dist/_node_modules/property-information/lib/html.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/html.js +0 -369
- package/dist/_node_modules/property-information/lib/html.js.map +0 -1
- package/dist/_node_modules/property-information/lib/normalize.cjs +0 -7
- package/dist/_node_modules/property-information/lib/normalize.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/normalize.js +0 -7
- package/dist/_node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/_node_modules/property-information/lib/svg.cjs +0 -567
- package/dist/_node_modules/property-information/lib/svg.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/svg.js +0 -567
- package/dist/_node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -8
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +0 -8
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -7
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +0 -7
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/create.cjs +0 -31
- package/dist/_node_modules/property-information/lib/util/create.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/create.js +0 -31
- package/dist/_node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs +0 -33
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/defined-info.js +0 -33
- package/dist/_node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/info.cjs +0 -25
- package/dist/_node_modules/property-information/lib/util/info.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/info.js +0 -25
- package/dist/_node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/merge.cjs +0 -15
- package/dist/_node_modules/property-information/lib/util/merge.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/merge.js +0 -15
- package/dist/_node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/schema.cjs +0 -22
- package/dist/_node_modules/property-information/lib/util/schema.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/schema.js +0 -22
- package/dist/_node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/types.cjs +0 -21
- package/dist/_node_modules/property-information/lib/util/types.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/types.js +0 -21
- package/dist/_node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xlink.cjs +0 -20
- package/dist/_node_modules/property-information/lib/xlink.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xlink.js +0 -20
- package/dist/_node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xml.cjs +0 -12
- package/dist/_node_modules/property-information/lib/xml.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xml.js +0 -12
- package/dist/_node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xmlns.cjs +0 -12
- package/dist/_node_modules/property-information/lib/xmlns.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xmlns.js +0 -12
- package/dist/_node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +0 -122
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +0 -122
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +0 -11
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +0 -11
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +0 -169
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +0 -170
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +0 -24
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +0 -24
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +0 -1
- package/dist/_node_modules/rehype-parse/lib/index.cjs +0 -21
- package/dist/_node_modules/rehype-parse/lib/index.cjs.map +0 -1
- package/dist/_node_modules/rehype-parse/lib/index.js +0 -22
- package/dist/_node_modules/rehype-parse/lib/index.js.map +0 -1
- package/dist/_node_modules/remark-parse/lib/index.cjs +0 -19
- package/dist/_node_modules/remark-parse/lib/index.cjs.map +0 -1
- package/dist/_node_modules/remark-parse/lib/index.js +0 -20
- package/dist/_node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/_node_modules/remark-rehype/lib/index.cjs +0 -21
- package/dist/_node_modules/remark-rehype/lib/index.cjs.map +0 -1
- package/dist/_node_modules/remark-rehype/lib/index.js +0 -22
- package/dist/_node_modules/remark-rehype/lib/index.js.map +0 -1
- package/dist/_node_modules/space-separated-tokens/index.cjs +0 -12
- package/dist/_node_modules/space-separated-tokens/index.cjs.map +0 -1
- package/dist/_node_modules/space-separated-tokens/index.js +0 -12
- package/dist/_node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +0 -14
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +0 -14
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/core.cjs +0 -52
- package/dist/_node_modules/stringify-entities/lib/core.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/core.js +0 -52
- package/dist/_node_modules/stringify-entities/lib/core.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/index.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/index.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/index.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/index.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +0 -26
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +0 -26
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +0 -28
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js +0 -28
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +0 -1
- package/dist/_node_modules/trim-lines/index.cjs +0 -42
- package/dist/_node_modules/trim-lines/index.cjs.map +0 -1
- package/dist/_node_modules/trim-lines/index.js +0 -42
- package/dist/_node_modules/trim-lines/index.js.map +0 -1
- package/dist/_node_modules/trough/lib/index.cjs +0 -87
- package/dist/_node_modules/trough/lib/index.cjs.map +0 -1
- package/dist/_node_modules/trough/lib/index.js +0 -87
- package/dist/_node_modules/trough/lib/index.js.map +0 -1
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +0 -10
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +0 -1
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +0 -11
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/_node_modules/unified/lib/callable-instance.cjs +0 -31
- package/dist/_node_modules/unified/lib/callable-instance.cjs.map +0 -1
- package/dist/_node_modules/unified/lib/callable-instance.js +0 -31
- package/dist/_node_modules/unified/lib/callable-instance.js.map +0 -1
- package/dist/_node_modules/unified/lib/index.cjs +0 -637
- package/dist/_node_modules/unified/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unified/lib/index.js +0 -637
- package/dist/_node_modules/unified/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-is/lib/index.cjs +0 -94
- package/dist/_node_modules/unist-util-is/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-is/lib/index.js +0 -94
- package/dist/_node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-position/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-position/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-position/lib/index.js +0 -28
- package/dist/_node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-remove/lib/index.cjs +0 -39
- package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-remove/lib/index.js +0 -39
- package/dist/_node_modules/unist-util-remove/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js +0 -28
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-visit/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit/lib/index.js +0 -29
- package/dist/_node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +0 -7
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js +0 -7
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +0 -84
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js +0 -84
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile/lib/index.cjs +0 -463
- package/dist/_node_modules/vfile/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/index.js +0 -463
- package/dist/_node_modules/vfile/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs +0 -215
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minpath.browser.js +0 -215
- package/dist/_node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs +0 -8
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minproc.browser.js +0 -8
- package/dist/_node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs +0 -47
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.browser.js +0 -47
- package/dist/_node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs +0 -10
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.shared.js +0 -10
- package/dist/_node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/_node_modules/vfile-location/lib/index.cjs +0 -50
- package/dist/_node_modules/vfile-location/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile-location/lib/index.js +0 -50
- package/dist/_node_modules/vfile-location/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile-message/lib/index.cjs +0 -139
- package/dist/_node_modules/vfile-message/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile-message/lib/index.js +0 -139
- package/dist/_node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/_node_modules/web-namespaces/index.cjs +0 -12
- package/dist/_node_modules/web-namespaces/index.cjs.map +0 -1
- package/dist/_node_modules/web-namespaces/index.js +0 -12
- package/dist/_node_modules/web-namespaces/index.js.map +0 -1
- package/dist/_node_modules/zwitch/index.cjs +0 -23
- package/dist/_node_modules/zwitch/index.cjs.map +0 -1
- package/dist/_node_modules/zwitch/index.js +0 -23
- package/dist/_node_modules/zwitch/index.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.cjs +0 -7
- package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/index.cjs +0 -9
- package/dist/_virtual/index.cjs.map +0 -1
- package/dist/_virtual/index.js +0 -9
- package/dist/_virtual/index.js.map +0 -1
- package/dist/errors/PrismicRichTextError.cjs +0 -6
- package/dist/errors/PrismicRichTextError.cjs.map +0 -1
- package/dist/errors/PrismicRichTextError.d.ts +0 -2
- package/dist/errors/PrismicRichTextError.js +0 -6
- package/dist/errors/PrismicRichTextError.js.map +0 -1
- package/dist/errors/PrismicRichTextSerializerError.cjs +0 -7
- package/dist/errors/PrismicRichTextSerializerError.cjs.map +0 -1
- package/dist/errors/PrismicRichTextSerializerError.d.ts +0 -3
- package/dist/errors/PrismicRichTextSerializerError.js +0 -7
- package/dist/errors/PrismicRichTextSerializerError.js.map +0 -1
- package/dist/helpers/unstable_htmlAsRichText.cjs +0 -11
- package/dist/helpers/unstable_htmlAsRichText.cjs.map +0 -1
- package/dist/helpers/unstable_htmlAsRichText.d.ts +0 -81
- package/dist/helpers/unstable_htmlAsRichText.js +0 -11
- package/dist/helpers/unstable_htmlAsRichText.js.map +0 -1
- package/dist/helpers/unstable_markdownAsRichText.cjs +0 -12
- package/dist/helpers/unstable_markdownAsRichText.cjs.map +0 -1
- package/dist/helpers/unstable_markdownAsRichText.d.ts +0 -30
- package/dist/helpers/unstable_markdownAsRichText.js +0 -12
- package/dist/helpers/unstable_markdownAsRichText.js.map +0 -1
- package/dist/lib/RichTextFieldBuilder.cjs +0 -115
- package/dist/lib/RichTextFieldBuilder.cjs.map +0 -1
- package/dist/lib/RichTextFieldBuilder.d.ts +0 -35
- package/dist/lib/RichTextFieldBuilder.js +0 -115
- package/dist/lib/RichTextFieldBuilder.js.map +0 -1
- package/dist/lib/filterRichTextField.cjs +0 -88
- package/dist/lib/filterRichTextField.cjs.map +0 -1
- package/dist/lib/filterRichTextField.d.ts +0 -12
- package/dist/lib/filterRichTextField.js +0 -88
- package/dist/lib/filterRichTextField.js.map +0 -1
- package/dist/lib/hastSerializerHelpers.cjs +0 -96
- package/dist/lib/hastSerializerHelpers.cjs.map +0 -1
- package/dist/lib/hastSerializerHelpers.d.ts +0 -28
- package/dist/lib/hastSerializerHelpers.js +0 -96
- package/dist/lib/hastSerializerHelpers.js.map +0 -1
- package/dist/lib/hastToRichText.cjs +0 -164
- package/dist/lib/hastToRichText.cjs.map +0 -1
- package/dist/lib/hastToRichText.d.ts +0 -30
- package/dist/lib/hastToRichText.js +0 -164
- package/dist/lib/hastToRichText.js.map +0 -1
- package/dist/lib/rehypeRichText.cjs +0 -60
- package/dist/lib/rehypeRichText.cjs.map +0 -1
- package/dist/lib/rehypeRichText.d.ts +0 -66
- package/dist/lib/rehypeRichText.js +0 -60
- package/dist/lib/rehypeRichText.js.map +0 -1
- package/src/errors/PrismicRichTextError.ts +0 -1
- package/src/errors/PrismicRichTextSerializerError.ts +0 -3
- package/src/helpers/unstable_htmlAsRichText.ts +0 -122
- package/src/helpers/unstable_markdownAsRichText.ts +0 -53
- package/src/lib/RichTextFieldBuilder.ts +0 -164
- package/src/lib/filterRichTextField.ts +0 -159
- package/src/lib/hastSerializerHelpers.ts +0 -157
- package/src/lib/hastToRichText.ts +0 -295
- package/src/lib/rehypeRichText.ts +0 -184
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sources":["../../../../../node_modules/hast-util-to-html/lib/handle/text.js"],"sourcesContent":["/**\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').Text} Text\n *\n * @typedef {import('mdast-util-to-hast').Raw} Raw\n *\n * @typedef {import('../index.js').State} State\n */\n\nimport {stringifyEntities} from 'stringify-entities'\n\n// Declare array as variable so it can be cached by `stringifyEntities`\nconst textEntitySubset = ['<', '&']\n\n/**\n * Serialize a text node.\n *\n * @param {Raw | Text} node\n * Node to handle.\n * @param {number | undefined} _\n * Index of `node` in `parent.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {string}\n * Serialized node.\n */\nexport function text(node, _, parent, state) {\n // Check if content of `node` should be escaped.\n return parent &&\n parent.type === 'element' &&\n (parent.tagName === 'script' || parent.tagName === 'style')\n ? node.value\n : stringifyEntities(\n node.value,\n Object.assign({}, state.settings.characterReferences, {\n subset: textEntitySubset\n })\n )\n}\n"],"names":[],"mappings":";AAYA,MAAM,mBAAmB,CAAC,KAAK,GAAG;AAgB3B,SAAS,KAAK,MAAM,GAAG,QAAQ,OAAO;AAE3C,SAAO,UACL,OAAO,SAAS,cACf,OAAO,YAAY,YAAY,OAAO,YAAY,WACjD,KAAK,QACL;AAAA,IACE,KAAK;AAAA,IACL,OAAO,OAAO,CAAA,GAAI,MAAM,SAAS,qBAAqB;AAAA,MACpD,QAAQ;AAAA,IAClB,CAAS;AAAA,EACF;AACP;","x_google_ignoreList":[0]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../html-void-elements/index.cjs");
|
|
4
|
-
const index$1 = require("../../property-information/index.cjs");
|
|
5
|
-
const index$2 = require("./handle/index.cjs");
|
|
6
|
-
const emptyOptions = {};
|
|
7
|
-
const emptyCharacterReferences = {};
|
|
8
|
-
const emptyChildren = [];
|
|
9
|
-
function toHtml(tree, options) {
|
|
10
|
-
const options_ = emptyOptions;
|
|
11
|
-
const quote = options_.quote || '"';
|
|
12
|
-
const alternative = quote === '"' ? "'" : '"';
|
|
13
|
-
if (quote !== '"' && quote !== "'") {
|
|
14
|
-
throw new Error("Invalid quote `" + quote + "`, expected `'` or `\"`");
|
|
15
|
-
}
|
|
16
|
-
const state = {
|
|
17
|
-
one,
|
|
18
|
-
all,
|
|
19
|
-
settings: {
|
|
20
|
-
omitOptionalTags: options_.omitOptionalTags || false,
|
|
21
|
-
allowParseErrors: options_.allowParseErrors || false,
|
|
22
|
-
allowDangerousCharacters: options_.allowDangerousCharacters || false,
|
|
23
|
-
quoteSmart: options_.quoteSmart || false,
|
|
24
|
-
preferUnquoted: options_.preferUnquoted || false,
|
|
25
|
-
tightAttributes: options_.tightAttributes || false,
|
|
26
|
-
upperDoctype: options_.upperDoctype || false,
|
|
27
|
-
tightDoctype: options_.tightDoctype || false,
|
|
28
|
-
bogusComments: options_.bogusComments || false,
|
|
29
|
-
tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,
|
|
30
|
-
tightSelfClosing: options_.tightSelfClosing || false,
|
|
31
|
-
collapseEmptyAttributes: options_.collapseEmptyAttributes || false,
|
|
32
|
-
allowDangerousHtml: options_.allowDangerousHtml || false,
|
|
33
|
-
voids: options_.voids || index.htmlVoidElements,
|
|
34
|
-
characterReferences: options_.characterReferences || emptyCharacterReferences,
|
|
35
|
-
closeSelfClosing: options_.closeSelfClosing || false,
|
|
36
|
-
closeEmptyElements: options_.closeEmptyElements || false
|
|
37
|
-
},
|
|
38
|
-
schema: options_.space === "svg" ? index$1.svg : index$1.html,
|
|
39
|
-
quote,
|
|
40
|
-
alternative
|
|
41
|
-
};
|
|
42
|
-
return state.one(
|
|
43
|
-
Array.isArray(tree) ? { type: "root", children: tree } : tree,
|
|
44
|
-
void 0,
|
|
45
|
-
void 0
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
function one(node, index2, parent) {
|
|
49
|
-
return index$2.handle(node, index2, parent, this);
|
|
50
|
-
}
|
|
51
|
-
function all(parent) {
|
|
52
|
-
const results = [];
|
|
53
|
-
const children = parent && parent.children || emptyChildren;
|
|
54
|
-
let index2 = -1;
|
|
55
|
-
while (++index2 < children.length) {
|
|
56
|
-
results[index2] = this.one(children[index2], index2, parent);
|
|
57
|
-
}
|
|
58
|
-
return results.join("");
|
|
59
|
-
}
|
|
60
|
-
exports.all = all;
|
|
61
|
-
exports.toHtml = toHtml;
|
|
62
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../node_modules/hast-util-to-html/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('stringify-entities').Options} StringifyEntitiesOptions\n */\n\n/**\n * @typedef {Omit<StringifyEntitiesOptions, 'attribute' | 'escapeOnly' | 'subset'>} CharacterReferences\n *\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [allowDangerousCharacters=false]\n * Do not encode some characters which cause XSS vulnerabilities in older\n * browsers (default: `false`).\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Allow `raw` nodes and insert them as raw HTML (default: `false`).\n *\n * When `false`, `Raw` nodes are encoded.\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowParseErrors=false]\n * Do not encode characters which cause parse errors (even though they work),\n * to save bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [bogusComments=false]\n * Use “bogus comments” instead of comments to save byes: `<?charlie>`\n * instead of `<!--charlie-->` (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {CharacterReferences | null | undefined} [characterReferences]\n * Configure how to serialize character references (optional).\n * @property {boolean | null | undefined} [closeEmptyElements=false]\n * Close SVG elements without any content with slash (`/`) on the opening tag\n * instead of an end tag: `<circle />` instead of `<circle></circle>`\n * (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the HTML space.\n * @property {boolean | null | undefined} [closeSelfClosing=false]\n * Close self-closing nodes with an extra slash (`/`): `<img />` instead of\n * `<img>` (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [collapseEmptyAttributes=false]\n * Collapse empty attributes: get `class` instead of `class=\"\"` (default:\n * `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.\n * @property {boolean | null | undefined} [omitOptionalTags=false]\n * Omit optional opening and closing tags (default: `false`).\n *\n * For example, in `<ol><li>one</li><li>two</li></ol>`, both `</li>` closing\n * tags can be omitted.\n * The first because it’s followed by another `li`, the last because it’s\n * followed by nothing.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [preferUnquoted=false]\n * Leave attributes unquoted if that results in less bytes (default: `false`).\n *\n * Not used in the SVG space.\n * @property {Quote | null | undefined} [quote='\"']\n * Preferred quote to use (default: `'\"'`).\n * @property {boolean | null | undefined} [quoteSmart=false]\n * Use the other quote if that results in less bytes (default: `false`).\n * @property {Space | null | undefined} [space='html']\n * When an `<svg>` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it (default: `'html'`).\n *\n * > 👉 **Note**: hast is not XML.\n * > It supports SVG as embedded in HTML.\n * > It does not support the features available in XML.\n * > Passing SVG might break but fragments of modern SVG should be fine.\n * > Use [`xast`][xast] if you need to support SVG as XML.\n * @property {boolean | null | undefined} [tightAttributes=false]\n * Join attributes together, without whitespace, if possible: get\n * `class=\"a b\"title=\"c d\"` instead of `class=\"a b\" title=\"c d\"` to save\n * bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightCommaSeparatedLists=false]\n * Join known comma-separated attribute values with just a comma (`,`),\n * instead of padding them on the right as well (`,␠`, where `␠` represents a\n * space) (default: `false`).\n * @property {boolean | null | undefined} [tightDoctype=false]\n * Drop unneeded spaces in doctypes: `<!doctypehtml>` instead of\n * `<!doctype html>` to save bytes (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightSelfClosing=false]\n * Do not use an extra space when closing self-closing elements: `<img/>`\n * instead of `<img />` (default: `false`).\n *\n * > 👉 **Note**: only used if `closeSelfClosing: true` or\n * > `closeEmptyElements: true`.\n * @property {boolean | null | undefined} [upperDoctype=false]\n * Use a `<!DOCTYPE…` instead of `<!doctype…` (default: `false`).\n *\n * Useless except for XHTML.\n * @property {ReadonlyArray<string> | null | undefined} [voids]\n * Tag names of elements to serialize without closing tag (default: `html-void-elements`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass this, because\n * > hast is not for XML, and HTML will not add more void elements.\n *\n * @typedef {'\"' | \"'\"} Quote\n * HTML quotes for attribute values.\n *\n * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'>} Settings\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {(node: Nodes, index: number | undefined, parent: Parents | undefined) => string} one\n * Serialize one node.\n * @property {(node: Parents | undefined) => string} all\n * Serialize the children of a parent node.\n * @property {Settings} settings\n * User configuration.\n * @property {Schema} schema\n * Current schema.\n * @property {Quote} quote\n * Preferred quote.\n * @property {Quote} alternative\n * Alternative quote.\n */\n\nimport {htmlVoidElements} from 'html-void-elements'\nimport {html, svg} from 'property-information'\nimport {handle} from './handle/index.js'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/** @type {CharacterReferences} */\nconst emptyCharacterReferences = {}\n\n/** @type {Array<never>} */\nconst emptyChildren = []\n\n/**\n * Serialize hast as HTML.\n *\n * @param {Array<RootContent> | Nodes} tree\n * Tree to serialize.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized HTML.\n */\nexport function toHtml(tree, options) {\n const options_ = options || emptyOptions\n const quote = options_.quote || '\"'\n const alternative = quote === '\"' ? \"'\" : '\"'\n\n if (quote !== '\"' && quote !== \"'\") {\n throw new Error('Invalid quote `' + quote + '`, expected `\\'` or `\"`')\n }\n\n /** @type {State} */\n const state = {\n one,\n all,\n settings: {\n omitOptionalTags: options_.omitOptionalTags || false,\n allowParseErrors: options_.allowParseErrors || false,\n allowDangerousCharacters: options_.allowDangerousCharacters || false,\n quoteSmart: options_.quoteSmart || false,\n preferUnquoted: options_.preferUnquoted || false,\n tightAttributes: options_.tightAttributes || false,\n upperDoctype: options_.upperDoctype || false,\n tightDoctype: options_.tightDoctype || false,\n bogusComments: options_.bogusComments || false,\n tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,\n tightSelfClosing: options_.tightSelfClosing || false,\n collapseEmptyAttributes: options_.collapseEmptyAttributes || false,\n allowDangerousHtml: options_.allowDangerousHtml || false,\n voids: options_.voids || htmlVoidElements,\n characterReferences:\n options_.characterReferences || emptyCharacterReferences,\n closeSelfClosing: options_.closeSelfClosing || false,\n closeEmptyElements: options_.closeEmptyElements || false\n },\n schema: options_.space === 'svg' ? svg : html,\n quote,\n alternative\n }\n\n return state.one(\n Array.isArray(tree) ? {type: 'root', children: tree} : tree,\n undefined,\n undefined\n )\n}\n\n/**\n * Serialize a node.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Nodes} node\n * Node to handle.\n * @param {number | undefined} index\n * Index of `node` in `parent.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {string}\n * Serialized node.\n */\nfunction one(node, index, parent) {\n return handle(node, index, parent, this)\n}\n\n/**\n * Serialize all children of `parent`.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Parents | undefined} parent\n * Parent whose children to serialize.\n * @returns {string}\n */\nexport function all(parent) {\n /** @type {Array<string>} */\n const results = []\n const children = (parent && parent.children) || emptyChildren\n let index = -1\n\n while (++index < children.length) {\n results[index] = this.one(children[index], index, parent)\n }\n\n return results.join('')\n}\n"],"names":["htmlVoidElements","svg","html","index","handle"],"mappings":";;;;;AA+JA,MAAM,eAAe,CAAE;AAGvB,MAAM,2BAA2B,CAAE;AAGnC,MAAM,gBAAgB,CAAE;AAYjB,SAAS,OAAO,MAAM,SAAS;AACpC,QAAM,WAAsB;AAC5B,QAAM,QAAQ,SAAS,SAAS;AAChC,QAAM,cAAc,UAAU,MAAM,MAAM;AAE1C,MAAI,UAAU,OAAO,UAAU,KAAK;AAClC,UAAM,IAAI,MAAM,oBAAoB,QAAQ,yBAAyB;AAAA,EACtE;AAGD,QAAM,QAAQ;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,MACR,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,YAAY,SAAS,cAAc;AAAA,MACnC,gBAAgB,SAAS,kBAAkB;AAAA,MAC3C,iBAAiB,SAAS,mBAAmB;AAAA,MAC7C,cAAc,SAAS,gBAAgB;AAAA,MACvC,cAAc,SAAS,gBAAgB;AAAA,MACvC,eAAe,SAAS,iBAAiB;AAAA,MACzC,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,yBAAyB,SAAS,2BAA2B;AAAA,MAC7D,oBAAoB,SAAS,sBAAsB;AAAA,MACnD,OAAO,SAAS,SAASA,MAAgB;AAAA,MACzC,qBACE,SAAS,uBAAuB;AAAA,MAClC,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,oBAAoB,SAAS,sBAAsB;AAAA,IACpD;AAAA,IACD,QAAQ,SAAS,UAAU,QAAQC,QAAG,MAAGC,QAAI;AAAA,IAC7C;AAAA,IACA;AAAA,EACD;AAED,SAAO,MAAM;AAAA,IACX,MAAM,QAAQ,IAAI,IAAI,EAAC,MAAM,QAAQ,UAAU,KAAI,IAAI;AAAA,IACvD;AAAA,IACA;AAAA,EACD;AACH;AAgBA,SAAS,IAAI,MAAMC,QAAO,QAAQ;AAChC,SAAOC,QAAM,OAAC,MAAMD,QAAO,QAAQ,IAAI;AACzC;AAWO,SAAS,IAAI,QAAQ;AAE1B,QAAM,UAAU,CAAE;AAClB,QAAM,WAAY,UAAU,OAAO,YAAa;AAChD,MAAIA,SAAQ;AAEZ,SAAO,EAAEA,SAAQ,SAAS,QAAQ;AAChC,YAAQA,MAAK,IAAI,KAAK,IAAI,SAASA,MAAK,GAAGA,QAAO,MAAM;AAAA,EACzD;AAED,SAAO,QAAQ,KAAK,EAAE;AACxB;;;","x_google_ignoreList":[0]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { htmlVoidElements } from "../../html-void-elements/index.js";
|
|
2
|
-
import { svg, html } from "../../property-information/index.js";
|
|
3
|
-
import { handle } from "./handle/index.js";
|
|
4
|
-
const emptyOptions = {};
|
|
5
|
-
const emptyCharacterReferences = {};
|
|
6
|
-
const emptyChildren = [];
|
|
7
|
-
function toHtml(tree, options) {
|
|
8
|
-
const options_ = emptyOptions;
|
|
9
|
-
const quote = options_.quote || '"';
|
|
10
|
-
const alternative = quote === '"' ? "'" : '"';
|
|
11
|
-
if (quote !== '"' && quote !== "'") {
|
|
12
|
-
throw new Error("Invalid quote `" + quote + "`, expected `'` or `\"`");
|
|
13
|
-
}
|
|
14
|
-
const state = {
|
|
15
|
-
one,
|
|
16
|
-
all,
|
|
17
|
-
settings: {
|
|
18
|
-
omitOptionalTags: options_.omitOptionalTags || false,
|
|
19
|
-
allowParseErrors: options_.allowParseErrors || false,
|
|
20
|
-
allowDangerousCharacters: options_.allowDangerousCharacters || false,
|
|
21
|
-
quoteSmart: options_.quoteSmart || false,
|
|
22
|
-
preferUnquoted: options_.preferUnquoted || false,
|
|
23
|
-
tightAttributes: options_.tightAttributes || false,
|
|
24
|
-
upperDoctype: options_.upperDoctype || false,
|
|
25
|
-
tightDoctype: options_.tightDoctype || false,
|
|
26
|
-
bogusComments: options_.bogusComments || false,
|
|
27
|
-
tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,
|
|
28
|
-
tightSelfClosing: options_.tightSelfClosing || false,
|
|
29
|
-
collapseEmptyAttributes: options_.collapseEmptyAttributes || false,
|
|
30
|
-
allowDangerousHtml: options_.allowDangerousHtml || false,
|
|
31
|
-
voids: options_.voids || htmlVoidElements,
|
|
32
|
-
characterReferences: options_.characterReferences || emptyCharacterReferences,
|
|
33
|
-
closeSelfClosing: options_.closeSelfClosing || false,
|
|
34
|
-
closeEmptyElements: options_.closeEmptyElements || false
|
|
35
|
-
},
|
|
36
|
-
schema: options_.space === "svg" ? svg : html,
|
|
37
|
-
quote,
|
|
38
|
-
alternative
|
|
39
|
-
};
|
|
40
|
-
return state.one(
|
|
41
|
-
Array.isArray(tree) ? { type: "root", children: tree } : tree,
|
|
42
|
-
void 0,
|
|
43
|
-
void 0
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
function one(node, index, parent) {
|
|
47
|
-
return handle(node, index, parent, this);
|
|
48
|
-
}
|
|
49
|
-
function all(parent) {
|
|
50
|
-
const results = [];
|
|
51
|
-
const children = parent && parent.children || emptyChildren;
|
|
52
|
-
let index = -1;
|
|
53
|
-
while (++index < children.length) {
|
|
54
|
-
results[index] = this.one(children[index], index, parent);
|
|
55
|
-
}
|
|
56
|
-
return results.join("");
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
all,
|
|
60
|
-
toHtml
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/hast-util-to-html/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('stringify-entities').Options} StringifyEntitiesOptions\n */\n\n/**\n * @typedef {Omit<StringifyEntitiesOptions, 'attribute' | 'escapeOnly' | 'subset'>} CharacterReferences\n *\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [allowDangerousCharacters=false]\n * Do not encode some characters which cause XSS vulnerabilities in older\n * browsers (default: `false`).\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Allow `raw` nodes and insert them as raw HTML (default: `false`).\n *\n * When `false`, `Raw` nodes are encoded.\n *\n * > ⚠️ **Danger**: only set this if you completely trust the content.\n * @property {boolean | null | undefined} [allowParseErrors=false]\n * Do not encode characters which cause parse errors (even though they work),\n * to save bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [bogusComments=false]\n * Use “bogus comments” instead of comments to save byes: `<?charlie>`\n * instead of `<!--charlie-->` (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {CharacterReferences | null | undefined} [characterReferences]\n * Configure how to serialize character references (optional).\n * @property {boolean | null | undefined} [closeEmptyElements=false]\n * Close SVG elements without any content with slash (`/`) on the opening tag\n * instead of an end tag: `<circle />` instead of `<circle></circle>`\n * (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the HTML space.\n * @property {boolean | null | undefined} [closeSelfClosing=false]\n * Close self-closing nodes with an extra slash (`/`): `<img />` instead of\n * `<img>` (default: `false`).\n *\n * See `tightSelfClosing` to control whether a space is used before the\n * slash.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [collapseEmptyAttributes=false]\n * Collapse empty attributes: get `class` instead of `class=\"\"` (default:\n * `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.\n * @property {boolean | null | undefined} [omitOptionalTags=false]\n * Omit optional opening and closing tags (default: `false`).\n *\n * For example, in `<ol><li>one</li><li>two</li></ol>`, both `</li>` closing\n * tags can be omitted.\n * The first because it’s followed by another `li`, the last because it’s\n * followed by nothing.\n *\n * Not used in the SVG space.\n * @property {boolean | null | undefined} [preferUnquoted=false]\n * Leave attributes unquoted if that results in less bytes (default: `false`).\n *\n * Not used in the SVG space.\n * @property {Quote | null | undefined} [quote='\"']\n * Preferred quote to use (default: `'\"'`).\n * @property {boolean | null | undefined} [quoteSmart=false]\n * Use the other quote if that results in less bytes (default: `false`).\n * @property {Space | null | undefined} [space='html']\n * When an `<svg>` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it (default: `'html'`).\n *\n * > 👉 **Note**: hast is not XML.\n * > It supports SVG as embedded in HTML.\n * > It does not support the features available in XML.\n * > Passing SVG might break but fragments of modern SVG should be fine.\n * > Use [`xast`][xast] if you need to support SVG as XML.\n * @property {boolean | null | undefined} [tightAttributes=false]\n * Join attributes together, without whitespace, if possible: get\n * `class=\"a b\"title=\"c d\"` instead of `class=\"a b\" title=\"c d\"` to save\n * bytes (default: `false`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightCommaSeparatedLists=false]\n * Join known comma-separated attribute values with just a comma (`,`),\n * instead of padding them on the right as well (`,␠`, where `␠` represents a\n * space) (default: `false`).\n * @property {boolean | null | undefined} [tightDoctype=false]\n * Drop unneeded spaces in doctypes: `<!doctypehtml>` instead of\n * `<!doctype html>` to save bytes (default: `false`).\n *\n * > 👉 **Note**: intentionally creates parse errors in markup (how parse\n * > errors are handled is well defined, so this works but isn’t pretty).\n * @property {boolean | null | undefined} [tightSelfClosing=false]\n * Do not use an extra space when closing self-closing elements: `<img/>`\n * instead of `<img />` (default: `false`).\n *\n * > 👉 **Note**: only used if `closeSelfClosing: true` or\n * > `closeEmptyElements: true`.\n * @property {boolean | null | undefined} [upperDoctype=false]\n * Use a `<!DOCTYPE…` instead of `<!doctype…` (default: `false`).\n *\n * Useless except for XHTML.\n * @property {ReadonlyArray<string> | null | undefined} [voids]\n * Tag names of elements to serialize without closing tag (default: `html-void-elements`).\n *\n * Not used in the SVG space.\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass this, because\n * > hast is not for XML, and HTML will not add more void elements.\n *\n * @typedef {'\"' | \"'\"} Quote\n * HTML quotes for attribute values.\n *\n * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'>} Settings\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {(node: Nodes, index: number | undefined, parent: Parents | undefined) => string} one\n * Serialize one node.\n * @property {(node: Parents | undefined) => string} all\n * Serialize the children of a parent node.\n * @property {Settings} settings\n * User configuration.\n * @property {Schema} schema\n * Current schema.\n * @property {Quote} quote\n * Preferred quote.\n * @property {Quote} alternative\n * Alternative quote.\n */\n\nimport {htmlVoidElements} from 'html-void-elements'\nimport {html, svg} from 'property-information'\nimport {handle} from './handle/index.js'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/** @type {CharacterReferences} */\nconst emptyCharacterReferences = {}\n\n/** @type {Array<never>} */\nconst emptyChildren = []\n\n/**\n * Serialize hast as HTML.\n *\n * @param {Array<RootContent> | Nodes} tree\n * Tree to serialize.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized HTML.\n */\nexport function toHtml(tree, options) {\n const options_ = options || emptyOptions\n const quote = options_.quote || '\"'\n const alternative = quote === '\"' ? \"'\" : '\"'\n\n if (quote !== '\"' && quote !== \"'\") {\n throw new Error('Invalid quote `' + quote + '`, expected `\\'` or `\"`')\n }\n\n /** @type {State} */\n const state = {\n one,\n all,\n settings: {\n omitOptionalTags: options_.omitOptionalTags || false,\n allowParseErrors: options_.allowParseErrors || false,\n allowDangerousCharacters: options_.allowDangerousCharacters || false,\n quoteSmart: options_.quoteSmart || false,\n preferUnquoted: options_.preferUnquoted || false,\n tightAttributes: options_.tightAttributes || false,\n upperDoctype: options_.upperDoctype || false,\n tightDoctype: options_.tightDoctype || false,\n bogusComments: options_.bogusComments || false,\n tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,\n tightSelfClosing: options_.tightSelfClosing || false,\n collapseEmptyAttributes: options_.collapseEmptyAttributes || false,\n allowDangerousHtml: options_.allowDangerousHtml || false,\n voids: options_.voids || htmlVoidElements,\n characterReferences:\n options_.characterReferences || emptyCharacterReferences,\n closeSelfClosing: options_.closeSelfClosing || false,\n closeEmptyElements: options_.closeEmptyElements || false\n },\n schema: options_.space === 'svg' ? svg : html,\n quote,\n alternative\n }\n\n return state.one(\n Array.isArray(tree) ? {type: 'root', children: tree} : tree,\n undefined,\n undefined\n )\n}\n\n/**\n * Serialize a node.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Nodes} node\n * Node to handle.\n * @param {number | undefined} index\n * Index of `node` in `parent.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {string}\n * Serialized node.\n */\nfunction one(node, index, parent) {\n return handle(node, index, parent, this)\n}\n\n/**\n * Serialize all children of `parent`.\n *\n * @this {State}\n * Info passed around about the current state.\n * @param {Parents | undefined} parent\n * Parent whose children to serialize.\n * @returns {string}\n */\nexport function all(parent) {\n /** @type {Array<string>} */\n const results = []\n const children = (parent && parent.children) || emptyChildren\n let index = -1\n\n while (++index < children.length) {\n results[index] = this.one(children[index], index, parent)\n }\n\n return results.join('')\n}\n"],"names":[],"mappings":";;;AA+JA,MAAM,eAAe,CAAE;AAGvB,MAAM,2BAA2B,CAAE;AAGnC,MAAM,gBAAgB,CAAE;AAYjB,SAAS,OAAO,MAAM,SAAS;AACpC,QAAM,WAAsB;AAC5B,QAAM,QAAQ,SAAS,SAAS;AAChC,QAAM,cAAc,UAAU,MAAM,MAAM;AAE1C,MAAI,UAAU,OAAO,UAAU,KAAK;AAClC,UAAM,IAAI,MAAM,oBAAoB,QAAQ,yBAAyB;AAAA,EACtE;AAGD,QAAM,QAAQ;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,MACR,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,YAAY,SAAS,cAAc;AAAA,MACnC,gBAAgB,SAAS,kBAAkB;AAAA,MAC3C,iBAAiB,SAAS,mBAAmB;AAAA,MAC7C,cAAc,SAAS,gBAAgB;AAAA,MACvC,cAAc,SAAS,gBAAgB;AAAA,MACvC,eAAe,SAAS,iBAAiB;AAAA,MACzC,0BAA0B,SAAS,4BAA4B;AAAA,MAC/D,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,yBAAyB,SAAS,2BAA2B;AAAA,MAC7D,oBAAoB,SAAS,sBAAsB;AAAA,MACnD,OAAO,SAAS,SAAS;AAAA,MACzB,qBACE,SAAS,uBAAuB;AAAA,MAClC,kBAAkB,SAAS,oBAAoB;AAAA,MAC/C,oBAAoB,SAAS,sBAAsB;AAAA,IACpD;AAAA,IACD,QAAQ,SAAS,UAAU,QAAQ,MAAM;AAAA,IACzC;AAAA,IACA;AAAA,EACD;AAED,SAAO,MAAM;AAAA,IACX,MAAM,QAAQ,IAAI,IAAI,EAAC,MAAM,QAAQ,UAAU,KAAI,IAAI;AAAA,IACvD;AAAA,IACA;AAAA,EACD;AACH;AAgBA,SAAS,IAAI,MAAM,OAAO,QAAQ;AAChC,SAAO,OAAO,MAAM,OAAO,QAAQ,IAAI;AACzC;AAWO,SAAS,IAAI,QAAQ;AAE1B,QAAM,UAAU,CAAE;AAClB,QAAM,WAAY,UAAU,OAAO,YAAa;AAChD,MAAI,QAAQ;AAEZ,SAAO,EAAE,QAAQ,SAAS,QAAQ;AAChC,YAAQ,KAAK,IAAI,KAAK,IAAI,SAAS,KAAK,GAAG,OAAO,MAAM;AAAA,EACzD;AAED,SAAO,QAAQ,KAAK,EAAE;AACxB;","x_google_ignoreList":[0]}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const siblings = require("./util/siblings.cjs");
|
|
4
|
-
const omission = require("./omission.cjs");
|
|
5
|
-
const index = require("../../../hast-util-whitespace/lib/index.cjs");
|
|
6
|
-
const closing = omission.omission({
|
|
7
|
-
body,
|
|
8
|
-
caption: headOrColgroupOrCaption,
|
|
9
|
-
colgroup: headOrColgroupOrCaption,
|
|
10
|
-
dd,
|
|
11
|
-
dt,
|
|
12
|
-
head: headOrColgroupOrCaption,
|
|
13
|
-
html,
|
|
14
|
-
li,
|
|
15
|
-
optgroup,
|
|
16
|
-
option,
|
|
17
|
-
p,
|
|
18
|
-
rp: rubyElement,
|
|
19
|
-
rt: rubyElement,
|
|
20
|
-
tbody,
|
|
21
|
-
td: cells,
|
|
22
|
-
tfoot,
|
|
23
|
-
th: cells,
|
|
24
|
-
thead,
|
|
25
|
-
tr
|
|
26
|
-
});
|
|
27
|
-
function headOrColgroupOrCaption(_, index$1, parent) {
|
|
28
|
-
const next = siblings.siblingAfter(parent, index$1, true);
|
|
29
|
-
return !next || next.type !== "comment" && !(next.type === "text" && index.whitespace(next.value.charAt(0)));
|
|
30
|
-
}
|
|
31
|
-
function html(_, index2, parent) {
|
|
32
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
33
|
-
return !next || next.type !== "comment";
|
|
34
|
-
}
|
|
35
|
-
function body(_, index2, parent) {
|
|
36
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
37
|
-
return !next || next.type !== "comment";
|
|
38
|
-
}
|
|
39
|
-
function p(_, index2, parent) {
|
|
40
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
41
|
-
return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
|
|
42
|
-
!(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video"));
|
|
43
|
-
}
|
|
44
|
-
function li(_, index2, parent) {
|
|
45
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
46
|
-
return !next || next.type === "element" && next.tagName === "li";
|
|
47
|
-
}
|
|
48
|
-
function dt(_, index2, parent) {
|
|
49
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
50
|
-
return Boolean(
|
|
51
|
-
next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function dd(_, index2, parent) {
|
|
55
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
56
|
-
return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
|
|
57
|
-
}
|
|
58
|
-
function rubyElement(_, index2, parent) {
|
|
59
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
60
|
-
return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
|
|
61
|
-
}
|
|
62
|
-
function optgroup(_, index2, parent) {
|
|
63
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
64
|
-
return !next || next.type === "element" && next.tagName === "optgroup";
|
|
65
|
-
}
|
|
66
|
-
function option(_, index2, parent) {
|
|
67
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
68
|
-
return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
|
|
69
|
-
}
|
|
70
|
-
function thead(_, index2, parent) {
|
|
71
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
72
|
-
return Boolean(
|
|
73
|
-
next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
function tbody(_, index2, parent) {
|
|
77
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
78
|
-
return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
|
|
79
|
-
}
|
|
80
|
-
function tfoot(_, index2, parent) {
|
|
81
|
-
return !siblings.siblingAfter(parent, index2);
|
|
82
|
-
}
|
|
83
|
-
function tr(_, index2, parent) {
|
|
84
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
85
|
-
return !next || next.type === "element" && next.tagName === "tr";
|
|
86
|
-
}
|
|
87
|
-
function cells(_, index2, parent) {
|
|
88
|
-
const next = siblings.siblingAfter(parent, index2);
|
|
89
|
-
return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
|
|
90
|
-
}
|
|
91
|
-
exports.closing = closing;
|
|
92
|
-
//# sourceMappingURL=closing.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"closing.cjs","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/closing.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter} from './util/siblings.js'\nimport {omission} from './omission.js'\n\nexport const closing = omission({\n body,\n caption: headOrColgroupOrCaption,\n colgroup: headOrColgroupOrCaption,\n dd,\n dt,\n head: headOrColgroupOrCaption,\n html,\n li,\n optgroup,\n option,\n p,\n rp: rubyElement,\n rt: rubyElement,\n tbody,\n td: cells,\n tfoot,\n th: cells,\n thead,\n tr\n})\n\n/**\n * Macro for `</head>`, `</colgroup>`, and `</caption>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction headOrColgroupOrCaption(_, index, parent) {\n const next = siblingAfter(parent, index, true)\n return (\n !next ||\n (next.type !== 'comment' &&\n !(next.type === 'text' && whitespace(next.value.charAt(0))))\n )\n}\n\n/**\n * Whether to omit `</html>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction html(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</body>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction body(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</p>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction p(_, index, parent) {\n const next = siblingAfter(parent, index)\n return next\n ? next.type === 'element' &&\n (next.tagName === 'address' ||\n next.tagName === 'article' ||\n next.tagName === 'aside' ||\n next.tagName === 'blockquote' ||\n next.tagName === 'details' ||\n next.tagName === 'div' ||\n next.tagName === 'dl' ||\n next.tagName === 'fieldset' ||\n next.tagName === 'figcaption' ||\n next.tagName === 'figure' ||\n next.tagName === 'footer' ||\n next.tagName === 'form' ||\n next.tagName === 'h1' ||\n next.tagName === 'h2' ||\n next.tagName === 'h3' ||\n next.tagName === 'h4' ||\n next.tagName === 'h5' ||\n next.tagName === 'h6' ||\n next.tagName === 'header' ||\n next.tagName === 'hgroup' ||\n next.tagName === 'hr' ||\n next.tagName === 'main' ||\n next.tagName === 'menu' ||\n next.tagName === 'nav' ||\n next.tagName === 'ol' ||\n next.tagName === 'p' ||\n next.tagName === 'pre' ||\n next.tagName === 'section' ||\n next.tagName === 'table' ||\n next.tagName === 'ul')\n : !parent ||\n // Confusing parent.\n !(\n parent.type === 'element' &&\n (parent.tagName === 'a' ||\n parent.tagName === 'audio' ||\n parent.tagName === 'del' ||\n parent.tagName === 'ins' ||\n parent.tagName === 'map' ||\n parent.tagName === 'noscript' ||\n parent.tagName === 'video')\n )\n}\n\n/**\n * Whether to omit `</li>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction li(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'li')\n}\n\n/**\n * Whether to omit `</dt>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dt(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd')\n )\n}\n\n/**\n * Whether to omit `</dd>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dd(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd'))\n )\n}\n\n/**\n * Whether to omit `</rt>` or `</rp>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction rubyElement(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'rp' || next.tagName === 'rt'))\n )\n}\n\n/**\n * Whether to omit `</optgroup>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction optgroup(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'optgroup')\n}\n\n/**\n * Whether to omit `</option>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction option(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'option' || next.tagName === 'optgroup'))\n )\n}\n\n/**\n * Whether to omit `</thead>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction thead(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot')\n )\n}\n\n/**\n * Whether to omit `</tbody>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tbody(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot'))\n )\n}\n\n/**\n * Whether to omit `</tfoot>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tfoot(_, index, parent) {\n return !siblingAfter(parent, index)\n}\n\n/**\n * Whether to omit `</tr>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tr(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'tr')\n}\n\n/**\n * Whether to omit `</td>` or `</th>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction cells(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'td' || next.tagName === 'th'))\n )\n}\n"],"names":["omission","index","siblingAfter","whitespace"],"mappings":";;;;;AASY,MAAC,UAAUA,SAAAA,SAAS;AAAA,EAC9B;AAAA,EACA,SAAS;AAAA,EACT,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA;AACF,CAAC;AAcD,SAAS,wBAAwB,GAAGC,SAAO,QAAQ;AACjD,QAAM,OAAOC,SAAY,aAAC,QAAQD,SAAO,IAAI;AAC7C,SACE,CAAC,QACA,KAAK,SAAS,aACb,EAAE,KAAK,SAAS,UAAUE,MAAU,WAAC,KAAK,MAAM,OAAO,CAAC,CAAC;AAE/D;AAcA,SAAS,KAAK,GAAGF,QAAO,QAAQ;AAC9B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,KAAK,GAAGA,QAAO,QAAQ;AAC9B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,EAAE,GAAGA,QAAO,QAAQ;AAC3B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,OACH,KAAK,SAAS,cACX,KAAK,YAAY,aAChB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,aACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,cACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,UACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,QACjB,KAAK,YAAY,UACjB,KAAK,YAAY,UACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,OACjB,KAAK,YAAY,SACjB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,QACrB,CAAC;AAAA,EAEC,EACE,OAAO,SAAS,cACf,OAAO,YAAY,OAClB,OAAO,YAAY,WACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,cACnB,OAAO,YAAY;AAE/B;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC9C;AACH;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,YAAY,GAAGA,QAAO,QAAQ;AACrC,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,SAAS,GAAGA,QAAO,QAAQ;AAClC,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,OAAO,GAAGA,QAAO,QAAQ;AAChC,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,YAAY,KAAK,YAAY;AAErD;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,WAAW,KAAK,YAAY;AAAA,EACjD;AACH;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,WAAW,KAAK,YAAY;AAEpD;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,SAAO,CAACC,SAAAA,aAAa,QAAQD,MAAK;AACpC;AAcA,SAAS,GAAG,GAAGA,QAAO,QAAQ;AAC5B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,MAAM,GAAGA,QAAO,QAAQ;AAC/B,QAAM,OAAOC,SAAAA,aAAa,QAAQD,MAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;;","x_google_ignoreList":[0]}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { siblingAfter } from "./util/siblings.js";
|
|
2
|
-
import { omission } from "./omission.js";
|
|
3
|
-
import { whitespace } from "../../../hast-util-whitespace/lib/index.js";
|
|
4
|
-
const closing = omission({
|
|
5
|
-
body,
|
|
6
|
-
caption: headOrColgroupOrCaption,
|
|
7
|
-
colgroup: headOrColgroupOrCaption,
|
|
8
|
-
dd,
|
|
9
|
-
dt,
|
|
10
|
-
head: headOrColgroupOrCaption,
|
|
11
|
-
html,
|
|
12
|
-
li,
|
|
13
|
-
optgroup,
|
|
14
|
-
option,
|
|
15
|
-
p,
|
|
16
|
-
rp: rubyElement,
|
|
17
|
-
rt: rubyElement,
|
|
18
|
-
tbody,
|
|
19
|
-
td: cells,
|
|
20
|
-
tfoot,
|
|
21
|
-
th: cells,
|
|
22
|
-
thead,
|
|
23
|
-
tr
|
|
24
|
-
});
|
|
25
|
-
function headOrColgroupOrCaption(_, index, parent) {
|
|
26
|
-
const next = siblingAfter(parent, index, true);
|
|
27
|
-
return !next || next.type !== "comment" && !(next.type === "text" && whitespace(next.value.charAt(0)));
|
|
28
|
-
}
|
|
29
|
-
function html(_, index, parent) {
|
|
30
|
-
const next = siblingAfter(parent, index);
|
|
31
|
-
return !next || next.type !== "comment";
|
|
32
|
-
}
|
|
33
|
-
function body(_, index, parent) {
|
|
34
|
-
const next = siblingAfter(parent, index);
|
|
35
|
-
return !next || next.type !== "comment";
|
|
36
|
-
}
|
|
37
|
-
function p(_, index, parent) {
|
|
38
|
-
const next = siblingAfter(parent, index);
|
|
39
|
-
return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
|
|
40
|
-
!(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video"));
|
|
41
|
-
}
|
|
42
|
-
function li(_, index, parent) {
|
|
43
|
-
const next = siblingAfter(parent, index);
|
|
44
|
-
return !next || next.type === "element" && next.tagName === "li";
|
|
45
|
-
}
|
|
46
|
-
function dt(_, index, parent) {
|
|
47
|
-
const next = siblingAfter(parent, index);
|
|
48
|
-
return Boolean(
|
|
49
|
-
next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
function dd(_, index, parent) {
|
|
53
|
-
const next = siblingAfter(parent, index);
|
|
54
|
-
return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
|
|
55
|
-
}
|
|
56
|
-
function rubyElement(_, index, parent) {
|
|
57
|
-
const next = siblingAfter(parent, index);
|
|
58
|
-
return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
|
|
59
|
-
}
|
|
60
|
-
function optgroup(_, index, parent) {
|
|
61
|
-
const next = siblingAfter(parent, index);
|
|
62
|
-
return !next || next.type === "element" && next.tagName === "optgroup";
|
|
63
|
-
}
|
|
64
|
-
function option(_, index, parent) {
|
|
65
|
-
const next = siblingAfter(parent, index);
|
|
66
|
-
return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
|
|
67
|
-
}
|
|
68
|
-
function thead(_, index, parent) {
|
|
69
|
-
const next = siblingAfter(parent, index);
|
|
70
|
-
return Boolean(
|
|
71
|
-
next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
function tbody(_, index, parent) {
|
|
75
|
-
const next = siblingAfter(parent, index);
|
|
76
|
-
return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
|
|
77
|
-
}
|
|
78
|
-
function tfoot(_, index, parent) {
|
|
79
|
-
return !siblingAfter(parent, index);
|
|
80
|
-
}
|
|
81
|
-
function tr(_, index, parent) {
|
|
82
|
-
const next = siblingAfter(parent, index);
|
|
83
|
-
return !next || next.type === "element" && next.tagName === "tr";
|
|
84
|
-
}
|
|
85
|
-
function cells(_, index, parent) {
|
|
86
|
-
const next = siblingAfter(parent, index);
|
|
87
|
-
return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
|
|
88
|
-
}
|
|
89
|
-
export {
|
|
90
|
-
closing
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=closing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"closing.js","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/closing.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter} from './util/siblings.js'\nimport {omission} from './omission.js'\n\nexport const closing = omission({\n body,\n caption: headOrColgroupOrCaption,\n colgroup: headOrColgroupOrCaption,\n dd,\n dt,\n head: headOrColgroupOrCaption,\n html,\n li,\n optgroup,\n option,\n p,\n rp: rubyElement,\n rt: rubyElement,\n tbody,\n td: cells,\n tfoot,\n th: cells,\n thead,\n tr\n})\n\n/**\n * Macro for `</head>`, `</colgroup>`, and `</caption>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction headOrColgroupOrCaption(_, index, parent) {\n const next = siblingAfter(parent, index, true)\n return (\n !next ||\n (next.type !== 'comment' &&\n !(next.type === 'text' && whitespace(next.value.charAt(0))))\n )\n}\n\n/**\n * Whether to omit `</html>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction html(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</body>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction body(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || next.type !== 'comment'\n}\n\n/**\n * Whether to omit `</p>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction p(_, index, parent) {\n const next = siblingAfter(parent, index)\n return next\n ? next.type === 'element' &&\n (next.tagName === 'address' ||\n next.tagName === 'article' ||\n next.tagName === 'aside' ||\n next.tagName === 'blockquote' ||\n next.tagName === 'details' ||\n next.tagName === 'div' ||\n next.tagName === 'dl' ||\n next.tagName === 'fieldset' ||\n next.tagName === 'figcaption' ||\n next.tagName === 'figure' ||\n next.tagName === 'footer' ||\n next.tagName === 'form' ||\n next.tagName === 'h1' ||\n next.tagName === 'h2' ||\n next.tagName === 'h3' ||\n next.tagName === 'h4' ||\n next.tagName === 'h5' ||\n next.tagName === 'h6' ||\n next.tagName === 'header' ||\n next.tagName === 'hgroup' ||\n next.tagName === 'hr' ||\n next.tagName === 'main' ||\n next.tagName === 'menu' ||\n next.tagName === 'nav' ||\n next.tagName === 'ol' ||\n next.tagName === 'p' ||\n next.tagName === 'pre' ||\n next.tagName === 'section' ||\n next.tagName === 'table' ||\n next.tagName === 'ul')\n : !parent ||\n // Confusing parent.\n !(\n parent.type === 'element' &&\n (parent.tagName === 'a' ||\n parent.tagName === 'audio' ||\n parent.tagName === 'del' ||\n parent.tagName === 'ins' ||\n parent.tagName === 'map' ||\n parent.tagName === 'noscript' ||\n parent.tagName === 'video')\n )\n}\n\n/**\n * Whether to omit `</li>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction li(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'li')\n}\n\n/**\n * Whether to omit `</dt>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dt(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd')\n )\n}\n\n/**\n * Whether to omit `</dd>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction dd(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'dt' || next.tagName === 'dd'))\n )\n}\n\n/**\n * Whether to omit `</rt>` or `</rp>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction rubyElement(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'rp' || next.tagName === 'rt'))\n )\n}\n\n/**\n * Whether to omit `</optgroup>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction optgroup(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'optgroup')\n}\n\n/**\n * Whether to omit `</option>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction option(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'option' || next.tagName === 'optgroup'))\n )\n}\n\n/**\n * Whether to omit `</thead>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction thead(_, index, parent) {\n const next = siblingAfter(parent, index)\n return Boolean(\n next &&\n next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot')\n )\n}\n\n/**\n * Whether to omit `</tbody>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tbody(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'tbody' || next.tagName === 'tfoot'))\n )\n}\n\n/**\n * Whether to omit `</tfoot>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tfoot(_, index, parent) {\n return !siblingAfter(parent, index)\n}\n\n/**\n * Whether to omit `</tr>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction tr(_, index, parent) {\n const next = siblingAfter(parent, index)\n return !next || (next.type === 'element' && next.tagName === 'tr')\n}\n\n/**\n * Whether to omit `</td>` or `</th>`.\n *\n * @param {Element} _\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the closing tag can be omitted.\n */\nfunction cells(_, index, parent) {\n const next = siblingAfter(parent, index)\n return (\n !next ||\n (next.type === 'element' &&\n (next.tagName === 'td' || next.tagName === 'th'))\n )\n}\n"],"names":[],"mappings":";;;AASY,MAAC,UAAU,SAAS;AAAA,EAC9B;AAAA,EACA,SAAS;AAAA,EACT,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA,IAAI;AAAA,EACJ;AAAA,EACA;AACF,CAAC;AAcD,SAAS,wBAAwB,GAAG,OAAO,QAAQ;AACjD,QAAM,OAAO,aAAa,QAAQ,OAAO,IAAI;AAC7C,SACE,CAAC,QACA,KAAK,SAAS,aACb,EAAE,KAAK,SAAS,UAAU,WAAW,KAAK,MAAM,OAAO,CAAC,CAAC;AAE/D;AAcA,SAAS,KAAK,GAAG,OAAO,QAAQ;AAC9B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,KAAK,GAAG,OAAO,QAAQ;AAC9B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAQ,KAAK,SAAS;AAChC;AAcA,SAAS,EAAE,GAAG,OAAO,QAAQ;AAC3B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,OACH,KAAK,SAAS,cACX,KAAK,YAAY,aAChB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,aACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,cACjB,KAAK,YAAY,gBACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,UACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,QACjB,KAAK,YAAY,YACjB,KAAK,YAAY,YACjB,KAAK,YAAY,QACjB,KAAK,YAAY,UACjB,KAAK,YAAY,UACjB,KAAK,YAAY,SACjB,KAAK,YAAY,QACjB,KAAK,YAAY,OACjB,KAAK,YAAY,SACjB,KAAK,YAAY,aACjB,KAAK,YAAY,WACjB,KAAK,YAAY,QACrB,CAAC;AAAA,EAEC,EACE,OAAO,SAAS,cACf,OAAO,YAAY,OAClB,OAAO,YAAY,WACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,SACnB,OAAO,YAAY,cACnB,OAAO,YAAY;AAE/B;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,QAAQ,KAAK,YAAY;AAAA,EAC9C;AACH;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,YAAY,GAAG,OAAO,QAAQ;AACrC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;AAcA,SAAS,SAAS,GAAG,OAAO,QAAQ;AAClC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,OAAO,GAAG,OAAO,QAAQ;AAChC,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,YAAY,KAAK,YAAY;AAErD;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO;AAAA,IACL,QACE,KAAK,SAAS,cACb,KAAK,YAAY,WAAW,KAAK,YAAY;AAAA,EACjD;AACH;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,WAAW,KAAK,YAAY;AAEpD;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,SAAO,CAAC,aAAa,QAAQ,KAAK;AACpC;AAcA,SAAS,GAAG,GAAG,OAAO,QAAQ;AAC5B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SAAO,CAAC,QAAS,KAAK,SAAS,aAAa,KAAK,YAAY;AAC/D;AAcA,SAAS,MAAM,GAAG,OAAO,QAAQ;AAC/B,QAAM,OAAO,aAAa,QAAQ,KAAK;AACvC,SACE,CAAC,QACA,KAAK,SAAS,cACZ,KAAK,YAAY,QAAQ,KAAK,YAAY;AAEjD;","x_google_ignoreList":[0]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const own = {}.hasOwnProperty;
|
|
4
|
-
function omission(handlers) {
|
|
5
|
-
return omit;
|
|
6
|
-
function omit(node, index, parent) {
|
|
7
|
-
return own.call(handlers, node.tagName) && handlers[node.tagName](node, index, parent);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.omission = omission;
|
|
11
|
-
//# sourceMappingURL=omission.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"omission.cjs","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/omission.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\n/**\n * @callback OmitHandle\n * Check if a tag can be omitted.\n * @param {Element} element\n * Element to check.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether to omit a tag.\n *\n */\n\nconst own = {}.hasOwnProperty\n\n/**\n * Factory to check if a given node can have a tag omitted.\n *\n * @param {Record<string, OmitHandle>} handlers\n * Omission handlers, where each key is a tag name, and each value is the\n * corresponding handler.\n * @returns {OmitHandle}\n * Whether to omit a tag of an element.\n */\nexport function omission(handlers) {\n return omit\n\n /**\n * Check if a given node can have a tag omitted.\n *\n * @type {OmitHandle}\n */\n function omit(node, index, parent) {\n return (\n own.call(handlers, node.tagName) &&\n handlers[node.tagName](node, index, parent)\n )\n }\n}\n"],"names":[],"mappings":";;AAmBA,MAAM,MAAM,CAAE,EAAC;AAWR,SAAS,SAAS,UAAU;AACjC,SAAO;AAOP,WAAS,KAAK,MAAM,OAAO,QAAQ;AACjC,WACE,IAAI,KAAK,UAAU,KAAK,OAAO,KAC/B,SAAS,KAAK,OAAO,EAAE,MAAM,OAAO,MAAM;AAAA,EAE7C;AACH;;","x_google_ignoreList":[0]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const own = {}.hasOwnProperty;
|
|
2
|
-
function omission(handlers) {
|
|
3
|
-
return omit;
|
|
4
|
-
function omit(node, index, parent) {
|
|
5
|
-
return own.call(handlers, node.tagName) && handlers[node.tagName](node, index, parent);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
omission
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=omission.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"omission.js","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/omission.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\n/**\n * @callback OmitHandle\n * Check if a tag can be omitted.\n * @param {Element} element\n * Element to check.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether to omit a tag.\n *\n */\n\nconst own = {}.hasOwnProperty\n\n/**\n * Factory to check if a given node can have a tag omitted.\n *\n * @param {Record<string, OmitHandle>} handlers\n * Omission handlers, where each key is a tag name, and each value is the\n * corresponding handler.\n * @returns {OmitHandle}\n * Whether to omit a tag of an element.\n */\nexport function omission(handlers) {\n return omit\n\n /**\n * Check if a given node can have a tag omitted.\n *\n * @type {OmitHandle}\n */\n function omit(node, index, parent) {\n return (\n own.call(handlers, node.tagName) &&\n handlers[node.tagName](node, index, parent)\n )\n }\n}\n"],"names":[],"mappings":"AAmBA,MAAM,MAAM,CAAE,EAAC;AAWR,SAAS,SAAS,UAAU;AACjC,SAAO;AAOP,WAAS,KAAK,MAAM,OAAO,QAAQ;AACjC,WACE,IAAI,KAAK,UAAU,KAAK,OAAO,KAC/B,SAAS,KAAK,OAAO,EAAE,MAAM,OAAO,MAAM;AAAA,EAE7C;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const siblings = require("./util/siblings.cjs");
|
|
4
|
-
const closing = require("./closing.cjs");
|
|
5
|
-
const omission = require("./omission.cjs");
|
|
6
|
-
const index = require("../../../hast-util-whitespace/lib/index.cjs");
|
|
7
|
-
const opening = omission.omission({
|
|
8
|
-
body,
|
|
9
|
-
colgroup,
|
|
10
|
-
head,
|
|
11
|
-
html,
|
|
12
|
-
tbody
|
|
13
|
-
});
|
|
14
|
-
function html(node) {
|
|
15
|
-
const head2 = siblings.siblingAfter(node, -1);
|
|
16
|
-
return !head2 || head2.type !== "comment";
|
|
17
|
-
}
|
|
18
|
-
function head(node) {
|
|
19
|
-
const children = node.children;
|
|
20
|
-
const seen = [];
|
|
21
|
-
let index2 = -1;
|
|
22
|
-
while (++index2 < children.length) {
|
|
23
|
-
const child = children[index2];
|
|
24
|
-
if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
|
|
25
|
-
if (seen.includes(child.tagName)) return false;
|
|
26
|
-
seen.push(child.tagName);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return children.length > 0;
|
|
30
|
-
}
|
|
31
|
-
function body(node) {
|
|
32
|
-
const head2 = siblings.siblingAfter(node, -1, true);
|
|
33
|
-
return !head2 || head2.type !== "comment" && !(head2.type === "text" && index.whitespace(head2.value.charAt(0))) && !(head2.type === "element" && (head2.tagName === "meta" || head2.tagName === "link" || head2.tagName === "script" || head2.tagName === "style" || head2.tagName === "template"));
|
|
34
|
-
}
|
|
35
|
-
function colgroup(node, index2, parent) {
|
|
36
|
-
const previous = siblings.siblingBefore(parent, index2);
|
|
37
|
-
const head2 = siblings.siblingAfter(node, -1, true);
|
|
38
|
-
if (parent && previous && previous.type === "element" && previous.tagName === "colgroup" && closing.closing(previous, parent.children.indexOf(previous), parent)) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
return Boolean(head2 && head2.type === "element" && head2.tagName === "col");
|
|
42
|
-
}
|
|
43
|
-
function tbody(node, index2, parent) {
|
|
44
|
-
const previous = siblings.siblingBefore(parent, index2);
|
|
45
|
-
const head2 = siblings.siblingAfter(node, -1);
|
|
46
|
-
if (parent && previous && previous.type === "element" && (previous.tagName === "thead" || previous.tagName === "tbody") && closing.closing(previous, parent.children.indexOf(previous), parent)) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
return Boolean(head2 && head2.type === "element" && head2.tagName === "tr");
|
|
50
|
-
}
|
|
51
|
-
exports.opening = opening;
|
|
52
|
-
//# sourceMappingURL=opening.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opening.cjs","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/opening.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter, siblingBefore} from './util/siblings.js'\nimport {closing} from './closing.js'\nimport {omission} from './omission.js'\n\nexport const opening = omission({\n body,\n colgroup,\n head,\n html,\n tbody\n})\n\n/**\n * Whether to omit `<html>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction html(node) {\n const head = siblingAfter(node, -1)\n return !head || head.type !== 'comment'\n}\n\n/**\n * Whether to omit `<head>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction head(node) {\n const children = node.children\n /** @type {Array<string>} */\n const seen = []\n let index = -1\n\n while (++index < children.length) {\n const child = children[index]\n if (\n child.type === 'element' &&\n (child.tagName === 'title' || child.tagName === 'base')\n ) {\n if (seen.includes(child.tagName)) return false\n seen.push(child.tagName)\n }\n }\n\n return children.length > 0\n}\n\n/**\n * Whether to omit `<body>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction body(node) {\n const head = siblingAfter(node, -1, true)\n\n return (\n !head ||\n (head.type !== 'comment' &&\n !(head.type === 'text' && whitespace(head.value.charAt(0))) &&\n !(\n head.type === 'element' &&\n (head.tagName === 'meta' ||\n head.tagName === 'link' ||\n head.tagName === 'script' ||\n head.tagName === 'style' ||\n head.tagName === 'template')\n ))\n )\n}\n\n/**\n * Whether to omit `<colgroup>`.\n * The spec describes some logic for the opening tag, but it’s easier to\n * implement in the closing tag, to the same effect, so we handle it there\n * instead.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction colgroup(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1, true)\n\n // Previous colgroup was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n previous.tagName === 'colgroup' &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'col')\n}\n\n/**\n * Whether to omit `<tbody>`.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction tbody(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1)\n\n // Previous table section was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n (previous.tagName === 'thead' || previous.tagName === 'tbody') &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'tr')\n}\n"],"names":["omission","head","siblingAfter","index","whitespace","siblingBefore","closing"],"mappings":";;;;;;AAUY,MAAC,UAAUA,SAAAA,SAAS;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAUD,SAAS,KAAK,MAAM;AAClB,QAAMC,QAAOC,SAAAA,aAAa,MAAM,EAAE;AAClC,SAAO,CAACD,SAAQA,MAAK,SAAS;AAChC;AAUA,SAAS,KAAK,MAAM;AAClB,QAAM,WAAW,KAAK;AAEtB,QAAM,OAAO,CAAE;AACf,MAAIE,SAAQ;AAEZ,SAAO,EAAEA,SAAQ,SAAS,QAAQ;AAChC,UAAM,QAAQ,SAASA,MAAK;AAC5B,QACE,MAAM,SAAS,cACd,MAAM,YAAY,WAAW,MAAM,YAAY,SAChD;AACA,UAAI,KAAK,SAAS,MAAM,OAAO,EAAG,QAAO;AACzC,WAAK,KAAK,MAAM,OAAO;AAAA,IACxB;AAAA,EACF;AAED,SAAO,SAAS,SAAS;AAC3B;AAUA,SAAS,KAAK,MAAM;AAClB,QAAMF,QAAOC,SAAY,aAAC,MAAM,IAAI,IAAI;AAExC,SACE,CAACD,SACAA,MAAK,SAAS,aACb,EAAEA,MAAK,SAAS,UAAUG,MAAU,WAACH,MAAK,MAAM,OAAO,CAAC,CAAC,MACzD,EACEA,MAAK,SAAS,cACbA,MAAK,YAAY,UAChBA,MAAK,YAAY,UACjBA,MAAK,YAAY,YACjBA,MAAK,YAAY,WACjBA,MAAK,YAAY;AAG3B;AAiBA,SAAS,SAAS,MAAME,QAAO,QAAQ;AACrC,QAAM,WAAWE,SAAAA,cAAc,QAAQF,MAAK;AAC5C,QAAMF,QAAOC,SAAY,aAAC,MAAM,IAAI,IAAI;AAGxC,MACE,UACA,YACA,SAAS,SAAS,aAClB,SAAS,YAAY,cACrBI,QAAO,QAAC,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQL,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,KAAK;AAC1E;AAcA,SAAS,MAAM,MAAME,QAAO,QAAQ;AAClC,QAAM,WAAWE,SAAAA,cAAc,QAAQF,MAAK;AAC5C,QAAMF,QAAOC,SAAAA,aAAa,MAAM,EAAE;AAGlC,MACE,UACA,YACA,SAAS,SAAS,cACjB,SAAS,YAAY,WAAW,SAAS,YAAY,YACtDI,QAAO,QAAC,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQL,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,IAAI;AACzE;;","x_google_ignoreList":[0]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { siblingAfter, siblingBefore } from "./util/siblings.js";
|
|
2
|
-
import { closing } from "./closing.js";
|
|
3
|
-
import { omission } from "./omission.js";
|
|
4
|
-
import { whitespace } from "../../../hast-util-whitespace/lib/index.js";
|
|
5
|
-
const opening = omission({
|
|
6
|
-
body,
|
|
7
|
-
colgroup,
|
|
8
|
-
head,
|
|
9
|
-
html,
|
|
10
|
-
tbody
|
|
11
|
-
});
|
|
12
|
-
function html(node) {
|
|
13
|
-
const head2 = siblingAfter(node, -1);
|
|
14
|
-
return !head2 || head2.type !== "comment";
|
|
15
|
-
}
|
|
16
|
-
function head(node) {
|
|
17
|
-
const children = node.children;
|
|
18
|
-
const seen = [];
|
|
19
|
-
let index = -1;
|
|
20
|
-
while (++index < children.length) {
|
|
21
|
-
const child = children[index];
|
|
22
|
-
if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
|
|
23
|
-
if (seen.includes(child.tagName)) return false;
|
|
24
|
-
seen.push(child.tagName);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return children.length > 0;
|
|
28
|
-
}
|
|
29
|
-
function body(node) {
|
|
30
|
-
const head2 = siblingAfter(node, -1, true);
|
|
31
|
-
return !head2 || head2.type !== "comment" && !(head2.type === "text" && whitespace(head2.value.charAt(0))) && !(head2.type === "element" && (head2.tagName === "meta" || head2.tagName === "link" || head2.tagName === "script" || head2.tagName === "style" || head2.tagName === "template"));
|
|
32
|
-
}
|
|
33
|
-
function colgroup(node, index, parent) {
|
|
34
|
-
const previous = siblingBefore(parent, index);
|
|
35
|
-
const head2 = siblingAfter(node, -1, true);
|
|
36
|
-
if (parent && previous && previous.type === "element" && previous.tagName === "colgroup" && closing(previous, parent.children.indexOf(previous), parent)) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
return Boolean(head2 && head2.type === "element" && head2.tagName === "col");
|
|
40
|
-
}
|
|
41
|
-
function tbody(node, index, parent) {
|
|
42
|
-
const previous = siblingBefore(parent, index);
|
|
43
|
-
const head2 = siblingAfter(node, -1);
|
|
44
|
-
if (parent && previous && previous.type === "element" && (previous.tagName === "thead" || previous.tagName === "tbody") && closing(previous, parent.children.indexOf(previous), parent)) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
return Boolean(head2 && head2.type === "element" && head2.tagName === "tr");
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
opening
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=opening.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opening.js","sources":["../../../../../node_modules/hast-util-to-html/lib/omission/opening.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\nimport {whitespace} from 'hast-util-whitespace'\nimport {siblingAfter, siblingBefore} from './util/siblings.js'\nimport {closing} from './closing.js'\nimport {omission} from './omission.js'\n\nexport const opening = omission({\n body,\n colgroup,\n head,\n html,\n tbody\n})\n\n/**\n * Whether to omit `<html>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction html(node) {\n const head = siblingAfter(node, -1)\n return !head || head.type !== 'comment'\n}\n\n/**\n * Whether to omit `<head>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction head(node) {\n const children = node.children\n /** @type {Array<string>} */\n const seen = []\n let index = -1\n\n while (++index < children.length) {\n const child = children[index]\n if (\n child.type === 'element' &&\n (child.tagName === 'title' || child.tagName === 'base')\n ) {\n if (seen.includes(child.tagName)) return false\n seen.push(child.tagName)\n }\n }\n\n return children.length > 0\n}\n\n/**\n * Whether to omit `<body>`.\n *\n * @param {Element} node\n * Element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction body(node) {\n const head = siblingAfter(node, -1, true)\n\n return (\n !head ||\n (head.type !== 'comment' &&\n !(head.type === 'text' && whitespace(head.value.charAt(0))) &&\n !(\n head.type === 'element' &&\n (head.tagName === 'meta' ||\n head.tagName === 'link' ||\n head.tagName === 'script' ||\n head.tagName === 'style' ||\n head.tagName === 'template')\n ))\n )\n}\n\n/**\n * Whether to omit `<colgroup>`.\n * The spec describes some logic for the opening tag, but it’s easier to\n * implement in the closing tag, to the same effect, so we handle it there\n * instead.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction colgroup(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1, true)\n\n // Previous colgroup was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n previous.tagName === 'colgroup' &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'col')\n}\n\n/**\n * Whether to omit `<tbody>`.\n *\n * @param {Element} node\n * Element.\n * @param {number | undefined} index\n * Index of element in parent.\n * @param {Parents | undefined} parent\n * Parent of element.\n * @returns {boolean}\n * Whether the opening tag can be omitted.\n */\nfunction tbody(node, index, parent) {\n const previous = siblingBefore(parent, index)\n const head = siblingAfter(node, -1)\n\n // Previous table section was already omitted.\n if (\n parent &&\n previous &&\n previous.type === 'element' &&\n (previous.tagName === 'thead' || previous.tagName === 'tbody') &&\n closing(previous, parent.children.indexOf(previous), parent)\n ) {\n return false\n }\n\n return Boolean(head && head.type === 'element' && head.tagName === 'tr')\n}\n"],"names":["head"],"mappings":";;;;AAUY,MAAC,UAAU,SAAS;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAUD,SAAS,KAAK,MAAM;AAClB,QAAMA,QAAO,aAAa,MAAM,EAAE;AAClC,SAAO,CAACA,SAAQA,MAAK,SAAS;AAChC;AAUA,SAAS,KAAK,MAAM;AAClB,QAAM,WAAW,KAAK;AAEtB,QAAM,OAAO,CAAE;AACf,MAAI,QAAQ;AAEZ,SAAO,EAAE,QAAQ,SAAS,QAAQ;AAChC,UAAM,QAAQ,SAAS,KAAK;AAC5B,QACE,MAAM,SAAS,cACd,MAAM,YAAY,WAAW,MAAM,YAAY,SAChD;AACA,UAAI,KAAK,SAAS,MAAM,OAAO,EAAG,QAAO;AACzC,WAAK,KAAK,MAAM,OAAO;AAAA,IACxB;AAAA,EACF;AAED,SAAO,SAAS,SAAS;AAC3B;AAUA,SAAS,KAAK,MAAM;AAClB,QAAMA,QAAO,aAAa,MAAM,IAAI,IAAI;AAExC,SACE,CAACA,SACAA,MAAK,SAAS,aACb,EAAEA,MAAK,SAAS,UAAU,WAAWA,MAAK,MAAM,OAAO,CAAC,CAAC,MACzD,EACEA,MAAK,SAAS,cACbA,MAAK,YAAY,UAChBA,MAAK,YAAY,UACjBA,MAAK,YAAY,YACjBA,MAAK,YAAY,WACjBA,MAAK,YAAY;AAG3B;AAiBA,SAAS,SAAS,MAAM,OAAO,QAAQ;AACrC,QAAM,WAAW,cAAc,QAAQ,KAAK;AAC5C,QAAMA,QAAO,aAAa,MAAM,IAAI,IAAI;AAGxC,MACE,UACA,YACA,SAAS,SAAS,aAClB,SAAS,YAAY,cACrB,QAAQ,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQA,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,KAAK;AAC1E;AAcA,SAAS,MAAM,MAAM,OAAO,QAAQ;AAClC,QAAM,WAAW,cAAc,QAAQ,KAAK;AAC5C,QAAMA,QAAO,aAAa,MAAM,EAAE;AAGlC,MACE,UACA,YACA,SAAS,SAAS,cACjB,SAAS,YAAY,WAAW,SAAS,YAAY,YACtD,QAAQ,UAAU,OAAO,SAAS,QAAQ,QAAQ,GAAG,MAAM,GAC3D;AACA,WAAO;AAAA,EACR;AAED,SAAO,QAAQA,SAAQA,MAAK,SAAS,aAAaA,MAAK,YAAY,IAAI;AACzE;","x_google_ignoreList":[0]}
|