@e-llm-studio/instant-learning 0.0.205 → 0.0.207
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/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/cjs/features/DocumentLearning/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowDown.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js +2 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/features/DocumentLearning/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/features/DocumentLearning/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/features/DocumentLearning/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js +2 -0
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js.map +1 -0
- package/dist/features/IL-OTJ/_components/MinimizedThinkingSteps.js +2 -0
- package/dist/features/IL-OTJ/_components/MinimizedThinkingSteps.js.map +1 -0
- package/dist/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js +2 -0
- package/dist/features/IL-OTJ/_components/ViewInterpretedFieldsCard.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowDown.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowDown.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowIconBlue.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ArrowIconBlue.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/CompleteIconGreen.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/CompleteIconGreen.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/LeftAndRightArrow.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ViewInterpretedFieldsCard.d.ts +2 -0
- package/dist/types/src/features/IL-OTJ/_components/ViewInterpretedFieldsCard.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js +0 -2
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js.map +0 -1
- package/dist/cjs/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -2
- package/dist/cjs/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/footer.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/footnote.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/revert.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/state.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/cjs/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/is-plain-obj/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/constructs.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/parse.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-label/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-space/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-title/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/aria.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/find.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/find.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/html.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/html.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/normalize.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/svg.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/create.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/info.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/types.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xlink.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xml.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/remark-parse/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile-message/lib/index.js +0 -2
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/unist-util-visit-parents/lib/color.js +0 -2
- package/dist/cjs/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js +0 -2
- package/dist/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js.map +0 -1
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -2
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/dist/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/node_modules/mdast-util-to-hast/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/is-plain-obj/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/constructs.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/parse.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-label/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-space/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-title/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/aria.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/find.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/find.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/hast-to-react.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/html.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/html.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/normalize.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/svg.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/create.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/info.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/types.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xlink.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xml.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/remark-parse/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/space-separated-tokens/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/color.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/node_modules/react-markdown/node_modules/vfile-message/lib/index.js +0 -2
- package/dist/node_modules/react-markdown/node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -2
- package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"../../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as e,jsx as n}from"react/jsx-runtime";import o,{useState as t}from"react";import{InputDataReasoningCard as l}from"../../InputDataReasoningCard.js";import{ConditionSection as r}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{TextSection as c}from"../../organisms/TextSection/TextSection.js";import s from"../../AccordianSection.js";import{ButtonCognitiveIcon as u}from"../../_svg/ButtonCognitiveIcon.js";var v=function(t){var l=t.children,r=t.onAddVariant,a=t.isDisabled,d=o.Children.toArray(l);return e("div",i({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[d.map(function(i,t){return e(o.Fragment,{children:[i,n("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},t)}),n("div",i({onClick:a?void 0:r,style:{padding:"8px 16px",border:"1px solid #E2E8F0",borderRadius:"8px",color:a?"#94a3b8":"#475569",fontSize:"14px",fontWeight:"500",cursor:a?"not-allowed":"pointer",backgroundColor:a?"#f8fafc":"#FFFFFF",opacity:a?.7:1,userSelect:"none",transition:"all 0.2s ease"}},{children:"Add Variant"}))]}))},p=function(p){var g,f,h,y,m,T,D,A,C,O,x,S=p.state,V=p.handlers,b=p.uiState,w=(null==b?void 0:b.highlights)||new Map,I=w.get("global_0")||{},R=t({}),E=R[0],_=R[1],W=t(null),N=W[0],F=W[1],j=o.useRef(null==b?void 0:b.defaultVariantOpen),B=o.useRef(S.variantsByTier);o.useEffect(function(){var i,e,n,o,t=null,l=!1;if(j.current!==(null==b?void 0:b.defaultVariantOpen)&&(l=!0,j.current=null==b?void 0:b.defaultVariantOpen),S.variantsByTier,B.current,l){if(null==(null==b?void 0:b.defaultVariantOpen)||(null==b?void 0:b.defaultVariantOpen)<0)return F(null),void(B.current=S.variantsByTier);null===(e=null===(i=null==b?void 0:b.tierOptions)||void 0===i?void 0:i.filter(function(i){var e,n;return null===(n=null===(e=S.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===e||e.forEach(function(i){var e,n=i.toLowerCase().replace(/ /g,"_");((null===(e=S.variantsByTier)||void 0===e?void 0:e[n])||[]).forEach(function(i,e){(null==b?void 0:b.defaultVariantOpen)===e&&(t="".concat(n,"-variant-").concat(e)),(null==b?void 0:b.autoScrollVariantIndex)===e&&(t="".concat(n,"-variant-").concat(e))})}),t&&F(t)}null===N&&(null==b?void 0:b.defaultVariantOpen)>=0&&(null===(o=null===(n=null==b?void 0:b.tierOptions)||void 0===n?void 0:n.filter(function(i){var e,n;return null===(n=null===(e=S.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===o||o.forEach(function(i){var e,n=i.toLowerCase().replace(/ /g,"_");((null===(e=S.variantsByTier)||void 0===e?void 0:e[n])||[])[b.defaultVariantOpen]&&F("".concat(n,"-variant-").concat(b.defaultVariantOpen))})),B.current=S.variantsByTier},[S.variantsByTier,null==b?void 0:b.defaultVariantOpen,null===(g=S.scopeData)||void 0===g?void 0:g.tiers,null==b?void 0:b.tierOptions,null==b?void 0:b.autoScrollVariantIndex]);var L=function(e){_(function(n){var o;return i(i({},n),((o={})[e]=!n[e],o))})},M=function(i){var e,n=null===(e=S.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(n)&&n.length>0?n:S.citations},q={marginTop:"-17px",position:"relative",zIndex:1},k=function(i){i&&i.scrollIntoView({behavior:"smooth",block:"center"})};console.log("CreateRule state:",S),console.log("CreateRule uiState:",b);var H=function(i){return i?i.replace(/_/g," ").replace(/([a-zA-Z])(\d)/g,"$1 $2").replace(/\b\w/g,function(i){return i.toUpperCase()}):"Variant 1"};return e("div",i({className:"traffic-manager-template"},{children:[n(s,i({title:{type:"other",label:(null==b?void 0:b.setupLabel)||"Rule Setup"},footerData:{ruleTitle:S.ruleTitle,stations:[S.scopeData.station],tiers:null===(f=S.scopeData)||void 0===f?void 0:f.tiers},defaultOpen:"Create"===(null==b?void 0:b.usedFor),readOnly:"Create"!==(null==b?void 0:b.usedFor)},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[n(c,i({id:"rule-title",title:b.ruleTitle||"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the learning",required:!0,value:S.ruleTitle,onChange:V.setRuleTitle,readOnly:"Create"!==(null==b?void 0:b.usedFor)||(null==b?void 0:b.isAiStreaming),isOpen:E.ruleTitle,onToggle:function(){return L("ruleTitle")},isHighlighted:I.ruleTitle||!1,showCognitiveIcon:S.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(h=b.validationErrors)||void 0===h?void 0:h.ruleTitle},b)),S.citation.ruleTitle&&n("div",i({style:q},{children:n(l,{isVisible:E.ruleTitle,citation:S.citation.ruleTitle,citations:M("ruleTitle"),fieldName:"Rule Title",fieldValue:S.ruleTitle})})),n(d,i({id:"scope",title:b.scopeTitle||"Scope",required:!0,scopeData:S.scopeData,onScopeChange:V.onScopeChange,tierLabel:"Which tiers should this learning apply to?",stationLabel:"Which scope should this learning belong to?",highlights:I,isOpen:E.scopeData,onToggle:function(){return L("scopeData")},showCognitiveIcon:S.citation.scopeData,cognitiveIcon:n(u,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(y=b.validationErrors)||void 0===y?void 0:y.station)||(null===(m=b.validationErrors)||void 0===m?void 0:m.tiers),stationErrorMessage:null===(T=b.validationErrors)||void 0===T?void 0:T.station,tierErrorMessage:null===(D=b.validationErrors)||void 0===D?void 0:D.tiers,readOnly:"Create"!==(null==b?void 0:b.usedFor)||(null==b?void 0:b.isAiStreaming)},b)),S.citation.scopeData&&n("div",i({style:q},{children:n(l,{isVisible:E.scopeData,citation:S.citation.scopeData,citations:M("scopeData"),fieldName:"Scope",fieldValue:null===(C=null===(A=S.scopeData)||void 0===A?void 0:A.tiers)||void 0===C?void 0:C.join(", ")})}))]}))})),null===(x=null===(O=null==b?void 0:b.tierOptions)||void 0===O?void 0:O.filter(function(i){var e,n;return null===(n=null===(e=S.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===x?void 0:x.map(function(o,t,d){var u,p,g,f,h=o.toLowerCase().replace(/ /g,"_"),y=(null===(u=S.variantsByTier)||void 0===u?void 0:u[h])||[],m=y.length,T=!1;if(1===m){var D=y[0],A=!(null===(p=null==D?void 0:D.ruleDescription)||void 0===p?void 0:p.trim()),C=(null===(g=null==D?void 0:D.whenToApplyConditions)||void 0===g?void 0:g.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1,O=(null===(f=null==D?void 0:D.whenNotToApplyConditions)||void 0===f?void 0:f.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1;A&&!C&&!O&&(T=!0)}var x=T?void 0:"".concat(m," ").concat(1===m?"variant":"variants"," configured for this tier"),I=!((null==b?void 0:b.defaultTierOpen)>=0)||t===b.defaultTierOpen;return console.log("Rendering tier : ",o),n(s,i({variant:"tier-header",title:{type:"other",label:o},subtitle:x,defaultOpen:I,footerData:{description:"Variants for ".concat(o)}},{children:n(v,i({onAddVariant:function(){var i;return null===(i=V.addNewVariant)||void 0===i?void 0:i.call(V,h)},isDisabled:null==b?void 0:b.isAiStreaming},{children:y.map(function(o,t){var d,u,v,p,g,f,y,m,T,D=o.variantType||"default",A="".concat(h,"-variant-").concat(t),C=!0===o.is_variant,O="default"===D||"default_variant"===D;(null==b?void 0:b.defaultVariantOpen)>=0&&b.defaultVariantOpen;var x="".concat(h,"_").concat(t),S=w.get(x)||{},I=(null===(u=null===(d=b.separationItemsByTier)||void 0===d?void 0:d[h])||void 0===u?void 0:u.get(t))||[],R=(null===(p=null===(v=b.togglesByTier)||void 0===v?void 0:v[h])||void 0===p?void 0:p.get(t))||[],_=(null==b?void 0:b.autoScrollVariantIndex)===t||!0===o.is_variant;return console.log("Rendering ".concat(h," variant ").concat(t,":"),o),console.log("Rendering Variant : ",o),console.log("Open Accordion ID:",N,"Current Variant ID:",A),console.log("Active variant accordion index in UI state:",null==b?void 0:b.activeVariantAccordionIndex),console.log("Default open for this variant:",null==b?void 0:b.defaultVariantOpen),console.log("UI State:",b),console.log("variantType checking :",D),n("div",i({ref:_?k:null,style:{width:"100%"}},{children:n(s,i({title:{type:O?"default":"variant",label:H(D),number:t+1,isNewVariant:C,isDefault:o.isDefault,isModified:o.isModified},defaultOpen:!0,expanded:N===A,onToggle:function(){var i,e=N===A;console.log("is closing:",e),F(e?null:A),null===(i=null==b?void 0:b.setActiveVariantAccordionIndex)||void 0===i||i.call(b,e?null:t)},variant:"rule-behavior",footerData:{ruleTitle:D,description:o.ruleDescription||""}},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[n(c,i({id:"rule-description-".concat(h,"-").concat(t),title:b.ruleDescriptionTitle||"Rule Description",rows:2,placeholder:"Explain the learning behaviour",required:!0,readOnly:o.isReadOnly||(null==b?void 0:b.isAiStreaming),value:o.ruleDescription||"",onChange:function(i){return V.setRuleDescription(h,t,i)},isOpen:E["ruleDescription-".concat(h,"-").concat(t)],onToggle:function(){return L("ruleDescription-".concat(h,"-").concat(t))},isHighlighted:S.ruleDescription||!1,showCognitiveIcon:null===(g=o.reasoning)||void 0===g?void 0:g.ruleDescription,tooltipDescription:"Why this Description?",errorMessage:null===(f=b.validationErrors)||void 0===f?void 0:f["ruleDescription-".concat(h,"-").concat(t)]},b)),(null===(y=o.reasoning)||void 0===y?void 0:y.ruleDescription)&&n("div",i({style:q},{children:n(l,{isVisible:E["ruleDescription-".concat(h,"-").concat(t)],citation:o.reasoning.ruleDescription,citations:M("ruleDescription_".concat(h,"_").concat(t)),fieldName:"Rule Description",fieldValue:o.ruleDescription})})),n(r,i({id:"when-to-apply-".concat(h,"-").concat(t),title:b.whenToApplyTitle||"When to apply",required:!0,dividerRequired:!0,readOnly:o.isReadOnly||(null==b?void 0:b.isAiStreaming),conditions:o.whenToApplyConditions||[],onAdd:function(){return V.addWhenToApply(h,t)},onRemove:function(i,e,n){return V.removeWhenToApply(i,e,n)},onEdit:function(i,e,n,o){return V.editWhenToApply(i,e,n,o)},index:t,tierKey:h,isHighlighted:S.wta||!1,highlightedIds:null==b?void 0:b.highlightedIds,tooltipDescription:"Why this Condition?",citations:M("whenToApply_".concat(h,"_").concat(t)),bordered:!0,addLabel:"Add When to apply",isAiStreaming:b.isAiStreaming,errorMessage:null===(m=b.validationErrors)||void 0===m?void 0:m["whenToApply-".concat(h,"-").concat(t)]},b)),n(r,i({id:"when-not-to-apply-".concat(h,"-").concat(t),title:b.whenNotToApplyTitle||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:o.isReadOnly||(null==b?void 0:b.isAiStreaming),conditions:o.whenNotToApplyConditions||[],onAdd:function(){return V.addWhenNotToApply(h,t)},onRemove:function(i,e,n){return V.removeWhenNotToApply(i,e,n)},onEdit:function(i,e,n,o){return V.editWhenNotToApply(i,e,n,o)},index:t,tierKey:h,isHighlighted:S.wnta||!1,highlightedIds:null==b?void 0:b.highlightedIds,tooltipDescription:"Why this Condition?",citations:M("whenNotToApply_".concat(h,"_").concat(t)),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:b.isAiStreaming},b)),n(a,i({id:"config-".concat(h,"-").concat(t),title:b.configTitle||"Configuration",required:!1,highlights:S,bordered:!0,readOnly:o.isReadOnly||(null==b?void 0:b.isAiStreaming),onConfigChange:function(i,e){return V.onConfigChange(h,t,i,e)},separationItems:I,toggles:R,index:t},b)),(null===(T=o.reasoning)||void 0===T?void 0:T.configData)&&n("div",i({style:q},{children:n(l,{citation:o.reasoning.configData,citations:M("configData_".concat(h,"_").concat(t)),fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))}),A)}),"".concat(h,"-variant-").concat(t))})}))}),"tier-".concat(t))})]}))};export{p as CreateRule};
|
|
1
|
+
import{__assign as i}from"../../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as e,jsx as n}from"react/jsx-runtime";import t,{useState as o}from"react";import{InputDataReasoningCard as l}from"../../InputDataReasoningCard.js";import{ConditionSection as r}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{TextSection as c}from"../../organisms/TextSection/TextSection.js";import s from"../../AccordianSection.js";import{ButtonCognitiveIcon as u}from"../../_svg/ButtonCognitiveIcon.js";var v=function(o){var l=o.children,r=o.onAddVariant,a=o.isDisabled,d=t.Children.toArray(l);return e("div",i({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[d.map(function(i,o){return e(t.Fragment,{children:[i,n("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},o)}),n("div",i({onClick:a?void 0:r,style:{padding:"8px 16px",border:"1px solid #E2E8F0",borderRadius:"8px",color:a?"#94a3b8":"#475569",fontSize:"14px",fontWeight:"500",cursor:a?"not-allowed":"pointer",backgroundColor:a?"#f8fafc":"#FFFFFF",opacity:a?.7:1,userSelect:"none",transition:"all 0.2s ease"}},{children:"Add Variant"}))]}))},p=function(p){var g,f,h,y,m,T,D,A,C,S,O,x=p.state,V=p.handlers,b=p.uiState,w=(null==b?void 0:b.highlights)||new Map,I=w.get("global_0")||{},R=o({}),E=R[0],_=R[1],W=o(null),N=W[0],F=W[1],j=t.useRef(null==b?void 0:b.defaultVariantOpen),B=t.useRef(x.variantsByTier);t.useEffect(function(){var i,e,n,t,o=null,l=!1;if(j.current!==(null==b?void 0:b.defaultVariantOpen)&&(l=!0,j.current=null==b?void 0:b.defaultVariantOpen),x.variantsByTier,B.current,l){if(null==(null==b?void 0:b.defaultVariantOpen)||(null==b?void 0:b.defaultVariantOpen)<0)return F(null),void(B.current=x.variantsByTier);null===(e=null===(i=null==b?void 0:b.tierOptions)||void 0===i?void 0:i.filter(function(i){var e,n;return null===(n=null===(e=x.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===e||e.forEach(function(i){var e,n=i.toLowerCase().replace(/ /g,"_");((null===(e=x.variantsByTier)||void 0===e?void 0:e[n])||[]).forEach(function(i,e){(null==b?void 0:b.defaultVariantOpen)===e&&(o="".concat(n,"-variant-").concat(e)),(null==b?void 0:b.autoScrollVariantIndex)===e&&(o="".concat(n,"-variant-").concat(e))})}),o&&F(o)}null===N&&(null==b?void 0:b.defaultVariantOpen)>=0&&(null===(t=null===(n=null==b?void 0:b.tierOptions)||void 0===n?void 0:n.filter(function(i){var e,n;return null===(n=null===(e=x.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===t||t.forEach(function(i){var e,n=i.toLowerCase().replace(/ /g,"_");((null===(e=x.variantsByTier)||void 0===e?void 0:e[n])||[])[b.defaultVariantOpen]&&F("".concat(n,"-variant-").concat(b.defaultVariantOpen))})),B.current=x.variantsByTier},[x.variantsByTier,null==b?void 0:b.defaultVariantOpen,null===(g=x.scopeData)||void 0===g?void 0:g.tiers,null==b?void 0:b.tierOptions,null==b?void 0:b.autoScrollVariantIndex]);var M=function(e){_(function(n){var t;return i(i({},n),((t={})[e]=!n[e],t))})},L=function(i){var e,n=null===(e=x.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(n)&&n.length>0?n:x.citations},q={marginTop:"-17px",position:"relative",zIndex:1},k=function(i){i&&i.scrollIntoView({behavior:"smooth",block:"center"})};console.log("CreateRule state:",x),console.log("CreateRule uiState:",b);var H=function(i){return i?i.replace(/_/g," ").replace(/([a-zA-Z])(\d)/g,"$1 $2").replace(/\b\w/g,function(i){return i.toUpperCase()}):"Variant 1"};return e("div",i({className:"traffic-manager-template"},{children:[n(s,i({title:{type:"other",label:(null==b?void 0:b.setupLabel)||"Rule Setup"},footerData:{ruleTitle:x.ruleTitle,stations:[x.scopeData.station],tiers:null===(f=x.scopeData)||void 0===f?void 0:f.tiers},defaultOpen:"Create"===(null==b?void 0:b.usedFor),readOnly:"Create"!==(null==b?void 0:b.usedFor)},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[n(c,i({id:"rule-title",title:b.ruleTitle||"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the learning",required:!0,value:x.ruleTitle,onChange:V.setRuleTitle,readOnly:"Create"!==(null==b?void 0:b.usedFor)||(null==b?void 0:b.isAiStreaming),isOpen:E.ruleTitle,onToggle:function(){return M("ruleTitle")},isHighlighted:I.ruleTitle||!1,showCognitiveIcon:x.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(h=b.validationErrors)||void 0===h?void 0:h.ruleTitle},b)),x.citation.ruleTitle&&n("div",i({style:q},{children:n(l,{isVisible:E.ruleTitle,citation:x.citation.ruleTitle,citations:L("ruleTitle"),fieldName:"Rule Title",fieldValue:x.ruleTitle})})),n(d,i({id:"scope",title:b.scopeTitle||"Scope",required:!0,scopeData:x.scopeData,onScopeChange:V.onScopeChange,tierLabel:"Which tiers should this learning apply to?",stationLabel:"Which scope should this learning belong to?",highlights:I,isOpen:E.scopeData,onToggle:function(){return M("scopeData")},showCognitiveIcon:x.citation.scopeData,cognitiveIcon:n(u,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(y=b.validationErrors)||void 0===y?void 0:y.station)||(null===(m=b.validationErrors)||void 0===m?void 0:m.tiers),stationErrorMessage:null===(T=b.validationErrors)||void 0===T?void 0:T.station,tierErrorMessage:null===(D=b.validationErrors)||void 0===D?void 0:D.tiers,readOnly:"Create"!==(null==b?void 0:b.usedFor)||(null==b?void 0:b.isAiStreaming)},b)),x.citation.scopeData&&n("div",i({style:q},{children:n(l,{isVisible:E.scopeData,citation:x.citation.scopeData,citations:L("scopeData"),fieldName:"Scope",fieldValue:null===(C=null===(A=x.scopeData)||void 0===A?void 0:A.tiers)||void 0===C?void 0:C.join(", ")})}))]}))})),null===(O=null===(S=null==b?void 0:b.tierOptions)||void 0===S?void 0:S.filter(function(i){var e,n;return null===(n=null===(e=x.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===O?void 0:O.map(function(t,o,d){var u,p,g,f,h=t.toLowerCase().replace(/ /g,"_"),y=(null===(u=x.variantsByTier)||void 0===u?void 0:u[h])||[],m=y.length,T=!1;if(1===m){var D=y[0],A=!(null===(p=null==D?void 0:D.ruleDescription)||void 0===p?void 0:p.trim()),C=(null===(g=null==D?void 0:D.whenToApplyConditions)||void 0===g?void 0:g.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1,S=(null===(f=null==D?void 0:D.whenNotToApplyConditions)||void 0===f?void 0:f.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1;A&&!C&&!S&&(T=!0)}var O=T?void 0:"".concat(m," ").concat(1===m?"variant":"variants"," configured for this tier"),I=!((null==b?void 0:b.defaultTierOpen)>=0)||o===b.defaultTierOpen;return console.log("Rendering tier : ",t),n(s,i({variant:"tier-header",title:{type:"other",label:t},subtitle:O,defaultOpen:I,footerData:{description:"Variants for ".concat(t)}},{children:n(v,i({onAddVariant:function(){var i;return null===(i=V.addNewVariant)||void 0===i?void 0:i.call(V,h)},isDisabled:null==b?void 0:b.isAiStreaming},{children:y.map(function(t,o){var d,u,v,p,g,f,y,m,T,D=t.variantType||"default",A="".concat(h,"-variant-").concat(o),C=!0===t.is_variant,S="default"===D||"default_variant"===D;(null==b?void 0:b.defaultVariantOpen)>=0&&b.defaultVariantOpen;var O="".concat(h,"_").concat(o),x=w.get(O)||{},I=(null===(u=null===(d=b.separationItemsByTier)||void 0===d?void 0:d[h])||void 0===u?void 0:u.get(o))||[],R=(null===(p=null===(v=b.togglesByTier)||void 0===v?void 0:v[h])||void 0===p?void 0:p.get(o))||[],_=(null==b?void 0:b.autoScrollVariantIndex)===o||!0===t.is_variant;return console.log("Rendering ".concat(h," variant ").concat(o,":"),t),console.log("Rendering Variant : ",t),console.log("Open Accordion ID:",N,"Current Variant ID:",A),console.log("Active variant accordion index in UI state:",null==b?void 0:b.activeVariantAccordionIndex),console.log("Default open for this variant:",null==b?void 0:b.defaultVariantOpen),console.log("UI State:",b),console.log("variantType checking :",D),n("div",i({ref:_?k:null,style:{width:"100%"}},{children:n(s,i({title:{type:S?"default":"variant",label:H(D),number:o+1,isNewVariant:C,isDefault:t.isDefault,isModified:t.isModified},defaultOpen:!0,expanded:N===A,onToggle:function(){var i,e=N===A;console.log("is closing:",e),F(e?null:A),null===(i=null==b?void 0:b.setActiveVariantAccordionIndex)||void 0===i||i.call(b,e?null:o)},variant:"rule-behavior",footerData:{ruleTitle:D,description:t.ruleDescription||""}},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[n(c,i({id:"rule-description-".concat(h,"-").concat(o),title:b.ruleDescriptionTitle||"Rule Description",rows:2,placeholder:"Explain the learning behaviour",required:!0,readOnly:t.isReadOnly||(null==b?void 0:b.isAiStreaming),value:t.ruleDescription||"",onChange:function(i){return V.setRuleDescription(h,o,i)},isOpen:E["ruleDescription-".concat(h,"-").concat(o)],onToggle:function(){return M("ruleDescription-".concat(h,"-").concat(o))},isHighlighted:x.ruleDescription||!1,showCognitiveIcon:null===(g=t.reasoning)||void 0===g?void 0:g.ruleDescription,tooltipDescription:"Why this Description?",errorMessage:null===(f=b.validationErrors)||void 0===f?void 0:f["ruleDescription-".concat(h,"-").concat(o)],enableInlineEdit:!0,setSendMessageInChat:null==b?void 0:b.setSendMessageInChat,isAiStreaming:null==b?void 0:b.isAiStreaming,fieldName:"Rule Description"},b)),(null===(y=t.reasoning)||void 0===y?void 0:y.ruleDescription)&&n("div",i({style:q},{children:n(l,{isVisible:E["ruleDescription-".concat(h,"-").concat(o)],citation:t.reasoning.ruleDescription,citations:L("ruleDescription_".concat(h,"_").concat(o)),fieldName:"Rule Description",fieldValue:t.ruleDescription})})),n(r,i({id:"when-to-apply-".concat(h,"-").concat(o),title:b.whenToApplyTitle||"When to apply",required:!0,dividerRequired:!0,readOnly:t.isReadOnly||(null==b?void 0:b.isAiStreaming),conditions:t.whenToApplyConditions||[],onAdd:function(){return V.addWhenToApply(h,o)},onRemove:function(i,e,n){return V.removeWhenToApply(i,e,n)},onEdit:function(i,e,n,t){return V.editWhenToApply(i,e,n,t)},index:o,tierKey:h,isHighlighted:x.wta||!1,highlightedIds:null==b?void 0:b.highlightedIds,tooltipDescription:"Why this Condition?",citations:L("whenToApply_".concat(h,"_").concat(o)),bordered:!0,addLabel:"Add When to apply",isAiStreaming:b.isAiStreaming,errorMessage:null===(m=b.validationErrors)||void 0===m?void 0:m["whenToApply-".concat(h,"-").concat(o)]},b)),n(r,i({id:"when-not-to-apply-".concat(h,"-").concat(o),title:b.whenNotToApplyTitle||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:t.isReadOnly||(null==b?void 0:b.isAiStreaming),conditions:t.whenNotToApplyConditions||[],onAdd:function(){return V.addWhenNotToApply(h,o)},onRemove:function(i,e,n){return V.removeWhenNotToApply(i,e,n)},onEdit:function(i,e,n,t){return V.editWhenNotToApply(i,e,n,t)},index:o,tierKey:h,isHighlighted:x.wnta||!1,highlightedIds:null==b?void 0:b.highlightedIds,tooltipDescription:"Why this Condition?",citations:L("whenNotToApply_".concat(h,"_").concat(o)),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:b.isAiStreaming},b)),n(a,i({id:"config-".concat(h,"-").concat(o),title:b.configTitle||"Configuration",required:!1,highlights:x,bordered:!0,readOnly:t.isReadOnly||(null==b?void 0:b.isAiStreaming),onConfigChange:function(i,e){return V.onConfigChange(h,o,i,e)},separationItems:I,toggles:R,index:o},b)),(null===(T=t.reasoning)||void 0===T?void 0:T.configData)&&n("div",i({style:q},{children:n(l,{citation:t.reasoning.configData,citations:L("configData_".concat(h,"_").concat(o)),fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))}),A)}),"".concat(h,"-variant-").concat(o))})}))}),"tier-".concat(o))})]}))};export{p as CreateRule};
|
|
2
2
|
//# sourceMappingURL=CreateRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewInterpretedFieldsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/ViewInterpretedFieldsCard.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,+BAGnC,GAAG,4CA0JL,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TextSection: ({ rows, value, errorMessage, onChange, placeholder, title, isHighlighted, isOpen, readOnly, showCognitiveIcon, onToggle, tooltipDescription, ...props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const TextSection: ({ rows, value, errorMessage, onChange, placeholder, title, isHighlighted, isOpen, readOnly, showCognitiveIcon, onToggle, tooltipDescription, enableInlineEdit, setSendMessageInChat, isAiStreaming, fieldName, ...props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=TextSection.d.ts.map
|
package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextSection.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/organisms/TextSection/TextSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextSection.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/organisms/TextSection/TextSection.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,8NAkBrB,GAAG,4CA+JL,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleComparison.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.tsx"],"names":[],"mappings":"AAOA,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,UAAU,kBAAkB;IAC1B,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,KAAK,EAAE,uBAAuB,CAAC;YAC/B,KAAK,EAAE,uBAAuB,CAAC;YAC/B,WAAW,EAAE,uBAAuB,CAAC;YACrC,aAAa,EAAE;gBACb,KAAK,EAAE,MAAM,CAAC;gBACd,QAAQ,EAAE,GAAG,EAAE,CAAC;aACjB,CAAC;YACF,iBAAiB,EAAE;gBACjB,KAAK,EAAE,MAAM,CAAC;gBACd,QAAQ,EAAE,GAAG,EAAE,CAAC;aACjB,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AA8SD,QAAA,MAAM,cAAc,mHASjB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"RuleComparison.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.tsx"],"names":[],"mappings":"AAOA,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,UAAU,kBAAkB;IAC1B,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,KAAK,EAAE,uBAAuB,CAAC;YAC/B,KAAK,EAAE,uBAAuB,CAAC;YAC/B,WAAW,EAAE,uBAAuB,CAAC;YACrC,aAAa,EAAE;gBACb,KAAK,EAAE,MAAM,CAAC;gBACd,QAAQ,EAAE,GAAG,EAAE,CAAC;aACjB,CAAC;YACF,iBAAiB,EAAE;gBACjB,KAAK,EAAE,MAAM,CAAC;gBACd,QAAQ,EAAE,GAAG,EAAE,CAAC;aACjB,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AA8SD,QAAA,MAAM,cAAc,mHASjB,mBAAmB,4CA8arB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.tsx"],"names":[],"mappings":"AAmDA,eAAO,MAAM,UAAU,iCAAkC,GAAG,
|
|
1
|
+
{"version":3,"file":"CreateRule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.tsx"],"names":[],"mappings":"AAmDA,eAAO,MAAM,UAAU,iCAAkC,GAAG,4CA0a3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/instant-learning",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.207",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@craco/craco": "^7.1.0",
|
|
143
143
|
"@e-llm-studio/citation": "^0.0.110",
|
|
144
|
-
"@e-llm-studio/watch-me-work": "^0.0.
|
|
144
|
+
"@e-llm-studio/watch-me-work": "^0.0.13",
|
|
145
145
|
"pdf-collaborative-tool": "^0.7.0",
|
|
146
146
|
"primeicons": "^7.0.0",
|
|
147
147
|
"primereact": "^10.9.7",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.__require=function(){return r?e:(r=1,e=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")})};
|
|
2
|
-
//# sourceMappingURL=browser.js.map
|
package/dist/cjs/node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sources":["../../../../../../../node_modules/@e-llm-studio/streaming-response/node_modules/ws/browser.js"],"sourcesContent":["'use strict';\n\nmodule.exports = function () {\n throw new Error(\n 'ws does not work in the browser. Browser clients must use the native ' +\n 'WebSocket object'\n );\n};\n"],"names":["browser","Error"],"mappings":"yHAEAA,EAAiB,WACf,MAAM,IAAIC,MACR"}
|
package/dist/cjs/node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t,r=0,c=0,o=e.length;o>=4;++c,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(c+2))<<16;case 2:r^=(255&e.charCodeAt(c+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(c)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};
|
|
2
|
-
//# sourceMappingURL=emotion-hash.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emotion-hash.esm.js","sources":["../../../../../../../../../node_modules/@emotion/serialize/node_modules/@emotion/hash/dist/emotion-hash.esm.js"],"sourcesContent":["/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n"],"names":["str","k","h","i","len","length","charCodeAt","toString"],"mappings":"oFAGA,SAAiBA,GAYf,IANA,IAEIC,EAFAC,EAAI,EAGJC,EAAI,EACJC,EAAMJ,EAAIK,OAEPD,GAAO,IAAKD,EAAGC,GAAO,EAE3BH,EAEe,YAAV,OAHLA,EAAwB,IAApBD,EAAIM,WAAWH,IAAmC,IAAtBH,EAAIM,aAAaH,KAAc,GAA2B,IAAtBH,EAAIM,aAAaH,KAAc,IAA4B,IAAtBH,EAAIM,aAAaH,KAAc,MAG9F,OAAZF,IAAM,KAAgB,IAIpDC,EAEe,YAAV,OALLD,GAEAA,IAAM,MAGoC,OAAZA,IAAM,KAAgB,IAErC,YAAV,MAAJC,IAAyC,OAAZA,IAAM,KAAgB,IAItD,OAAQE,GACN,KAAK,EACHF,IAA8B,IAAxBF,EAAIM,WAAWH,EAAI,KAAc,GAEzC,KAAK,EACHD,IAA8B,IAAxBF,EAAIM,WAAWH,EAAI,KAAc,EAEzC,KAAK,EAEHD,EAEe,YAAV,OAHLA,GAAyB,IAApBF,EAAIM,WAAWH,MAGsB,OAAZD,IAAM,KAAgB,IASxD,SAHAA,EAEe,YAAV,OAHLA,GAAKA,IAAM,MAG+B,OAAZA,IAAM,KAAgB,KACvCA,IAAM,MAAQ,GAAGK,SAAS,GACzC"}
|
package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parse=function(e){const t=[],r=String(e||"");let n=r.indexOf(","),s=0,i=!1;for(;!i;){-1===n&&(n=r.length,i=!0);const e=r.slice(s,n).trim();!e&&i||t.push(e),s=n+1,n=r.indexOf(",",s)}return t};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/hast-util-from-parse5/node_modules/comma-separated-tokens/index.js"],"sourcesContent":["/**\n * @typedef Options\n * Configuration for `stringify`.\n * @property {boolean} [padLeft=true]\n * Whether to pad a space before a token.\n * @property {boolean} [padRight=false]\n * Whether to pad a space after a token.\n */\n\n/**\n * @typedef {Options} StringifyOptions\n * Please use `StringifyOptions` instead.\n */\n\n/**\n * Parse comma-separated tokens to an array.\n *\n * @param {string} value\n * Comma-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n /** @type {Array<string>} */\n const tokens = []\n const input = String(value || '')\n let index = input.indexOf(',')\n let start = 0\n /** @type {boolean} */\n let end = false\n\n while (!end) {\n if (index === -1) {\n index = input.length\n end = true\n }\n\n const token = input.slice(start, index).trim()\n\n if (token || !end) {\n tokens.push(token)\n }\n\n start = index + 1\n index = input.indexOf(',', start)\n }\n\n return tokens\n}\n\n/**\n * Serialize an array of strings or numbers to comma-separated tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @param {Options} [options]\n * Configuration for `stringify` (optional).\n * @returns {string}\n * Comma-separated tokens.\n */\nexport function stringify(values, options) {\n const settings = options || {}\n\n // Ensure the last empty entry is seen.\n const input = values[values.length - 1] === '' ? [...values, ''] : values\n\n return input\n .join(\n (settings.padRight ? ' ' : '') +\n ',' +\n (settings.padLeft === false ? '' : ' ')\n )\n .trim()\n}\n"],"names":["value","tokens","input","String","index","indexOf","start","end","length","token","slice","trim","push"],"mappings":"kFAsBO,SAAeA,GAEpB,MAAMC,EAAS,GACTC,EAAQC,OAAOH,GAAS,IAC9B,IAAII,EAAQF,EAAMG,QAAQ,KACtBC,EAAQ,EAERC,GAAM,EAEV,MAAQA,GAAK,EACI,IAAXH,IACFA,EAAQF,EAAMM,OACdD,GAAM,GAGR,MAAME,EAAQP,EAAMQ,MAAMJ,EAAOF,GAAOO,QAEpCF,GAAUF,GACZN,EAAOW,KAAKH,GAGdH,EAAQF,EAAQ,EAChBA,EAAQF,EAAMG,QAAQ,IAAKC,EAC5B,CAED,OAAOL,CACT"}
|
package/dist/cjs/node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/hast-util-from-parse5/node_modules/space-separated-tokens/index.js"],"sourcesContent":["/**\n * Parse space-separated tokens to an array of strings.\n *\n * @param {string} value\n * Space-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n const input = String(value || '').trim()\n return input ? input.split(/[ \\t\\n\\r\\f]+/g) : []\n}\n\n/**\n * Serialize an array of strings as space separated-tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @returns {string}\n * Space-separated tokens.\n */\nexport function stringify(values) {\n return values.join(' ').trim()\n}\n"],"names":["value","input","String","trim","split"],"mappings":"kFAQO,SAAeA,GACpB,MAAMC,EAAQC,OAAOF,GAAS,IAAIG,OAClC,OAAOF,EAAQA,EAAMG,MAAM,iBAAmB,EAChD"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=o("end"),t=o("start");function o(e){return function(t){const o=t&&t.position&&t.position[e]||{};if("number"==typeof o.line&&o.line>0&&"number"==typeof o.column&&o.column>0)return{line:o.line,column:o.column,offset:"number"==typeof o.offset&&o.offset>-1?o.offset:void 0}}}exports.pointEnd=e,exports.pointStart=t;
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/unist-util-position/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Get the ending point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointEnd = point('end')\n\n/**\n * Get the starting point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointStart = point('start')\n\n/**\n * Get the positional info of `node`.\n *\n * @param {'end' | 'start'} type\n * Side.\n * @returns\n * Getter.\n */\nfunction point(type) {\n return point\n\n /**\n * Get the point info of `node` at a bound side.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * @returns {Point | undefined}\n */\n function point(node) {\n const point = (node && node.position && node.position[type]) || {}\n\n if (\n typeof point.line === 'number' &&\n point.line > 0 &&\n typeof point.column === 'number' &&\n point.column > 0\n ) {\n return {\n line: point.line,\n column: point.column,\n offset:\n typeof point.offset === 'number' && point.offset > -1\n ? point.offset\n : undefined\n }\n }\n }\n}\n\n/**\n * Get the positional info of `node`.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * Node.\n * @returns {Position | undefined}\n * Position.\n */\nexport function position(node) {\n const start = pointStart(node)\n const end = pointEnd(node)\n\n if (start && end) {\n return {start, end}\n }\n}\n"],"names":["pointEnd","point","pointStart","type","node","position","line","column","offset","undefined"],"mappings":"oEA6BY,MAACA,EAAWC,EAAM,OAUjBC,EAAaD,EAAM,SAUhC,SAASA,EAAME,GACb,OAQA,SAAeC,GACb,MAAMH,EAASG,GAAQA,EAAKC,UAAYD,EAAKC,SAASF,IAAU,CAAE,EAElE,GACwB,iBAAfF,EAAMK,MACbL,EAAMK,KAAO,GACW,iBAAjBL,EAAMM,QACbN,EAAMM,OAAS,EAEf,MAAO,CACLD,KAAML,EAAMK,KACZC,OAAQN,EAAMM,OACdC,OAC0B,iBAAjBP,EAAMO,QAAuBP,EAAMO,QAAU,EAChDP,EAAMO,YACNC,EAGX,CACH"}
|
package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/hast-util-to-parse5/node_modules/comma-separated-tokens/index.js"],"sourcesContent":["/**\n * @typedef Options\n * Configuration for `stringify`.\n * @property {boolean} [padLeft=true]\n * Whether to pad a space before a token.\n * @property {boolean} [padRight=false]\n * Whether to pad a space after a token.\n */\n\n/**\n * @typedef {Options} StringifyOptions\n * Please use `StringifyOptions` instead.\n */\n\n/**\n * Parse comma-separated tokens to an array.\n *\n * @param {string} value\n * Comma-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n /** @type {Array<string>} */\n const tokens = []\n const input = String(value || '')\n let index = input.indexOf(',')\n let start = 0\n /** @type {boolean} */\n let end = false\n\n while (!end) {\n if (index === -1) {\n index = input.length\n end = true\n }\n\n const token = input.slice(start, index).trim()\n\n if (token || !end) {\n tokens.push(token)\n }\n\n start = index + 1\n index = input.indexOf(',', start)\n }\n\n return tokens\n}\n\n/**\n * Serialize an array of strings or numbers to comma-separated tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @param {Options} [options]\n * Configuration for `stringify` (optional).\n * @returns {string}\n * Comma-separated tokens.\n */\nexport function stringify(values, options) {\n const settings = options || {}\n\n // Ensure the last empty entry is seen.\n const input = values[values.length - 1] === '' ? [...values, ''] : values\n\n return input\n .join(\n (settings.padRight ? ' ' : '') +\n ',' +\n (settings.padLeft === false ? '' : ' ')\n )\n .trim()\n}\n"],"names":["values","options","settings","length","join","padRight","padLeft","trim"],"mappings":"sFA4DO,SAAmBA,EAAQC,GAChC,MAAMC,EAAWD,GAAW,CAAE,EAK9B,OAF4C,KAA9BD,EAAOA,EAAOG,OAAS,GAAY,IAAIH,EAAQ,IAAMA,GAGhEI,MACEF,EAASG,SAAW,IAAM,IACzB,MACsB,IAArBH,EAASI,QAAoB,GAAK,MAEtCC,MACL"}
|
package/dist/cjs/node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/hast-util-to-parse5/node_modules/space-separated-tokens/index.js"],"sourcesContent":["/**\n * Parse space-separated tokens to an array of strings.\n *\n * @param {string} value\n * Space-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n const input = String(value || '').trim()\n return input ? input.split(/[ \\t\\n\\r\\f]+/g) : []\n}\n\n/**\n * Serialize an array of strings as space separated-tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @returns {string}\n * Space-separated tokens.\n */\nexport function stringify(values) {\n return values.join(' ').trim()\n}\n"],"names":["values","join","trim"],"mappings":"sFAqBO,SAAmBA,GACxB,OAAOA,EAAOC,KAAK,KAAKC,MAC1B"}
|
package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=function(e){if(null==e)return r;if("string"==typeof e)return function(t){return n(r);function r(n){return n&&n.type===t}}(e);if("object"==typeof e)return Array.isArray(e)?function(r){const e=[];let o=-1;for(;++o<r.length;)e[o]=t(r[o]);return n(u);function u(...t){let n=-1;for(;++n<e.length;)if(e[n].call(this,...t))return!0;return!1}}(e):function(t){return n(r);function r(n){let r;for(r in t)if(n[r]!==t[r])return!1;return!0}}(e);if("function"==typeof e)return n(e);throw new Error("Expected function, string, or object as test")};function n(t){return function(n,...r){return Boolean(n&&"object"==typeof n&&"type"in n&&Boolean(t.call(this,n,...r)))}}function r(){return!0}exports.convert=t;
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-definitions/node_modules/unist-util-is/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\n/**\n * @typedef {Record<string, unknown>} Props\n * @typedef {null | undefined | string | Props | TestFunctionAnything | Array<string | Props | TestFunctionAnything>} Test\n * Check for an arbitrary node, unaware of TypeScript inferral.\n *\n * @callback TestFunctionAnything\n * Check if a node passes a test, unaware of TypeScript inferral.\n * @param {unknown} this\n * The given context.\n * @param {Node} node\n * A node.\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean | void}\n * Whether this node passes the test.\n */\n\n/**\n * @template {Node} Kind\n * Node type.\n * @typedef {Kind['type'] | Partial<Kind> | TestFunctionPredicate<Kind> | Array<Kind['type'] | Partial<Kind> | TestFunctionPredicate<Kind>>} PredicateTest\n * Check for a node that can be inferred by TypeScript.\n */\n\n/**\n * Check if a node passes a certain test.\n *\n * @template {Node} Kind\n * Node type.\n * @callback TestFunctionPredicate\n * Complex test function for a node that can be inferred by TypeScript.\n * @param {Node} node\n * A node.\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {node is Kind}\n * Whether this node passes the test.\n */\n\n/**\n * @callback AssertAnything\n * Check that an arbitrary value is a node, unaware of TypeScript inferral.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean}\n * Whether this is a node and passes a test.\n */\n\n/**\n * Check if a node is a node and passes a certain node test.\n *\n * @template {Node} Kind\n * Node type.\n * @callback AssertPredicate\n * Check that an arbitrary value is a specific node, aware of TypeScript.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {node is Kind}\n * Whether this is a node and passes a test.\n */\n\n/**\n * Check if `node` is a `Node` and whether it passes the given test.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @param test\n * A check for a specific node.\n * @param index\n * The node’s position in its parent.\n * @param parent\n * The node’s parent.\n * @returns\n * Whether `node` is a node and passes a test.\n */\nexport const is =\n /**\n * @type {(\n * (() => false) &\n * (<Kind extends Node = Node>(node: unknown, test: PredicateTest<Kind>, index: number, parent: Parent, context?: unknown) => node is Kind) &\n * (<Kind extends Node = Node>(node: unknown, test: PredicateTest<Kind>, index?: null | undefined, parent?: null | undefined, context?: unknown) => node is Kind) &\n * ((node: unknown, test: Test, index: number, parent: Parent, context?: unknown) => boolean) &\n * ((node: unknown, test?: Test, index?: null | undefined, parent?: null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [node]\n * @param {Test} [test]\n * @param {number | null | undefined} [index]\n * @param {Parent | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function is(node, test, index, parent, context) {\n const check = convert(test)\n\n if (\n index !== undefined &&\n index !== null &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite index')\n }\n\n if (\n parent !== undefined &&\n parent !== null &&\n (!is(parent) || !parent.children)\n ) {\n throw new Error('Expected parent node')\n }\n\n if (\n (parent === undefined || parent === null) !==\n (index === undefined || index === null)\n ) {\n throw new Error('Expected both parent and index')\n }\n\n // @ts-expect-error Looks like a node.\n return node && node.type && typeof node.type === 'string'\n ? Boolean(check.call(context, node, index, parent))\n : false\n }\n )\n\n/**\n * Generate an assertion from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * a `node`, `index`, and `parent`.\n *\n * @param test\n * * when nullish, checks if `node` is a `Node`.\n * * when `string`, works like passing `(node) => node.type === test`.\n * * when `function` checks if function passed the node is true.\n * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.\n * * when `array`, checks if any one of the subtests pass.\n * @returns\n * An assertion.\n */\nexport const convert =\n /**\n * @type {(\n * (<Kind extends Node>(test: PredicateTest<Kind>) => AssertPredicate<Kind>) &\n * ((test?: Test) => AssertAnything)\n * )}\n */\n (\n /**\n * @param {Test} [test]\n * @returns {AssertAnything}\n */\n function (test) {\n if (test === undefined || test === null) {\n return ok\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n if (typeof test === 'object') {\n return Array.isArray(test) ? anyFactory(test) : propsFactory(test)\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n throw new Error('Expected function, string, or object as test')\n }\n )\n\n/**\n * @param {Array<string | Props | TestFunctionAnything>} tests\n * @returns {AssertAnything}\n */\nfunction anyFactory(tests) {\n /** @type {Array<AssertAnything>} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @param {Array<unknown>} parameters\n * @returns {boolean}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].call(this, ...parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn an object into a test for a node with a certain fields.\n *\n * @param {Props} check\n * @returns {AssertAnything}\n */\nfunction propsFactory(check) {\n return castFactory(all)\n\n /**\n * @param {Node} node\n * @returns {boolean}\n */\n function all(node) {\n /** @type {string} */\n let key\n\n for (key in check) {\n // @ts-expect-error: hush, it sure works as an index.\n if (node[key] !== check[key]) return false\n }\n\n return true\n }\n}\n\n/**\n * Turn a string into a test for a node with a certain type.\n *\n * @param {string} check\n * @returns {AssertAnything}\n */\nfunction typeFactory(check) {\n return castFactory(type)\n\n /**\n * @param {Node} node\n */\n function type(node) {\n return node && node.type === check\n }\n}\n\n/**\n * Turn a custom test into a test for a node that passes that test.\n *\n * @param {TestFunctionAnything} check\n * @returns {AssertAnything}\n */\nfunction castFactory(check) {\n return assertion\n\n /**\n * @this {unknown}\n * @param {unknown} node\n * @param {Array<unknown>} parameters\n * @returns {boolean}\n */\n function assertion(node, ...parameters) {\n return Boolean(\n node &&\n typeof node === 'object' &&\n 'type' in node &&\n // @ts-expect-error: fine.\n Boolean(check.call(this, node, ...parameters))\n )\n }\n}\n\nfunction ok() {\n return true\n}\n"],"names":["convert","test","ok","check","castFactory","type","node","typeFactory","Array","isArray","tests","checks","index","length","any","parameters","call","this","anyFactory","all","key","propsFactory","Error","Boolean"],"mappings":"oEAqKY,MAACA,EAOb,SAKcC,GACR,GAAIA,QACF,OAAOC,EAGT,GAAoB,iBAATD,EACT,OA8ER,SAAqBE,GACnB,OAAOC,EAAYC,GAKnB,SAASA,EAAKC,GACZ,OAAOA,GAAQA,EAAKD,OAASF,CAC9B,CACH,CAvFeI,CAAYN,GAGrB,GAAoB,iBAATA,EACT,OAAOO,MAAMC,QAAQR,GAe7B,SAAoBS,GAElB,MAAMC,EAAS,GACf,IAAIC,GAAS,EAEb,OAASA,EAAQF,EAAMG,QACrBF,EAAOC,GAASZ,EAAQU,EAAME,IAGhC,OAAOR,EAAYU,GAOnB,SAASA,KAAOC,GACd,IAAIH,GAAS,EAEb,OAASA,EAAQD,EAAOE,QACtB,GAAIF,EAAOC,GAAOI,KAAKC,QAASF,GAAa,OAAO,EAGtD,OAAO,CACR,CACH,CAxCqCG,CAAWjB,GAgDhD,SAAsBE,GACpB,OAAOC,EAAYe,GAMnB,SAASA,EAAIb,GAEX,IAAIc,EAEJ,IAAKA,KAAOjB,EAEV,GAAIG,EAAKc,KAASjB,EAAMiB,GAAM,OAAO,EAGvC,OAAO,CACR,CACH,CAlEwDC,CAAapB,GAG/D,GAAoB,mBAATA,EACT,OAAOG,EAAYH,GAGrB,MAAM,IAAIqB,MAAM,+CAEnB,EAkFH,SAASlB,EAAYD,GACnB,OAQA,SAAmBG,KAASS,GAC1B,OAAOQ,QACLjB,GACkB,iBAATA,GACP,SAAUA,GAEViB,QAAQpB,EAAMa,KAAKC,KAAMX,KAASS,IAEvC,CACH,CAEA,SAASb,IACP,OAAO,CACT"}
|
package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../unist-util-visit-parents/lib/index.js");exports.CONTINUE=t.CONTINUE,exports.EXIT=t.EXIT,exports.SKIP=t.SKIP,exports.visit=function(e,n,i,r){"function"==typeof n&&"function"!=typeof i&&(r=i,i=n,n=null),t.visitParents(e,n,(function(t,e){const n=e[e.length-1];return i(t,n?n.children.indexOf(t):null,n)}),r)};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-definitions/node_modules/unist-util-visit/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * Check if `Child` can be a child of `Ancestor`.\n *\n * Returns the ancestor when `Child` can be a child of `Ancestor`, or returns\n * `never`.\n *\n * @template {Node} Ancestor\n * Node type.\n * @template {Node} Child\n * Node type.\n * @typedef {(\n * Ancestor extends Parent\n * ? Child extends Ancestor['children'][number]\n * ? Ancestor\n * : never\n * : never\n * )} ParentsOf\n */\n\n/**\n * @template {Node} [Visited=Node]\n * Visited node type.\n * @template {Parent} [Ancestor=Parent]\n * Ancestor type.\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform `parent`.\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of `parent` still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Visited extends Node ? number | null : never} index\n * Index of `node` in `parent`.\n * @param {Ancestor extends Node ? Ancestor | null : never} parent\n * Parent of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n */\n\n/**\n * Build a typed `Visitor` function from a node and all possible parents.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} Visited\n * Node type.\n * @template {Parent} Ancestor\n * Parent type.\n * @typedef {Visitor<Visited, ParentsOf<Ancestor, Visited>>} BuildVisitorFromMatch\n */\n\n/**\n * Build a typed `Visitor` function from a list of descendants and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} Descendant\n * Node type.\n * @template {Test} Check\n * Test type.\n * @typedef {(\n * BuildVisitorFromMatch<\n * import('unist-util-visit-parents/complex-types.js').Matches<Descendant, Check>,\n * Extract<Descendant, Parent>\n * >\n * )} BuildVisitorFromDescendants\n */\n\n/**\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} [Tree=Node]\n * Node type.\n * @template {Test} [Check=string]\n * Test type.\n * @typedef {(\n * BuildVisitorFromDescendants<\n * import('unist-util-visit-parents/complex-types.js').InclusiveDescendant<Tree>,\n * Check\n * >\n * )} BuildVisitor\n */\n\nimport {visitParents} from 'unist-util-visit-parents'\n\n/**\n * Visit nodes.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @param tree\n * Tree to traverse.\n * @param test\n * `unist-util-is`-compatible test\n * @param visitor\n * Handle each node.\n * @param reverse\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns\n * Nothing.\n */\nexport const visit =\n /**\n * @type {(\n * (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &\n * (<Tree extends Node>(tree: Tree, visitor: BuildVisitor<Tree>, reverse?: boolean | null | undefined) => void)\n * )}\n */\n (\n /**\n * @param {Node} tree\n * @param {Test} test\n * @param {Visitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {void}\n */\n function (tree, test, visitor, reverse) {\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n visitor = test\n test = null\n }\n\n visitParents(tree, test, overload, reverse)\n\n /**\n * @param {Node} node\n * @param {Array<Parent>} parents\n */\n function overload(node, parents) {\n const parent = parents[parents.length - 1]\n return visitor(\n node,\n parent ? parent.children.indexOf(node) : null,\n parent\n )\n }\n }\n )\n\nexport {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'\n"],"names":["tree","test","visitor","reverse","visitParents","node","parents","parent","length","children","indexOf"],"mappings":"mNAqJA,SAQcA,EAAMC,EAAMC,EAASC,GACT,mBAATF,GAA0C,mBAAZC,IACvCC,EAAUD,EACVA,EAAUD,EACVA,EAAO,MAGTG,EAAAA,aAAaJ,EAAMC,GAMnB,SAAkBI,EAAMC,GACtB,MAAMC,EAASD,EAAQA,EAAQE,OAAS,GACxC,OAAON,EACLG,EACAE,EAASA,EAAOE,SAASC,QAAQL,GAAQ,KACzCE,EAEH,GAbkCJ,EAezC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color.browser.js","sources":["../../../../../../../node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/color.browser.js"],"sourcesContent":["/**\n * @param {string} d\n * @returns {string}\n */\nexport function color(d) {\n return d\n}\n"],"names":["d"],"mappings":"kFAIO,SAAeA,GACpB,OAAOA,CACT"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../unist-util-is/lib/index.js"),t=require("./color.browser.js");const r=!0,n=!1,o="skip";exports.CONTINUE=r,exports.EXIT=n,exports.SKIP=o,exports.visitParents=function(i,u,s,c){"function"==typeof u&&"function"!=typeof s&&(c=s,s=u,u=null);const f=e.convert(u),l=c?-1:1;!function e(i,p,a){const y=i&&"object"==typeof i?i:{};if("string"==typeof y.type){const e="string"==typeof y.tagName?y.tagName:"string"==typeof y.name?y.name:void 0;Object.defineProperty(d,"name",{value:"node ("+t.color(i.type+(e?"<"+e+">":""))+")"})}return d;function d(){let t,y,d,g=[];if((!u||f(i,p,a[a.length-1]||null))&&(g=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[r,e];return[e]}(s(i,a)),g[0]===n))return g;if(i.children&&g[0]!==o)for(y=(c?i.children.length:-1)+l,d=a.concat(i);y>-1&&y<i.children.length;){if(t=e(i.children[y],y,d)(),t[0]===n)return t;y="number"==typeof t[1]?t[1]:y+l}return g}}(i,void 0,[])()};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n */\n\n/**\n * @typedef {boolean | 'skip'} Action\n * Union of the action types.\n *\n * @typedef {number} Index\n * Move to the sibling at `index` next (after node itself is completely\n * traversed).\n *\n * Useful if mutating the tree, such as removing the node the visitor is\n * currently on, or any of its previous siblings.\n * Results less than 0 or greater than or equal to `children.length` stop\n * traversing the parent.\n *\n * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple\n * List with one or two values, the first an action, the second an index.\n *\n * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult\n * Any value that can be returned from a visitor.\n */\n\n/**\n * @template {Node} [Visited=Node]\n * Visited node type.\n * @template {Parent} [Ancestor=Parent]\n * Ancestor type.\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform the parent of node (the last of `ancestors`).\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of an ancestor still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Array<Ancestor>} ancestors\n * Ancestors of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * Tree type.\n * @template {Test} [Check=string]\n * Test type.\n * @typedef {Visitor<import('./complex-types.js').Matches<import('./complex-types.js').InclusiveDescendant<Tree>, Check>, Extract<import('./complex-types.js').InclusiveDescendant<Tree>, Parent>>} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parents`.\n */\n\nimport {convert} from 'unist-util-is'\nimport {color} from './color.js'\n\n/**\n * Continue traversing as normal.\n */\nexport const CONTINUE = true\n\n/**\n * Stop traversing immediately.\n */\nexport const EXIT = false\n\n/**\n * Do not traverse this node’s children.\n */\nexport const SKIP = 'skip'\n\n/**\n * Visit nodes, with ancestral information.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @param tree\n * Tree to traverse.\n * @param test\n * `unist-util-is`-compatible test\n * @param visitor\n * Handle each node.\n * @param reverse\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns\n * Nothing.\n */\nexport const visitParents =\n /**\n * @type {(\n * (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &\n * (<Tree extends Node>(tree: Tree, visitor: BuildVisitor<Tree>, reverse?: boolean | null | undefined) => void)\n * )}\n */\n (\n /**\n * @param {Node} tree\n * @param {Test} test\n * @param {Visitor<Node>} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {void}\n */\n function (tree, test, visitor, reverse) {\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n // @ts-expect-error no visitor given, so `visitor` is test.\n visitor = test\n test = null\n }\n\n const is = convert(test)\n const step = reverse ? -1 : 1\n\n factory(tree, undefined, [])()\n\n /**\n * @param {Node} node\n * @param {number | undefined} index\n * @param {Array<Parent>} parents\n */\n function factory(node, index, parents) {\n /** @type {Record<string, unknown>} */\n // @ts-expect-error: hush\n const value = node && typeof node === 'object' ? node : {}\n\n if (typeof value.type === 'string') {\n const name =\n // `hast`\n typeof value.tagName === 'string'\n ? value.tagName\n : // `xast`\n typeof value.name === 'string'\n ? value.name\n : undefined\n\n Object.defineProperty(visit, 'name', {\n value:\n 'node (' + color(node.type + (name ? '<' + name + '>' : '')) + ')'\n })\n }\n\n return visit\n\n function visit() {\n /** @type {ActionTuple} */\n let result = []\n /** @type {ActionTuple} */\n let subresult\n /** @type {number} */\n let offset\n /** @type {Array<Parent>} */\n let grandparents\n\n if (!test || is(node, index, parents[parents.length - 1] || null)) {\n result = toResult(visitor(node, parents))\n\n if (result[0] === EXIT) {\n return result\n }\n }\n\n // @ts-expect-error looks like a parent.\n if (node.children && result[0] !== SKIP) {\n // @ts-expect-error looks like a parent.\n offset = (reverse ? node.children.length : -1) + step\n // @ts-expect-error looks like a parent.\n grandparents = parents.concat(node)\n\n // @ts-expect-error looks like a parent.\n while (offset > -1 && offset < node.children.length) {\n // @ts-expect-error looks like a parent.\n subresult = factory(node.children[offset], offset, grandparents)()\n\n if (subresult[0] === EXIT) {\n return subresult\n }\n\n offset =\n typeof subresult[1] === 'number' ? subresult[1] : offset + step\n }\n }\n\n return result\n }\n }\n }\n )\n\n/**\n * Turn a return value into a clean result.\n *\n * @param {VisitorResult} value\n * Valid return values from visitors.\n * @returns {ActionTuple}\n * Clean result.\n */\nfunction toResult(value) {\n if (Array.isArray(value)) {\n return value\n }\n\n if (typeof value === 'number') {\n return [CONTINUE, value]\n }\n\n return [value]\n}\n"],"names":["CONTINUE","EXIT","SKIP","tree","test","visitor","reverse","is","convert","step","factory","node","index","parents","value","type","name","tagName","undefined","Object","defineProperty","visit","color","subresult","offset","grandparents","result","length","Array","isArray","toResult","children","concat"],"mappings":"sJAgFY,MAACA,GAAW,EAKXC,GAAO,EAKPC,EAAO,6EAsCpB,SAQcC,EAAMC,EAAMC,EAASC,GACT,mBAATF,GAA0C,mBAAZC,IACvCC,EAAUD,EAEVA,EAAUD,EACVA,EAAO,MAGT,MAAMG,EAAKC,EAAOA,QAACJ,GACbK,EAAOH,GAAW,EAAI,GAS5B,SAASI,EAAQC,EAAMC,EAAOC,GAG5B,MAAMC,EAAQH,GAAwB,iBAATA,EAAoBA,EAAO,CAAE,EAE1D,GAA0B,iBAAfG,EAAMC,KAAmB,CAClC,MAAMC,EAEqB,iBAAlBF,EAAMG,QACTH,EAAMG,QAEc,iBAAfH,EAAME,KACXF,EAAME,UACNE,EAENC,OAAOC,eAAeC,EAAO,OAAQ,CACnCP,MACE,SAAWQ,EAAKA,MAACX,EAAKI,MAAQC,EAAO,IAAMA,EAAO,IAAM,KAAO,KAEpE,CAED,OAAOK,EAEP,SAASA,IAEP,IAEIE,EAEAC,EAEAC,EANAC,EAAS,GAQb,KAAKtB,GAAQG,EAAGI,EAAMC,EAAOC,EAAQA,EAAQc,OAAS,IAAM,SAC1DD,EA0CZ,SAAkBZ,GAChB,GAAIc,MAAMC,QAAQf,GAChB,OAAOA,EAGT,GAAqB,iBAAVA,EACT,MAAO,CAACd,EAAUc,GAGpB,MAAO,CAACA,EACV,CApDqBgB,CAASzB,EAAQM,EAAME,IAE5Ba,EAAO,KAAOzB,GAChB,OAAOyB,EAKX,GAAIf,EAAKoB,UAAYL,EAAO,KAAOxB,EAOjC,IALAsB,GAAUlB,EAAUK,EAAKoB,SAASJ,QAAU,GAAKlB,EAEjDgB,EAAeZ,EAAQmB,OAAOrB,GAGvBa,GAAU,GAAKA,EAASb,EAAKoB,SAASJ,QAAQ,CAInD,GAFAJ,EAAYb,EAAQC,EAAKoB,SAASP,GAASA,EAAQC,EAAvCf,GAERa,EAAU,KAAOtB,EACnB,OAAOsB,EAGTC,EAC0B,iBAAjBD,EAAU,GAAkBA,EAAU,GAAKC,EAASf,CAC9D,CAGH,OAAOiB,CACR,CACF,CAvEDhB,CAAQP,OAAMe,EAAW,GAAzBR,EAyEH"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../node_modules/micromark-util-sanitize-uri/index.js");exports.footer=function(t){const o=[];let n=-1;for(;++n<t.footnoteOrder.length;){const r=t.footnoteById[t.footnoteOrder[n]];if(!r)continue;const a=t.all(r),l=String(r.identifier).toUpperCase(),i=e.normalizeUri(l.toLowerCase());let p=0;const s=[];for(;++p<=t.footnoteCounts[l];){const e={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fnref-"+i+(p>1?"-"+p:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:t.footnoteBackLabel},children:[{type:"text",value:"↩"}]};p>1&&e.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(p)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(e)}const c=a[a.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else a.push(...s);const f={type:"element",tagName:"li",properties:{id:t.clobberPrefix+"fn-"+i},children:t.wrap(a,!0)};t.patch(r,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:t.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(t.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:t.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:"\n"}]}};
|
|
2
|
-
//# sourceMappingURL=footer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"footer.js","sources":["../../../../../node_modules/mdast-util-to-hast/lib/footer.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('./state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Generate a hast footer for called footnote definitions.\n *\n * @param {State} state\n * Info passed around.\n * @returns {Element | undefined}\n * `section` element or `undefined`.\n */\nexport function footer(state) {\n /** @type {Array<ElementContent>} */\n const listItems = []\n let index = -1\n\n while (++index < state.footnoteOrder.length) {\n const def = state.footnoteById[state.footnoteOrder[index]]\n\n if (!def) {\n continue\n }\n\n const content = state.all(def)\n const id = String(def.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n let referenceIndex = 0\n /** @type {Array<ElementContent>} */\n const backReferences = []\n\n while (++referenceIndex <= state.footnoteCounts[id]) {\n /** @type {Element} */\n const backReference = {\n type: 'element',\n tagName: 'a',\n properties: {\n href:\n '#' +\n state.clobberPrefix +\n 'fnref-' +\n safeId +\n (referenceIndex > 1 ? '-' + referenceIndex : ''),\n dataFootnoteBackref: true,\n className: ['data-footnote-backref'],\n ariaLabel: state.footnoteBackLabel\n },\n children: [{type: 'text', value: '↩'}]\n }\n\n if (referenceIndex > 1) {\n backReference.children.push({\n type: 'element',\n tagName: 'sup',\n children: [{type: 'text', value: String(referenceIndex)}]\n })\n }\n\n if (backReferences.length > 0) {\n backReferences.push({type: 'text', value: ' '})\n }\n\n backReferences.push(backReference)\n }\n\n const tail = content[content.length - 1]\n\n if (tail && tail.type === 'element' && tail.tagName === 'p') {\n const tailTail = tail.children[tail.children.length - 1]\n if (tailTail && tailTail.type === 'text') {\n tailTail.value += ' '\n } else {\n tail.children.push({type: 'text', value: ' '})\n }\n\n tail.children.push(...backReferences)\n } else {\n content.push(...backReferences)\n }\n\n /** @type {Element} */\n const listItem = {\n type: 'element',\n tagName: 'li',\n properties: {id: state.clobberPrefix + 'fn-' + safeId},\n children: state.wrap(content, true)\n }\n\n state.patch(def, listItem)\n\n listItems.push(listItem)\n }\n\n if (listItems.length === 0) {\n return\n }\n\n return {\n type: 'element',\n tagName: 'section',\n properties: {dataFootnotes: true, className: ['footnotes']},\n children: [\n {\n type: 'element',\n tagName: state.footnoteLabelTagName,\n properties: {\n // To do: use structured clone.\n ...JSON.parse(JSON.stringify(state.footnoteLabelProperties)),\n id: 'footnote-label'\n },\n children: [{type: 'text', value: state.footnoteLabel}]\n },\n {type: 'text', value: '\\n'},\n {\n type: 'element',\n tagName: 'ol',\n properties: {},\n children: state.wrap(listItems, true)\n },\n {type: 'text', value: '\\n'}\n ]\n }\n}\n"],"names":["state","listItems","index","footnoteOrder","length","def","footnoteById","content","all","id","String","identifier","toUpperCase","safeId","normalizeUri","toLowerCase","referenceIndex","backReferences","footnoteCounts","backReference","type","tagName","properties","href","clobberPrefix","dataFootnoteBackref","className","ariaLabel","footnoteBackLabel","children","value","push","tail","tailTail","listItem","wrap","patch","dataFootnotes","footnoteLabelTagName","JSON","parse","stringify","footnoteLabelProperties","footnoteLabel"],"mappings":"yJAiBO,SAAgBA,GAErB,MAAMC,EAAY,GAClB,IAAIC,GAAS,EAEb,OAASA,EAAQF,EAAMG,cAAcC,QAAQ,CAC3C,MAAMC,EAAML,EAAMM,aAAaN,EAAMG,cAAcD,IAEnD,IAAKG,EACH,SAGF,MAAME,EAAUP,EAAMQ,IAAIH,GACpBI,EAAKC,OAAOL,EAAIM,YAAYC,cAC5BC,EAASC,EAAAA,aAAaL,EAAGM,eAC/B,IAAIC,EAAiB,EAErB,MAAMC,EAAiB,GAEvB,OAASD,GAAkBhB,EAAMkB,eAAeT,IAAK,CAEnD,MAAMU,EAAgB,CACpBC,KAAM,UACNC,QAAS,IACTC,WAAY,CACVC,KACE,IACAvB,EAAMwB,cACN,SACAX,GACCG,EAAiB,EAAI,IAAMA,EAAiB,IAC/CS,qBAAqB,EACrBC,UAAW,CAAC,yBACZC,UAAW3B,EAAM4B,mBAEnBC,SAAU,CAAC,CAACT,KAAM,OAAQU,MAAO,OAG/Bd,EAAiB,GACnBG,EAAcU,SAASE,KAAK,CAC1BX,KAAM,UACNC,QAAS,MACTQ,SAAU,CAAC,CAACT,KAAM,OAAQU,MAAOpB,OAAOM,OAIxCC,EAAeb,OAAS,GAC1Ba,EAAec,KAAK,CAACX,KAAM,OAAQU,MAAO,MAG5Cb,EAAec,KAAKZ,EACrB,CAED,MAAMa,EAAOzB,EAAQA,EAAQH,OAAS,GAEtC,GAAI4B,GAAsB,YAAdA,EAAKZ,MAAuC,MAAjBY,EAAKX,QAAiB,CAC3D,MAAMY,EAAWD,EAAKH,SAASG,EAAKH,SAASzB,OAAS,GAClD6B,GAA8B,SAAlBA,EAASb,KACvBa,EAASH,OAAS,IAElBE,EAAKH,SAASE,KAAK,CAACX,KAAM,OAAQU,MAAO,MAG3CE,EAAKH,SAASE,QAAQd,EAC5B,MACMV,EAAQwB,QAAQd,GAIlB,MAAMiB,EAAW,CACfd,KAAM,UACNC,QAAS,KACTC,WAAY,CAACb,GAAIT,EAAMwB,cAAgB,MAAQX,GAC/CgB,SAAU7B,EAAMmC,KAAK5B,GAAS,IAGhCP,EAAMoC,MAAM/B,EAAK6B,GAEjBjC,EAAU8B,KAAKG,EAChB,CAED,GAAyB,IAArBjC,EAAUG,OAId,MAAO,CACLgB,KAAM,UACNC,QAAS,UACTC,WAAY,CAACe,eAAe,EAAMX,UAAW,CAAC,cAC9CG,SAAU,CACR,CACET,KAAM,UACNC,QAASrB,EAAMsC,qBACfhB,WAAY,IAEPiB,KAAKC,MAAMD,KAAKE,UAAUzC,EAAM0C,0BACnCjC,GAAI,kBAENoB,SAAU,CAAC,CAACT,KAAM,OAAQU,MAAO9B,EAAM2C,iBAEzC,CAACvB,KAAM,OAAQU,MAAO,MACtB,CACEV,KAAM,UACNC,QAAS,KACTC,WAAY,CAAE,EACdO,SAAU7B,EAAMmC,KAAKlC,GAAW,IAElC,CAACmB,KAAM,OAAQU,MAAO,OAG5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/blockquote.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `blockquote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Blockquote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function blockquote(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'blockquote',\n properties: {},\n children: state.wrap(state.all(node), true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","result","type","tagName","properties","children","wrap","all","patch","applyData"],"mappings":"uFAgBO,SAAoBA,EAAOC,GAEhC,MAAMC,EAAS,CACbC,KAAM,UACNC,QAAS,aACTC,WAAY,CAAE,EACdC,SAAUN,EAAMO,KAAKP,EAAMQ,IAAIP,IAAO,IAGxC,OADAD,EAAMS,MAAMR,EAAMC,GACXF,EAAMU,UAAUT,EAAMC,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"break.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/break.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').Break} Break\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `break` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Break} node\n * mdast node.\n * @returns {Array<Element | Text>}\n * hast element content.\n */\nexport function hardBreak(state, node) {\n /** @type {Element} */\n const result = {type: 'element', tagName: 'br', properties: {}, children: []}\n state.patch(node, result)\n return [state.applyData(node, result), {type: 'text', value: '\\n'}]\n}\n"],"names":["state","node","result","type","tagName","properties","children","patch","applyData","value"],"mappings":"sFAiBO,SAAmBA,EAAOC,GAE/B,MAAMC,EAAS,CAACC,KAAM,UAAWC,QAAS,KAAMC,WAAY,CAAA,EAAIC,SAAU,IAE1E,OADAN,EAAMO,MAAMN,EAAMC,GACX,CAACF,EAAMQ,UAAUP,EAAMC,GAAS,CAACC,KAAM,OAAQM,MAAO,MAC/D"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.code=function(e,t){const a=t.value?t.value+"\n":"",l=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,p={};l&&(p.className=["language-"+l]);let n={type:"element",tagName:"code",properties:p,children:[{type:"text",value:a}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n};
|
|
2
|
-
//# sourceMappingURL=code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/code.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../state.js').State} State\n\n */\n\n/**\n * Turn an mdast `code` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Code} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function code(state, node) {\n const value = node.value ? node.value + '\\n' : ''\n // To do: next major, use `node.lang` w/o regex, the splitting’s been going\n // on for years in remark now.\n const lang = node.lang ? node.lang.match(/^[^ \\t]+(?=[ \\t]|$)/) : null\n /** @type {Properties} */\n const properties = {}\n\n if (lang) {\n properties.className = ['language-' + lang]\n }\n\n // Create `<code>`.\n /** @type {Element} */\n let result = {\n type: 'element',\n tagName: 'code',\n properties,\n children: [{type: 'text', value}]\n }\n\n if (node.meta) {\n result.data = {meta: node.meta}\n }\n\n state.patch(node, result)\n result = state.applyData(node, result)\n\n // Create `<pre>`.\n result = {type: 'element', tagName: 'pre', properties: {}, children: [result]}\n state.patch(node, result)\n return result\n}\n"],"names":["state","node","value","lang","match","properties","className","result","type","tagName","children","meta","data","patch","applyData"],"mappings":"iFAkBO,SAAcA,EAAOC,GAC1B,MAAMC,EAAQD,EAAKC,MAAQD,EAAKC,MAAQ,KAAO,GAGzCC,EAAOF,EAAKE,KAAOF,EAAKE,KAAKC,MAAM,uBAAyB,KAE5DC,EAAa,CAAE,EAEjBF,IACFE,EAAWC,UAAY,CAAC,YAAcH,IAKxC,IAAII,EAAS,CACXC,KAAM,UACNC,QAAS,OACTJ,aACAK,SAAU,CAAC,CAACF,KAAM,OAAQN,WAa5B,OAVID,EAAKU,OACPJ,EAAOK,KAAO,CAACD,KAAMV,EAAKU,OAG5BX,EAAMa,MAAMZ,EAAMM,GAClBA,EAASP,EAAMc,UAAUb,EAAMM,GAG/BA,EAAS,CAACC,KAAM,UAAWC,QAAS,MAAOJ,WAAY,GAAIK,SAAU,CAACH,IACtEP,EAAMa,MAAMZ,EAAMM,GACXA,CACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/delete.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Delete} Delete\n * @typedef {import('../state.js').State} State\n\n */\n\n/**\n * Turn an mdast `delete` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Delete} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function strikethrough(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'del',\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","result","type","tagName","properties","children","all","patch","applyData"],"mappings":"0FAiBO,SAAuBA,EAAOC,GAEnC,MAAMC,EAAS,CACbC,KAAM,UACNC,QAAS,MACTC,WAAY,CAAE,EACdC,SAAUN,EAAMO,IAAIN,IAGtB,OADAD,EAAMQ,MAAMP,EAAMC,GACXF,EAAMS,UAAUR,EAAMC,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emphasis.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/emphasis.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `emphasis` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Emphasis} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function emphasis(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'em',\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","result","type","tagName","properties","children","all","patch","applyData"],"mappings":"qFAgBO,SAAkBA,EAAOC,GAE9B,MAAMC,EAAS,CACbC,KAAM,UACNC,QAAS,KACTC,WAAY,CAAE,EACdC,SAAUN,EAAMO,IAAIN,IAGtB,OADAD,EAAMQ,MAAMP,EAAMC,GACXF,EAAMS,UAAUR,EAAMC,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/micromark-util-sanitize-uri/index.js");exports.footnoteReference=function(t,o){const r=String(o.identifier).toUpperCase(),n=e.normalizeUri(r.toLowerCase()),i=t.footnoteOrder.indexOf(r);let a;-1===i?(t.footnoteOrder.push(r),t.footnoteCounts[r]=1,a=t.footnoteOrder.length):(t.footnoteCounts[r]++,a=i+1);const s=t.footnoteCounts[r],f={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fn-"+n,id:t.clobberPrefix+"fnref-"+n+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(o,f);const p={type:"element",tagName:"sup",properties:{},children:[f]};return t.patch(o,p),t.applyData(o,p)};
|
|
2
|
-
//# sourceMappingURL=footnote-reference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"footnote-reference.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js"],"sourcesContent":["/**\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('hast').Element} Element\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `footnoteReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {FootnoteReference} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function footnoteReference(state, node) {\n const id = String(node.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n const index = state.footnoteOrder.indexOf(id)\n /** @type {number} */\n let counter\n\n if (index === -1) {\n state.footnoteOrder.push(id)\n state.footnoteCounts[id] = 1\n counter = state.footnoteOrder.length\n } else {\n state.footnoteCounts[id]++\n counter = index + 1\n }\n\n const reuseCounter = state.footnoteCounts[id]\n\n /** @type {Element} */\n const link = {\n type: 'element',\n tagName: 'a',\n properties: {\n href: '#' + state.clobberPrefix + 'fn-' + safeId,\n id:\n state.clobberPrefix +\n 'fnref-' +\n safeId +\n (reuseCounter > 1 ? '-' + reuseCounter : ''),\n dataFootnoteRef: true,\n ariaDescribedBy: ['footnote-label']\n },\n children: [{type: 'text', value: String(counter)}]\n }\n state.patch(node, link)\n\n /** @type {Element} */\n const sup = {\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [link]\n }\n state.patch(node, sup)\n return state.applyData(node, sup)\n}\n"],"names":["state","node","id","String","identifier","toUpperCase","safeId","normalizeUri","toLowerCase","index","footnoteOrder","indexOf","counter","push","footnoteCounts","length","reuseCounter","link","type","tagName","properties","href","clobberPrefix","dataFootnoteRef","ariaDescribedBy","children","value","patch","sup","applyData"],"mappings":"uKAkBO,SAA2BA,EAAOC,GACvC,MAAMC,EAAKC,OAAOF,EAAKG,YAAYC,cAC7BC,EAASC,EAAAA,aAAaL,EAAGM,eACzBC,EAAQT,EAAMU,cAAcC,QAAQT,GAE1C,IAAIU,GAEW,IAAXH,GACFT,EAAMU,cAAcG,KAAKX,GACzBF,EAAMc,eAAeZ,GAAM,EAC3BU,EAAUZ,EAAMU,cAAcK,SAE9Bf,EAAMc,eAAeZ,KACrBU,EAAUH,EAAQ,GAGpB,MAAMO,EAAehB,EAAMc,eAAeZ,GAGpCe,EAAO,CACXC,KAAM,UACNC,QAAS,IACTC,WAAY,CACVC,KAAM,IAAMrB,EAAMsB,cAAgB,MAAQhB,EAC1CJ,GACEF,EAAMsB,cACN,SACAhB,GACCU,EAAe,EAAI,IAAMA,EAAe,IAC3CO,iBAAiB,EACjBC,gBAAiB,CAAC,mBAEpBC,SAAU,CAAC,CAACP,KAAM,OAAQQ,MAAOvB,OAAOS,MAE1CZ,EAAM2B,MAAM1B,EAAMgB,GAGlB,MAAMW,EAAM,CACVV,KAAM,UACNC,QAAS,MACTC,WAAY,CAAE,EACdK,SAAU,CAACR,IAGb,OADAjB,EAAM2B,MAAM1B,EAAM2B,GACX5B,EAAM6B,UAAU5B,EAAM2B,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./footnote-reference.js");exports.footnote=function(o,t){const n=o.footnoteById;let i=1;for(;i in n;)i++;const r=String(i);return n[r]={type:"footnoteDefinition",identifier:r,children:[{type:"paragraph",children:t.children}],position:t.position},e.footnoteReference(o,{type:"footnoteReference",identifier:r,position:t.position})};
|
|
2
|
-
//# sourceMappingURL=footnote.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"footnote.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/footnote.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Footnote} Footnote\n * @typedef {import('../state.js').State} State\n */\n\nimport {footnoteReference} from './footnote-reference.js'\n\n// To do: when both:\n// * <https://github.com/micromark/micromark-extension-footnote>\n// * <https://github.com/syntax-tree/mdast-util-footnote>\n// …are archived, remove this (also from mdast).\n// These inline notes are not used in GFM.\n\n/**\n * Turn an mdast `footnote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Footnote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function footnote(state, node) {\n const footnoteById = state.footnoteById\n let no = 1\n\n while (no in footnoteById) no++\n\n const identifier = String(no)\n\n footnoteById[identifier] = {\n type: 'footnoteDefinition',\n identifier,\n children: [{type: 'paragraph', children: node.children}],\n position: node.position\n }\n\n return footnoteReference(state, {\n type: 'footnoteReference',\n identifier,\n position: node.position\n })\n}\n"],"names":["state","node","footnoteById","no","identifier","String","type","children","position","footnoteReference"],"mappings":"8HAwBO,SAAkBA,EAAOC,GAC9B,MAAMC,EAAeF,EAAME,aAC3B,IAAIC,EAAK,EAET,KAAOA,KAAMD,GAAcC,IAE3B,MAAMC,EAAaC,OAAOF,GAS1B,OAPAD,EAAaE,GAAc,CACzBE,KAAM,qBACNF,aACAG,SAAU,CAAC,CAACD,KAAM,YAAaC,SAAUN,EAAKM,WAC9CC,SAAUP,EAAKO,UAGVC,EAAAA,kBAAkBT,EAAO,CAC9BM,KAAM,oBACNF,aACAI,SAAUP,EAAKO,UAEnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/heading.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `heading` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Heading} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function heading(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'h' + node.depth,\n properties: {},\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","result","type","tagName","depth","properties","children","all","patch","applyData"],"mappings":"oFAgBO,SAAiBA,EAAOC,GAE7B,MAAMC,EAAS,CACbC,KAAM,UACNC,QAAS,IAAMH,EAAKI,MACpBC,WAAY,CAAE,EACdC,SAAUP,EAAMQ,IAAIP,IAGtB,OADAD,EAAMS,MAAMR,EAAMC,GACXF,EAAMU,UAAUT,EAAMC,EAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/html.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').HTML} Html\n * @typedef {import('../state.js').State} State\n * @typedef {import('../../index.js').Raw} Raw\n */\n\n/**\n * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise\n * nothing).\n *\n * @param {State} state\n * Info passed around.\n * @param {Html} node\n * mdast node.\n * @returns {Raw | Element | null}\n * hast node.\n */\nexport function html(state, node) {\n if (state.dangerous) {\n /** @type {Raw} */\n const result = {type: 'raw', value: node.value}\n state.patch(node, result)\n return state.applyData(node, result)\n }\n\n // To do: next major: return `undefined`.\n return null\n}\n"],"names":["state","node","dangerous","result","type","value","patch","applyData"],"mappings":"iFAkBO,SAAcA,EAAOC,GAC1B,GAAID,EAAME,UAAW,CAEnB,MAAMC,EAAS,CAACC,KAAM,MAAOC,MAAOJ,EAAKI,OAEzC,OADAL,EAAMM,MAAML,EAAME,GACXH,EAAMO,UAAUN,EAAME,EAC9B,CAGD,OAAO,IACT"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/micromark-util-sanitize-uri/index.js"),t=require("../revert.js");exports.imageReference=function(r,i){const n=r.definition(i.identifier);if(!n)return t.revert(r,i);const l={src:e.normalizeUri(n.url||""),alt:i.alt};null!==n.title&&void 0!==n.title&&(l.title=n.title);const o={type:"element",tagName:"img",properties:l,children:[]};return r.patch(i,o),r.applyData(i,o)};
|
|
2
|
-
//# sourceMappingURL=image-reference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-reference.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/image-reference.js"],"sourcesContent":["/**\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `imageReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ImageReference} node\n * mdast node.\n * @returns {ElementContent | Array<ElementContent>}\n * hast node.\n */\nexport function imageReference(state, node) {\n const def = state.definition(node.identifier)\n\n if (!def) {\n return revert(state, node)\n }\n\n /** @type {Properties} */\n const properties = {src: normalizeUri(def.url || ''), alt: node.alt}\n\n if (def.title !== null && def.title !== undefined) {\n properties.title = def.title\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'img', properties, children: []}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","def","definition","identifier","revert","properties","src","normalizeUri","url","alt","title","undefined","result","type","tagName","children","patch","applyData"],"mappings":"8LAqBO,SAAwBA,EAAOC,GACpC,MAAMC,EAAMF,EAAMG,WAAWF,EAAKG,YAElC,IAAKF,EACH,OAAOG,EAAMA,OAACL,EAAOC,GAIvB,MAAMK,EAAa,CAACC,IAAKC,EAAAA,aAAaN,EAAIO,KAAO,IAAKC,IAAKT,EAAKS,KAE9C,OAAdR,EAAIS,YAAgCC,IAAdV,EAAIS,QAC5BL,EAAWK,MAAQT,EAAIS,OAIzB,MAAME,EAAS,CAACC,KAAM,UAAWC,QAAS,MAAOT,aAAYU,SAAU,IAEvE,OADAhB,EAAMiB,MAAMhB,EAAMY,GACXb,EAAMkB,UAAUjB,EAAMY,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/micromark-util-sanitize-uri/index.js");exports.image=function(t,i){const l={src:e.normalizeUri(i.url)};null!==i.alt&&void 0!==i.alt&&(l.alt=i.alt),null!==i.title&&void 0!==i.title&&(l.title=i.title);const r={type:"element",tagName:"img",properties:l,children:[]};return t.patch(i,r),t.applyData(i,r)};
|
|
2
|
-
//# sourceMappingURL=image.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/image.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Image} Image\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `image` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Image} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function image(state, node) {\n /** @type {Properties} */\n const properties = {src: normalizeUri(node.url)}\n\n if (node.alt !== null && node.alt !== undefined) {\n properties.alt = node.alt\n }\n\n if (node.title !== null && node.title !== undefined) {\n properties.title = node.title\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'img', properties, children: []}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","properties","src","normalizeUri","url","alt","undefined","title","result","type","tagName","children","patch","applyData"],"mappings":"2JAmBO,SAAeA,EAAOC,GAE3B,MAAMC,EAAa,CAACC,IAAKC,EAAYA,aAACH,EAAKI,MAE1B,OAAbJ,EAAKK,UAA6BC,IAAbN,EAAKK,MAC5BJ,EAAWI,IAAML,EAAKK,KAGL,OAAfL,EAAKO,YAAiCD,IAAfN,EAAKO,QAC9BN,EAAWM,MAAQP,EAAKO,OAI1B,MAAMC,EAAS,CAACC,KAAM,UAAWC,QAAS,MAAOT,aAAYU,SAAU,IAEvE,OADAZ,EAAMa,MAAMZ,EAAMQ,GACXT,EAAMc,UAAUb,EAAMQ,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./blockquote.js"),r=require("./break.js"),t=require("./code.js"),i=require("./delete.js"),o=require("./emphasis.js"),s=require("./footnote-reference.js"),l=require("./footnote.js"),n=require("./heading.js"),a=require("./html.js"),u=require("./image-reference.js"),q=require("./image.js"),j=require("./inline-code.js"),c=require("./link-reference.js"),f=require("./link.js"),m=require("./list-item.js"),h=require("./list.js"),b=require("./paragraph.js"),d=require("./root.js"),g=require("./strong.js"),k=require("./table.js"),p=require("./table-row.js"),R=require("./table-cell.js"),x=require("./text.js"),C=require("./thematic-break.js");const w={blockquote:e.blockquote,break:r.hardBreak,code:t.code,delete:i.strikethrough,emphasis:o.emphasis,footnoteReference:s.footnoteReference,footnote:l.footnote,heading:n.heading,html:a.html,imageReference:u.imageReference,image:q.image,inlineCode:j.inlineCode,linkReference:c.linkReference,link:f.link,listItem:m.listItem,list:h.list,paragraph:b.paragraph,root:d.root,strong:g.strong,table:k.table,tableCell:R.tableCell,tableRow:p.tableRow,text:x.text,thematicBreak:C.thematicBreak,toml:B,yaml:B,definition:B,footnoteDefinition:B};function B(){return null}exports.handlers=w;
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/index.js"],"sourcesContent":["import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {strikethrough} from './delete.js'\nimport {emphasis} from './emphasis.js'\nimport {footnoteReference} from './footnote-reference.js'\nimport {footnote} from './footnote.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {imageReference} from './image-reference.js'\nimport {image} from './image.js'\nimport {inlineCode} from './inline-code.js'\nimport {linkReference} from './link-reference.js'\nimport {link} from './link.js'\nimport {listItem} from './list-item.js'\nimport {list} from './list.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {table} from './table.js'\nimport {tableRow} from './table-row.js'\nimport {tableCell} from './table-cell.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default handlers for nodes.\n */\nexport const handlers = {\n blockquote,\n break: hardBreak,\n code,\n delete: strikethrough,\n emphasis,\n footnoteReference,\n footnote,\n heading,\n html,\n imageReference,\n image,\n inlineCode,\n linkReference,\n link,\n listItem,\n list,\n paragraph,\n root,\n strong,\n table,\n tableCell,\n tableRow,\n text,\n thematicBreak,\n toml: ignore,\n yaml: ignore,\n definition: ignore,\n footnoteDefinition: ignore\n}\n\n// Return nothing for nodes that are ignored.\nfunction ignore() {\n // To do: next major: return `undefined`.\n return null\n}\n"],"names":["handlers","blockquote","break","hardBreak","code","delete","strikethrough","emphasis","footnoteReference","footnote","heading","html","imageReference","image","inlineCode","linkReference","link","listItem","list","paragraph","root","strong","table","tableCell","tableRow","text","thematicBreak","toml","ignore","yaml","definition","footnoteDefinition"],"mappings":"itBA4BY,MAACA,EAAW,CACxBC,WAAEA,EAAUA,WACVC,MAAOC,EAASA,UAClBC,KAAEA,EAAIA,KACJC,OAAQC,EAAaA,cACvBC,SAAEA,EAAQA,SACVC,kBAAEA,EAAiBA,kBACnBC,SAAEA,EAAQA,SACVC,QAAEA,EAAOA,QACTC,KAAEA,EAAIA,KACNC,eAAEA,EAAcA,eAChBC,MAAEA,EAAKA,MACPC,WAAEA,EAAUA,WACZC,cAAEA,EAAaA,cACfC,KAAEA,EAAIA,KACNC,SAAEA,EAAQA,SACVC,KAAEA,EAAIA,KACNC,UAAEA,EAASA,UACXC,KAAEA,EAAIA,KACNC,OAAEA,EAAMA,OACRC,MAAEA,EAAKA,MACPC,UAAEA,EAASA,UACXC,SAAEA,EAAQA,SACVC,KAAEA,EAAIA,KACNC,cAAEA,EAAaA,cACbC,KAAMC,EACNC,KAAMD,EACNE,WAAYF,EACZG,mBAAoBH,GAItB,SAASA,IAEP,OAAO,IACT"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.inlineCode=function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const p={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,p),e.applyData(t,p)};
|
|
2
|
-
//# sourceMappingURL=inline-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inline-code.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/inline-code.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `inlineCode` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {InlineCode} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function inlineCode(state, node) {\n /** @type {Text} */\n const text = {type: 'text', value: node.value.replace(/\\r?\\n|\\r/g, ' ')}\n state.patch(node, text)\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'code',\n properties: {},\n children: [text]\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","text","type","value","replace","patch","result","tagName","properties","children","applyData"],"mappings":"uFAiBO,SAAoBA,EAAOC,GAEhC,MAAMC,EAAO,CAACC,KAAM,OAAQC,MAAOH,EAAKG,MAAMC,QAAQ,YAAa,MACnEL,EAAMM,MAAML,EAAMC,GAGlB,MAAMK,EAAS,CACbJ,KAAM,UACNK,QAAS,OACTC,WAAY,CAAE,EACdC,SAAU,CAACR,IAGb,OADAF,EAAMM,MAAML,EAAMM,GACXP,EAAMW,UAAUV,EAAMM,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/micromark-util-sanitize-uri/index.js"),t=require("../revert.js");exports.linkReference=function(r,i){const n=r.definition(i.identifier);if(!n)return t.revert(r,i);const l={href:e.normalizeUri(n.url||"")};null!==n.title&&void 0!==n.title&&(l.title=n.title);const o={type:"element",tagName:"a",properties:l,children:r.all(i)};return r.patch(i,o),r.applyData(i,o)};
|
|
2
|
-
//# sourceMappingURL=link-reference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-reference.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/link-reference.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `linkReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {LinkReference} node\n * mdast node.\n * @returns {ElementContent | Array<ElementContent>}\n * hast node.\n */\nexport function linkReference(state, node) {\n const def = state.definition(node.identifier)\n\n if (!def) {\n return revert(state, node)\n }\n\n /** @type {Properties} */\n const properties = {href: normalizeUri(def.url || '')}\n\n if (def.title !== null && def.title !== undefined) {\n properties.title = def.title\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'a',\n properties,\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","def","definition","identifier","revert","properties","href","normalizeUri","url","title","undefined","result","type","tagName","children","all","patch","applyData"],"mappings":"6LAqBO,SAAuBA,EAAOC,GACnC,MAAMC,EAAMF,EAAMG,WAAWF,EAAKG,YAElC,IAAKF,EACH,OAAOG,EAAMA,OAACL,EAAOC,GAIvB,MAAMK,EAAa,CAACC,KAAMC,EAAAA,aAAaN,EAAIO,KAAO,KAEhC,OAAdP,EAAIQ,YAAgCC,IAAdT,EAAIQ,QAC5BJ,EAAWI,MAAQR,EAAIQ,OAIzB,MAAME,EAAS,CACbC,KAAM,UACNC,QAAS,IACTR,aACAS,SAAUf,EAAMgB,IAAIf,IAGtB,OADAD,EAAMiB,MAAMhB,EAAMW,GACXZ,EAAMkB,UAAUjB,EAAMW,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/micromark-util-sanitize-uri/index.js");exports.link=function(t,i){const r={href:e.normalizeUri(i.url)};null!==i.title&&void 0!==i.title&&(r.title=i.title);const l={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,l),t.applyData(i,l)};
|
|
2
|
-
//# sourceMappingURL=link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/link.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `link` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Link} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function link(state, node) {\n /** @type {Properties} */\n const properties = {href: normalizeUri(node.url)}\n\n if (node.title !== null && node.title !== undefined) {\n properties.title = node.title\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'a',\n properties,\n children: state.all(node)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","properties","href","normalizeUri","url","title","undefined","result","type","tagName","children","all","patch","applyData"],"mappings":"0JAmBO,SAAcA,EAAOC,GAE1B,MAAMC,EAAa,CAACC,KAAMC,EAAYA,aAACH,EAAKI,MAEzB,OAAfJ,EAAKK,YAAiCC,IAAfN,EAAKK,QAC9BJ,EAAWI,MAAQL,EAAKK,OAI1B,MAAME,EAAS,CACbC,KAAM,UACNC,QAAS,IACTR,aACAS,SAAUX,EAAMY,IAAIX,IAGtB,OADAD,EAAMa,MAAMZ,EAAMO,GACXR,EAAMc,UAAUb,EAAMO,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){const t=e.spread;return null==t?e.children.length>1:t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.listItem=function(t,n,l){const p=t.all(n),c=l?function(t){let n=!1;if("list"===t.type){n=t.spread||!1;const l=t.children;let p=-1;for(;!n&&++p<l.length;)n=e(l[p])}return n}(l):e(n),s={},a=[];if("boolean"==typeof n.checked){const e=p[0];let t;e&&"element"===e.type&&"p"===e.tagName?t=e:(t={type:"element",tagName:"p",properties:{},children:[]},p.unshift(t)),t.children.length>0&&t.children.unshift({type:"text",value:" "}),t.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let r=-1;for(;++r<p.length;){const e=p[r];(c||0!==r||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||c?a.push(e):a.push(...e.children)}const i=p[p.length-1];i&&(c||"element"!==i.type||"p"!==i.tagName)&&a.push({type:"text",value:"\n"});const h={type:"element",tagName:"li",properties:s,children:a};return t.patch(n,h),t.applyData(n,h)};
|
|
2
|
-
//# sourceMappingURL=list-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/list-item.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract<Nodes, Parent>} Parents\n */\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | null | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array<ElementContent>} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: <https://github.com/sindresorhus/github-markdown-css>.\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === undefined || spread === null\n ? node.children.length > 1\n : spread\n}\n"],"names":["listItemLoose","node","spread","children","length","state","parent","results","all","loose","type","index","listLoose","properties","checked","head","paragraph","tagName","unshift","value","disabled","className","child","push","tail","result","patch","applyData"],"mappings":"aA0HA,SAASA,EAAcC,GACrB,MAAMC,EAASD,EAAKC,OAEpB,OAAOA,QACHD,EAAKE,SAASC,OAAS,EACvBF,CACN,yEApGO,SAAkBG,EAAOJ,EAAMK,GACpC,MAAMC,EAAUF,EAAMG,IAAIP,GACpBQ,EAAQH,EAyEhB,SAAmBL,GACjB,IAAIQ,GAAQ,EACZ,GAAkB,SAAdR,EAAKS,KAAiB,CACxBD,EAAQR,EAAKC,SAAU,EACvB,MAAMC,EAAWF,EAAKE,SACtB,IAAIQ,GAAS,EAEb,MAAQF,KAAWE,EAAQR,EAASC,QAClCK,EAAQT,EAAcG,EAASQ,GAElC,CAED,OAAOF,CACT,CAtFyBG,CAAUN,GAAUN,EAAcC,GAEnDY,EAAa,CAAE,EAEfV,EAAW,GAEjB,GAA4B,kBAAjBF,EAAKa,QAAuB,CACrC,MAAMC,EAAOR,EAAQ,GAErB,IAAIS,EAEAD,GAAsB,YAAdA,EAAKL,MAAuC,MAAjBK,EAAKE,QAC1CD,EAAYD,GAEZC,EAAY,CAACN,KAAM,UAAWO,QAAS,IAAKJ,WAAY,CAAA,EAAIV,SAAU,IACtEI,EAAQW,QAAQF,IAGdA,EAAUb,SAASC,OAAS,GAC9BY,EAAUb,SAASe,QAAQ,CAACR,KAAM,OAAQS,MAAO,MAGnDH,EAAUb,SAASe,QAAQ,CACzBR,KAAM,UACNO,QAAS,QACTJ,WAAY,CAACH,KAAM,WAAYI,QAASb,EAAKa,QAASM,UAAU,GAChEjB,SAAU,KAKZU,EAAWQ,UAAY,CAAC,iBACzB,CAED,IAAIV,GAAS,EAEb,OAASA,EAAQJ,EAAQH,QAAQ,CAC/B,MAAMkB,EAAQf,EAAQI,IAIpBF,GACU,IAAVE,GACe,YAAfW,EAAMZ,MACY,MAAlBY,EAAML,UAENd,EAASoB,KAAK,CAACb,KAAM,OAAQS,MAAO,OAGnB,YAAfG,EAAMZ,MAAwC,MAAlBY,EAAML,SAAoBR,EAGxDN,EAASoB,KAAKD,GAFdnB,EAASoB,QAAQD,EAAMnB,SAI1B,CAED,MAAMqB,EAAOjB,EAAQA,EAAQH,OAAS,GAGlCoB,IAASf,GAAuB,YAAde,EAAKd,MAAuC,MAAjBc,EAAKP,UACpDd,EAASoB,KAAK,CAACb,KAAM,OAAQS,MAAO,OAItC,MAAMM,EAAS,CAACf,KAAM,UAAWO,QAAS,KAAMJ,aAAYV,YAE5D,OADAE,EAAMqB,MAAMzB,EAAMwB,GACXpB,EAAMsB,UAAU1B,EAAMwB,EAC/B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=function(e,t){const r={},s=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++a<s.length;){const e=s[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)};
|
|
2
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sources":["../../../../../../node_modules/mdast-util-to-hast/lib/handlers/list.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').List} List\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {List} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function list(state, node) {\n /** @type {Properties} */\n const properties = {}\n const results = state.all(node)\n let index = -1\n\n if (typeof node.start === 'number' && node.start !== 1) {\n properties.start = node.start\n }\n\n // Like GitHub, add a class for custom styling.\n while (++index < results.length) {\n const child = results[index]\n\n if (\n child.type === 'element' &&\n child.tagName === 'li' &&\n child.properties &&\n Array.isArray(child.properties.className) &&\n child.properties.className.includes('task-list-item')\n ) {\n properties.className = ['contains-task-list']\n break\n }\n }\n\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: node.ordered ? 'ol' : 'ul',\n properties,\n children: state.wrap(results, true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":["state","node","properties","results","all","index","start","length","child","type","tagName","Array","isArray","className","includes","result","ordered","children","wrap","patch","applyData"],"mappings":"iFAiBO,SAAcA,EAAOC,GAE1B,MAAMC,EAAa,CAAE,EACfC,EAAUH,EAAMI,IAAIH,GAC1B,IAAII,GAAS,EAOb,IAL0B,iBAAfJ,EAAKK,OAAqC,IAAfL,EAAKK,QACzCJ,EAAWI,MAAQL,EAAKK,SAIjBD,EAAQF,EAAQI,QAAQ,CAC/B,MAAMC,EAAQL,EAAQE,GAEtB,GACiB,YAAfG,EAAMC,MACY,OAAlBD,EAAME,SACNF,EAAMN,YACNS,MAAMC,QAAQJ,EAAMN,WAAWW,YAC/BL,EAAMN,WAAWW,UAAUC,SAAS,kBACpC,CACAZ,EAAWW,UAAY,CAAC,sBACxB,KACD,CACF,CAGD,MAAME,EAAS,CACbN,KAAM,UACNC,QAAST,EAAKe,QAAU,KAAO,KAC/Bd,aACAe,SAAUjB,EAAMkB,KAAKf,GAAS,IAGhC,OADAH,EAAMmB,MAAMlB,EAAMc,GACXf,EAAMoB,UAAUnB,EAAMc,EAC/B"}
|