@ynput/ayon-frontend-shared 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.cjs10.js +1 -1
- package/dist/_virtual/index.cjs11.js +1 -1
- package/dist/_virtual/index.cjs12.js +1 -1
- package/dist/_virtual/index.es10.js +3 -3
- package/dist/_virtual/index.es11.js +5 -5
- package/dist/_virtual/index.es12.js +5 -5
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
- package/dist/node_modules/web-namespaces/index.cjs.js +1 -1
- package/dist/node_modules/web-namespaces/index.cjs.js.map +1 -1
- package/dist/node_modules/web-namespaces/index.es.js +3 -8
- package/dist/node_modules/web-namespaces/index.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.cjs.js +12 -8
- package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.es.js +11 -7
- package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js +2 -2
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js +66 -61
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.es.js +6 -6
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js +10 -10
- package/dist/shared/src/hooks/useLoadModules.cjs.js +1 -1
- package/dist/shared/src/hooks/useLoadModules.cjs.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModules.es.js +86 -80
- package/dist/shared/src/hooks/useLoadModules.es.js.map +1 -1
- package/dist/types/api/generated/graphql.d.ts +2 -1
- package/dist/types/api/generated/graphqlLinks.d.ts +1 -0
- package/package.json +2 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +0 -63
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/index.es.js +0 -12
- package/dist/node_modules/@ungap/structured-clone/esm/index.es.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +0 -107
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/types.es.js +0 -14
- package/dist/node_modules/@ungap/structured-clone/esm/types.es.js.map +0 -1
- package/dist/node_modules/devlop/lib/default.cjs.js +0 -2
- package/dist/node_modules/devlop/lib/default.cjs.js.map +0 -1
- package/dist/node_modules/devlop/lib/default.es.js +0 -6
- package/dist/node_modules/devlop/lib/default.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js +0 -2
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js +0 -39
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode.cjs.js +0 -2
- package/dist/node_modules/entities/dist/esm/decode.cjs.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode.es.js +0 -246
- package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js +0 -2
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js +0 -8
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/lib/index.es.js +0 -218
- package/dist/node_modules/hast-util-raw/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js +0 -146
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js +0 -21
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js +0 -113
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js +0 -9
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js +0 -45
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js +0 -26
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js +0 -99
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js +0 -8
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js +0 -211
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js +0 -251
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js +0 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js +0 -74
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js +0 -85
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js +0 -2272
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js +0 -241
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js +0 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js +0 -1941
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js +0 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js +0 -163
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js +0 -13
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js +0 -62
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js +0 -34
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js +0 -369
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js +0 -7
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js +0 -567
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js +0 -20
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js +0 -37
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js +0 -29
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js +0 -11
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js +0 -22
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js +0 -15
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js +0 -20
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js +0 -12
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js +0 -12
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js +0 -3
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js +0 -43
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +0 -119
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -20
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -37
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -29
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -22
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
- package/dist/node_modules/rehype-raw/lib/index.cjs.js +0 -2
- package/dist/node_modules/rehype-raw/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/rehype-raw/lib/index.es.js +0 -13
- package/dist/node_modules/rehype-raw/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-is/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-is/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-is/lib/index.es.js +0 -92
- package/dist/node_modules/unist-util-is/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-position/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-position/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-position/lib/index.es.js +0 -18
- package/dist/node_modules/unist-util-position/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-visit/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-visit/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-visit/lib/index.es.js +0 -17
- package/dist/node_modules/unist-util-visit/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js +0 -2
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js +0 -7
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +0 -57
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +0 -1
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { normalize as p } from "../normalize.es.js";
|
|
2
|
-
import { DefinedInfo as c } from "./defined-info.es.js";
|
|
3
|
-
import { Schema as a } from "./schema.es.js";
|
|
4
|
-
function l(r) {
|
|
5
|
-
const s = {}, t = {};
|
|
6
|
-
for (const [e, m] of Object.entries(r.properties)) {
|
|
7
|
-
const o = new c(
|
|
8
|
-
e,
|
|
9
|
-
r.transform(r.attributes || {}, e),
|
|
10
|
-
m,
|
|
11
|
-
r.space
|
|
12
|
-
);
|
|
13
|
-
r.mustUseProperty && r.mustUseProperty.includes(e) && (o.mustUseProperty = !0), s[e] = o, t[p(e)] = e, t[p(o.attribute)] = e;
|
|
14
|
-
}
|
|
15
|
-
return new a(s, t, r.space);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
l as create
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=create.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.es.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/create.js"],"sourcesContent":["/**\n * @import {Info, Space} from 'property-information'\n */\n\n/**\n * @typedef Definition\n * Definition of a schema.\n * @property {Record<string, string> | undefined} [attributes]\n * Normalzed names to special attribute case.\n * @property {ReadonlyArray<string> | undefined} [mustUseProperty]\n * Normalized names that must be set as properties.\n * @property {Record<string, number | null>} properties\n * Property names to their types.\n * @property {Space | undefined} [space]\n * Space.\n * @property {Transform} transform\n * Transform a property name.\n */\n\n/**\n * @callback Transform\n * Transform.\n * @param {Record<string, string>} attributes\n * Attributes.\n * @param {string} property\n * Property.\n * @returns {string}\n * Attribute.\n */\n\nimport {normalize} from '../normalize.js'\nimport {DefinedInfo} from './defined-info.js'\nimport {Schema} from './schema.js'\n\n/**\n * @param {Definition} definition\n * Definition.\n * @returns {Schema}\n * Schema.\n */\nexport function create(definition) {\n /** @type {Record<string, Info>} */\n const properties = {}\n /** @type {Record<string, string>} */\n const normals = {}\n\n for (const [property, value] of Object.entries(definition.properties)) {\n const info = new DefinedInfo(\n property,\n definition.transform(definition.attributes || {}, property),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(property)\n ) {\n info.mustUseProperty = true\n }\n\n properties[property] = info\n\n normals[normalize(property)] = property\n normals[normalize(info.attribute)] = property\n }\n\n return new Schema(properties, normals, definition.space)\n}\n"],"names":["create","definition","properties","normals","property","value","info","DefinedInfo","normalize","Schema"],"mappings":";;;AAwCO,SAASA,EAAOC,GAAY;AAEjC,QAAMC,IAAa,CAAA,GAEbC,IAAU,CAAA;AAEhB,aAAW,CAACC,GAAUC,CAAK,KAAK,OAAO,QAAQJ,EAAW,UAAU,GAAG;AACrE,UAAMK,IAAO,IAAIC;AAAA,MACfH;AAAA,MACAH,EAAW,UAAUA,EAAW,cAAc,CAAA,GAAIG,CAAQ;AAAA,MAC1DC;AAAA,MACAJ,EAAW;AAAA,IACjB;AAEI,IACEA,EAAW,mBACXA,EAAW,gBAAgB,SAASG,CAAQ,MAE5CE,EAAK,kBAAkB,KAGzBJ,EAAWE,CAAQ,IAAIE,GAEvBH,EAAQK,EAAUJ,CAAQ,CAAC,IAAIA,GAC/BD,EAAQK,EAAUF,EAAK,SAAS,CAAC,IAAIF;AAAA,EACvC;AAEA,SAAO,IAAIK,EAAOP,GAAYC,GAASF,EAAW,KAAK;AACzD;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./info.cjs.js"),c=require("./types.cjs.js"),o=Object.keys(c);class u extends p.Info{constructor(t,e,s,d){let n=-1;if(super(t,e),f(this,"space",d),typeof s=="number")for(;++n<o.length;){const r=o[n];f(this,o[n],(s&c[r])===c[r])}}}u.prototype.defined=!0;function f(i,t,e){e&&(i[t]=e)}exports.DefinedInfo=u;
|
|
2
|
-
//# sourceMappingURL=defined-info.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defined-info.cjs.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.js"],"sourcesContent":["/**\n * @import {Space} from 'property-information'\n */\n\nimport {Info} from './info.js'\nimport * as types from './types.js'\n\nconst checks = /** @type {ReadonlyArray<keyof typeof types>} */ (\n Object.keys(types)\n)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * Property.\n * @param {string} attribute\n * Attribute.\n * @param {number | null | undefined} [mask]\n * Mask.\n * @param {Space | undefined} [space]\n * Space.\n * @returns\n * Info.\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @template {keyof DefinedInfo} Key\n * Key type.\n * @param {DefinedInfo} values\n * Info.\n * @param {Key} key\n * Key.\n * @param {DefinedInfo[Key]} value\n * Value.\n * @returns {undefined}\n * Nothing.\n */\nfunction mark(values, key, value) {\n if (value) {\n values[key] = value\n }\n}\n"],"names":["checks","types","DefinedInfo","Info","property","attribute","mask","space","index","mark","check","values","key","value"],"mappings":"6IAOMA,EACJ,OAAO,KAAKC,CAAK,EAGZ,MAAMC,UAAoBC,EAAAA,IAAK,CAcpC,YAAYC,EAAUC,EAAWC,EAAMC,EAAO,CAC5C,IAAIC,EAAQ,GAMZ,GAJA,MAAMJ,EAAUC,CAAS,EAEzBI,EAAK,KAAM,QAASF,CAAK,EAErB,OAAOD,GAAS,SAClB,KAAO,EAAEE,EAAQR,EAAO,QAAQ,CAC9B,MAAMU,EAAQV,EAAOQ,CAAK,EAC1BC,EAAK,KAAMT,EAAOQ,CAAK,GAAIF,EAAOL,EAAMS,CAAK,KAAOT,EAAMS,CAAK,CAAC,CAClE,CAEJ,CACF,CAEAR,EAAY,UAAU,QAAU,GAchC,SAASO,EAAKE,EAAQC,EAAKC,EAAO,CAC5BA,IACFF,EAAOC,CAAG,EAAIC,EAElB","x_google_ignoreList":[0]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Info as h } from "./info.es.js";
|
|
2
|
-
import * as s from "./types.es.js";
|
|
3
|
-
const n = (
|
|
4
|
-
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
5
|
-
Object.keys(s)
|
|
6
|
-
);
|
|
7
|
-
class d extends h {
|
|
8
|
-
/**
|
|
9
|
-
* @constructor
|
|
10
|
-
* @param {string} property
|
|
11
|
-
* Property.
|
|
12
|
-
* @param {string} attribute
|
|
13
|
-
* Attribute.
|
|
14
|
-
* @param {number | null | undefined} [mask]
|
|
15
|
-
* Mask.
|
|
16
|
-
* @param {Space | undefined} [space]
|
|
17
|
-
* Space.
|
|
18
|
-
* @returns
|
|
19
|
-
* Info.
|
|
20
|
-
*/
|
|
21
|
-
constructor(t, e, r, p) {
|
|
22
|
-
let o = -1;
|
|
23
|
-
if (super(t, e), f(this, "space", p), typeof r == "number")
|
|
24
|
-
for (; ++o < n.length; ) {
|
|
25
|
-
const i = n[o];
|
|
26
|
-
f(this, n[o], (r & s[i]) === s[i]);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
d.prototype.defined = !0;
|
|
31
|
-
function f(c, t, e) {
|
|
32
|
-
e && (c[t] = e);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
d as DefinedInfo
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=defined-info.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defined-info.es.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.js"],"sourcesContent":["/**\n * @import {Space} from 'property-information'\n */\n\nimport {Info} from './info.js'\nimport * as types from './types.js'\n\nconst checks = /** @type {ReadonlyArray<keyof typeof types>} */ (\n Object.keys(types)\n)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * Property.\n * @param {string} attribute\n * Attribute.\n * @param {number | null | undefined} [mask]\n * Mask.\n * @param {Space | undefined} [space]\n * Space.\n * @returns\n * Info.\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @template {keyof DefinedInfo} Key\n * Key type.\n * @param {DefinedInfo} values\n * Info.\n * @param {Key} key\n * Key.\n * @param {DefinedInfo[Key]} value\n * Value.\n * @returns {undefined}\n * Nothing.\n */\nfunction mark(values, key, value) {\n if (value) {\n values[key] = value\n }\n}\n"],"names":["checks","types","DefinedInfo","Info","property","attribute","mask","space","index","mark","check","values","key","value"],"mappings":";;AAOA,MAAMA;AAAA;AAAA,EACJ,OAAO,KAAKC,CAAK;AAAA;AAGZ,MAAMC,UAAoBC,EAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcpC,YAAYC,GAAUC,GAAWC,GAAMC,GAAO;AAC5C,QAAIC,IAAQ;AAMZ,QAJA,MAAMJ,GAAUC,CAAS,GAEzBI,EAAK,MAAM,SAASF,CAAK,GAErB,OAAOD,KAAS;AAClB,aAAO,EAAEE,IAAQR,EAAO,UAAQ;AAC9B,cAAMU,IAAQV,EAAOQ,CAAK;AAC1B,QAAAC,EAAK,MAAMT,EAAOQ,CAAK,IAAIF,IAAOL,EAAMS,CAAK,OAAOT,EAAMS,CAAK,CAAC;AAAA,MAClE;AAAA,EAEJ;AACF;AAEAR,EAAY,UAAU,UAAU;AAchC,SAASO,EAAKE,GAAQC,GAAKC,GAAO;AAChC,EAAIA,MACFF,EAAOC,CAAG,IAAIC;AAElB;","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e{constructor(t,o){this.attribute=o,this.property=t}}e.prototype.attribute="";e.prototype.booleanish=!1;e.prototype.boolean=!1;e.prototype.commaOrSpaceSeparated=!1;e.prototype.commaSeparated=!1;e.prototype.defined=!1;e.prototype.mustUseProperty=!1;e.prototype.number=!1;e.prototype.overloadedBoolean=!1;e.prototype.property="";e.prototype.spaceSeparated=!1;e.prototype.space=void 0;exports.Info=e;
|
|
2
|
-
//# sourceMappingURL=info.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.cjs.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/info.js"],"sourcesContent":["/**\n * @import {Info as InfoType} from 'property-information'\n */\n\n/** @type {InfoType} */\nexport class Info {\n /**\n * @param {string} property\n * Property.\n * @param {string} attribute\n * Attribute.\n * @returns\n * Info.\n */\n constructor(property, attribute) {\n this.attribute = attribute\n this.property = property\n }\n}\n\nInfo.prototype.attribute = ''\nInfo.prototype.booleanish = false\nInfo.prototype.boolean = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.defined = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.number = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.property = ''\nInfo.prototype.spaceSeparated = false\nInfo.prototype.space = undefined\n"],"names":["Info","property","attribute"],"mappings":"gFAKO,MAAMA,CAAK,CAShB,YAAYC,EAAUC,EAAW,CAC/B,KAAK,UAAYA,EACjB,KAAK,SAAWD,CAClB,CACF,CAEAD,EAAK,UAAU,UAAY,GAC3BA,EAAK,UAAU,WAAa,GAC5BA,EAAK,UAAU,QAAU,GACzBA,EAAK,UAAU,sBAAwB,GACvCA,EAAK,UAAU,eAAiB,GAChCA,EAAK,UAAU,QAAU,GACzBA,EAAK,UAAU,gBAAkB,GACjCA,EAAK,UAAU,OAAS,GACxBA,EAAK,UAAU,kBAAoB,GACnCA,EAAK,UAAU,SAAW,GAC1BA,EAAK,UAAU,eAAiB,GAChCA,EAAK,UAAU,MAAQ","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
class e {
|
|
2
|
-
/**
|
|
3
|
-
* @param {string} property
|
|
4
|
-
* Property.
|
|
5
|
-
* @param {string} attribute
|
|
6
|
-
* Attribute.
|
|
7
|
-
* @returns
|
|
8
|
-
* Info.
|
|
9
|
-
*/
|
|
10
|
-
constructor(t, o) {
|
|
11
|
-
this.attribute = o, this.property = t;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
e.prototype.attribute = "";
|
|
15
|
-
e.prototype.booleanish = !1;
|
|
16
|
-
e.prototype.boolean = !1;
|
|
17
|
-
e.prototype.commaOrSpaceSeparated = !1;
|
|
18
|
-
e.prototype.commaSeparated = !1;
|
|
19
|
-
e.prototype.defined = !1;
|
|
20
|
-
e.prototype.mustUseProperty = !1;
|
|
21
|
-
e.prototype.number = !1;
|
|
22
|
-
e.prototype.overloadedBoolean = !1;
|
|
23
|
-
e.prototype.property = "";
|
|
24
|
-
e.prototype.spaceSeparated = !1;
|
|
25
|
-
e.prototype.space = void 0;
|
|
26
|
-
export {
|
|
27
|
-
e as Info
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=info.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.es.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/info.js"],"sourcesContent":["/**\n * @import {Info as InfoType} from 'property-information'\n */\n\n/** @type {InfoType} */\nexport class Info {\n /**\n * @param {string} property\n * Property.\n * @param {string} attribute\n * Attribute.\n * @returns\n * Info.\n */\n constructor(property, attribute) {\n this.attribute = attribute\n this.property = property\n }\n}\n\nInfo.prototype.attribute = ''\nInfo.prototype.booleanish = false\nInfo.prototype.boolean = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.defined = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.number = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.property = ''\nInfo.prototype.spaceSeparated = false\nInfo.prototype.space = undefined\n"],"names":["Info","property","attribute"],"mappings":"AAKO,MAAMA,EAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAShB,YAAYC,GAAUC,GAAW;AAC/B,SAAK,YAAYA,GACjB,KAAK,WAAWD;AAAA,EAClB;AACF;AAEAD,EAAK,UAAU,YAAY;AAC3BA,EAAK,UAAU,aAAa;AAC5BA,EAAK,UAAU,UAAU;AACzBA,EAAK,UAAU,wBAAwB;AACvCA,EAAK,UAAU,iBAAiB;AAChCA,EAAK,UAAU,UAAU;AACzBA,EAAK,UAAU,kBAAkB;AACjCA,EAAK,UAAU,SAAS;AACxBA,EAAK,UAAU,oBAAoB;AACnCA,EAAK,UAAU,WAAW;AAC1BA,EAAK,UAAU,iBAAiB;AAChCA,EAAK,UAAU,QAAQ;","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./schema.cjs.js");function s(n,o){const e={},r={};for(const t of n)Object.assign(e,t.property),Object.assign(r,t.normal);return new c.Schema(e,r,o)}exports.merge=s;
|
|
2
|
-
//# sourceMappingURL=merge.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merge.cjs.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.js"],"sourcesContent":["/**\n * @import {Info, Space} from 'property-information'\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {ReadonlyArray<Schema>} definitions\n * Definitions.\n * @param {Space | undefined} [space]\n * Space.\n * @returns {Schema}\n * Schema.\n */\nexport function merge(definitions, space) {\n /** @type {Record<string, Info>} */\n const property = {}\n /** @type {Record<string, string>} */\n const normal = {}\n\n for (const definition of definitions) {\n Object.assign(property, definition.property)\n Object.assign(normal, definition.normal)\n }\n\n return new Schema(property, normal, space)\n}\n"],"names":["merge","definitions","space","property","normal","definition","Schema"],"mappings":"mHAcO,SAASA,EAAMC,EAAaC,EAAO,CAExC,MAAMC,EAAW,CAAA,EAEXC,EAAS,CAAA,EAEf,UAAWC,KAAcJ,EACvB,OAAO,OAAOE,EAAUE,EAAW,QAAQ,EAC3C,OAAO,OAAOD,EAAQC,EAAW,MAAM,EAGzC,OAAO,IAAIC,EAAAA,OAAOH,EAAUC,EAAQF,CAAK,CAC3C","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Schema as c } from "./schema.es.js";
|
|
2
|
-
function s(t, e) {
|
|
3
|
-
const o = {}, n = {};
|
|
4
|
-
for (const r of t)
|
|
5
|
-
Object.assign(o, r.property), Object.assign(n, r.normal);
|
|
6
|
-
return new c(o, n, e);
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
s as merge
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=merge.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merge.es.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.js"],"sourcesContent":["/**\n * @import {Info, Space} from 'property-information'\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {ReadonlyArray<Schema>} definitions\n * Definitions.\n * @param {Space | undefined} [space]\n * Space.\n * @returns {Schema}\n * Schema.\n */\nexport function merge(definitions, space) {\n /** @type {Record<string, Info>} */\n const property = {}\n /** @type {Record<string, string>} */\n const normal = {}\n\n for (const definition of definitions) {\n Object.assign(property, definition.property)\n Object.assign(normal, definition.normal)\n }\n\n return new Schema(property, normal, space)\n}\n"],"names":["merge","definitions","space","property","normal","definition","Schema"],"mappings":";AAcO,SAASA,EAAMC,GAAaC,GAAO;AAExC,QAAMC,IAAW,CAAA,GAEXC,IAAS,CAAA;AAEf,aAAWC,KAAcJ;AACvB,WAAO,OAAOE,GAAUE,EAAW,QAAQ,GAC3C,OAAO,OAAOD,GAAQC,EAAW,MAAM;AAGzC,SAAO,IAAIC,EAAOH,GAAUC,GAAQF,CAAK;AAC3C;","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class t{constructor(o,r,e){this.normal=r,this.property=o,e&&(this.space=e)}}t.prototype.normal={};t.prototype.property={};t.prototype.space=void 0;exports.Schema=t;
|
|
2
|
-
//# sourceMappingURL=schema.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.cjs.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.js"],"sourcesContent":["/**\n * @import {Schema as SchemaType, Space} from 'property-information'\n */\n\n/** @type {SchemaType} */\nexport class Schema {\n /**\n * @param {SchemaType['property']} property\n * Property.\n * @param {SchemaType['normal']} normal\n * Normal.\n * @param {Space | undefined} [space]\n * Space.\n * @returns\n * Schema.\n */\n constructor(property, normal, space) {\n this.normal = normal\n this.property = property\n\n if (space) {\n this.space = space\n }\n }\n}\n\nSchema.prototype.normal = {}\nSchema.prototype.property = {}\nSchema.prototype.space = undefined\n"],"names":["Schema","property","normal","space"],"mappings":"gFAKO,MAAMA,CAAO,CAWlB,YAAYC,EAAUC,EAAQC,EAAO,CACnC,KAAK,OAASD,EACd,KAAK,SAAWD,EAEZE,IACF,KAAK,MAAQA,EAEjB,CACF,CAEAH,EAAO,UAAU,OAAS,CAAA,EAC1BA,EAAO,UAAU,SAAW,CAAA,EAC5BA,EAAO,UAAU,MAAQ","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
class t {
|
|
2
|
-
/**
|
|
3
|
-
* @param {SchemaType['property']} property
|
|
4
|
-
* Property.
|
|
5
|
-
* @param {SchemaType['normal']} normal
|
|
6
|
-
* Normal.
|
|
7
|
-
* @param {Space | undefined} [space]
|
|
8
|
-
* Space.
|
|
9
|
-
* @returns
|
|
10
|
-
* Schema.
|
|
11
|
-
*/
|
|
12
|
-
constructor(p, r, o) {
|
|
13
|
-
this.normal = r, this.property = p, o && (this.space = o);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
t.prototype.normal = {};
|
|
17
|
-
t.prototype.property = {};
|
|
18
|
-
t.prototype.space = void 0;
|
|
19
|
-
export {
|
|
20
|
-
t as Schema
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=schema.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.es.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.js"],"sourcesContent":["/**\n * @import {Schema as SchemaType, Space} from 'property-information'\n */\n\n/** @type {SchemaType} */\nexport class Schema {\n /**\n * @param {SchemaType['property']} property\n * Property.\n * @param {SchemaType['normal']} normal\n * Normal.\n * @param {Space | undefined} [space]\n * Space.\n * @returns\n * Schema.\n */\n constructor(property, normal, space) {\n this.normal = normal\n this.property = property\n\n if (space) {\n this.space = space\n }\n }\n}\n\nSchema.prototype.normal = {}\nSchema.prototype.property = {}\nSchema.prototype.space = undefined\n"],"names":["Schema","property","normal","space"],"mappings":"AAKO,MAAMA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWlB,YAAYC,GAAUC,GAAQC,GAAO;AACnC,SAAK,SAASD,GACd,KAAK,WAAWD,GAEZE,MACF,KAAK,QAAQA;AAAA,EAEjB;AACF;AAEAH,EAAO,UAAU,SAAS,CAAA;AAC1BA,EAAO,UAAU,WAAW,CAAA;AAC5BA,EAAO,UAAU,QAAQ;","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let o=0;const a=e(),t=e(),n=e(),r=e(),c=e(),s=e(),d=e();function e(){return 2**++o}exports.boolean=a;exports.booleanish=t;exports.commaOrSpaceSeparated=d;exports.commaSeparated=s;exports.number=r;exports.overloadedBoolean=n;exports.spaceSeparated=c;
|
|
2
|
-
//# sourceMappingURL=types.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/types.js"],"sourcesContent":["let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n"],"names":["powers","boolean","increment","booleanish","overloadedBoolean","number","spaceSeparated","commaSeparated","commaOrSpaceSeparated"],"mappings":"gFAAA,IAAIA,EAAS,EAED,MAACC,EAAUC,EAAS,EACnBC,EAAaD,EAAS,EACtBE,EAAoBF,EAAS,EAC7BG,EAASH,EAAS,EAClBI,EAAiBJ,EAAS,EAC1BK,EAAiBL,EAAS,EAC1BM,EAAwBN,EAAS,EAE9C,SAASA,GAAY,CACnB,MAAO,IAAK,EAAEF,CAChB","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
let o = 0;
|
|
2
|
-
const n = e(), t = e(), a = e(), c = e(), r = e(), s = e(), p = e();
|
|
3
|
-
function e() {
|
|
4
|
-
return 2 ** ++o;
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
n as boolean,
|
|
8
|
-
t as booleanish,
|
|
9
|
-
p as commaOrSpaceSeparated,
|
|
10
|
-
s as commaSeparated,
|
|
11
|
-
c as number,
|
|
12
|
-
a as overloadedBoolean,
|
|
13
|
-
r as spaceSeparated
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=types.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.es.js","sources":["../../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/util/types.js"],"sourcesContent":["let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n"],"names":["powers","boolean","increment","booleanish","overloadedBoolean","number","spaceSeparated","commaSeparated","commaOrSpaceSeparated"],"mappings":"AAAA,IAAIA,IAAS;AAED,MAACC,IAAUC,EAAS,GACnBC,IAAaD,EAAS,GACtBE,IAAoBF,EAAS,GAC7BG,IAASH,EAAS,GAClBI,IAAiBJ,EAAS,GAC1BK,IAAiBL,EAAS,GAC1BM,IAAwBN,EAAS;AAE9C,SAASA,IAAY;AACnB,SAAO,KAAK,EAAEF;AAChB;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./util/create.cjs.js"),n=l.create({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,e){return"xlink:"+e.slice(5).toLowerCase()}});exports.xlink=n;
|
|
2
|
-
//# sourceMappingURL=xlink.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xlink.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/xlink.js"],"sourcesContent":["import {create} from './util/create.js'\n\nexport const xlink = create({\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n },\n space: 'xlink',\n transform(_, property) {\n return 'xlink:' + property.slice(5).toLowerCase()\n }\n})\n"],"names":["xlink","create","_","property"],"mappings":"wHAEaA,EAAQC,EAAAA,OAAO,CAC1B,WAAY,CACV,aAAc,KACd,aAAc,KACd,UAAW,KACX,UAAW,KACX,UAAW,KACX,WAAY,KACZ,UAAW,IACf,EACE,MAAO,QACP,UAAUC,EAAGC,EAAU,CACrB,MAAO,SAAWA,EAAS,MAAM,CAAC,EAAE,YAAW,CACjD,CACF,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { create as n } from "./util/create.es.js";
|
|
2
|
-
const r = n({
|
|
3
|
-
properties: {
|
|
4
|
-
xLinkActuate: null,
|
|
5
|
-
xLinkArcRole: null,
|
|
6
|
-
xLinkHref: null,
|
|
7
|
-
xLinkRole: null,
|
|
8
|
-
xLinkShow: null,
|
|
9
|
-
xLinkTitle: null,
|
|
10
|
-
xLinkType: null
|
|
11
|
-
},
|
|
12
|
-
space: "xlink",
|
|
13
|
-
transform(e, l) {
|
|
14
|
-
return "xlink:" + l.slice(5).toLowerCase();
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
r as xlink
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=xlink.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xlink.es.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/xlink.js"],"sourcesContent":["import {create} from './util/create.js'\n\nexport const xlink = create({\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n },\n space: 'xlink',\n transform(_, property) {\n return 'xlink:' + property.slice(5).toLowerCase()\n }\n})\n"],"names":["xlink","create","_","property"],"mappings":";AAEY,MAACA,IAAQC,EAAO;AAAA,EAC1B,YAAY;AAAA,IACV,cAAc;AAAA,IACd,cAAc;AAAA,IACd,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,WAAW;AAAA,EACf;AAAA,EACE,OAAO;AAAA,EACP,UAAUC,GAAGC,GAAU;AACrB,WAAO,WAAWA,EAAS,MAAM,CAAC,EAAE,YAAW;AAAA,EACjD;AACF,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./util/create.cjs.js"),r=l.create({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});exports.xml=r;
|
|
2
|
-
//# sourceMappingURL=xml.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xml.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/xml.js"],"sourcesContent":["import {create} from './util/create.js'\n\nexport const xml = create({\n properties: {xmlBase: null, xmlLang: null, xmlSpace: null},\n space: 'xml',\n transform(_, property) {\n return 'xml:' + property.slice(3).toLowerCase()\n }\n})\n"],"names":["xml","create","_","property"],"mappings":"wHAEaA,EAAMC,EAAAA,OAAO,CACxB,WAAY,CAAC,QAAS,KAAM,QAAS,KAAM,SAAU,IAAI,EACzD,MAAO,MACP,UAAUC,EAAGC,EAAU,CACrB,MAAO,OAASA,EAAS,MAAM,CAAC,EAAE,YAAW,CAC/C,CACF,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { create as e } from "./util/create.es.js";
|
|
2
|
-
const o = e({
|
|
3
|
-
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
4
|
-
space: "xml",
|
|
5
|
-
transform(r, l) {
|
|
6
|
-
return "xml:" + l.slice(3).toLowerCase();
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
o as xml
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=xml.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xml.es.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/xml.js"],"sourcesContent":["import {create} from './util/create.js'\n\nexport const xml = create({\n properties: {xmlBase: null, xmlLang: null, xmlSpace: null},\n space: 'xml',\n transform(_, property) {\n return 'xml:' + property.slice(3).toLowerCase()\n }\n})\n"],"names":["xml","create","_","property"],"mappings":";AAEY,MAACA,IAAMC,EAAO;AAAA,EACxB,YAAY,EAAC,SAAS,MAAM,SAAS,MAAM,UAAU,KAAI;AAAA,EACzD,OAAO;AAAA,EACP,UAAUC,GAAGC,GAAU;AACrB,WAAO,SAASA,EAAS,MAAM,CAAC,EAAE,YAAW;AAAA,EAC/C;AACF,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./util/create.cjs.js"),n=require("./util/case-insensitive-transform.cjs.js"),s=e.create({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:n.caseInsensitiveTransform});exports.xmlns=s;
|
|
2
|
-
//# sourceMappingURL=xmlns.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xmlns.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.js"],"sourcesContent":["import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n properties: {xmlnsXLink: null, xmlns: null},\n space: 'xmlns',\n transform: caseInsensitiveTransform\n})\n"],"names":["xmlns","create","caseInsensitiveTransform"],"mappings":"8KAGaA,EAAQC,EAAAA,OAAO,CAC1B,WAAY,CAAC,WAAY,aAAa,EACtC,WAAY,CAAC,WAAY,KAAM,MAAO,IAAI,EAC1C,MAAO,QACP,UAAWC,EAAAA,wBACb,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { create as n } from "./util/create.es.js";
|
|
2
|
-
import { caseInsensitiveTransform as s } from "./util/case-insensitive-transform.es.js";
|
|
3
|
-
const m = n({
|
|
4
|
-
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
5
|
-
properties: { xmlnsXLink: null, xmlns: null },
|
|
6
|
-
space: "xmlns",
|
|
7
|
-
transform: s
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
m as xmlns
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=xmlns.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xmlns.es.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.js"],"sourcesContent":["import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n properties: {xmlnsXLink: null, xmlns: null},\n space: 'xmlns',\n transform: caseInsensitiveTransform\n})\n"],"names":["xmlns","create","caseInsensitiveTransform"],"mappings":";;AAGY,MAACA,IAAQC,EAAO;AAAA,EAC1B,YAAY,EAAC,YAAY,cAAa;AAAA,EACtC,YAAY,EAAC,YAAY,MAAM,OAAO,KAAI;AAAA,EAC1C,OAAO;AAAA,EACP,WAAWC;AACb,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(c){const l=String(c),e=[];return{toOffset:s,toPoint:i};function i(n){if(typeof n=="number"&&n>-1&&n<=l.length){let t=0;for(;;){let r=e[t];if(r===void 0){const u=f(l,e[t-1]);r=u===-1?l.length+1:u+1,e[t]=r}if(r>n)return{line:t+1,column:n-(t>0?e[t-1]:0)+1,offset:n};t++}}}function s(n){if(n&&typeof n.line=="number"&&typeof n.column=="number"&&!Number.isNaN(n.line)&&!Number.isNaN(n.column)){for(;e.length<n.line;){const r=e[e.length-1],u=f(l,r),o=u===-1?l.length+1:u+1;if(r===o)break;e.push(o)}const t=(n.line>1?e[n.line-2]:0)+n.column-1;if(t<e[n.line-1])return t}}}function f(c,l){const e=c.indexOf("\r",l),i=c.indexOf(`
|
|
2
|
-
`,l);return i===-1?e:e===-1||e+1===i?i:e<i?e:i}exports.location=d;
|
|
3
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/vfile-location/lib/index.js"],"sourcesContent":["/**\n * @import {VFile, Value} from 'vfile'\n * @import {Location} from 'vfile-location'\n */\n\n/**\n * Create an index of the given document to translate between line/column and\n * offset based positional info.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n *\n * @param {VFile | Value} file\n * File to index.\n * @returns {Location}\n * Accessors for index.\n */\nexport function location(file) {\n const value = String(file)\n /**\n * List, where each index is a line number (0-based), and each value is the\n * byte index *after* where the line ends.\n *\n * @type {Array<number>}\n */\n const indices = []\n\n return {toOffset, toPoint}\n\n /** @type {Location['toPoint']} */\n function toPoint(offset) {\n if (typeof offset === 'number' && offset > -1 && offset <= value.length) {\n let index = 0\n\n while (true) {\n let end = indices[index]\n\n if (end === undefined) {\n const eol = next(value, indices[index - 1])\n end = eol === -1 ? value.length + 1 : eol + 1\n indices[index] = end\n }\n\n if (end > offset) {\n return {\n line: index + 1,\n column: offset - (index > 0 ? indices[index - 1] : 0) + 1,\n offset\n }\n }\n\n index++\n }\n }\n }\n\n /** @type {Location['toOffset']} */\n function toOffset(point) {\n if (\n point &&\n typeof point.line === 'number' &&\n typeof point.column === 'number' &&\n !Number.isNaN(point.line) &&\n !Number.isNaN(point.column)\n ) {\n while (indices.length < point.line) {\n const from = indices[indices.length - 1]\n const eol = next(value, from)\n const end = eol === -1 ? value.length + 1 : eol + 1\n if (from === end) break\n indices.push(end)\n }\n\n const offset =\n (point.line > 1 ? indices[point.line - 2] : 0) + point.column - 1\n // The given `column` could not exist on this line.\n if (offset < indices[point.line - 1]) return offset\n }\n }\n}\n\n/**\n * @param {string} value\n * @param {number} from\n */\nfunction next(value, from) {\n const cr = value.indexOf('\\r', from)\n const lf = value.indexOf('\\n', from)\n if (lf === -1) return cr\n if (cr === -1 || cr + 1 === lf) return lf\n return cr < lf ? cr : lf\n}\n"],"names":["location","file","value","indices","toOffset","toPoint","offset","index","end","eol","next","point","from","cr","lf"],"mappings":"gFAkBO,SAASA,EAASC,EAAM,CAC7B,MAAMC,EAAQ,OAAOD,CAAI,EAOnBE,EAAU,CAAA,EAEhB,MAAO,CAAC,SAAAC,EAAU,QAAAC,CAAO,EAGzB,SAASA,EAAQC,EAAQ,CACvB,GAAI,OAAOA,GAAW,UAAYA,EAAS,IAAMA,GAAUJ,EAAM,OAAQ,CACvE,IAAIK,EAAQ,EAEZ,OAAa,CACX,IAAIC,EAAML,EAAQI,CAAK,EAEvB,GAAIC,IAAQ,OAAW,CACrB,MAAMC,EAAMC,EAAKR,EAAOC,EAAQI,EAAQ,CAAC,CAAC,EAC1CC,EAAMC,IAAQ,GAAKP,EAAM,OAAS,EAAIO,EAAM,EAC5CN,EAAQI,CAAK,EAAIC,CACnB,CAEA,GAAIA,EAAMF,EACR,MAAO,CACL,KAAMC,EAAQ,EACd,OAAQD,GAAUC,EAAQ,EAAIJ,EAAQI,EAAQ,CAAC,EAAI,GAAK,EACxD,OAAAD,CACZ,EAGQC,GACF,CACF,CACF,CAGA,SAASH,EAASO,EAAO,CACvB,GACEA,GACA,OAAOA,EAAM,MAAS,UACtB,OAAOA,EAAM,QAAW,UACxB,CAAC,OAAO,MAAMA,EAAM,IAAI,GACxB,CAAC,OAAO,MAAMA,EAAM,MAAM,EAC1B,CACA,KAAOR,EAAQ,OAASQ,EAAM,MAAM,CAClC,MAAMC,EAAOT,EAAQA,EAAQ,OAAS,CAAC,EACjCM,EAAMC,EAAKR,EAAOU,CAAI,EACtBJ,EAAMC,IAAQ,GAAKP,EAAM,OAAS,EAAIO,EAAM,EAClD,GAAIG,IAASJ,EAAK,MAClBL,EAAQ,KAAKK,CAAG,CAClB,CAEA,MAAMF,GACHK,EAAM,KAAO,EAAIR,EAAQQ,EAAM,KAAO,CAAC,EAAI,GAAKA,EAAM,OAAS,EAElE,GAAIL,EAASH,EAAQQ,EAAM,KAAO,CAAC,EAAG,OAAOL,CAC/C,CACF,CACF,CAMA,SAASI,EAAKR,EAAOU,EAAM,CACzB,MAAMC,EAAKX,EAAM,QAAQ,KAAMU,CAAI,EAC7BE,EAAKZ,EAAM,QAAQ;AAAA,EAAMU,CAAI,EACnC,OAAIE,IAAO,GAAWD,EAClBA,IAAO,IAAMA,EAAK,IAAMC,EAAWA,EAChCD,EAAKC,EAAKD,EAAKC,CACxB","x_google_ignoreList":[0]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function m(c) {
|
|
2
|
-
const l = String(c), e = [];
|
|
3
|
-
return { toOffset: s, toPoint: i };
|
|
4
|
-
function i(n) {
|
|
5
|
-
if (typeof n == "number" && n > -1 && n <= l.length) {
|
|
6
|
-
let t = 0;
|
|
7
|
-
for (; ; ) {
|
|
8
|
-
let r = e[t];
|
|
9
|
-
if (r === void 0) {
|
|
10
|
-
const u = f(l, e[t - 1]);
|
|
11
|
-
r = u === -1 ? l.length + 1 : u + 1, e[t] = r;
|
|
12
|
-
}
|
|
13
|
-
if (r > n)
|
|
14
|
-
return {
|
|
15
|
-
line: t + 1,
|
|
16
|
-
column: n - (t > 0 ? e[t - 1] : 0) + 1,
|
|
17
|
-
offset: n
|
|
18
|
-
};
|
|
19
|
-
t++;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function s(n) {
|
|
24
|
-
if (n && typeof n.line == "number" && typeof n.column == "number" && !Number.isNaN(n.line) && !Number.isNaN(n.column)) {
|
|
25
|
-
for (; e.length < n.line; ) {
|
|
26
|
-
const r = e[e.length - 1], u = f(l, r), o = u === -1 ? l.length + 1 : u + 1;
|
|
27
|
-
if (r === o) break;
|
|
28
|
-
e.push(o);
|
|
29
|
-
}
|
|
30
|
-
const t = (n.line > 1 ? e[n.line - 2] : 0) + n.column - 1;
|
|
31
|
-
if (t < e[n.line - 1]) return t;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function f(c, l) {
|
|
36
|
-
const e = c.indexOf("\r", l), i = c.indexOf(`
|
|
37
|
-
`, l);
|
|
38
|
-
return i === -1 ? e : e === -1 || e + 1 === i ? i : e < i ? e : i;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
m as location
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/vfile-location/lib/index.js"],"sourcesContent":["/**\n * @import {VFile, Value} from 'vfile'\n * @import {Location} from 'vfile-location'\n */\n\n/**\n * Create an index of the given document to translate between line/column and\n * offset based positional info.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n *\n * @param {VFile | Value} file\n * File to index.\n * @returns {Location}\n * Accessors for index.\n */\nexport function location(file) {\n const value = String(file)\n /**\n * List, where each index is a line number (0-based), and each value is the\n * byte index *after* where the line ends.\n *\n * @type {Array<number>}\n */\n const indices = []\n\n return {toOffset, toPoint}\n\n /** @type {Location['toPoint']} */\n function toPoint(offset) {\n if (typeof offset === 'number' && offset > -1 && offset <= value.length) {\n let index = 0\n\n while (true) {\n let end = indices[index]\n\n if (end === undefined) {\n const eol = next(value, indices[index - 1])\n end = eol === -1 ? value.length + 1 : eol + 1\n indices[index] = end\n }\n\n if (end > offset) {\n return {\n line: index + 1,\n column: offset - (index > 0 ? indices[index - 1] : 0) + 1,\n offset\n }\n }\n\n index++\n }\n }\n }\n\n /** @type {Location['toOffset']} */\n function toOffset(point) {\n if (\n point &&\n typeof point.line === 'number' &&\n typeof point.column === 'number' &&\n !Number.isNaN(point.line) &&\n !Number.isNaN(point.column)\n ) {\n while (indices.length < point.line) {\n const from = indices[indices.length - 1]\n const eol = next(value, from)\n const end = eol === -1 ? value.length + 1 : eol + 1\n if (from === end) break\n indices.push(end)\n }\n\n const offset =\n (point.line > 1 ? indices[point.line - 2] : 0) + point.column - 1\n // The given `column` could not exist on this line.\n if (offset < indices[point.line - 1]) return offset\n }\n }\n}\n\n/**\n * @param {string} value\n * @param {number} from\n */\nfunction next(value, from) {\n const cr = value.indexOf('\\r', from)\n const lf = value.indexOf('\\n', from)\n if (lf === -1) return cr\n if (cr === -1 || cr + 1 === lf) return lf\n return cr < lf ? cr : lf\n}\n"],"names":["location","file","value","indices","toOffset","toPoint","offset","index","end","eol","next","point","from","cr","lf"],"mappings":"AAkBO,SAASA,EAASC,GAAM;AAC7B,QAAMC,IAAQ,OAAOD,CAAI,GAOnBE,IAAU,CAAA;AAEhB,SAAO,EAAC,UAAAC,GAAU,SAAAC,EAAO;AAGzB,WAASA,EAAQC,GAAQ;AACvB,QAAI,OAAOA,KAAW,YAAYA,IAAS,MAAMA,KAAUJ,EAAM,QAAQ;AACvE,UAAIK,IAAQ;AAEZ,iBAAa;AACX,YAAIC,IAAML,EAAQI,CAAK;AAEvB,YAAIC,MAAQ,QAAW;AACrB,gBAAMC,IAAMC,EAAKR,GAAOC,EAAQI,IAAQ,CAAC,CAAC;AAC1C,UAAAC,IAAMC,MAAQ,KAAKP,EAAM,SAAS,IAAIO,IAAM,GAC5CN,EAAQI,CAAK,IAAIC;AAAA,QACnB;AAEA,YAAIA,IAAMF;AACR,iBAAO;AAAA,YACL,MAAMC,IAAQ;AAAA,YACd,QAAQD,KAAUC,IAAQ,IAAIJ,EAAQI,IAAQ,CAAC,IAAI,KAAK;AAAA,YACxD,QAAAD;AAAA,UACZ;AAGQ,QAAAC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAGA,WAASH,EAASO,GAAO;AACvB,QACEA,KACA,OAAOA,EAAM,QAAS,YACtB,OAAOA,EAAM,UAAW,YACxB,CAAC,OAAO,MAAMA,EAAM,IAAI,KACxB,CAAC,OAAO,MAAMA,EAAM,MAAM,GAC1B;AACA,aAAOR,EAAQ,SAASQ,EAAM,QAAM;AAClC,cAAMC,IAAOT,EAAQA,EAAQ,SAAS,CAAC,GACjCM,IAAMC,EAAKR,GAAOU,CAAI,GACtBJ,IAAMC,MAAQ,KAAKP,EAAM,SAAS,IAAIO,IAAM;AAClD,YAAIG,MAASJ,EAAK;AAClB,QAAAL,EAAQ,KAAKK,CAAG;AAAA,MAClB;AAEA,YAAMF,KACHK,EAAM,OAAO,IAAIR,EAAQQ,EAAM,OAAO,CAAC,IAAI,KAAKA,EAAM,SAAS;AAElE,UAAIL,IAASH,EAAQQ,EAAM,OAAO,CAAC,EAAG,QAAOL;AAAA,IAC/C;AAAA,EACF;AACF;AAMA,SAASI,EAAKR,GAAOU,GAAM;AACzB,QAAMC,IAAKX,EAAM,QAAQ,MAAMU,CAAI,GAC7BE,IAAKZ,EAAM,QAAQ;AAAA,GAAMU,CAAI;AACnC,SAAIE,MAAO,KAAWD,IAClBA,MAAO,MAAMA,IAAK,MAAMC,IAAWA,IAChCD,IAAKC,IAAKD,IAAKC;AACxB;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../../comma-separated-tokens/index.cjs.js"),f=require("../../devlop/lib/default.cjs.js"),a=require("../node_modules/property-information/index.cjs.js"),h=require("../../space-separated-tokens/index.cjs.js"),p=require("../../web-namespaces/index.cjs.js"),g=require("../../zwitch/index.cjs.js"),y=require("../node_modules/property-information/lib/find.cjs.js"),b={},x={}.hasOwnProperty,m=g.zwitch("type",{handlers:{root:w,element:C,text:k,comment:P,doctype:S}});function q(t,n){const s=(n||b).space;return m(t,s==="svg"?a.svg:a.html)}function w(t,n){const e={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return e.childNodes=u(t.children,e,n),i(t,e),e}function O(t,n){const e={nodeName:"#document-fragment",childNodes:[]};return e.childNodes=u(t.children,e,n),i(t,e),e}function S(t){const n={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return i(t,n),n}function k(t){const n={nodeName:"#text",value:t.value,parentNode:null};return i(t,n),n}function P(t){const n={nodeName:"#comment",data:t.value,parentNode:null};return i(t,n),n}function C(t,n){const e=n;let s=e;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&e.space==="html"&&(s=a.svg);const r=[];let o;if(t.properties){for(o in t.properties)if(o!=="children"&&x.call(t.properties,o)){const l=L(s,o,t.properties[o]);l&&r.push(l)}}const d=s.space,c={nodeName:t.tagName,tagName:t.tagName,attrs:r,namespaceURI:p.webNamespaces[d],childNodes:[],parentNode:null};return c.childNodes=u(t.children,c,s),i(t,c),t.tagName==="template"&&t.content&&(c.content=O(t.content,s)),c}function L(t,n,e){const s=y.find(t,n);if(e===!1||e===null||e===void 0||typeof e=="number"&&Number.isNaN(e)||!e&&s.boolean)return;Array.isArray(e)&&(e=s.commaSeparated?N.stringify(e):h.stringify(e));const r={name:s.attribute,value:e===!0?"":String(e)};if(s.space&&s.space!=="html"&&s.space!=="svg"){const o=r.name.indexOf(":");o<0?r.prefix="":(r.name=r.name.slice(o+1),r.prefix=s.attribute.slice(0,o)),r.namespace=p.webNamespaces[s.space]}return r}function u(t,n,e){let s=-1;const r=[];if(t)for(;++s<t.length;){const o=m(t[s],e);o.parentNode=n,r.push(o)}return r}function i(t,n){const e=t.position;e&&e.start&&e.end&&(f.ok(typeof e.start.offset=="number"),f.ok(typeof e.end.offset=="number"),n.sourceCodeLocation={startLine:e.start.line,startCol:e.start.column,startOffset:e.start.offset,endLine:e.end.line,endCol:e.end.column,endOffset:e.end.offset})}exports.toParse5=q;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../../../node_modules/hast-util-to-parse5/lib/index.js"],"sourcesContent":["/**\n * @import {Comment, Doctype, Element, Nodes, RootContent, Root, Text} from 'hast'\n * @import {DefaultTreeAdapterMap, Token} from 'parse5'\n * @import {Schema} from 'property-information'\n */\n\n/**\n * @typedef {DefaultTreeAdapterMap['document']} Parse5Document\n * @typedef {DefaultTreeAdapterMap['documentFragment']} Parse5Fragment\n * @typedef {DefaultTreeAdapterMap['element']} Parse5Element\n * @typedef {DefaultTreeAdapterMap['node']} Parse5Nodes\n * @typedef {DefaultTreeAdapterMap['documentType']} Parse5Doctype\n * @typedef {DefaultTreeAdapterMap['commentNode']} Parse5Comment\n * @typedef {DefaultTreeAdapterMap['textNode']} Parse5Text\n * @typedef {DefaultTreeAdapterMap['parentNode']} Parse5Parent\n * @typedef {Token.Attribute} Parse5Attribute\n *\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\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.\n *\n * @typedef {Exclude<Parse5Nodes, Parse5Document | Parse5Fragment>} Parse5Content\n *\n * @typedef {'html' | 'svg'} Space\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {find, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\nconst own = {}.hasOwnProperty\n\nconst one = zwitch('type', {handlers: {root, element, text, comment, doctype}})\n\n/**\n * Transform a hast tree to a `parse5` AST.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Parse5Nodes}\n * `parse5` node.\n */\nexport function toParse5(tree, options) {\n const settings = options || emptyOptions\n const space = settings.space\n return one(tree, space === 'svg' ? svg : html)\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Document}\n * Parse5 node.\n */\nfunction root(node, schema) {\n /** @type {Parse5Document} */\n const result = {\n nodeName: '#document',\n // @ts-expect-error: `parse5` uses enums, which are actually strings.\n mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',\n childNodes: []\n }\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Fragment}\n * Parse5 node.\n */\nfunction fragment(node, schema) {\n /** @type {Parse5Fragment} */\n const result = {nodeName: '#document-fragment', childNodes: []}\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Doctype} node\n * Node (hast) to transform.\n * @returns {Parse5Doctype}\n * Parse5 node.\n */\nfunction doctype(node) {\n /** @type {Parse5Doctype} */\n const result = {\n nodeName: '#documentType',\n name: 'html',\n publicId: '',\n systemId: '',\n parentNode: null\n }\n\n patch(node, result)\n return result\n}\n\n/**\n * @param {Text} node\n * Node (hast) to transform.\n * @returns {Parse5Text}\n * Parse5 node.\n */\nfunction text(node) {\n /** @type {Parse5Text} */\n const result = {\n nodeName: '#text',\n value: node.value,\n parentNode: null\n }\n patch(node, result)\n return result\n}\n\n/**\n * @param {Comment} node\n * Node (hast) to transform.\n * @returns {Parse5Comment}\n * Parse5 node.\n */\nfunction comment(node) {\n /** @type {Parse5Comment} */\n const result = {\n nodeName: '#comment',\n data: node.value,\n parentNode: null\n }\n\n patch(node, result)\n\n return result\n}\n\n/**\n * @param {Element} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Element}\n * Parse5 node.\n */\nfunction element(node, schema) {\n const parentSchema = schema\n let currentSchema = parentSchema\n\n if (\n node.type === 'element' &&\n node.tagName.toLowerCase() === 'svg' &&\n parentSchema.space === 'html'\n ) {\n currentSchema = svg\n }\n\n /** @type {Array<Parse5Attribute>} */\n const attrs = []\n /** @type {string} */\n let prop\n\n if (node.properties) {\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(\n currentSchema,\n prop,\n node.properties[prop]\n )\n\n if (result) {\n attrs.push(result)\n }\n }\n }\n }\n\n const space = currentSchema.space\n // `html` and `svg` both have a space.\n assert(space)\n\n /** @type {Parse5Element} */\n const result = {\n nodeName: node.tagName,\n tagName: node.tagName,\n attrs,\n // @ts-expect-error: `parse5` types are wrong.\n namespaceURI: webNamespaces[space],\n childNodes: [],\n parentNode: null\n }\n result.childNodes = all(node.children, result, currentSchema)\n patch(node, result)\n\n if (node.tagName === 'template' && node.content) {\n // @ts-expect-error: `parse5` types are wrong.\n result.content = fragment(node.content, currentSchema)\n }\n\n return result\n}\n\n/**\n * Handle a property.\n *\n * @param {Schema} schema\n * Current schema.\n * @param {string} prop\n * Key.\n * @param {Array<number | string> | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Parse5Attribute | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(schema, prop, value) {\n const info = find(schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === false ||\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value)) ||\n (!value && info.boolean)\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n /** @type {Parse5Attribute} */\n const attribute = {\n name: info.attribute,\n value: value === true ? '' : String(value)\n }\n\n if (info.space && info.space !== 'html' && info.space !== 'svg') {\n const index = attribute.name.indexOf(':')\n\n if (index < 0) {\n attribute.prefix = ''\n } else {\n attribute.name = attribute.name.slice(index + 1)\n attribute.prefix = info.attribute.slice(0, index)\n }\n\n attribute.namespace = webNamespaces[info.space]\n }\n\n return attribute\n}\n\n/**\n * Transform all hast nodes.\n *\n * @param {Array<RootContent>} children\n * List of children.\n * @param {Parse5Parent} parentNode\n * `parse5` parent node.\n * @param {Schema} schema\n * Current schema.\n * @returns {Array<Parse5Content>}\n * Transformed children.\n */\nfunction all(children, parentNode, schema) {\n let index = -1\n /** @type {Array<Parse5Content>} */\n const results = []\n\n if (children) {\n while (++index < children.length) {\n /** @type {Parse5Content} */\n const child = one(children[index], schema)\n\n child.parentNode = parentNode\n\n results.push(child)\n }\n }\n\n return results\n}\n\n/**\n * Add position info from `from` to `to`.\n *\n * @param {Nodes} from\n * hast node.\n * @param {Parse5Nodes} to\n * `parse5` node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n const position = from.position\n\n if (position && position.start && position.end) {\n assert(typeof position.start.offset === 'number')\n assert(typeof position.end.offset === 'number')\n\n to.sourceCodeLocation = {\n startLine: position.start.line,\n startCol: position.start.column,\n startOffset: position.start.offset,\n endLine: position.end.line,\n endCol: position.end.column,\n endOffset: position.end.offset\n }\n }\n}\n"],"names":["emptyOptions","own","one","zwitch","root","element","text","comment","doctype","toParse5","tree","options","space","svg","html","node","schema","result","all","patch","fragment","parentSchema","currentSchema","attrs","prop","createProperty","webNamespaces","value","info","find","commas","spaces","attribute","index","children","parentNode","results","child","from","to","position","assert"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { stringify as N } from "../../comma-separated-tokens/index.es.js";
|
|
2
|
-
import { ok as p } from "../../devlop/lib/default.es.js";
|
|
3
|
-
import { svg as f, html as h } from "../node_modules/property-information/index.es.js";
|
|
4
|
-
import { stringify as g } from "../../space-separated-tokens/index.es.js";
|
|
5
|
-
import { webNamespaces as l } from "../../web-namespaces/index.es.js";
|
|
6
|
-
import { zwitch as y } from "../../zwitch/index.es.js";
|
|
7
|
-
import { find as b } from "../node_modules/property-information/lib/find.es.js";
|
|
8
|
-
const x = {}, w = {}.hasOwnProperty, u = y("type", { handlers: { root: O, element: q, text: L, comment: S, doctype: C } });
|
|
9
|
-
function $(e, n) {
|
|
10
|
-
const r = (n || x).space;
|
|
11
|
-
return u(e, r === "svg" ? f : h);
|
|
12
|
-
}
|
|
13
|
-
function O(e, n) {
|
|
14
|
-
const t = {
|
|
15
|
-
nodeName: "#document",
|
|
16
|
-
// @ts-expect-error: `parse5` uses enums, which are actually strings.
|
|
17
|
-
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
18
|
-
childNodes: []
|
|
19
|
-
};
|
|
20
|
-
return t.childNodes = a(e.children, t, n), i(e, t), t;
|
|
21
|
-
}
|
|
22
|
-
function k(e, n) {
|
|
23
|
-
const t = { nodeName: "#document-fragment", childNodes: [] };
|
|
24
|
-
return t.childNodes = a(e.children, t, n), i(e, t), t;
|
|
25
|
-
}
|
|
26
|
-
function C(e) {
|
|
27
|
-
const n = {
|
|
28
|
-
nodeName: "#documentType",
|
|
29
|
-
name: "html",
|
|
30
|
-
publicId: "",
|
|
31
|
-
systemId: "",
|
|
32
|
-
parentNode: null
|
|
33
|
-
};
|
|
34
|
-
return i(e, n), n;
|
|
35
|
-
}
|
|
36
|
-
function L(e) {
|
|
37
|
-
const n = {
|
|
38
|
-
nodeName: "#text",
|
|
39
|
-
value: e.value,
|
|
40
|
-
parentNode: null
|
|
41
|
-
};
|
|
42
|
-
return i(e, n), n;
|
|
43
|
-
}
|
|
44
|
-
function S(e) {
|
|
45
|
-
const n = {
|
|
46
|
-
nodeName: "#comment",
|
|
47
|
-
data: e.value,
|
|
48
|
-
parentNode: null
|
|
49
|
-
};
|
|
50
|
-
return i(e, n), n;
|
|
51
|
-
}
|
|
52
|
-
function q(e, n) {
|
|
53
|
-
const t = n;
|
|
54
|
-
let r = t;
|
|
55
|
-
e.type === "element" && e.tagName.toLowerCase() === "svg" && t.space === "html" && (r = f);
|
|
56
|
-
const s = [];
|
|
57
|
-
let o;
|
|
58
|
-
if (e.properties) {
|
|
59
|
-
for (o in e.properties)
|
|
60
|
-
if (o !== "children" && w.call(e.properties, o)) {
|
|
61
|
-
const m = I(
|
|
62
|
-
r,
|
|
63
|
-
o,
|
|
64
|
-
e.properties[o]
|
|
65
|
-
);
|
|
66
|
-
m && s.push(m);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
const d = r.space, c = {
|
|
70
|
-
nodeName: e.tagName,
|
|
71
|
-
tagName: e.tagName,
|
|
72
|
-
attrs: s,
|
|
73
|
-
// @ts-expect-error: `parse5` types are wrong.
|
|
74
|
-
namespaceURI: l[d],
|
|
75
|
-
childNodes: [],
|
|
76
|
-
parentNode: null
|
|
77
|
-
};
|
|
78
|
-
return c.childNodes = a(e.children, c, r), i(e, c), e.tagName === "template" && e.content && (c.content = k(e.content, r)), c;
|
|
79
|
-
}
|
|
80
|
-
function I(e, n, t) {
|
|
81
|
-
const r = b(e, n);
|
|
82
|
-
if (t === !1 || t === null || t === void 0 || typeof t == "number" && Number.isNaN(t) || !t && r.boolean)
|
|
83
|
-
return;
|
|
84
|
-
Array.isArray(t) && (t = r.commaSeparated ? N(t) : g(t));
|
|
85
|
-
const s = {
|
|
86
|
-
name: r.attribute,
|
|
87
|
-
value: t === !0 ? "" : String(t)
|
|
88
|
-
};
|
|
89
|
-
if (r.space && r.space !== "html" && r.space !== "svg") {
|
|
90
|
-
const o = s.name.indexOf(":");
|
|
91
|
-
o < 0 ? s.prefix = "" : (s.name = s.name.slice(o + 1), s.prefix = r.attribute.slice(0, o)), s.namespace = l[r.space];
|
|
92
|
-
}
|
|
93
|
-
return s;
|
|
94
|
-
}
|
|
95
|
-
function a(e, n, t) {
|
|
96
|
-
let r = -1;
|
|
97
|
-
const s = [];
|
|
98
|
-
if (e)
|
|
99
|
-
for (; ++r < e.length; ) {
|
|
100
|
-
const o = u(e[r], t);
|
|
101
|
-
o.parentNode = n, s.push(o);
|
|
102
|
-
}
|
|
103
|
-
return s;
|
|
104
|
-
}
|
|
105
|
-
function i(e, n) {
|
|
106
|
-
const t = e.position;
|
|
107
|
-
t && t.start && t.end && (p(typeof t.start.offset == "number"), p(typeof t.end.offset == "number"), n.sourceCodeLocation = {
|
|
108
|
-
startLine: t.start.line,
|
|
109
|
-
startCol: t.start.column,
|
|
110
|
-
startOffset: t.start.offset,
|
|
111
|
-
endLine: t.end.line,
|
|
112
|
-
endCol: t.end.column,
|
|
113
|
-
endOffset: t.end.offset
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
$ as toParse5
|
|
118
|
-
};
|
|
119
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../node_modules/hast-util-to-parse5/lib/index.js"],"sourcesContent":["/**\n * @import {Comment, Doctype, Element, Nodes, RootContent, Root, Text} from 'hast'\n * @import {DefaultTreeAdapterMap, Token} from 'parse5'\n * @import {Schema} from 'property-information'\n */\n\n/**\n * @typedef {DefaultTreeAdapterMap['document']} Parse5Document\n * @typedef {DefaultTreeAdapterMap['documentFragment']} Parse5Fragment\n * @typedef {DefaultTreeAdapterMap['element']} Parse5Element\n * @typedef {DefaultTreeAdapterMap['node']} Parse5Nodes\n * @typedef {DefaultTreeAdapterMap['documentType']} Parse5Doctype\n * @typedef {DefaultTreeAdapterMap['commentNode']} Parse5Comment\n * @typedef {DefaultTreeAdapterMap['textNode']} Parse5Text\n * @typedef {DefaultTreeAdapterMap['parentNode']} Parse5Parent\n * @typedef {Token.Attribute} Parse5Attribute\n *\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\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.\n *\n * @typedef {Exclude<Parse5Nodes, Parse5Document | Parse5Fragment>} Parse5Content\n *\n * @typedef {'html' | 'svg'} Space\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {find, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\nconst own = {}.hasOwnProperty\n\nconst one = zwitch('type', {handlers: {root, element, text, comment, doctype}})\n\n/**\n * Transform a hast tree to a `parse5` AST.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Parse5Nodes}\n * `parse5` node.\n */\nexport function toParse5(tree, options) {\n const settings = options || emptyOptions\n const space = settings.space\n return one(tree, space === 'svg' ? svg : html)\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Document}\n * Parse5 node.\n */\nfunction root(node, schema) {\n /** @type {Parse5Document} */\n const result = {\n nodeName: '#document',\n // @ts-expect-error: `parse5` uses enums, which are actually strings.\n mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',\n childNodes: []\n }\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Fragment}\n * Parse5 node.\n */\nfunction fragment(node, schema) {\n /** @type {Parse5Fragment} */\n const result = {nodeName: '#document-fragment', childNodes: []}\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Doctype} node\n * Node (hast) to transform.\n * @returns {Parse5Doctype}\n * Parse5 node.\n */\nfunction doctype(node) {\n /** @type {Parse5Doctype} */\n const result = {\n nodeName: '#documentType',\n name: 'html',\n publicId: '',\n systemId: '',\n parentNode: null\n }\n\n patch(node, result)\n return result\n}\n\n/**\n * @param {Text} node\n * Node (hast) to transform.\n * @returns {Parse5Text}\n * Parse5 node.\n */\nfunction text(node) {\n /** @type {Parse5Text} */\n const result = {\n nodeName: '#text',\n value: node.value,\n parentNode: null\n }\n patch(node, result)\n return result\n}\n\n/**\n * @param {Comment} node\n * Node (hast) to transform.\n * @returns {Parse5Comment}\n * Parse5 node.\n */\nfunction comment(node) {\n /** @type {Parse5Comment} */\n const result = {\n nodeName: '#comment',\n data: node.value,\n parentNode: null\n }\n\n patch(node, result)\n\n return result\n}\n\n/**\n * @param {Element} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Element}\n * Parse5 node.\n */\nfunction element(node, schema) {\n const parentSchema = schema\n let currentSchema = parentSchema\n\n if (\n node.type === 'element' &&\n node.tagName.toLowerCase() === 'svg' &&\n parentSchema.space === 'html'\n ) {\n currentSchema = svg\n }\n\n /** @type {Array<Parse5Attribute>} */\n const attrs = []\n /** @type {string} */\n let prop\n\n if (node.properties) {\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(\n currentSchema,\n prop,\n node.properties[prop]\n )\n\n if (result) {\n attrs.push(result)\n }\n }\n }\n }\n\n const space = currentSchema.space\n // `html` and `svg` both have a space.\n assert(space)\n\n /** @type {Parse5Element} */\n const result = {\n nodeName: node.tagName,\n tagName: node.tagName,\n attrs,\n // @ts-expect-error: `parse5` types are wrong.\n namespaceURI: webNamespaces[space],\n childNodes: [],\n parentNode: null\n }\n result.childNodes = all(node.children, result, currentSchema)\n patch(node, result)\n\n if (node.tagName === 'template' && node.content) {\n // @ts-expect-error: `parse5` types are wrong.\n result.content = fragment(node.content, currentSchema)\n }\n\n return result\n}\n\n/**\n * Handle a property.\n *\n * @param {Schema} schema\n * Current schema.\n * @param {string} prop\n * Key.\n * @param {Array<number | string> | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Parse5Attribute | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(schema, prop, value) {\n const info = find(schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === false ||\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value)) ||\n (!value && info.boolean)\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n /** @type {Parse5Attribute} */\n const attribute = {\n name: info.attribute,\n value: value === true ? '' : String(value)\n }\n\n if (info.space && info.space !== 'html' && info.space !== 'svg') {\n const index = attribute.name.indexOf(':')\n\n if (index < 0) {\n attribute.prefix = ''\n } else {\n attribute.name = attribute.name.slice(index + 1)\n attribute.prefix = info.attribute.slice(0, index)\n }\n\n attribute.namespace = webNamespaces[info.space]\n }\n\n return attribute\n}\n\n/**\n * Transform all hast nodes.\n *\n * @param {Array<RootContent>} children\n * List of children.\n * @param {Parse5Parent} parentNode\n * `parse5` parent node.\n * @param {Schema} schema\n * Current schema.\n * @returns {Array<Parse5Content>}\n * Transformed children.\n */\nfunction all(children, parentNode, schema) {\n let index = -1\n /** @type {Array<Parse5Content>} */\n const results = []\n\n if (children) {\n while (++index < children.length) {\n /** @type {Parse5Content} */\n const child = one(children[index], schema)\n\n child.parentNode = parentNode\n\n results.push(child)\n }\n }\n\n return results\n}\n\n/**\n * Add position info from `from` to `to`.\n *\n * @param {Nodes} from\n * hast node.\n * @param {Parse5Nodes} to\n * `parse5` node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n const position = from.position\n\n if (position && position.start && position.end) {\n assert(typeof position.start.offset === 'number')\n assert(typeof position.end.offset === 'number')\n\n to.sourceCodeLocation = {\n startLine: position.start.line,\n startCol: position.start.column,\n startOffset: position.start.offset,\n endLine: position.end.line,\n endCol: position.end.column,\n endOffset: position.end.offset\n }\n }\n}\n"],"names":["emptyOptions","own","one","zwitch","root","element","text","comment","doctype","toParse5","tree","options","space","svg","html","node","schema","result","all","patch","fragment","parentSchema","currentSchema","attrs","prop","createProperty","webNamespaces","value","info","find","commas","spaces","attribute","index","children","parentNode","results","child","from","to","position","assert"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lib/util/merge.cjs.js"),r=require("./lib/aria.cjs.js"),n=require("./lib/html.cjs.js"),i=require("./lib/svg.cjs.js"),t=require("./lib/xlink.cjs.js"),s=require("./lib/xmlns.cjs.js"),l=require("./lib/xml.cjs.js"),m=e.merge([r.aria,n.html,t.xlink,s.xmlns,l.xml],"html"),o=e.merge([r.aria,i.svg,t.xlink,s.xmlns,l.xml],"svg");exports.html=m;exports.svg=o;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../../../../node_modules/hast-util-to-parse5/node_modules/property-information/index.js"],"sourcesContent":["// Note: types exposed from `index.d.ts`.\nimport {merge} from './lib/util/merge.js'\nimport {aria} from './lib/aria.js'\nimport {html as htmlBase} from './lib/html.js'\nimport {svg as svgBase} from './lib/svg.js'\nimport {xlink} from './lib/xlink.js'\nimport {xmlns} from './lib/xmlns.js'\nimport {xml} from './lib/xml.js'\n\nexport {hastToReact} from './lib/hast-to-react.js'\n\nexport const html = merge([aria, htmlBase, xlink, xmlns, xml], 'html')\n\nexport {find} from './lib/find.js'\nexport {normalize} from './lib/normalize.js'\n\nexport const svg = merge([aria, svgBase, xlink, xmlns, xml], 'svg')\n"],"names":["html","merge","aria","htmlBase","xlink","xmlns","xml","svg","svgBase"],"mappings":"qTAWaA,EAAOC,EAAAA,MAAM,CAACC,OAAMC,EAAAA,KAAUC,EAAAA,MAAOC,EAAAA,MAAOC,EAAAA,GAAG,EAAG,MAAM,EAKxDC,EAAMN,EAAAA,MAAM,CAACC,OAAMM,EAAAA,IAASJ,EAAAA,MAAOC,EAAAA,MAAOC,EAAAA,GAAG,EAAG,KAAK","x_google_ignoreList":[0]}
|