@glodon-aiot/agent-cli-ui 0.0.0-snapshot-20250729081352
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/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +143 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +91 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +38 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +101 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +233 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +86 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +79 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +46 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +348 -0
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +135 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +124 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +50 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +394 -0
- package/dist/es/Dialog/AgentChat/index.mjs +906 -0
- package/dist/es/Dialog/SessionList/index.mjs +210 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +64 -0
- package/dist/es/Dialog/index.mjs +150 -0
- package/dist/es/Footer/FooterWarning.mjs +24 -0
- package/dist/es/Footer/index.mjs +17 -0
- package/dist/es/QuillEditor/index.mjs +222 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/_virtual/utilities.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/assets/think.svg.mjs +4 -0
- package/dist/es/components/FilePreview/index.mjs +82 -0
- package/dist/es/components/Greeting/index.mjs +30 -0
- package/dist/es/components/Iconfont/index.mjs +12 -0
- package/dist/es/components/JsonDisplay/index.mjs +15 -0
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +67 -0
- package/dist/es/components/KnowledgeList/index.mjs +73 -0
- package/dist/es/components/Recommend/RecommendItem.mjs +98 -0
- package/dist/es/components/Recommend/index.mjs +58 -0
- package/dist/es/components/Recommend/tip.svg.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +113 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/index.mjs +347 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +70 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +11 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +124 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +13 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +3 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/ccount/index.mjs +12 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +18 -0
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +14 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +8 -0
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +7 -0
- package/dist/es/node_modules/extend/index.mjs +46 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +162 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +47 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +298 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +22 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +10 -0
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +16 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/markdown-table/index.mjs +70 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +8 -0
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +584 -0
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +17 -0
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +136 -0
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +100 -0
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +61 -0
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +30 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +123 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +25 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +31 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +58 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +65 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +26 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +11 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +145 -0
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +49 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +40 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +50 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +7 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +14 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +67 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +29 -0
- package/dist/es/node_modules/micromark/lib/constructs.mjs +85 -0
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +225 -0
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +37 -0
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +133 -0
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +33 -0
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +103 -0
- package/dist/es/node_modules/micromark/lib/parse.mjs +32 -0
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +9 -0
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +40 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +74 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +18 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +42 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +30 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +94 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +45 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +50 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +80 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +46 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +144 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +102 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +152 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +22 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +19 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +14 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +90 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +62 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +25 -0
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +12 -0
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +193 -0
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +192 -0
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +68 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +71 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +24 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +147 -0
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +45 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +31 -0
- package/dist/es/node_modules/micromark-factory-label/index.mjs +28 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-title/index.mjs +26 -0
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +39 -0
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +10 -0
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +36 -0
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +18 -0
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +5 -0
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +6 -0
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +23 -0
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +65 -0
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +175 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-markdown/lib/index.mjs +153 -0
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +29 -0
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +34 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +9 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/rehype-raw/lib/index.mjs +26 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +251 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +249 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +125 -0
- package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +4 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +34 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +103 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +44 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +14 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +2308 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +220 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +2 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +1948 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +92 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +173 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +27 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +23 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +51 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +11 -0
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +22 -0
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +18 -0
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +93 -0
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +25 -0
- package/dist/es/node_modules/trim-lines/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +25 -0
- package/dist/es/node_modules/unified/lib/index.mjs +525 -0
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +7 -0
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +9 -0
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +61 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +26 -0
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +15 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/vfile/lib/index.mjs +401 -0
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +120 -0
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +9 -0
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +35 -0
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +7 -0
- package/dist/es/node_modules/vfile-message/lib/index.mjs +106 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/node_modules/zwitch/index.mjs +18 -0
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +8 -0
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +43 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +42 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +64 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +56 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +19 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +68 -0
- package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/es/src/global.css +1 -0
- package/dist/es/src/image-viewer.css +1 -0
- package/dist/es/src/katex.min.css +1 -0
- package/dist/es/src/mask.css +1 -0
- package/dist/es/src/safe-area.css +1 -0
- package/dist/es/src/style.css +1 -0
- package/dist/es/src/style10.css +1 -0
- package/dist/es/src/style11.css +1 -0
- package/dist/es/src/style12.css +1 -0
- package/dist/es/src/style13.css +1 -0
- package/dist/es/src/style14.css +1 -0
- package/dist/es/src/style15.css +1 -0
- package/dist/es/src/style16.css +1 -0
- package/dist/es/src/style17.css +1 -0
- package/dist/es/src/style18.css +1 -0
- package/dist/es/src/style19.css +1 -0
- package/dist/es/src/style2.css +1 -0
- package/dist/es/src/style20.css +1 -0
- package/dist/es/src/style21.css +1 -0
- package/dist/es/src/style22.css +1 -0
- package/dist/es/src/style23.css +1 -0
- package/dist/es/src/style24.css +1 -0
- package/dist/es/src/style25.css +1 -0
- package/dist/es/src/style26.css +1 -0
- package/dist/es/src/style27.css +1 -0
- package/dist/es/src/style28.css +1 -0
- package/dist/es/src/style29.css +1 -0
- package/dist/es/src/style3.css +1 -0
- package/dist/es/src/style4.css +1 -0
- package/dist/es/src/style5.css +1 -0
- package/dist/es/src/style6.css +1 -0
- package/dist/es/src/style7.css +1 -0
- package/dist/es/src/style8.css +1 -0
- package/dist/es/src/style9.css +1 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/index.mjs +37 -0
- package/dist/lib/index.css +1 -0
- package/dist/lib/index.js +317 -0
- package/dist/src/AgentClientUI.d.ts +4 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +18 -0
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
- package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +19 -0
- package/dist/src/Dialog/SessionList/index.d.ts +21 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +8 -0
- package/dist/src/QuillEditor/index.d.ts +20 -0
- package/dist/src/ReactTextGenerationUI/components/TextSiders/index.d.ts +21 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/index.d.ts +4 -0
- package/dist/src/components/FilePreview/index.d.ts +20 -0
- package/dist/src/components/Greeting/index.d.ts +8 -0
- package/dist/src/components/Header/index.d.ts +7 -0
- package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/components/Iconfont/index.d.ts +2 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/components/KnowledgeList/index.d.ts +10 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/components/Recommend/index.d.ts +14 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +17 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/types.d.ts +228 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +25 -0
- package/package.json +141 -0
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
var Yt = Object.defineProperty, Kt = Object.defineProperties;
|
|
2
|
+
var Wt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var Qt = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ke = (L, o, v) => o in L ? Yt(L, o, { enumerable: !0, configurable: !0, writable: !0, value: v }) : L[o] = v, tt = (L, o) => {
|
|
6
|
+
for (var v in o || (o = {}))
|
|
7
|
+
Qt.call(o, v) && ke(L, v, o[v]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var v of et(o))
|
|
10
|
+
_t.call(o, v) && ke(L, v, o[v]);
|
|
11
|
+
return L;
|
|
12
|
+
}, nt = (L, o) => Kt(L, Wt(o));
|
|
13
|
+
var D = (L, o, v) => (ke(L, typeof o != "symbol" ? o + "" : o, v), v);
|
|
14
|
+
var z = (L, o, v) => new Promise((e, x) => {
|
|
15
|
+
var ce = (I) => {
|
|
16
|
+
try {
|
|
17
|
+
H(v.next(I));
|
|
18
|
+
} catch (h) {
|
|
19
|
+
x(h);
|
|
20
|
+
}
|
|
21
|
+
}, k = (I) => {
|
|
22
|
+
try {
|
|
23
|
+
H(v.throw(I));
|
|
24
|
+
} catch (h) {
|
|
25
|
+
x(h);
|
|
26
|
+
}
|
|
27
|
+
}, H = (I) => I.done ? e(I.value) : Promise.resolve(I.value).then(ce, k);
|
|
28
|
+
H((v = v.apply(L, o)).next());
|
|
29
|
+
});
|
|
30
|
+
import { jsx as c, jsxs as A } from "react/jsx-runtime";
|
|
31
|
+
import { memo as Gt, useState as m, useRef as B, useContext as Xt, useEffect as T, useMemo as Zt } from "react";
|
|
32
|
+
/* empty css */import { Divider as Jt, Spin as St, Button as _, Space as ae, Upload as en, Tooltip as tn, message as u, notification as nn } from "antd";
|
|
33
|
+
import de from "../../components/Iconfont/index.mjs";
|
|
34
|
+
import { IHistoryRole as G, ChatMessageRole as it } from "@glodon-aiot/apis";
|
|
35
|
+
import rt from "./HistoryItem/index.mjs";
|
|
36
|
+
import lt from "dayjs";
|
|
37
|
+
import { v4 as at } from "uuid";
|
|
38
|
+
import on from "../../context.mjs";
|
|
39
|
+
import { MB as sn } from "../../constant.mjs";
|
|
40
|
+
import rn from "../../components/FilePreview/index.mjs";
|
|
41
|
+
import { getImageExtension as ln } from "../../utils/index.mjs";
|
|
42
|
+
import an from "../../QuillEditor/index.mjs";
|
|
43
|
+
import dn from "../../components/Recommend/index.mjs";
|
|
44
|
+
import cn from "../../components/Greeting/index.mjs";
|
|
45
|
+
import fn from "../../Footer/index.mjs";
|
|
46
|
+
import { CameraOutlined as gn, PlusOutlined as un } from "@ant-design/icons";
|
|
47
|
+
import hn from "./Tools/UploadKnowledgeFiles/index.mjs";
|
|
48
|
+
import mn from "../UploadingPrompt/index.mjs";
|
|
49
|
+
import yn from "./PromptSetting/index.mjs";
|
|
50
|
+
import { useMemoizedFn as we } from "ahooks";
|
|
51
|
+
import pn from "./Tools/SessionListDrawer/index.mjs";
|
|
52
|
+
import vn from "react-infinite-scroll-component";
|
|
53
|
+
import bn from "./Tools/ConnectToNetwork/index.mjs";
|
|
54
|
+
import kn from "./Tools/PromptManager/index.mjs";
|
|
55
|
+
import wn from "../../assets/icon.svg.mjs";
|
|
56
|
+
const xn = Gt(rt), ot = {
|
|
57
|
+
icon: wn,
|
|
58
|
+
text: "今天我能帮你什么?"
|
|
59
|
+
};
|
|
60
|
+
class J {
|
|
61
|
+
constructor(o, v, e, x) {
|
|
62
|
+
D(this, "messageTime");
|
|
63
|
+
D(this, "isWaiting");
|
|
64
|
+
D(this, "messageId");
|
|
65
|
+
D(this, "isContext");
|
|
66
|
+
D(this, "actions");
|
|
67
|
+
D(this, "reference");
|
|
68
|
+
D(this, "isSensitive");
|
|
69
|
+
D(this, "isSuspend");
|
|
70
|
+
D(this, "comment");
|
|
71
|
+
this.content = o, this.sessionId = v, this.role = e, this.files = x, this.content = o, this.role = e, this.sessionId = v, this.files = x, this.messageTime = lt(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss"), this.isWaiting = !1, this.messageId = at(), this.isContext = !1, this.actions = [], this.reference = [], this.isSensitive = !1, this.isSuspend = !1, this.comment = {
|
|
72
|
+
isAgree: 0
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const st = 10, Zn = (L) => {
|
|
77
|
+
var Be, qe, Ye, Ke, We, Qe, _e, Ge, Xe, Ze, Je;
|
|
78
|
+
const {
|
|
79
|
+
application: o,
|
|
80
|
+
docViewerUrl: v = "",
|
|
81
|
+
currentSession: e,
|
|
82
|
+
onCreateSession: x,
|
|
83
|
+
embeddingService: ce,
|
|
84
|
+
setCurrentSession: k,
|
|
85
|
+
networkStatus: H,
|
|
86
|
+
setNetworkStatus: I
|
|
87
|
+
} = L, [h, C] = m([]), [dt, S] = m(), [fe, xe] = m(), P = B(null), {
|
|
88
|
+
service: F,
|
|
89
|
+
agentClient: N,
|
|
90
|
+
depId: ct,
|
|
91
|
+
footer: ft,
|
|
92
|
+
transform: f,
|
|
93
|
+
defaultInput: ge,
|
|
94
|
+
onMessage: ee,
|
|
95
|
+
onHistoryLoad: Ie,
|
|
96
|
+
beforeMessageSend: j,
|
|
97
|
+
bodyStyle: gt,
|
|
98
|
+
disabled: M,
|
|
99
|
+
features: a,
|
|
100
|
+
popupContainer: g,
|
|
101
|
+
icon: ut
|
|
102
|
+
} = Xt(on), [Le, ue] = m(!1), y = B(h), Ce = B(void 0), [ht, mt] = m(0), [X, q] = m(), [Y, te] = m(""), [Ne, he] = m(!1), me = B(null), [Fe, yt] = m([]), [Te, K] = m(!1), [Ee, pt] = m(!1), [vt, bt] = m(""), [kt, W] = m(), [ne, ie] = m({}), oe = B(null), Pe = B(null), ye = B(null), [Re, wt] = m(!1), [xt, It] = m([]), [Lt, se] = m(!0), [Ct, Nt] = m(!0), [De, O] = m(!1), [pe, V] = m(!1), [He, Ft] = m(!1), [E, re] = m(typeof (a == null ? void 0 : a.promptVariables) == "object" ? a.promptVariables.default || [] : []), [Tt, Et] = m(typeof (a == null ? void 0 : a.knowledges) == "object" && a.knowledges.default || void 0), [Me, U] = m(!1), [Oe, Z] = m(!1), [Pt, Q] = m(typeof (a == null ? void 0 : a.connectNetwork) == "object" && typeof (a == null ? void 0 : a.connectNetwork.default) == "boolean" ? a.connectNetwork.default : !1), [Ue, le] = m(!1);
|
|
103
|
+
T(() => {
|
|
104
|
+
var r, i;
|
|
105
|
+
e && (y.current = []), C([]);
|
|
106
|
+
const t = P.current;
|
|
107
|
+
if (t && t.scrollTo({
|
|
108
|
+
top: 0
|
|
109
|
+
}), !((r = e == null ? void 0 : e.data) != null && r.id))
|
|
110
|
+
return;
|
|
111
|
+
if (V(!1), O(!1), (i = e.messages) != null && i.length) {
|
|
112
|
+
const s = [...e.messages.filter((d) => d == null ? void 0 : d.messageId)].reverse();
|
|
113
|
+
y.current = [...s], C([...s]);
|
|
114
|
+
}
|
|
115
|
+
const n = (l) => {
|
|
116
|
+
var s;
|
|
117
|
+
(s = e == null ? void 0 : e.data) != null && s.id && (y.current = [...l].reverse(), C([...l].reverse()), !l || l.length < 10 ? Z(!1) : Z(!0), Ie && Ie({
|
|
118
|
+
applicationId: o.id,
|
|
119
|
+
sessionId: e.data.id,
|
|
120
|
+
histories: l
|
|
121
|
+
}));
|
|
122
|
+
};
|
|
123
|
+
return e.addEventListener("history:loaded", n), () => {
|
|
124
|
+
y.current = [], C([]), e == null || e.removeEventListener("history:loaded", n);
|
|
125
|
+
};
|
|
126
|
+
}, [e]), T(() => {
|
|
127
|
+
const t = () => {
|
|
128
|
+
var n;
|
|
129
|
+
(n = e == null ? void 0 : e.data) != null && n.id && (e.promptVariables && re(e.promptVariables.sort((r, i) => r.key.localeCompare(i.key))), e.knowledges && Et(e.knowledges), I(e.netOpen));
|
|
130
|
+
};
|
|
131
|
+
return e == null || e.addEventListener("data:updated", t), () => {
|
|
132
|
+
e == null || e.removeEventListener("data:updated", t);
|
|
133
|
+
};
|
|
134
|
+
}, [e]), T(() => {
|
|
135
|
+
var n;
|
|
136
|
+
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
137
|
+
return;
|
|
138
|
+
const t = (r) => {
|
|
139
|
+
console.error(r.message, r.cause, "e.case");
|
|
140
|
+
};
|
|
141
|
+
return e.addEventListener("error", t), () => {
|
|
142
|
+
e == null || e.removeEventListener("error", t);
|
|
143
|
+
};
|
|
144
|
+
}, [e]);
|
|
145
|
+
const Rt = () => {
|
|
146
|
+
var r;
|
|
147
|
+
if (!((r = e == null ? void 0 : e.data) != null && r.id) || !(o != null && o.id))
|
|
148
|
+
return;
|
|
149
|
+
const t = e.data.id, n = h[h.length - 1];
|
|
150
|
+
if (n && n.isContext) {
|
|
151
|
+
u.config({
|
|
152
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
153
|
+
}), u.success("已开启新话题"), u.config({
|
|
154
|
+
getContainer: void 0
|
|
155
|
+
});
|
|
156
|
+
return;
|
|
157
|
+
} else
|
|
158
|
+
e.clear().then(() => {
|
|
159
|
+
const i = new J("", t, G.System);
|
|
160
|
+
i.isContext = !0, C([i, ...h]);
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
T(() => {
|
|
164
|
+
o != null && o.id && (F == null || F.getRecommendQues(o.id).then((t) => {
|
|
165
|
+
yt(t);
|
|
166
|
+
}));
|
|
167
|
+
}, [ct, o]);
|
|
168
|
+
const ze = (t) => z(void 0, null, function* () {
|
|
169
|
+
var w, p;
|
|
170
|
+
if (M) {
|
|
171
|
+
u.config({
|
|
172
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
173
|
+
}), u.error("发送功能被禁用"), u.config({
|
|
174
|
+
getContainer: void 0
|
|
175
|
+
});
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const n = t || dt;
|
|
179
|
+
if (!(n != null && n.trim())) {
|
|
180
|
+
u.config({
|
|
181
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
182
|
+
}), u.error("请输入你想问的"), u.config({
|
|
183
|
+
getContainer: void 0
|
|
184
|
+
});
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (!(E == null ? void 0 : E.every((b) => !!(b != null && b.value))))
|
|
188
|
+
if (f != null && f.promptVariables) {
|
|
189
|
+
u.config({
|
|
190
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
191
|
+
}), u.error("变量值不能为空"), u.config({
|
|
192
|
+
getContainer: void 0
|
|
193
|
+
});
|
|
194
|
+
return;
|
|
195
|
+
} else
|
|
196
|
+
console.error("变量值不能为空", E == null ? void 0 : E.map((b) => !!(b != null && b.value)));
|
|
197
|
+
if (pe) {
|
|
198
|
+
u.config({
|
|
199
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
200
|
+
}), u.error("正在回复中"), u.config({
|
|
201
|
+
getContainer: void 0
|
|
202
|
+
});
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
if (Le) {
|
|
206
|
+
u.config({
|
|
207
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
208
|
+
}), u.error("等待初始化"), u.config({
|
|
209
|
+
getContainer: void 0
|
|
210
|
+
});
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (!Lt) {
|
|
214
|
+
u.config({
|
|
215
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
216
|
+
}), u.error("正在解析文件"), u.config({
|
|
217
|
+
getContainer: void 0
|
|
218
|
+
});
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
if (Ne) {
|
|
222
|
+
u.config({
|
|
223
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
224
|
+
}), u.error("正在上传图片"), u.config({
|
|
225
|
+
getContainer: void 0
|
|
226
|
+
});
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
q(void 0), te("");
|
|
230
|
+
const i = (w = e == null ? void 0 : e.data) == null ? void 0 : w.id;
|
|
231
|
+
if (!i) {
|
|
232
|
+
x == null || x({
|
|
233
|
+
netOpen: H ? 1 : 2
|
|
234
|
+
}).then((b) => {
|
|
235
|
+
var R, $;
|
|
236
|
+
U(!0), I(!!((R = b.data) != null && R.netOpen)), Q(!!(($ = b.data) != null && $.enableNetOpen)), Dt(b).then(() => {
|
|
237
|
+
k == null || k(b), U(!1), xe(n);
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
le(!0);
|
|
243
|
+
const l = Y ? `
|
|
244
|
+
${n}` : n;
|
|
245
|
+
let s;
|
|
246
|
+
try {
|
|
247
|
+
j ? s = yield j == null ? void 0 : j({
|
|
248
|
+
applicationId: o.id,
|
|
249
|
+
sessionId: i,
|
|
250
|
+
message: {
|
|
251
|
+
content: l,
|
|
252
|
+
sessionId: i,
|
|
253
|
+
role: it.User,
|
|
254
|
+
files: ne[i]
|
|
255
|
+
}
|
|
256
|
+
}) : s = !0;
|
|
257
|
+
} catch (b) {
|
|
258
|
+
s = !1;
|
|
259
|
+
}
|
|
260
|
+
if (le(!1), s === !1)
|
|
261
|
+
return;
|
|
262
|
+
let d = n;
|
|
263
|
+
typeof s == "object" && (d = s.content || n), ((p = ne[i]) == null ? void 0 : p.length) > 0 ? Ht(d) : ve(d);
|
|
264
|
+
}), Dt = (t) => new Promise((n, r) => z(void 0, null, function* () {
|
|
265
|
+
const s = (t == null ? void 0 : t.promptVariables).filter((d) => d.key !== "query").map((d) => {
|
|
266
|
+
var p;
|
|
267
|
+
const w = (p = E.find((b) => b.key === d.key)) == null ? void 0 : p.value;
|
|
268
|
+
return d.value = w || "", d;
|
|
269
|
+
});
|
|
270
|
+
re(s.sort((d, w) => d.key.localeCompare(w.key))), yield t == null ? void 0 : t.setPromptVariables(s), n();
|
|
271
|
+
})), Ht = (t) => {
|
|
272
|
+
var s, d, w;
|
|
273
|
+
if (se(!1), !((s = e == null ? void 0 : e.data) != null && s.id) || !(o != null && o.id))
|
|
274
|
+
return;
|
|
275
|
+
const n = ((d = e.data) == null ? void 0 : d.id) || "", r = [];
|
|
276
|
+
let i = [], l = /* @__PURE__ */ new Set();
|
|
277
|
+
(w = ne[n]) == null || w.forEach((p) => {
|
|
278
|
+
l.has(p.id) || (i.push(p), l.add(p.id));
|
|
279
|
+
}), Promise.all(i.map((p) => F == null ? void 0 : F.patchApplicationIdKnowledgeIdFileId(o == null ? void 0 : o.id, n, p.id, {
|
|
280
|
+
enabled: 1
|
|
281
|
+
}).then((b) => {
|
|
282
|
+
r.push(p);
|
|
283
|
+
}))).then((p) => {
|
|
284
|
+
se(!0), ve(t, r);
|
|
285
|
+
}).catch((p) => {
|
|
286
|
+
throw Error(p);
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
T(() => {
|
|
290
|
+
if (!fe || !e)
|
|
291
|
+
return;
|
|
292
|
+
const t = fe, n = () => z(void 0, null, function* () {
|
|
293
|
+
le(!0);
|
|
294
|
+
const r = Y ? `
|
|
295
|
+
${t}` : t;
|
|
296
|
+
let i;
|
|
297
|
+
try {
|
|
298
|
+
j ? i = yield j == null ? void 0 : j({
|
|
299
|
+
applicationId: o.id,
|
|
300
|
+
sessionId: e.id,
|
|
301
|
+
message: {
|
|
302
|
+
content: r,
|
|
303
|
+
sessionId: e.id,
|
|
304
|
+
role: it.User,
|
|
305
|
+
files: ne[e.id]
|
|
306
|
+
}
|
|
307
|
+
}) : i = !0;
|
|
308
|
+
} catch (l) {
|
|
309
|
+
i = !1;
|
|
310
|
+
}
|
|
311
|
+
le(!1), i !== !1 && (ve(t), xe(void 0));
|
|
312
|
+
});
|
|
313
|
+
return e.ready ? n() : e.addEventListener("ready", n, !0), () => {
|
|
314
|
+
e == null || e.removeEventListener("ready", n);
|
|
315
|
+
};
|
|
316
|
+
}, [fe, e]);
|
|
317
|
+
const ve = (t, n) => z(void 0, null, function* () {
|
|
318
|
+
var p, b;
|
|
319
|
+
const r = (p = e == null ? void 0 : e.data) == null ? void 0 : p.id;
|
|
320
|
+
if (!r)
|
|
321
|
+
return;
|
|
322
|
+
V(!0), O(!0);
|
|
323
|
+
const i = Y ? `
|
|
324
|
+
${t}` : t, l = new J(i, r, G.User, n);
|
|
325
|
+
S(void 0), W(void 0), y.current = [l, ...h], C(y.current), o.id && ee && ee({
|
|
326
|
+
applicationId: o.id,
|
|
327
|
+
sessionId: r,
|
|
328
|
+
message: l
|
|
329
|
+
});
|
|
330
|
+
const s = new J("", r, G.System);
|
|
331
|
+
s.isWaiting = !0, y.current = [s, ...y.current], C(y.current);
|
|
332
|
+
const d = (n == null ? void 0 : n.map((R) => R.id)) || [], w = {
|
|
333
|
+
stream: !0,
|
|
334
|
+
referenceFirst: !1
|
|
335
|
+
};
|
|
336
|
+
if (f != null && f.promptVariables) {
|
|
337
|
+
const R = E == null ? void 0 : E.reduce(($, Se) => ($[Se.key] = Se.value, $), {});
|
|
338
|
+
w.formatValues = R, e.setPromptVariables(E);
|
|
339
|
+
}
|
|
340
|
+
if (f != null && f.knowledges) {
|
|
341
|
+
const R = Tt;
|
|
342
|
+
w.knowledges = R;
|
|
343
|
+
}
|
|
344
|
+
yield e.send({
|
|
345
|
+
text: i,
|
|
346
|
+
fileIds: d
|
|
347
|
+
}, w), ie({
|
|
348
|
+
[r]: []
|
|
349
|
+
}), (b = oe.current) == null || b.update();
|
|
350
|
+
});
|
|
351
|
+
T(() => {
|
|
352
|
+
var r;
|
|
353
|
+
const t = (r = e == null ? void 0 : e.data) == null ? void 0 : r.id;
|
|
354
|
+
if (!t)
|
|
355
|
+
return;
|
|
356
|
+
const n = (i) => {
|
|
357
|
+
if (!i.sessionId || i.sessionId && i.sessionId !== Ce.current || i.role === G.User)
|
|
358
|
+
return;
|
|
359
|
+
if (i.index === -1 && i.code !== 200 && i.code !== 11915 && (O(!1), V(!1), y.current = y.current.filter((d) => !d.isWaiting), C([...y.current]), y.current = [...y.current], i.content))
|
|
360
|
+
return nn.error({
|
|
361
|
+
message: i.content
|
|
362
|
+
});
|
|
363
|
+
const l = i.actions || [], s = new J(i.content, t, G.Robot);
|
|
364
|
+
s.messageId = i.messageId, s.reasoningContent = i.reasoningContent, s.searchReference = i.searchReference, s.thinkingSecs = i.thinkingSecs, s.thinkingStatus = i.thinkingStatus, s.actions = l, s.isLoading = !0, s.searchingStatus = i.searchingStatus, y.current = y.current.filter((d) => !d.isWaiting).filter((d) => !d.isReplying), i.index === void 0 && C([s, ...y.current]), i.code === 11915 && (O(!1), V(!1), s.isLoading = !1, s.content = "请您换个问题问我吧~", s.isSensitive = !0, C([s, ...y.current])), i.index === -2 && (O(!1), V(!1), s.isLoading = !1, s.content = "回答已中止~", s.isSuspend = !0, C([s, ...y.current])), i.index === -1 && (O(!1), V(!1), s.isLoading = !1, s.reference = i.reference, C([s, ...y.current]), o.id && ee && ee({
|
|
365
|
+
applicationId: o.id,
|
|
366
|
+
sessionId: t,
|
|
367
|
+
message: s
|
|
368
|
+
})), i.index === -3 && (O(!1), V(!1), s.isLoading = !1, s.reference = i.reference, s.relatedQuesion = i.relatedQuesion, C([s, ...y.current]));
|
|
369
|
+
};
|
|
370
|
+
return e.ready ? e.addEventListener("message:updated", n) : e.addEventListener("ready", () => {
|
|
371
|
+
e.addEventListener("message:updated", n);
|
|
372
|
+
}), () => {
|
|
373
|
+
e == null || e.removeEventListener("message:updated", n);
|
|
374
|
+
};
|
|
375
|
+
}, [e]), T(() => {
|
|
376
|
+
if (!e) {
|
|
377
|
+
ue(!1);
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
const t = (n) => {
|
|
381
|
+
ue(n);
|
|
382
|
+
};
|
|
383
|
+
return ue(e.frozen), e.addEventListener("frozen", t), () => {
|
|
384
|
+
e == null || e.removeEventListener("frozen", t);
|
|
385
|
+
};
|
|
386
|
+
}, [e]), T(() => {
|
|
387
|
+
if (!N)
|
|
388
|
+
return;
|
|
389
|
+
const t = N.questionContextMaxLength || 4e3;
|
|
390
|
+
mt(t);
|
|
391
|
+
}, [N, F]), T(() => {
|
|
392
|
+
ge && W(ge.text);
|
|
393
|
+
}, [ge]);
|
|
394
|
+
const Mt = (t) => {
|
|
395
|
+
const n = t.size;
|
|
396
|
+
return n <= 0 ? (u.config({
|
|
397
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
398
|
+
}), u.error("该文件为空,请重新上传"), u.config({
|
|
399
|
+
getContainer: void 0
|
|
400
|
+
}), !1) : n > 20 * sn ? (u.config({
|
|
401
|
+
getContainer: () => (g == null ? void 0 : g.current) || document.body
|
|
402
|
+
}), u.error("图片须小于20M"), u.config({
|
|
403
|
+
getContainer: void 0
|
|
404
|
+
}), !1) : (q(t), !1);
|
|
405
|
+
}, Ot = (t) => z(void 0, null, function* () {
|
|
406
|
+
var n;
|
|
407
|
+
return q(t), (n = e == null ? void 0 : e.data) != null && n.id ? je(e, t) : new Promise((r) => {
|
|
408
|
+
U(!0), x == null || x({
|
|
409
|
+
netOpen: H ? 1 : 2
|
|
410
|
+
}).then((i) => {
|
|
411
|
+
var l, s;
|
|
412
|
+
k == null || k(i), U(!1), I(!!((l = i.data) != null && l.netOpen)), Q(!!((s = i.data) != null && s.enableNetOpen)), r(je(i, t));
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
}), je = (t, n) => {
|
|
416
|
+
const r = ln(n.name);
|
|
417
|
+
return new Promise((i) => {
|
|
418
|
+
var s;
|
|
419
|
+
const l = {
|
|
420
|
+
files: [`${at()}.${r}`],
|
|
421
|
+
isv: "minio",
|
|
422
|
+
knowledgeId: ((s = t.data) == null ? void 0 : s.id) || "",
|
|
423
|
+
type: 1
|
|
424
|
+
};
|
|
425
|
+
he(!0), F == null || F.postTicket(l).then((d) => {
|
|
426
|
+
F.uploadMinioFile(d.minio, n).then(() => {
|
|
427
|
+
var R, $;
|
|
428
|
+
const w = (R = d.minio.endpoints) == null ? void 0 : R[0], p = d.minio.bucket, b = ($ = d.minio.fileKeys) == null ? void 0 : $[0];
|
|
429
|
+
i(`${location.protocol}//${w}/${p}/${b}`);
|
|
430
|
+
}).catch(() => {
|
|
431
|
+
te(""), q(void 0);
|
|
432
|
+
}).finally(() => {
|
|
433
|
+
he(!1);
|
|
434
|
+
});
|
|
435
|
+
}).catch(() => {
|
|
436
|
+
te(""), q(void 0), he(!1);
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
T(() => {
|
|
441
|
+
const t = P.current;
|
|
442
|
+
t && !He && t.scrollTo({
|
|
443
|
+
top: t.scrollHeight
|
|
444
|
+
});
|
|
445
|
+
}, [h]);
|
|
446
|
+
const Ve = (t, n) => new Promise((r) => {
|
|
447
|
+
if (!n.file.url || !(o != null && o.id))
|
|
448
|
+
return r();
|
|
449
|
+
const i = nt(tt({}, n.file), {
|
|
450
|
+
type: 1
|
|
451
|
+
});
|
|
452
|
+
F == null || F.postApplicationIdSessionKnowledgeSessionFile(o == null ? void 0 : o.id, t, i).finally(() => {
|
|
453
|
+
var l;
|
|
454
|
+
(l = oe.current) == null || l.update().finally(r);
|
|
455
|
+
});
|
|
456
|
+
}), Ut = () => {
|
|
457
|
+
var t;
|
|
458
|
+
(t = e == null ? void 0 : e.data) != null && t.id && (O(!1), e.suspend());
|
|
459
|
+
}, zt = (t) => {
|
|
460
|
+
const n = P.current;
|
|
461
|
+
n && setTimeout(() => {
|
|
462
|
+
n.scrollTo({
|
|
463
|
+
top: n.scrollHeight,
|
|
464
|
+
behavior: t == null ? void 0 : t.behavior
|
|
465
|
+
});
|
|
466
|
+
}, t == null ? void 0 : t.ms);
|
|
467
|
+
}, jt = () => {
|
|
468
|
+
if (!P.current)
|
|
469
|
+
return;
|
|
470
|
+
const t = P.current.scrollTop <= -80;
|
|
471
|
+
Ft(t);
|
|
472
|
+
}, Vt = we((t) => {
|
|
473
|
+
var n, r;
|
|
474
|
+
(n = me.current) == null || n.update(t), (r = me.current) == null || r.focus();
|
|
475
|
+
}), $t = we((t) => {
|
|
476
|
+
ze(t);
|
|
477
|
+
}), At = we(() => {
|
|
478
|
+
var n;
|
|
479
|
+
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
480
|
+
return;
|
|
481
|
+
y.current = [...h.slice(1, h.length)], C(y.current);
|
|
482
|
+
const t = new J("", e.data.id, G.System);
|
|
483
|
+
t.isWaiting = !0, y.current = [t, ...y.current], C(y.current), V(!0), O(!0), e.answerAgain();
|
|
484
|
+
});
|
|
485
|
+
T(() => {
|
|
486
|
+
var t, n;
|
|
487
|
+
Ce.current = (t = e == null ? void 0 : e.data) == null ? void 0 : t.id, !Me && ((n = ye.current) == null || n.clear());
|
|
488
|
+
}, [e]);
|
|
489
|
+
const Bt = () => {
|
|
490
|
+
var r;
|
|
491
|
+
if (!((r = e == null ? void 0 : e.data) != null && r.id))
|
|
492
|
+
return;
|
|
493
|
+
const n = h[h.length - 1].messageTime;
|
|
494
|
+
e.fetchMessages({
|
|
495
|
+
endTime: n,
|
|
496
|
+
pageSize: st
|
|
497
|
+
}).then((i) => {
|
|
498
|
+
const l = i || [];
|
|
499
|
+
if (!l || !(l != null && l.length)) {
|
|
500
|
+
Z(!1);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
l.length < 10 ? Z(!1) : Z(!0), C([...h, ...l.reverse()]);
|
|
504
|
+
});
|
|
505
|
+
}, qt = (t) => z(void 0, null, function* () {
|
|
506
|
+
var n, r;
|
|
507
|
+
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
508
|
+
I(t);
|
|
509
|
+
else {
|
|
510
|
+
if (yield e.setNetOpen(t), !((r = e.data) != null && r.id))
|
|
511
|
+
return;
|
|
512
|
+
I(t);
|
|
513
|
+
}
|
|
514
|
+
}), be = () => z(void 0, null, function* () {
|
|
515
|
+
e ? e.fetchData().then((t) => {
|
|
516
|
+
var n;
|
|
517
|
+
(n = e == null ? void 0 : e.data) != null && n.id && (I(t.netOpen), Q(t.enableNetOpen));
|
|
518
|
+
}) : (I(!1), Q(o.arrange[0].enableNetOpen));
|
|
519
|
+
});
|
|
520
|
+
T(() => {
|
|
521
|
+
be();
|
|
522
|
+
}, [e]), T(() => {
|
|
523
|
+
var t, n;
|
|
524
|
+
if (P.current) {
|
|
525
|
+
const r = document.getElementById("chat-main"), i = (t = P.current) == null ? void 0 : t.querySelector(".infinite-scroll-component__outerdiv"), l = (n = P.current) == null ? void 0 : n.querySelector(".infinite-scroll-component");
|
|
526
|
+
if (!i || !l || !r)
|
|
527
|
+
return;
|
|
528
|
+
const s = r.offsetHeight;
|
|
529
|
+
if (l.offsetHeight <= s) {
|
|
530
|
+
if (i.style.height === "100%")
|
|
531
|
+
return;
|
|
532
|
+
i.style.height = "100%";
|
|
533
|
+
} else {
|
|
534
|
+
if (i.style.height === "auto")
|
|
535
|
+
return;
|
|
536
|
+
i.style.height = "auto";
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}, [h]), T(() => {
|
|
540
|
+
if (e)
|
|
541
|
+
return;
|
|
542
|
+
const t = () => {
|
|
543
|
+
const i = ((N == null ? void 0 : N.promptVariables) || []).filter(
|
|
544
|
+
(l) => l.key !== "query" && l.status === 1
|
|
545
|
+
// 只要求输入被引用的变量
|
|
546
|
+
).map((l, s) => {
|
|
547
|
+
var w, p;
|
|
548
|
+
let d = "";
|
|
549
|
+
return typeof (a == null ? void 0 : a.promptVariables) == "object" && (d = ((p = (w = a.promptVariables.default) == null ? void 0 : w.find((b) => b.key === l.key)) == null ? void 0 : p.value) || ""), {
|
|
550
|
+
id: s + "",
|
|
551
|
+
key: l.key,
|
|
552
|
+
name: l.name,
|
|
553
|
+
value: d
|
|
554
|
+
};
|
|
555
|
+
});
|
|
556
|
+
re([...i].sort((l, s) => l.key.localeCompare(s.key)));
|
|
557
|
+
};
|
|
558
|
+
return N != null && N.ready ? t() : N == null || N.addEventListener("ready", t), () => {
|
|
559
|
+
N == null || N.removeEventListener("ready", t);
|
|
560
|
+
};
|
|
561
|
+
}, [e, N, a == null ? void 0 : a.promptVariables]);
|
|
562
|
+
const $e = () => x == null ? void 0 : x({
|
|
563
|
+
netOpen: H ? 1 : 2
|
|
564
|
+
}).then((t) => {
|
|
565
|
+
var n, r;
|
|
566
|
+
return k == null || k(t), U(!1), I(!!((n = t.data) != null && n.netOpen)), Q(!!((r = t.data) != null && r.enableNetOpen)), t;
|
|
567
|
+
}), Ae = Zt(() => {
|
|
568
|
+
var t;
|
|
569
|
+
return o.arrange && ((t = o.arrange[0]) != null && t.openingContent) ? /* @__PURE__ */ c(rt, {
|
|
570
|
+
application: o,
|
|
571
|
+
history: {
|
|
572
|
+
role: 1,
|
|
573
|
+
content: o.arrange[0].openingContent,
|
|
574
|
+
code: 200,
|
|
575
|
+
messageId: "opening-message",
|
|
576
|
+
sessionId: "",
|
|
577
|
+
reference: [],
|
|
578
|
+
searchReference: [],
|
|
579
|
+
messageTime: lt(Date.now()).format("YYYY-MM-DD HH:mm:ss"),
|
|
580
|
+
actions: [],
|
|
581
|
+
isLoading: !1
|
|
582
|
+
},
|
|
583
|
+
actions: !!h.length
|
|
584
|
+
}) : null;
|
|
585
|
+
}, [o == null ? void 0 : o.arrange, h]);
|
|
586
|
+
return /* @__PURE__ */ A("div", {
|
|
587
|
+
className: "agent-chat",
|
|
588
|
+
children: [(f == null ? void 0 : f.promptVariables) && /* @__PURE__ */ c(yn, {
|
|
589
|
+
ref: Pe,
|
|
590
|
+
appId: o.id,
|
|
591
|
+
currentSession: e,
|
|
592
|
+
promptVariables: E,
|
|
593
|
+
setPromptVariables: re,
|
|
594
|
+
setCurrentSession: k
|
|
595
|
+
}), /* @__PURE__ */ A("div", {
|
|
596
|
+
className: "chat-main",
|
|
597
|
+
id: "chat-main",
|
|
598
|
+
style: gt,
|
|
599
|
+
children: [/* @__PURE__ */ c("div", {
|
|
600
|
+
className: "chat-main-wrapper",
|
|
601
|
+
id: "scrollableDiv",
|
|
602
|
+
style: {
|
|
603
|
+
height: "100%",
|
|
604
|
+
overflowY: "auto",
|
|
605
|
+
display: "flex",
|
|
606
|
+
flexDirection: "column-reverse"
|
|
607
|
+
},
|
|
608
|
+
ref: P,
|
|
609
|
+
onScroll: jt,
|
|
610
|
+
children: (Be = e == null ? void 0 : e.data) != null && Be.id && (h != null && h.length) ? /* @__PURE__ */ A(vn, {
|
|
611
|
+
dataLength: h.length,
|
|
612
|
+
next: Bt,
|
|
613
|
+
style: {
|
|
614
|
+
display: "flex",
|
|
615
|
+
flexDirection: "column-reverse",
|
|
616
|
+
overflowX: "hidden"
|
|
617
|
+
},
|
|
618
|
+
inverse: !0,
|
|
619
|
+
endMessage: h.length > st && // 少于一页不展示这个提示
|
|
620
|
+
((qe = P.current) != null && qe.scrollTop) && ((Ye = P.current) == null ? void 0 : Ye.scrollTop) < -10 ? /* @__PURE__ */ c(Jt, {
|
|
621
|
+
plain: !0,
|
|
622
|
+
children: "没有更多数据了"
|
|
623
|
+
}) : null,
|
|
624
|
+
hasMore: Oe,
|
|
625
|
+
loader: /* @__PURE__ */ c("div", {
|
|
626
|
+
style: {
|
|
627
|
+
height: "50px",
|
|
628
|
+
textAlign: "center",
|
|
629
|
+
overflow: "hidden"
|
|
630
|
+
},
|
|
631
|
+
children: /* @__PURE__ */ c(St, {})
|
|
632
|
+
}),
|
|
633
|
+
scrollableTarget: "scrollableDiv",
|
|
634
|
+
children: [h.map((t, n) => /* @__PURE__ */ c(xn, {
|
|
635
|
+
application: o,
|
|
636
|
+
currentSession: e,
|
|
637
|
+
history: t,
|
|
638
|
+
docViewerUrl: v,
|
|
639
|
+
isLastHistory: n === 0,
|
|
640
|
+
onRelatedClick: $t,
|
|
641
|
+
onAgainClick: At,
|
|
642
|
+
onEditClick: Vt
|
|
643
|
+
}, t.messageId + n)), !Oe && Ae]
|
|
644
|
+
}) : /* @__PURE__ */ A("div", {
|
|
645
|
+
className: "main-empty",
|
|
646
|
+
children: [(a == null ? void 0 : a.greeting) !== !1 && /* @__PURE__ */ c(cn, {
|
|
647
|
+
text: a === void 0 || a.greeting === !0 || ((Ke = a.greeting) == null ? void 0 : Ke.text) === void 0 ? ot.text : a.greeting.text,
|
|
648
|
+
icon: a === void 0 || a.greeting === !0 || ((We = a.greeting) == null ? void 0 : We.icon) === void 0 ? ut || ot.icon : a.greeting.icon,
|
|
649
|
+
children: !!Fe.length && typeof (a == null ? void 0 : a.greeting) == "object" && a.greeting.questions !== !1 && /* @__PURE__ */ c(dn, {
|
|
650
|
+
ref: ye,
|
|
651
|
+
sid: (Qe = e == null ? void 0 : e.data) == null ? void 0 : Qe.id,
|
|
652
|
+
isRecommendClearing: Te,
|
|
653
|
+
data: Fe,
|
|
654
|
+
onItemClick: (t) => {
|
|
655
|
+
var r, i, l;
|
|
656
|
+
if (S(t == null ? void 0 : t.question), W(t == null ? void 0 : t.question), Te)
|
|
657
|
+
return;
|
|
658
|
+
t != null && t.id && K(!0);
|
|
659
|
+
const n = (r = e == null ? void 0 : e.data) == null ? void 0 : r.id;
|
|
660
|
+
f != null && f.fileUpload ? (l = (i = oe.current) == null ? void 0 : i.clear()) == null || l.then(() => {
|
|
661
|
+
var s, d;
|
|
662
|
+
t != null && t.id && (n ? (s = Ve(n, t)) == null || s.finally(() => {
|
|
663
|
+
K(!1);
|
|
664
|
+
}) : (K(!1), U(!0), (d = $e()) == null || d.then((w) => {
|
|
665
|
+
var p;
|
|
666
|
+
(p = Ve(w.id, t)) == null || p.finally(() => {
|
|
667
|
+
K(!1);
|
|
668
|
+
});
|
|
669
|
+
})));
|
|
670
|
+
}) : n ? K(!1) : (K(!1), U(!0), $e());
|
|
671
|
+
}
|
|
672
|
+
})
|
|
673
|
+
}), Ae]
|
|
674
|
+
})
|
|
675
|
+
}), De && /* @__PURE__ */ c("div", {
|
|
676
|
+
className: "session-stop",
|
|
677
|
+
children: /* @__PURE__ */ c(_, {
|
|
678
|
+
type: "primary",
|
|
679
|
+
style: {
|
|
680
|
+
background: "white"
|
|
681
|
+
},
|
|
682
|
+
ghost: !0,
|
|
683
|
+
size: "small",
|
|
684
|
+
icon: /* @__PURE__ */ c(de, {
|
|
685
|
+
type: "icon-zantinghuida",
|
|
686
|
+
style: {
|
|
687
|
+
fontSize: 16
|
|
688
|
+
}
|
|
689
|
+
}),
|
|
690
|
+
onClick: () => Ut(),
|
|
691
|
+
children: "停止回答"
|
|
692
|
+
})
|
|
693
|
+
}), He && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ c("div", {
|
|
694
|
+
className: "back-bottom",
|
|
695
|
+
children: /* @__PURE__ */ c(_, {
|
|
696
|
+
size: "small",
|
|
697
|
+
onClick: () => zt({
|
|
698
|
+
behavior: "smooth"
|
|
699
|
+
}),
|
|
700
|
+
type: "link",
|
|
701
|
+
icon: /* @__PURE__ */ c(de, {
|
|
702
|
+
type: "icon-yijianhuidaodibu",
|
|
703
|
+
style: {
|
|
704
|
+
fontSize: 24
|
|
705
|
+
}
|
|
706
|
+
})
|
|
707
|
+
})
|
|
708
|
+
})]
|
|
709
|
+
}), /* @__PURE__ */ c("div", {
|
|
710
|
+
className: "chat-footer",
|
|
711
|
+
children: /* @__PURE__ */ A("div", {
|
|
712
|
+
className: "chat-footer-input",
|
|
713
|
+
children: [X && /* @__PURE__ */ c("div", {
|
|
714
|
+
className: "input-files",
|
|
715
|
+
children: /* @__PURE__ */ c(rn, {
|
|
716
|
+
file: X,
|
|
717
|
+
actions: {
|
|
718
|
+
upload: Ot,
|
|
719
|
+
remove: () => {
|
|
720
|
+
q(void 0);
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
onUrlChange: (t) => te(t)
|
|
724
|
+
})
|
|
725
|
+
}), /* @__PURE__ */ A(ae, {
|
|
726
|
+
className: "footer-upload-action",
|
|
727
|
+
onClick: (t) => t.preventDefault(),
|
|
728
|
+
children: [/* @__PURE__ */ A(ae, {
|
|
729
|
+
children: [o.type === 2 && (f == null ? void 0 : f.imageUpload) && /* @__PURE__ */ c(en, {
|
|
730
|
+
disabled: !!X || M,
|
|
731
|
+
accept: ".jpg, .png, .jpeg,.bmp",
|
|
732
|
+
listType: "picture-card",
|
|
733
|
+
beforeUpload: Mt,
|
|
734
|
+
className: "footer-upload-picture",
|
|
735
|
+
showUploadList: !1,
|
|
736
|
+
children: X ? /* @__PURE__ */ c(_, {
|
|
737
|
+
type: "text",
|
|
738
|
+
className: "camera-out-btn",
|
|
739
|
+
style: {
|
|
740
|
+
width: "22px",
|
|
741
|
+
position: "relative",
|
|
742
|
+
bottom: "-2px"
|
|
743
|
+
},
|
|
744
|
+
disabled: !!X || M,
|
|
745
|
+
icon: /* @__PURE__ */ c(gn, {
|
|
746
|
+
className: "icon-tianjia",
|
|
747
|
+
style: {
|
|
748
|
+
fontSize: "22px"
|
|
749
|
+
}
|
|
750
|
+
})
|
|
751
|
+
}) : /* @__PURE__ */ c(tn, {
|
|
752
|
+
placement: "topLeft",
|
|
753
|
+
overlayClassName: "footer-upload-tooltip",
|
|
754
|
+
title: /* @__PURE__ */ c("div", {
|
|
755
|
+
children: "支持上传.jpg .png .jpeg .bmp格式的图片数据,最大20M,单次仅可上传1个"
|
|
756
|
+
}),
|
|
757
|
+
children: /* @__PURE__ */ c(_, {
|
|
758
|
+
type: "text",
|
|
759
|
+
className: "camera-out-btn",
|
|
760
|
+
style: {
|
|
761
|
+
width: "22px",
|
|
762
|
+
position: "relative",
|
|
763
|
+
bottom: "-2px"
|
|
764
|
+
},
|
|
765
|
+
icon: /* @__PURE__ */ c(de, {
|
|
766
|
+
type: "icon-Vector",
|
|
767
|
+
className: "icon-tianjia",
|
|
768
|
+
style: {
|
|
769
|
+
fontSize: "22px"
|
|
770
|
+
}
|
|
771
|
+
})
|
|
772
|
+
})
|
|
773
|
+
})
|
|
774
|
+
}), ce && (f != null && f.fileUpload) && (o != null && o.id) ? /* @__PURE__ */ c(hn, {
|
|
775
|
+
appId: o == null ? void 0 : o.id,
|
|
776
|
+
ref: oe,
|
|
777
|
+
isFirstSession: Me,
|
|
778
|
+
docViewerUrl: v,
|
|
779
|
+
onStatusChange: (t) => z(void 0, null, function* () {
|
|
780
|
+
t !== "process" ? (se(!0), be()) : se(!1);
|
|
781
|
+
}),
|
|
782
|
+
createSession: () => new Promise((t) => {
|
|
783
|
+
U(!0), x == null || x({
|
|
784
|
+
netOpen: H ? 1 : 2
|
|
785
|
+
}).then((n) => {
|
|
786
|
+
var i, l, s;
|
|
787
|
+
k == null || k(n), U(!1), I(!!((i = n.data) != null && i.netOpen)), Q(!!((l = n.data) != null && l.enableNetOpen));
|
|
788
|
+
const r = ((s = n.data) == null ? void 0 : s.id) || "";
|
|
789
|
+
t(r);
|
|
790
|
+
});
|
|
791
|
+
}),
|
|
792
|
+
sid: (_e = e == null ? void 0 : e.data) == null ? void 0 : _e.id,
|
|
793
|
+
disabled: pe || M,
|
|
794
|
+
afterFileAdd: (t, n) => {
|
|
795
|
+
n && ie((r) => {
|
|
796
|
+
const i = r[n] || [];
|
|
797
|
+
return {
|
|
798
|
+
[n]: [...i, t]
|
|
799
|
+
};
|
|
800
|
+
});
|
|
801
|
+
},
|
|
802
|
+
afterFileDelete: (t) => {
|
|
803
|
+
var r;
|
|
804
|
+
const n = (r = e == null ? void 0 : e.data) == null ? void 0 : r.id;
|
|
805
|
+
n && ie((i) => {
|
|
806
|
+
const l = i[n] || [];
|
|
807
|
+
return {
|
|
808
|
+
[n]: l.filter((s) => s.id !== t)
|
|
809
|
+
};
|
|
810
|
+
});
|
|
811
|
+
},
|
|
812
|
+
onFileListChange: (t) => {
|
|
813
|
+
It(t);
|
|
814
|
+
},
|
|
815
|
+
shouldContinue: Ct,
|
|
816
|
+
afterFilesClear: () => {
|
|
817
|
+
var n;
|
|
818
|
+
const t = (n = e == null ? void 0 : e.data) == null ? void 0 : n.id;
|
|
819
|
+
t && (ie({
|
|
820
|
+
[t]: []
|
|
821
|
+
}), be());
|
|
822
|
+
}
|
|
823
|
+
}) : null, (f == null ? void 0 : f.prompt) && (o == null ? void 0 : o.id) && /* @__PURE__ */ c(kn, {
|
|
824
|
+
appId: o.id,
|
|
825
|
+
list: [],
|
|
826
|
+
search: Ee ? vt : "",
|
|
827
|
+
onPromptSelect: (t) => {
|
|
828
|
+
W(t.context), S(t.context);
|
|
829
|
+
},
|
|
830
|
+
disabled: M
|
|
831
|
+
})]
|
|
832
|
+
}), /* @__PURE__ */ A(ae, {
|
|
833
|
+
children: [(f == null ? void 0 : f.connectNetwork) && o.type === 0 && ((Ge = o.arrange) == null ? void 0 : Ge.length) && !!o.arrange[0].enableNetOpen && /* @__PURE__ */ c(bn, {
|
|
834
|
+
sessionId: (Xe = e == null ? void 0 : e.data) == null ? void 0 : Xe.id,
|
|
835
|
+
netStatus: H,
|
|
836
|
+
enable: typeof (a == null ? void 0 : a.connectNetwork) == "object" && typeof (a == null ? void 0 : a.connectNetwork.diabled) == "boolean" ? !(a != null && a.connectNetwork.diabled) : Pt,
|
|
837
|
+
disabledTip: e ? void 0 : "网络访问已被禁用",
|
|
838
|
+
onNetStatusChange: (t) => {
|
|
839
|
+
qt(t);
|
|
840
|
+
}
|
|
841
|
+
}), (f == null ? void 0 : f.sessionList) && /* @__PURE__ */ c(pn, {
|
|
842
|
+
currentSessionId: (Ze = e == null ? void 0 : e.data) == null ? void 0 : Ze.id,
|
|
843
|
+
onSessionChange: (t, n) => {
|
|
844
|
+
W(void 0), k == null || k(n);
|
|
845
|
+
},
|
|
846
|
+
disabled: M
|
|
847
|
+
}), (f == null ? void 0 : f.sessionOpen) && /* @__PURE__ */ c(_, {
|
|
848
|
+
icon: /* @__PURE__ */ c(un, {}),
|
|
849
|
+
className: "add-btn",
|
|
850
|
+
type: "primary",
|
|
851
|
+
disabled: De || !e || !h.length || M,
|
|
852
|
+
onClick: () => {
|
|
853
|
+
var t, n;
|
|
854
|
+
k == null || k(void 0), I(!1), (t = Pe.current) == null || t.clear(), (n = ye.current) == null || n.clear();
|
|
855
|
+
},
|
|
856
|
+
children: "新会话"
|
|
857
|
+
})]
|
|
858
|
+
})]
|
|
859
|
+
}), /* @__PURE__ */ c("div", {
|
|
860
|
+
className: "footer-textarea",
|
|
861
|
+
children: /* @__PURE__ */ c(an, {
|
|
862
|
+
ref: me,
|
|
863
|
+
maxLength: ht,
|
|
864
|
+
text: kt,
|
|
865
|
+
networkStatus: !1,
|
|
866
|
+
loading: Ue,
|
|
867
|
+
disabled: Le || Ne || M || Ue,
|
|
868
|
+
onTextSend: ze,
|
|
869
|
+
onChange: (t, n) => {
|
|
870
|
+
W(t);
|
|
871
|
+
const r = n.getText().replace(/[\n\s]+$/, "");
|
|
872
|
+
S(r), bt(r), Ee || pt(!0);
|
|
873
|
+
},
|
|
874
|
+
clearAction: /* @__PURE__ */ c(ae, {
|
|
875
|
+
size: 0,
|
|
876
|
+
children: /* @__PURE__ */ c(_, {
|
|
877
|
+
type: "link",
|
|
878
|
+
disabled: pe || M,
|
|
879
|
+
ghost: !0,
|
|
880
|
+
icon: /* @__PURE__ */ c(de, {
|
|
881
|
+
style: {
|
|
882
|
+
fontSize: 22
|
|
883
|
+
},
|
|
884
|
+
type: "icon-qingchujiyi"
|
|
885
|
+
}),
|
|
886
|
+
onClick: () => Rt()
|
|
887
|
+
})
|
|
888
|
+
})
|
|
889
|
+
})
|
|
890
|
+
})]
|
|
891
|
+
})
|
|
892
|
+
}), /* @__PURE__ */ c(fn, {
|
|
893
|
+
tips: ft
|
|
894
|
+
}), Re && /* @__PURE__ */ c(mn, {
|
|
895
|
+
isvisible: Re,
|
|
896
|
+
files: xt,
|
|
897
|
+
sessionId: (Je = e == null ? void 0 : e.data) == null ? void 0 : Je.id,
|
|
898
|
+
onClose: (t) => {
|
|
899
|
+
wt(!1), Nt(!1);
|
|
900
|
+
}
|
|
901
|
+
})]
|
|
902
|
+
});
|
|
903
|
+
};
|
|
904
|
+
export {
|
|
905
|
+
Zn as default
|
|
906
|
+
};
|