@glodon-aiot/agent-cli-ui 3.19.0-alpha.27 → 3.19.0-beta.31
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/es/index.mjs +8211 -302
- package/dist/lib/index.js +16 -326
- package/dist/src/utils/reactDomCompat.d.ts +3 -0
- package/package.json +10 -13
- package/dist/es/AgentClientUI.mjs +0 -150
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +0 -88
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +0 -38
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +0 -101
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +0 -248
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +0 -86
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +0 -46
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +0 -384
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +0 -105
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +0 -89
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +0 -4
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +0 -120
- package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +0 -48
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +0 -135
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +0 -119
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +0 -44
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +0 -50
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +0 -128
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +0 -374
- package/dist/es/Dialog/AgentChat/index.mjs +0 -1147
- package/dist/es/Dialog/SessionList/index.mjs +0 -401
- package/dist/es/Dialog/UploadingPrompt/index.mjs +0 -64
- package/dist/es/Dialog/index.mjs +0 -180
- package/dist/es/Footer/FooterWarning.mjs +0 -24
- package/dist/es/Footer/index.mjs +0 -17
- package/dist/es/QuillEditor/index.mjs +0 -278
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +0 -406
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +0 -112
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +0 -97
- package/dist/es/ReactTextGenerationUI/index.mjs +0 -81
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/_virtual/index2.mjs +0 -4
- package/dist/es/_virtual/index3.mjs +0 -4
- package/dist/es/_virtual/lib.mjs +0 -4
- package/dist/es/_virtual/prism-core.mjs +0 -4
- package/dist/es/_virtual/types.mjs +0 -4
- package/dist/es/_virtual/ua-parser.min.mjs +0 -4
- package/dist/es/_virtual/utilities.mjs +0 -4
- package/dist/es/assets/brand.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/doc.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/docx.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/pdf.svg.mjs +0 -4
- package/dist/es/assets/icon.svg.mjs +0 -4
- package/dist/es/assets/think.svg.mjs +0 -4
- package/dist/es/components/FilePreview/index.mjs +0 -83
- package/dist/es/components/Greeting/index.mjs +0 -30
- package/dist/es/components/Iconfont/index.mjs +0 -12
- package/dist/es/components/JsonDisplay/index.mjs +0 -15
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +0 -67
- package/dist/es/components/KnowledgeList/index.mjs +0 -79
- package/dist/es/components/Recommend/RecommendItem.mjs +0 -97
- package/dist/es/components/Recommend/index.mjs +0 -76
- package/dist/es/components/Recommend/tip.svg.mjs +0 -4
- package/dist/es/components/Sider/index.mjs +0 -24
- package/dist/es/components/WebLink/index.mjs +0 -26
- package/dist/es/constant.mjs +0 -124
- package/dist/es/context/SessionContext.mjs +0 -26
- package/dist/es/context.mjs +0 -7
- package/dist/es/hooks/useSessionState.mjs +0 -6
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +0 -70
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +0 -11
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +0 -124
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +0 -13
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -3
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
- package/dist/es/node_modules/ccount/index.mjs +0 -12
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -18
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +0 -14
- package/dist/es/node_modules/devlop/lib/default.mjs +0 -8
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +0 -7
- package/dist/es/node_modules/extend/index.mjs +0 -46
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +0 -298
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +0 -22
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +0 -10
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +0 -126
- package/dist/es/node_modules/hastscript/lib/index.mjs +0 -8
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +0 -16
- package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
- package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
- package/dist/es/node_modules/is-decimal/index.mjs +0 -8
- package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
- package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
- package/dist/es/node_modules/longest-streak/index.mjs +0 -12
- package/dist/es/node_modules/markdown-table/index.mjs +0 -70
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +0 -8
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +0 -584
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +0 -17
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +0 -136
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +0 -100
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +0 -61
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +0 -30
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +0 -123
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +0 -25
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +0 -31
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +0 -58
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +0 -65
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +0 -26
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +0 -11
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +0 -145
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +0 -49
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +0 -40
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +0 -50
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +0 -7
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +0 -14
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +0 -67
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +0 -29
- package/dist/es/node_modules/micromark/lib/constructs.mjs +0 -85
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +0 -225
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +0 -37
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +0 -133
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +0 -33
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +0 -103
- package/dist/es/node_modules/micromark/lib/parse.mjs +0 -32
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +0 -9
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +0 -40
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +0 -74
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +0 -18
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +0 -42
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +0 -30
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +0 -94
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +0 -45
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +0 -50
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +0 -80
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +0 -46
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +0 -144
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +0 -102
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +0 -152
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +0 -22
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +0 -19
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +0 -14
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +0 -90
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +0 -62
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +0 -25
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +0 -12
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +0 -193
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +0 -192
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +0 -68
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +0 -71
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +0 -24
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +0 -147
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +0 -45
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +0 -31
- package/dist/es/node_modules/micromark-factory-label/index.mjs +0 -28
- package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-title/index.mjs +0 -26
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-character/index.mjs +0 -39
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +0 -10
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +0 -36
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +0 -18
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +0 -5
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +0 -6
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +0 -23
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +0 -65
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +0 -175
- package/dist/es/node_modules/moment/dist/moment.mjs +0 -2301
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
- package/dist/es/node_modules/parse-entities/index.mjs +0 -83
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
- package/dist/es/node_modules/property-information/find.mjs +0 -25
- package/dist/es/node_modules/property-information/html.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
- package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
- package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
- package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
- package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/property-information/normalize.mjs +0 -7
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
- package/dist/es/node_modules/react-markdown/lib/index.mjs +0 -153
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +0 -29
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
- package/dist/es/node_modules/refractor/core.mjs +0 -111
- package/dist/es/node_modules/refractor/index.mjs +0 -553
- package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
- package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
- package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
- package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
- package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
- package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
- package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
- package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
- package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
- package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
- package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
- package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
- package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
- package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
- package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
- package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
- package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
- package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
- package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
- package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
- package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
- package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
- package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
- package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
- package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
- package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
- package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
- package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
- package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
- package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
- package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
- package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
- package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
- package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +0 -34
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +0 -9
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +0 -51
- package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -11
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +0 -22
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +0 -18
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +0 -93
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +0 -25
- package/dist/es/node_modules/trim-lines/index.mjs +0 -25
- package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +0 -25
- package/dist/es/node_modules/unified/lib/index.mjs +0 -525
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +0 -7
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +0 -9
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +0 -61
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +0 -26
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +0 -15
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
- package/dist/es/node_modules/vfile/lib/index.mjs +0 -401
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +0 -120
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +0 -9
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +0 -35
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +0 -7
- package/dist/es/node_modules/vfile-message/lib/index.mjs +0 -106
- package/dist/es/node_modules/xtend/immutable.mjs +0 -12
- package/dist/es/packages/agent-cli-ui/package.json.mjs +0 -164
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +0 -8
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +0 -43
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -44
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +0 -64
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +0 -62
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +0 -19
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +0 -80
- package/dist/es/packages/react-components/dist/es/index.mjs +0 -10
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +0 -38
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +0 -29
- package/dist/es/src/global.css +0 -1
- package/dist/es/src/image-viewer.css +0 -1
- package/dist/es/src/katex.min.css +0 -1
- package/dist/es/src/mask.css +0 -1
- package/dist/es/src/safe-area.css +0 -1
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -1
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/es/types.mjs +0 -4
- package/dist/es/utils/antdConfig.mjs +0 -15
- package/dist/es/utils/index.mjs +0 -41
- package/dist/es/utils/scopedMessage.mjs +0 -29
- package/dist/lib/index.css +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
- package/dist/src/utils/reactCompatibility.d.ts +0 -27
- package/dist/src/utils/testAntdPrefix.d.ts +0 -3
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { footer as i } from "./footer.mjs";
|
|
2
|
-
import { createState as s } from "./state.mjs";
|
|
3
|
-
function p(o, c) {
|
|
4
|
-
const e = s(o, c), t = e.one(o, void 0), r = i(e), n = Array.isArray(t) ? {
|
|
5
|
-
type: "root",
|
|
6
|
-
children: t
|
|
7
|
-
} : t || {
|
|
8
|
-
type: "root",
|
|
9
|
-
children: []
|
|
10
|
-
};
|
|
11
|
-
return r && n.children.push({
|
|
12
|
-
type: "text",
|
|
13
|
-
value: `
|
|
14
|
-
`
|
|
15
|
-
}, r), n;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
p as toHast
|
|
19
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function s(i, e) {
|
|
2
|
-
const f = e.referenceType;
|
|
3
|
-
let l = "]";
|
|
4
|
-
if (f === "collapsed" ? l += "[]" : f === "full" && (l += "[" + (e.label || e.identifier) + "]"), e.type === "imageReference")
|
|
5
|
-
return [{
|
|
6
|
-
type: "text",
|
|
7
|
-
value: "![" + e.alt + l
|
|
8
|
-
}];
|
|
9
|
-
const t = i.all(e), u = t[0];
|
|
10
|
-
u && u.type === "text" ? u.value = "[" + u.value : t.unshift({
|
|
11
|
-
type: "text",
|
|
12
|
-
value: "["
|
|
13
|
-
});
|
|
14
|
-
const a = t[t.length - 1];
|
|
15
|
-
return a && a.type === "text" ? a.value += l : t.push({
|
|
16
|
-
type: "text",
|
|
17
|
-
value: l
|
|
18
|
-
}), t;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
s as revert
|
|
22
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
var P = Object.defineProperty;
|
|
2
|
-
var f = Object.getOwnPropertySymbols;
|
|
3
|
-
var x = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var v = (e, n, t) => n in e ? P(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, y = (e, n) => {
|
|
5
|
-
for (var t in n || (n = {}))
|
|
6
|
-
x.call(n, t) && v(e, t, n[t]);
|
|
7
|
-
if (f)
|
|
8
|
-
for (var t of f(n))
|
|
9
|
-
A.call(n, t) && v(e, t, n[t]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
var C = (e, n) => {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var i in e)
|
|
15
|
-
x.call(e, i) && n.indexOf(i) < 0 && (t[i] = e[i]);
|
|
16
|
-
if (e != null && f)
|
|
17
|
-
for (var i of f(e))
|
|
18
|
-
n.indexOf(i) < 0 && A.call(e, i) && (t[i] = e[i]);
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
21
|
-
import m from "../../@ungap/structured-clone/esm/index.mjs";
|
|
22
|
-
import { handlers as S } from "./handlers/index.mjs";
|
|
23
|
-
import { visit as D } from "../node_modules/unist-util-visit/lib/index.mjs";
|
|
24
|
-
import { position as b } from "../../unist-util-position/lib/index.mjs";
|
|
25
|
-
const w = {}.hasOwnProperty, B = {};
|
|
26
|
-
function G(e, n) {
|
|
27
|
-
const t = n || B, i = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = y(y({}, S), t.handlers), l = {
|
|
28
|
-
all: M,
|
|
29
|
-
applyData: I,
|
|
30
|
-
definitionById: i,
|
|
31
|
-
footnoteById: h,
|
|
32
|
-
footnoteCounts: u,
|
|
33
|
-
footnoteOrder: [],
|
|
34
|
-
handlers: d,
|
|
35
|
-
one: N,
|
|
36
|
-
options: t,
|
|
37
|
-
patch: H,
|
|
38
|
-
wrap: U
|
|
39
|
-
};
|
|
40
|
-
return D(e, function(r) {
|
|
41
|
-
if (r.type === "definition" || r.type === "footnoteDefinition") {
|
|
42
|
-
const a = r.type === "definition" ? i : h, o = String(r.identifier).toUpperCase();
|
|
43
|
-
a.has(o) || a.set(o, r);
|
|
44
|
-
}
|
|
45
|
-
}), l;
|
|
46
|
-
function N(r, a) {
|
|
47
|
-
const o = r.type, c = l.handlers[o];
|
|
48
|
-
if (w.call(l.handlers, o) && c)
|
|
49
|
-
return c(l, r, a);
|
|
50
|
-
if (l.options.passThrough && l.options.passThrough.includes(o)) {
|
|
51
|
-
if ("children" in r) {
|
|
52
|
-
const p = r, {
|
|
53
|
-
children: j
|
|
54
|
-
} = p, O = C(p, [
|
|
55
|
-
"children"
|
|
56
|
-
]), g = m(O);
|
|
57
|
-
return g.children = l.all(r), g;
|
|
58
|
-
}
|
|
59
|
-
return m(r);
|
|
60
|
-
}
|
|
61
|
-
return (l.options.unknownHandler || T)(l, r, a);
|
|
62
|
-
}
|
|
63
|
-
function M(r) {
|
|
64
|
-
const a = [];
|
|
65
|
-
if ("children" in r) {
|
|
66
|
-
const o = r.children;
|
|
67
|
-
let c = -1;
|
|
68
|
-
for (; ++c < o.length; ) {
|
|
69
|
-
const s = l.one(o[c], r);
|
|
70
|
-
if (s) {
|
|
71
|
-
if (c && o[c - 1].type === "break" && (!Array.isArray(s) && s.type === "text" && (s.value = k(s.value)), !Array.isArray(s) && s.type === "element")) {
|
|
72
|
-
const p = s.children[0];
|
|
73
|
-
p && p.type === "text" && (p.value = k(p.value));
|
|
74
|
-
}
|
|
75
|
-
Array.isArray(s) ? a.push(...s) : a.push(s);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return a;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function H(e, n) {
|
|
83
|
-
e.position && (n.position = b(e));
|
|
84
|
-
}
|
|
85
|
-
function I(e, n) {
|
|
86
|
-
let t = n;
|
|
87
|
-
if (e && e.data) {
|
|
88
|
-
const i = e.data.hName, h = e.data.hChildren, u = e.data.hProperties;
|
|
89
|
-
if (typeof i == "string")
|
|
90
|
-
if (t.type === "element")
|
|
91
|
-
t.tagName = i;
|
|
92
|
-
else {
|
|
93
|
-
const d = "children" in t ? t.children : [t];
|
|
94
|
-
t = {
|
|
95
|
-
type: "element",
|
|
96
|
-
tagName: i,
|
|
97
|
-
properties: {},
|
|
98
|
-
children: d
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
t.type === "element" && u && Object.assign(t.properties, m(u)), "children" in t && t.children && h !== null && h !== void 0 && (t.children = h);
|
|
102
|
-
}
|
|
103
|
-
return t;
|
|
104
|
-
}
|
|
105
|
-
function T(e, n) {
|
|
106
|
-
const t = n.data || {}, i = "value" in n && !(w.call(t, "hProperties") || w.call(t, "hChildren")) ? {
|
|
107
|
-
type: "text",
|
|
108
|
-
value: n.value
|
|
109
|
-
} : {
|
|
110
|
-
type: "element",
|
|
111
|
-
tagName: "div",
|
|
112
|
-
properties: {},
|
|
113
|
-
children: e.all(n)
|
|
114
|
-
};
|
|
115
|
-
return e.patch(n, i), e.applyData(n, i);
|
|
116
|
-
}
|
|
117
|
-
function U(e, n) {
|
|
118
|
-
const t = [];
|
|
119
|
-
let i = -1;
|
|
120
|
-
for (n && t.push({
|
|
121
|
-
type: "text",
|
|
122
|
-
value: `
|
|
123
|
-
`
|
|
124
|
-
}); ++i < e.length; )
|
|
125
|
-
i && t.push({
|
|
126
|
-
type: "text",
|
|
127
|
-
value: `
|
|
128
|
-
`
|
|
129
|
-
}), t.push(e[i]);
|
|
130
|
-
return n && e.length > 0 && t.push({
|
|
131
|
-
type: "text",
|
|
132
|
-
value: `
|
|
133
|
-
`
|
|
134
|
-
}), t;
|
|
135
|
-
}
|
|
136
|
-
function k(e) {
|
|
137
|
-
let n = 0, t = e.charCodeAt(n);
|
|
138
|
-
for (; t === 9 || t === 32; )
|
|
139
|
-
n++, t = e.charCodeAt(n);
|
|
140
|
-
return e.slice(n);
|
|
141
|
-
}
|
|
142
|
-
export {
|
|
143
|
-
G as createState,
|
|
144
|
-
U as wrap
|
|
145
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { visitParents as m } from "../../../../unist-util-visit-parents/lib/index.mjs";
|
|
2
|
-
import { CONTINUE as y, EXIT as E, SKIP as N } from "../../../../unist-util-visit-parents/lib/index.mjs";
|
|
3
|
-
function I(l, n, e, u) {
|
|
4
|
-
let t, f, o;
|
|
5
|
-
typeof n == "function" && typeof e != "function" ? (f = void 0, o = n, t = e) : (f = n, o = e, t = u), m(l, f, p, t);
|
|
6
|
-
function p(c, d) {
|
|
7
|
-
const i = d[d.length - 1], x = i ? i.children.indexOf(c) : void 0;
|
|
8
|
-
return o(c, x, i);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
y as CONTINUE,
|
|
13
|
-
E as EXIT,
|
|
14
|
-
N as SKIP,
|
|
15
|
-
I as visit
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function k(e, o, n, c) {
|
|
2
|
-
const t = n.enter("blockquote"), r = n.createTracker(c);
|
|
3
|
-
r.move("> "), r.shift(2);
|
|
4
|
-
const u = n.indentLines(n.containerFlow(e, r.current()), i);
|
|
5
|
-
return t(), u;
|
|
6
|
-
}
|
|
7
|
-
function i(e, o, n) {
|
|
8
|
-
return ">" + (n ? "" : " ") + e;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
k as blockquote
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { patternInScope as t } from "../util/pattern-in-scope.mjs";
|
|
2
|
-
function u(f, a, e, r) {
|
|
3
|
-
let n = -1;
|
|
4
|
-
for (; ++n < e.unsafe.length; )
|
|
5
|
-
if (e.unsafe[n].character === `
|
|
6
|
-
` && t(e.stack, e.unsafe[n]))
|
|
7
|
-
return /[ \t]/.test(r.before) ? "" : " ";
|
|
8
|
-
return `\\
|
|
9
|
-
`;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
u as hardBreak
|
|
13
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var p = Object.defineProperty;
|
|
2
|
-
var d = Object.getOwnPropertySymbols;
|
|
3
|
-
var g = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var v = (n, r, e) => r in n ? p(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e, a = (n, r) => {
|
|
5
|
-
for (var e in r || (r = {}))
|
|
6
|
-
g.call(r, e) && v(n, e, r[e]);
|
|
7
|
-
if (d)
|
|
8
|
-
for (var e of d(r))
|
|
9
|
-
k.call(r, e) && v(n, e, r[e]);
|
|
10
|
-
return n;
|
|
11
|
-
};
|
|
12
|
-
import { longestStreak as b } from "../../../longest-streak/index.mjs";
|
|
13
|
-
import { formatCodeAsIndented as F } from "../util/format-code-as-indented.mjs";
|
|
14
|
-
import { checkFence as h } from "../util/check-fence.mjs";
|
|
15
|
-
function _(n, r, e, s) {
|
|
16
|
-
const f = h(e), m = n.value || "", i = f === "`" ? "GraveAccent" : "Tilde";
|
|
17
|
-
if (F(n, e)) {
|
|
18
|
-
const t = e.enter("codeIndented"), x = e.indentLines(m, A);
|
|
19
|
-
return t(), x;
|
|
20
|
-
}
|
|
21
|
-
const c = e.createTracker(s), u = f.repeat(Math.max(b(m, f) + 1, 3)), l = e.enter("codeFenced");
|
|
22
|
-
let o = c.move(u);
|
|
23
|
-
if (n.lang) {
|
|
24
|
-
const t = e.enter(`codeFencedLang${i}`);
|
|
25
|
-
o += c.move(e.safe(n.lang, a({
|
|
26
|
-
before: o,
|
|
27
|
-
after: " ",
|
|
28
|
-
encode: ["`"]
|
|
29
|
-
}, c.current()))), t();
|
|
30
|
-
}
|
|
31
|
-
if (n.lang && n.meta) {
|
|
32
|
-
const t = e.enter(`codeFencedMeta${i}`);
|
|
33
|
-
o += c.move(" "), o += c.move(e.safe(n.meta, a({
|
|
34
|
-
before: o,
|
|
35
|
-
after: `
|
|
36
|
-
`,
|
|
37
|
-
encode: ["`"]
|
|
38
|
-
}, c.current()))), t();
|
|
39
|
-
}
|
|
40
|
-
return o += c.move(`
|
|
41
|
-
`), m && (o += c.move(m + `
|
|
42
|
-
`)), o += c.move(u), l(), o;
|
|
43
|
-
}
|
|
44
|
-
function A(n, r, e) {
|
|
45
|
-
return (e ? "" : " ") + n;
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
_ as code
|
|
49
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var b = Object.defineProperty;
|
|
2
|
-
var c = Object.getOwnPropertySymbols;
|
|
3
|
-
var s = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var l = (r, i, e) => i in r ? b(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e, n = (r, i) => {
|
|
5
|
-
for (var e in i || (i = {}))
|
|
6
|
-
s.call(i, e) && l(r, e, i[e]);
|
|
7
|
-
if (c)
|
|
8
|
-
for (var e of c(i))
|
|
9
|
-
p.call(i, e) && l(r, e, i[e]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
import { checkQuote as x } from "../util/check-quote.mjs";
|
|
13
|
-
function Q(r, i, e, m) {
|
|
14
|
-
const u = x(e), v = u === '"' ? "Quote" : "Apostrophe", a = e.enter("definition");
|
|
15
|
-
let f = e.enter("label");
|
|
16
|
-
const t = e.createTracker(m);
|
|
17
|
-
let o = t.move("[");
|
|
18
|
-
return o += t.move(e.safe(e.associationId(r), n({
|
|
19
|
-
before: o,
|
|
20
|
-
after: "]"
|
|
21
|
-
}, t.current()))), o += t.move("]: "), f(), // If there’s no url, or…
|
|
22
|
-
!r.url || // If there are control characters or whitespace.
|
|
23
|
-
/[\0- \u007F]/.test(r.url) ? (f = e.enter("destinationLiteral"), o += t.move("<"), o += t.move(e.safe(r.url, n({
|
|
24
|
-
before: o,
|
|
25
|
-
after: ">"
|
|
26
|
-
}, t.current()))), o += t.move(">")) : (f = e.enter("destinationRaw"), o += t.move(e.safe(r.url, n({
|
|
27
|
-
before: o,
|
|
28
|
-
after: r.title ? " " : `
|
|
29
|
-
`
|
|
30
|
-
}, t.current())))), f(), r.title && (f = e.enter(`title${v}`), o += t.move(" " + u), o += t.move(e.safe(r.title, n({
|
|
31
|
-
before: o,
|
|
32
|
-
after: u
|
|
33
|
-
}, t.current()))), o += t.move(u), f()), a(), o;
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
Q as definition
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var g = Object.defineProperty;
|
|
2
|
-
var d = Object.getOwnPropertySymbols;
|
|
3
|
-
var A = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var p = (r, o, e) => o in r ? g(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, u = (r, o) => {
|
|
5
|
-
for (var e in o || (o = {}))
|
|
6
|
-
A.call(o, e) && p(r, e, o[e]);
|
|
7
|
-
if (d)
|
|
8
|
-
for (var e of d(o))
|
|
9
|
-
v.call(o, e) && p(r, e, o[e]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
import { checkEmphasis as w } from "../util/check-emphasis.mjs";
|
|
13
|
-
import { encodeCharacterReference as b } from "../util/encode-character-reference.mjs";
|
|
14
|
-
import { encodeInfo as l } from "../util/encode-info.mjs";
|
|
15
|
-
_.peek = x;
|
|
16
|
-
function _(r, o, e, c) {
|
|
17
|
-
const t = w(e), k = e.enter("emphasis"), i = e.createTracker(c), s = i.move(t);
|
|
18
|
-
let n = i.move(e.containerPhrasing(r, u({
|
|
19
|
-
after: t,
|
|
20
|
-
before: s
|
|
21
|
-
}, i.current())));
|
|
22
|
-
const a = n.charCodeAt(0), f = l(c.before.charCodeAt(c.before.length - 1), a, t);
|
|
23
|
-
f.inside && (n = b(a) + n.slice(1));
|
|
24
|
-
const m = n.charCodeAt(n.length - 1), h = l(c.after.charCodeAt(0), m, t);
|
|
25
|
-
h.inside && (n = n.slice(0, -1) + b(m));
|
|
26
|
-
const C = i.move(t);
|
|
27
|
-
return k(), e.attentionEncodeSurroundingInfo = {
|
|
28
|
-
after: h.outside,
|
|
29
|
-
before: f.outside
|
|
30
|
-
}, s + n + C;
|
|
31
|
-
}
|
|
32
|
-
function x(r, o, e) {
|
|
33
|
-
return e.options.emphasis || "*";
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
_ as emphasis
|
|
37
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var d = Object.defineProperty, b = Object.defineProperties;
|
|
2
|
-
var A = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var h = Object.getOwnPropertySymbols;
|
|
4
|
-
var k = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var s = (n, r, e) => r in n ? d(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e, o = (n, r) => {
|
|
6
|
-
for (var e in r || (r = {}))
|
|
7
|
-
k.call(r, e) && s(n, e, r[e]);
|
|
8
|
-
if (h)
|
|
9
|
-
for (var e of h(r))
|
|
10
|
-
v.call(r, e) && s(n, e, r[e]);
|
|
11
|
-
return n;
|
|
12
|
-
}, x = (n, r) => b(n, A(r));
|
|
13
|
-
import { encodeCharacterReference as M } from "../util/encode-character-reference.mjs";
|
|
14
|
-
import { formatHeadingAsSetext as C } from "../util/format-heading-as-setext.mjs";
|
|
15
|
-
function S(n, r, e, u) {
|
|
16
|
-
const f = Math.max(Math.min(6, n.depth || 1), 1), i = e.createTracker(u);
|
|
17
|
-
if (C(n, e)) {
|
|
18
|
-
const p = e.enter("headingSetext"), l = e.enter("phrasing"), c = e.containerPhrasing(n, x(o({}, i.current()), {
|
|
19
|
-
before: `
|
|
20
|
-
`,
|
|
21
|
-
after: `
|
|
22
|
-
`
|
|
23
|
-
}));
|
|
24
|
-
return l(), p(), c + `
|
|
25
|
-
` + (f === 1 ? "=" : "-").repeat(
|
|
26
|
-
// The whole size…
|
|
27
|
-
c.length - // Minus the position of the character after the last EOL (or
|
|
28
|
-
// 0 if there is none)…
|
|
29
|
-
(Math.max(c.lastIndexOf("\r"), c.lastIndexOf(`
|
|
30
|
-
`)) + 1)
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
const a = "#".repeat(f), g = e.enter("headingAtx"), m = e.enter("phrasing");
|
|
34
|
-
i.move(a + " ");
|
|
35
|
-
let t = e.containerPhrasing(n, o({
|
|
36
|
-
before: "# ",
|
|
37
|
-
after: `
|
|
38
|
-
`
|
|
39
|
-
}, i.current()));
|
|
40
|
-
return /^[\t ]/.test(t) && (t = M(t.charCodeAt(0)) + t.slice(1)), t = t ? a + " " + t : a, e.options.closeAtx && (t += " " + a), m(), g(), t;
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
S as heading
|
|
44
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var b = Object.defineProperty;
|
|
2
|
-
var s = Object.getOwnPropertySymbols;
|
|
3
|
-
var p = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var u = (r, c, e) => c in r ? b(r, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[c] = e, i = (r, c) => {
|
|
5
|
-
for (var e in c || (c = {}))
|
|
6
|
-
p.call(c, e) && u(r, e, c[e]);
|
|
7
|
-
if (s)
|
|
8
|
-
for (var e of s(c))
|
|
9
|
-
g.call(c, e) && u(r, e, c[e]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
x.peek = R;
|
|
13
|
-
function x(r, c, e, k) {
|
|
14
|
-
const l = r.referenceType, m = e.enter("imageReference");
|
|
15
|
-
let o = e.enter("label");
|
|
16
|
-
const f = e.createTracker(k);
|
|
17
|
-
let n = f.move("![");
|
|
18
|
-
const t = e.safe(r.alt, i({
|
|
19
|
-
before: n,
|
|
20
|
-
after: "]"
|
|
21
|
-
}, f.current()));
|
|
22
|
-
n += f.move(t + "]["), o();
|
|
23
|
-
const v = e.stack;
|
|
24
|
-
e.stack = [], o = e.enter("reference");
|
|
25
|
-
const a = e.safe(e.associationId(r), i({
|
|
26
|
-
before: n,
|
|
27
|
-
after: "]"
|
|
28
|
-
}, f.current()));
|
|
29
|
-
return o(), e.stack = v, m(), l === "full" || !t || t !== a ? n += f.move(a + "]") : l === "shortcut" ? n = n.slice(0, -1) : n += f.move("]"), n;
|
|
30
|
-
}
|
|
31
|
-
function R() {
|
|
32
|
-
return "!";
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
x as imageReference
|
|
36
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var b = Object.defineProperty;
|
|
2
|
-
var m = Object.getOwnPropertySymbols;
|
|
3
|
-
var k = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var c = (r, i, e) => i in r ? b(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e, u = (r, i) => {
|
|
5
|
-
for (var e in i || (i = {}))
|
|
6
|
-
k.call(i, e) && c(r, e, i[e]);
|
|
7
|
-
if (m)
|
|
8
|
-
for (var e of m(i))
|
|
9
|
-
p.call(i, e) && c(r, e, i[e]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
import { checkQuote as s } from "../util/check-quote.mjs";
|
|
13
|
-
x.peek = g;
|
|
14
|
-
function x(r, i, e, n) {
|
|
15
|
-
const l = s(e), v = l === '"' ? "Quote" : "Apostrophe", a = e.enter("image");
|
|
16
|
-
let f = e.enter("label");
|
|
17
|
-
const t = e.createTracker(n);
|
|
18
|
-
let o = t.move("![");
|
|
19
|
-
return o += t.move(e.safe(r.alt, u({
|
|
20
|
-
before: o,
|
|
21
|
-
after: "]"
|
|
22
|
-
}, t.current()))), o += t.move("]("), f(), // If there’s no url but there is a title…
|
|
23
|
-
!r.url && r.title || // If there are control characters or whitespace.
|
|
24
|
-
/[\0- \u007F]/.test(r.url) ? (f = e.enter("destinationLiteral"), o += t.move("<"), o += t.move(e.safe(r.url, u({
|
|
25
|
-
before: o,
|
|
26
|
-
after: ">"
|
|
27
|
-
}, t.current()))), o += t.move(">")) : (f = e.enter("destinationRaw"), o += t.move(e.safe(r.url, u({
|
|
28
|
-
before: o,
|
|
29
|
-
after: r.title ? " " : ")"
|
|
30
|
-
}, t.current())))), f(), r.title && (f = e.enter(`title${v}`), o += t.move(" " + l), o += t.move(e.safe(r.title, u({
|
|
31
|
-
before: o,
|
|
32
|
-
after: l
|
|
33
|
-
}, t.current()))), o += t.move(l), f()), o += t.move(")"), a(), o;
|
|
34
|
-
}
|
|
35
|
-
function g() {
|
|
36
|
-
return "!";
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
x as image
|
|
40
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { blockquote as o } from "./blockquote.mjs";
|
|
2
|
-
import { hardBreak as r } from "./break.mjs";
|
|
3
|
-
import { code as m } from "./code.mjs";
|
|
4
|
-
import { definition as i } from "./definition.mjs";
|
|
5
|
-
import { emphasis as t } from "./emphasis.mjs";
|
|
6
|
-
import { heading as e } from "./heading.mjs";
|
|
7
|
-
import { html as p } from "./html.mjs";
|
|
8
|
-
import { image as f } from "./image.mjs";
|
|
9
|
-
import { imageReference as a } from "./image-reference.mjs";
|
|
10
|
-
import { inlineCode as n } from "./inline-code.mjs";
|
|
11
|
-
import { link as l } from "./link.mjs";
|
|
12
|
-
import { linkReference as h } from "./link-reference.mjs";
|
|
13
|
-
import { list as c } from "./list.mjs";
|
|
14
|
-
import { listItem as d } from "./list-item.mjs";
|
|
15
|
-
import { paragraph as k } from "./paragraph.mjs";
|
|
16
|
-
import { root as s } from "./root.mjs";
|
|
17
|
-
import { strong as g } from "./strong.mjs";
|
|
18
|
-
import { text as b } from "./text.mjs";
|
|
19
|
-
import { thematicBreak as x } from "./thematic-break.mjs";
|
|
20
|
-
const L = {
|
|
21
|
-
blockquote: o,
|
|
22
|
-
break: r,
|
|
23
|
-
code: m,
|
|
24
|
-
definition: i,
|
|
25
|
-
emphasis: t,
|
|
26
|
-
hardBreak: r,
|
|
27
|
-
heading: e,
|
|
28
|
-
html: p,
|
|
29
|
-
image: f,
|
|
30
|
-
imageReference: a,
|
|
31
|
-
inlineCode: n,
|
|
32
|
-
link: l,
|
|
33
|
-
linkReference: h,
|
|
34
|
-
list: c,
|
|
35
|
-
listItem: d,
|
|
36
|
-
paragraph: k,
|
|
37
|
-
root: s,
|
|
38
|
-
strong: g,
|
|
39
|
-
text: b,
|
|
40
|
-
thematicBreak: x
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
L as handle
|
|
44
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
u.peek = a;
|
|
2
|
-
function u(c, d, i) {
|
|
3
|
-
let e = c.value || "", n = "`", o = -1;
|
|
4
|
-
for (; new RegExp("(^|[^`])" + n + "([^`]|$)").test(e); )
|
|
5
|
-
n += "`";
|
|
6
|
-
for (/[^ \r\n]/.test(e) && (/^[ \r\n]/.test(e) && /[ \r\n]$/.test(e) || /^`|`$/.test(e)) && (e = " " + e + " "); ++o < i.unsafe.length; ) {
|
|
7
|
-
const r = i.unsafe[o], s = i.compilePattern(r);
|
|
8
|
-
let l;
|
|
9
|
-
if (r.atBreak)
|
|
10
|
-
for (; l = s.exec(e); ) {
|
|
11
|
-
let t = l.index;
|
|
12
|
-
e.charCodeAt(t) === 10 && e.charCodeAt(t - 1) === 13 && t--, e = e.slice(0, t) + " " + e.slice(l.index + 1);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return n + e + n;
|
|
16
|
-
}
|
|
17
|
-
function a() {
|
|
18
|
-
return "`";
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
u as inlineCode
|
|
22
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var m = Object.defineProperty;
|
|
2
|
-
var s = Object.getOwnPropertySymbols;
|
|
3
|
-
var p = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var u = (r, n, e) => n in r ? m(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, i = (r, n) => {
|
|
5
|
-
for (var e in n || (n = {}))
|
|
6
|
-
p.call(n, e) && u(r, e, n[e]);
|
|
7
|
-
if (s)
|
|
8
|
-
for (var e of s(n))
|
|
9
|
-
x.call(n, e) && u(r, e, n[e]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
R.peek = h;
|
|
13
|
-
function R(r, n, e, a) {
|
|
14
|
-
const l = r.referenceType, v = e.enter("linkReference");
|
|
15
|
-
let t = e.enter("label");
|
|
16
|
-
const o = e.createTracker(a);
|
|
17
|
-
let c = o.move("[");
|
|
18
|
-
const f = e.containerPhrasing(r, i({
|
|
19
|
-
before: c,
|
|
20
|
-
after: "]"
|
|
21
|
-
}, o.current()));
|
|
22
|
-
c += o.move(f + "]["), t();
|
|
23
|
-
const b = e.stack;
|
|
24
|
-
e.stack = [], t = e.enter("reference");
|
|
25
|
-
const k = e.safe(e.associationId(r), i({
|
|
26
|
-
before: c,
|
|
27
|
-
after: "]"
|
|
28
|
-
}, o.current()));
|
|
29
|
-
return t(), e.stack = b, v(), l === "full" || !f || f !== k ? c += o.move(k + "]") : l === "shortcut" ? c = c.slice(0, -1) : c += o.move("]"), c;
|
|
30
|
-
}
|
|
31
|
-
function h() {
|
|
32
|
-
return "[";
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
R as linkReference
|
|
36
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var s = Object.defineProperty;
|
|
2
|
-
var m = Object.getOwnPropertySymbols;
|
|
3
|
-
var h = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var v = (r, i, e) => i in r ? s(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e, l = (r, i) => {
|
|
5
|
-
for (var e in i || (i = {}))
|
|
6
|
-
h.call(i, e) && v(r, e, i[e]);
|
|
7
|
-
if (m)
|
|
8
|
-
for (var e of m(i))
|
|
9
|
-
x.call(i, e) && v(r, e, i[e]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
import { checkQuote as A } from "../util/check-quote.mjs";
|
|
13
|
-
import { formatLinkAsAutolink as k } from "../util/format-link-as-autolink.mjs";
|
|
14
|
-
P.peek = g;
|
|
15
|
-
function P(r, i, e, a) {
|
|
16
|
-
const u = A(e), b = u === '"' ? "Quote" : "Apostrophe", t = e.createTracker(a);
|
|
17
|
-
let f, n;
|
|
18
|
-
if (k(r, e)) {
|
|
19
|
-
const p = e.stack;
|
|
20
|
-
e.stack = [], f = e.enter("autolink");
|
|
21
|
-
let c = t.move("<");
|
|
22
|
-
return c += t.move(e.containerPhrasing(r, l({
|
|
23
|
-
before: c,
|
|
24
|
-
after: ">"
|
|
25
|
-
}, t.current()))), c += t.move(">"), f(), e.stack = p, c;
|
|
26
|
-
}
|
|
27
|
-
f = e.enter("link"), n = e.enter("label");
|
|
28
|
-
let o = t.move("[");
|
|
29
|
-
return o += t.move(e.containerPhrasing(r, l({
|
|
30
|
-
before: o,
|
|
31
|
-
after: "]("
|
|
32
|
-
}, t.current()))), o += t.move("]("), n(), // If there’s no url but there is a title…
|
|
33
|
-
!r.url && r.title || // If there are control characters or whitespace.
|
|
34
|
-
/[\0- \u007F]/.test(r.url) ? (n = e.enter("destinationLiteral"), o += t.move("<"), o += t.move(e.safe(r.url, l({
|
|
35
|
-
before: o,
|
|
36
|
-
after: ">"
|
|
37
|
-
}, t.current()))), o += t.move(">")) : (n = e.enter("destinationRaw"), o += t.move(e.safe(r.url, l({
|
|
38
|
-
before: o,
|
|
39
|
-
after: r.title ? " " : ")"
|
|
40
|
-
}, t.current())))), n(), r.title && (n = e.enter(`title${b}`), o += t.move(" " + u), o += t.move(e.safe(r.title, l({
|
|
41
|
-
before: o,
|
|
42
|
-
after: u
|
|
43
|
-
}, t.current()))), o += t.move(u), n()), o += t.move(")"), f(), o;
|
|
44
|
-
}
|
|
45
|
-
function g(r, i, e) {
|
|
46
|
-
return k(r, e) ? "<" : "[";
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
P as link
|
|
50
|
-
};
|