@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/AgentClientUI.mjs +40 -39
- package/dist/es/Dialog/AgentChat/index.mjs +283 -264
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +22 -21
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +14 -13
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +5 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +17 -16
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
- package/dist/es/Dialog/Recommend/index.mjs +23 -23
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +13 -12
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +30 -29
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +51 -51
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +58 -57
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileItem/index.mjs +23 -22
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +14 -13
- package/dist/es/Footer/index.mjs +7 -6
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/InputProgress/index.mjs +10 -9
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +34 -34
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +21 -20
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +5 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +7 -7
- package/dist/es/components/Markdown/Code/index.mjs +33 -33
- package/dist/es/components/Markdown/Image/index.mjs +17 -16
- package/dist/es/components/Markdown/Video/index.mjs +13 -13
- package/dist/es/components/Markdown/index.mjs +36 -35
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +9 -9
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +32 -26
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -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/@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/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -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.css.mjs +4 -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 +14 -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 +172 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.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 +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.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/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -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 +46 -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/classnames/index.mjs +42 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -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/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -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-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -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-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/web-namespaces/index.mjs +11 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +311 -5
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +6 -24
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -0
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/lib/index.css +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as s } from "../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
var a = typeof Element != "undefined", c = typeof Map == "function", i = typeof Set == "function", l = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
3
|
+
function u(e, r) {
|
|
4
|
+
if (e === r)
|
|
5
|
+
return !0;
|
|
6
|
+
if (e && r && typeof e == "object" && typeof r == "object") {
|
|
7
|
+
if (e.constructor !== r.constructor)
|
|
8
|
+
return !1;
|
|
9
|
+
var f, t, n;
|
|
10
|
+
if (Array.isArray(e)) {
|
|
11
|
+
if (f = e.length, f != r.length)
|
|
12
|
+
return !1;
|
|
13
|
+
for (t = f; t-- !== 0; )
|
|
14
|
+
if (!u(e[t], r[t]))
|
|
15
|
+
return !1;
|
|
16
|
+
return !0;
|
|
17
|
+
}
|
|
18
|
+
var o;
|
|
19
|
+
if (c && e instanceof Map && r instanceof Map) {
|
|
20
|
+
if (e.size !== r.size)
|
|
21
|
+
return !1;
|
|
22
|
+
for (o = e.entries(); !(t = o.next()).done; )
|
|
23
|
+
if (!r.has(t.value[0]))
|
|
24
|
+
return !1;
|
|
25
|
+
for (o = e.entries(); !(t = o.next()).done; )
|
|
26
|
+
if (!u(t.value[1], r.get(t.value[0])))
|
|
27
|
+
return !1;
|
|
28
|
+
return !0;
|
|
29
|
+
}
|
|
30
|
+
if (i && e instanceof Set && r instanceof Set) {
|
|
31
|
+
if (e.size !== r.size)
|
|
32
|
+
return !1;
|
|
33
|
+
for (o = e.entries(); !(t = o.next()).done; )
|
|
34
|
+
if (!r.has(t.value[0]))
|
|
35
|
+
return !1;
|
|
36
|
+
return !0;
|
|
37
|
+
}
|
|
38
|
+
if (l && ArrayBuffer.isView(e) && ArrayBuffer.isView(r)) {
|
|
39
|
+
if (f = e.length, f != r.length)
|
|
40
|
+
return !1;
|
|
41
|
+
for (t = f; t-- !== 0; )
|
|
42
|
+
if (e[t] !== r[t])
|
|
43
|
+
return !1;
|
|
44
|
+
return !0;
|
|
45
|
+
}
|
|
46
|
+
if (e.constructor === RegExp)
|
|
47
|
+
return e.source === r.source && e.flags === r.flags;
|
|
48
|
+
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof r.valueOf == "function")
|
|
49
|
+
return e.valueOf() === r.valueOf();
|
|
50
|
+
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof r.toString == "function")
|
|
51
|
+
return e.toString() === r.toString();
|
|
52
|
+
if (n = Object.keys(e), f = n.length, f !== Object.keys(r).length)
|
|
53
|
+
return !1;
|
|
54
|
+
for (t = f; t-- !== 0; )
|
|
55
|
+
if (!Object.prototype.hasOwnProperty.call(r, n[t]))
|
|
56
|
+
return !1;
|
|
57
|
+
if (a && e instanceof Element)
|
|
58
|
+
return !1;
|
|
59
|
+
for (t = f; t-- !== 0; )
|
|
60
|
+
if (!((n[t] === "_owner" || n[t] === "__v" || n[t] === "__o") && e.$$typeof) && !u(e[n[t]], r[n[t]]))
|
|
61
|
+
return !1;
|
|
62
|
+
return !0;
|
|
63
|
+
}
|
|
64
|
+
return e !== e && r !== r;
|
|
65
|
+
}
|
|
66
|
+
var p = function(r, f) {
|
|
67
|
+
try {
|
|
68
|
+
return u(r, f);
|
|
69
|
+
} catch (t) {
|
|
70
|
+
if ((t.message || "").match(/stack|recursion/i))
|
|
71
|
+
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
72
|
+
throw t;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const v = /* @__PURE__ */ s(p);
|
|
76
|
+
export {
|
|
77
|
+
v as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import h, { Component as T } from "react";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
6
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
9
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
10
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
11
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
12
|
+
|
|
13
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
|
+
and limitations under the License.
|
|
15
|
+
***************************************************************************** */
|
|
16
|
+
var u = function(o, r) {
|
|
17
|
+
return u = Object.setPrototypeOf || {
|
|
18
|
+
__proto__: []
|
|
19
|
+
} instanceof Array && function(t, e) {
|
|
20
|
+
t.__proto__ = e;
|
|
21
|
+
} || function(t, e) {
|
|
22
|
+
for (var n in e)
|
|
23
|
+
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
24
|
+
}, u(o, r);
|
|
25
|
+
};
|
|
26
|
+
function S(o, r) {
|
|
27
|
+
u(o, r);
|
|
28
|
+
function t() {
|
|
29
|
+
this.constructor = o;
|
|
30
|
+
}
|
|
31
|
+
o.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
|
|
32
|
+
}
|
|
33
|
+
var a = function() {
|
|
34
|
+
return a = Object.assign || function(r) {
|
|
35
|
+
for (var t, e = 1, n = arguments.length; e < n; e++) {
|
|
36
|
+
t = arguments[e];
|
|
37
|
+
for (var i in t)
|
|
38
|
+
Object.prototype.hasOwnProperty.call(t, i) && (r[i] = t[i]);
|
|
39
|
+
}
|
|
40
|
+
return r;
|
|
41
|
+
}, a.apply(this, arguments);
|
|
42
|
+
};
|
|
43
|
+
function _(o, r, t, e) {
|
|
44
|
+
var n, i = !1, s = 0;
|
|
45
|
+
function p() {
|
|
46
|
+
n && clearTimeout(n);
|
|
47
|
+
}
|
|
48
|
+
function g() {
|
|
49
|
+
p(), i = !0;
|
|
50
|
+
}
|
|
51
|
+
typeof r != "boolean" && (e = t, t = r, r = void 0);
|
|
52
|
+
function f() {
|
|
53
|
+
var w = this, d = Date.now() - s, E = arguments;
|
|
54
|
+
if (i)
|
|
55
|
+
return;
|
|
56
|
+
function c() {
|
|
57
|
+
s = Date.now(), t.apply(w, E);
|
|
58
|
+
}
|
|
59
|
+
function y() {
|
|
60
|
+
n = void 0;
|
|
61
|
+
}
|
|
62
|
+
e && !n && c(), p(), e === void 0 && d > o ? c() : r !== !0 && (n = setTimeout(e ? y : c, e === void 0 ? o - d : o));
|
|
63
|
+
}
|
|
64
|
+
return f.cancel = g, f;
|
|
65
|
+
}
|
|
66
|
+
var l = {
|
|
67
|
+
Pixel: "Pixel",
|
|
68
|
+
Percent: "Percent"
|
|
69
|
+
}, m = {
|
|
70
|
+
unit: l.Percent,
|
|
71
|
+
value: 0.8
|
|
72
|
+
};
|
|
73
|
+
function v(o) {
|
|
74
|
+
return typeof o == "number" ? {
|
|
75
|
+
unit: l.Percent,
|
|
76
|
+
value: o * 100
|
|
77
|
+
} : typeof o == "string" ? o.match(/^(\d*(\.\d+)?)px$/) ? {
|
|
78
|
+
unit: l.Pixel,
|
|
79
|
+
value: parseFloat(o)
|
|
80
|
+
} : o.match(/^(\d*(\.\d+)?)%$/) ? {
|
|
81
|
+
unit: l.Percent,
|
|
82
|
+
value: parseFloat(o)
|
|
83
|
+
} : (console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'), m) : (console.warn("scrollThreshold should be string or number"), m);
|
|
84
|
+
}
|
|
85
|
+
var D = (
|
|
86
|
+
/** @class */
|
|
87
|
+
function(o) {
|
|
88
|
+
S(r, o);
|
|
89
|
+
function r(t) {
|
|
90
|
+
var e = o.call(this, t) || this;
|
|
91
|
+
return e.lastScrollTop = 0, e.actionTriggered = !1, e.startY = 0, e.currentY = 0, e.dragging = !1, e.maxPullDownDistance = 0, e.getScrollableTarget = function() {
|
|
92
|
+
return e.props.scrollableTarget instanceof HTMLElement ? e.props.scrollableTarget : typeof e.props.scrollableTarget == "string" ? document.getElementById(e.props.scrollableTarget) : (e.props.scrollableTarget === null && console.warn(`You are trying to pass scrollableTarget but it is null. This might
|
|
93
|
+
happen because the element may not have been added to DOM yet.
|
|
94
|
+
See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
|
|
95
|
+
`), null);
|
|
96
|
+
}, e.onStart = function(n) {
|
|
97
|
+
e.lastScrollTop || (e.dragging = !0, n instanceof MouseEvent ? e.startY = n.pageY : n instanceof TouchEvent && (e.startY = n.touches[0].pageY), e.currentY = e.startY, e._infScroll && (e._infScroll.style.willChange = "transform", e._infScroll.style.transition = "transform 0.2s cubic-bezier(0,0,0.31,1)"));
|
|
98
|
+
}, e.onMove = function(n) {
|
|
99
|
+
e.dragging && (n instanceof MouseEvent ? e.currentY = n.pageY : n instanceof TouchEvent && (e.currentY = n.touches[0].pageY), !(e.currentY < e.startY) && (e.currentY - e.startY >= Number(e.props.pullDownToRefreshThreshold) && e.setState({
|
|
100
|
+
pullToRefreshThresholdBreached: !0
|
|
101
|
+
}), !(e.currentY - e.startY > e.maxPullDownDistance * 1.5) && e._infScroll && (e._infScroll.style.overflow = "visible", e._infScroll.style.transform = "translate3d(0px, " + (e.currentY - e.startY) + "px, 0px)")));
|
|
102
|
+
}, e.onEnd = function() {
|
|
103
|
+
e.startY = 0, e.currentY = 0, e.dragging = !1, e.state.pullToRefreshThresholdBreached && (e.props.refreshFunction && e.props.refreshFunction(), e.setState({
|
|
104
|
+
pullToRefreshThresholdBreached: !1
|
|
105
|
+
})), requestAnimationFrame(function() {
|
|
106
|
+
e._infScroll && (e._infScroll.style.overflow = "auto", e._infScroll.style.transform = "none", e._infScroll.style.willChange = "unset");
|
|
107
|
+
});
|
|
108
|
+
}, e.onScrollListener = function(n) {
|
|
109
|
+
typeof e.props.onScroll == "function" && setTimeout(function() {
|
|
110
|
+
return e.props.onScroll && e.props.onScroll(n);
|
|
111
|
+
}, 0);
|
|
112
|
+
var i = e.props.height || e._scrollableNode ? n.target : document.documentElement.scrollTop ? document.documentElement : document.body;
|
|
113
|
+
if (!e.actionTriggered) {
|
|
114
|
+
var s = e.props.inverse ? e.isElementAtTop(i, e.props.scrollThreshold) : e.isElementAtBottom(i, e.props.scrollThreshold);
|
|
115
|
+
s && e.props.hasMore && (e.actionTriggered = !0, e.setState({
|
|
116
|
+
showLoader: !0
|
|
117
|
+
}), e.props.next && e.props.next()), e.lastScrollTop = i.scrollTop;
|
|
118
|
+
}
|
|
119
|
+
}, e.state = {
|
|
120
|
+
showLoader: !1,
|
|
121
|
+
pullToRefreshThresholdBreached: !1,
|
|
122
|
+
prevDataLength: t.dataLength
|
|
123
|
+
}, e.throttledOnScrollListener = _(150, e.onScrollListener).bind(e), e.onStart = e.onStart.bind(e), e.onMove = e.onMove.bind(e), e.onEnd = e.onEnd.bind(e), e;
|
|
124
|
+
}
|
|
125
|
+
return r.prototype.componentDidMount = function() {
|
|
126
|
+
if (typeof this.props.dataLength == "undefined")
|
|
127
|
+
throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');
|
|
128
|
+
if (this._scrollableNode = this.getScrollableTarget(), this.el = this.props.height ? this._infScroll : this._scrollableNode || window, this.el && this.el.addEventListener("scroll", this.throttledOnScrollListener), typeof this.props.initialScrollY == "number" && this.el && this.el instanceof HTMLElement && this.el.scrollHeight > this.props.initialScrollY && this.el.scrollTo(0, this.props.initialScrollY), this.props.pullDownToRefresh && this.el && (this.el.addEventListener("touchstart", this.onStart), this.el.addEventListener("touchmove", this.onMove), this.el.addEventListener("touchend", this.onEnd), this.el.addEventListener("mousedown", this.onStart), this.el.addEventListener("mousemove", this.onMove), this.el.addEventListener("mouseup", this.onEnd), this.maxPullDownDistance = this._pullDown && this._pullDown.firstChild && this._pullDown.firstChild.getBoundingClientRect().height || 0, this.forceUpdate(), typeof this.props.refreshFunction != "function"))
|
|
129
|
+
throw new Error(`Mandatory prop "refreshFunction" missing.
|
|
130
|
+
Pull Down To Refresh functionality will not work
|
|
131
|
+
as expected. Check README.md for usage'`);
|
|
132
|
+
}, r.prototype.componentWillUnmount = function() {
|
|
133
|
+
this.el && (this.el.removeEventListener("scroll", this.throttledOnScrollListener), this.props.pullDownToRefresh && (this.el.removeEventListener("touchstart", this.onStart), this.el.removeEventListener("touchmove", this.onMove), this.el.removeEventListener("touchend", this.onEnd), this.el.removeEventListener("mousedown", this.onStart), this.el.removeEventListener("mousemove", this.onMove), this.el.removeEventListener("mouseup", this.onEnd)));
|
|
134
|
+
}, r.prototype.componentDidUpdate = function(t) {
|
|
135
|
+
this.props.dataLength !== t.dataLength && (this.actionTriggered = !1, this.setState({
|
|
136
|
+
showLoader: !1
|
|
137
|
+
}));
|
|
138
|
+
}, r.getDerivedStateFromProps = function(t, e) {
|
|
139
|
+
var n = t.dataLength !== e.prevDataLength;
|
|
140
|
+
return n ? a(a({}, e), {
|
|
141
|
+
prevDataLength: t.dataLength
|
|
142
|
+
}) : null;
|
|
143
|
+
}, r.prototype.isElementAtTop = function(t, e) {
|
|
144
|
+
e === void 0 && (e = 0.8);
|
|
145
|
+
var n = t === document.body || t === document.documentElement ? window.screen.availHeight : t.clientHeight, i = v(e);
|
|
146
|
+
return i.unit === l.Pixel ? t.scrollTop <= i.value + n - t.scrollHeight + 1 : t.scrollTop <= i.value / 100 + n - t.scrollHeight + 1;
|
|
147
|
+
}, r.prototype.isElementAtBottom = function(t, e) {
|
|
148
|
+
e === void 0 && (e = 0.8);
|
|
149
|
+
var n = t === document.body || t === document.documentElement ? window.screen.availHeight : t.clientHeight, i = v(e);
|
|
150
|
+
return i.unit === l.Pixel ? t.scrollTop + n >= t.scrollHeight - i.value : t.scrollTop + n >= i.value / 100 * t.scrollHeight;
|
|
151
|
+
}, r.prototype.render = function() {
|
|
152
|
+
var t = this, e = a({
|
|
153
|
+
height: this.props.height || "auto",
|
|
154
|
+
overflow: "auto",
|
|
155
|
+
WebkitOverflowScrolling: "touch"
|
|
156
|
+
}, this.props.style), n = this.props.hasChildren || !!(this.props.children && this.props.children instanceof Array && this.props.children.length), i = this.props.pullDownToRefresh && this.props.height ? {
|
|
157
|
+
overflow: "auto"
|
|
158
|
+
} : {};
|
|
159
|
+
return h.createElement("div", {
|
|
160
|
+
style: i,
|
|
161
|
+
className: "infinite-scroll-component__outerdiv"
|
|
162
|
+
}, h.createElement("div", {
|
|
163
|
+
className: "infinite-scroll-component " + (this.props.className || ""),
|
|
164
|
+
ref: function(s) {
|
|
165
|
+
return t._infScroll = s;
|
|
166
|
+
},
|
|
167
|
+
style: e
|
|
168
|
+
}, this.props.pullDownToRefresh && h.createElement("div", {
|
|
169
|
+
style: {
|
|
170
|
+
position: "relative"
|
|
171
|
+
},
|
|
172
|
+
ref: function(s) {
|
|
173
|
+
return t._pullDown = s;
|
|
174
|
+
}
|
|
175
|
+
}, h.createElement("div", {
|
|
176
|
+
style: {
|
|
177
|
+
position: "absolute",
|
|
178
|
+
left: 0,
|
|
179
|
+
right: 0,
|
|
180
|
+
top: -1 * this.maxPullDownDistance
|
|
181
|
+
}
|
|
182
|
+
}, this.state.pullToRefreshThresholdBreached ? this.props.releaseToRefreshContent : this.props.pullDownToRefreshContent)), this.props.children, !this.state.showLoader && !n && this.props.hasMore && this.props.loader, this.state.showLoader && this.props.hasMore && this.props.loader, !this.props.hasMore && this.props.endMessage));
|
|
183
|
+
}, r;
|
|
184
|
+
}(T)
|
|
185
|
+
);
|
|
186
|
+
export {
|
|
187
|
+
D as default
|
|
188
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var S = Object.defineProperty, T = Object.defineProperties;
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (r, t, e) => t in r ? S(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, h = (r, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
K.call(t, e) && x(r, e, t[e]);
|
|
8
|
+
if (y)
|
|
9
|
+
for (var e of y(t))
|
|
10
|
+
v.call(t, e) && x(r, e, t[e]);
|
|
11
|
+
return r;
|
|
12
|
+
}, u = (r, t) => T(r, k(t));
|
|
13
|
+
import { fromHtmlIsomorphic as A } from "../../hast-util-from-html-isomorphic/lib/browser.mjs";
|
|
14
|
+
import N from "../../katex/dist/katex.mjs";
|
|
15
|
+
import { visitParents as E, SKIP as M } from "../../unist-util-visit-parents/lib/index.mjs";
|
|
16
|
+
import { toText as P } from "../../hast-util-to-text/lib/index.mjs";
|
|
17
|
+
const D = {}, H = [];
|
|
18
|
+
function B(r) {
|
|
19
|
+
const t = r || D;
|
|
20
|
+
return function(e, w) {
|
|
21
|
+
E(e, "element", function(n, a) {
|
|
22
|
+
const i = Array.isArray(n.properties.className) ? n.properties.className : H, d = i.includes("language-math"), f = i.includes("math-display"), C = i.includes("math-inline");
|
|
23
|
+
let c = f;
|
|
24
|
+
if (!d && !f && !C)
|
|
25
|
+
return;
|
|
26
|
+
let o = a[a.length - 1], l = n;
|
|
27
|
+
if (n.tagName === "code" && d && o && o.type === "element" && o.tagName === "pre" && (l = o, o = a[a.length - 2], c = !0), !o)
|
|
28
|
+
return;
|
|
29
|
+
const p = P(l, {
|
|
30
|
+
whitespace: "pre"
|
|
31
|
+
});
|
|
32
|
+
let s;
|
|
33
|
+
try {
|
|
34
|
+
s = N.renderToString(p, u(h({}, t), {
|
|
35
|
+
displayMode: c,
|
|
36
|
+
throwOnError: !0
|
|
37
|
+
}));
|
|
38
|
+
} catch (m) {
|
|
39
|
+
const g = (
|
|
40
|
+
/** @type {Error} */
|
|
41
|
+
m
|
|
42
|
+
), O = g.name.toLowerCase();
|
|
43
|
+
w.message("Could not render math with KaTeX", {
|
|
44
|
+
ancestors: [...a, n],
|
|
45
|
+
cause: g,
|
|
46
|
+
place: n.position,
|
|
47
|
+
ruleId: O,
|
|
48
|
+
source: "rehype-katex"
|
|
49
|
+
});
|
|
50
|
+
try {
|
|
51
|
+
s = N.renderToString(p, u(h({}, t), {
|
|
52
|
+
displayMode: c,
|
|
53
|
+
strict: "ignore",
|
|
54
|
+
throwOnError: !1
|
|
55
|
+
}));
|
|
56
|
+
} catch (L) {
|
|
57
|
+
s = [{
|
|
58
|
+
type: "element",
|
|
59
|
+
tagName: "span",
|
|
60
|
+
properties: {
|
|
61
|
+
className: ["katex-error"],
|
|
62
|
+
style: "color:" + (t.errorColor || "#cc0000"),
|
|
63
|
+
title: String(m)
|
|
64
|
+
},
|
|
65
|
+
children: [{
|
|
66
|
+
type: "text",
|
|
67
|
+
value: p
|
|
68
|
+
}]
|
|
69
|
+
}];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
typeof s == "string" && (s = /** @type {Array<ElementContent>} */
|
|
73
|
+
A(s, {
|
|
74
|
+
fragment: !0
|
|
75
|
+
}).children);
|
|
76
|
+
const I = o.children.indexOf(l);
|
|
77
|
+
return o.children.splice(I, 1, ...s), M;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
B as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { math as i } from "../../micromark-extension-math/lib/syntax.mjs";
|
|
2
|
+
import { mathFromMarkdown as e, mathToMarkdown as k } from "../../mdast-util-math/lib/index.mjs";
|
|
3
|
+
const c = {};
|
|
4
|
+
function E(t) {
|
|
5
|
+
const s = (
|
|
6
|
+
/** @type {Processor} */
|
|
7
|
+
this
|
|
8
|
+
), n = t || c, o = s.data(), r = o.micromarkExtensions || (o.micromarkExtensions = []), a = o.fromMarkdownExtensions || (o.fromMarkdownExtensions = []), m = o.toMarkdownExtensions || (o.toMarkdownExtensions = []);
|
|
9
|
+
r.push(i(n)), a.push(e()), m.push(k(n));
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
E as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
var _ = function() {
|
|
2
|
+
if (typeof Map != "undefined")
|
|
3
|
+
return Map;
|
|
4
|
+
function e(t, n) {
|
|
5
|
+
var r = -1;
|
|
6
|
+
return t.some(function(i, o) {
|
|
7
|
+
return i[0] === n ? (r = o, !0) : !1;
|
|
8
|
+
}), r;
|
|
9
|
+
}
|
|
10
|
+
return (
|
|
11
|
+
/** @class */
|
|
12
|
+
function() {
|
|
13
|
+
function t() {
|
|
14
|
+
this.__entries__ = [];
|
|
15
|
+
}
|
|
16
|
+
return Object.defineProperty(t.prototype, "size", {
|
|
17
|
+
/**
|
|
18
|
+
* @returns {boolean}
|
|
19
|
+
*/
|
|
20
|
+
get: function() {
|
|
21
|
+
return this.__entries__.length;
|
|
22
|
+
},
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0
|
|
25
|
+
}), t.prototype.get = function(n) {
|
|
26
|
+
var r = e(this.__entries__, n), i = this.__entries__[r];
|
|
27
|
+
return i && i[1];
|
|
28
|
+
}, t.prototype.set = function(n, r) {
|
|
29
|
+
var i = e(this.__entries__, n);
|
|
30
|
+
~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
|
|
31
|
+
}, t.prototype.delete = function(n) {
|
|
32
|
+
var r = this.__entries__, i = e(r, n);
|
|
33
|
+
~i && r.splice(i, 1);
|
|
34
|
+
}, t.prototype.has = function(n) {
|
|
35
|
+
return !!~e(this.__entries__, n);
|
|
36
|
+
}, t.prototype.clear = function() {
|
|
37
|
+
this.__entries__.splice(0);
|
|
38
|
+
}, t.prototype.forEach = function(n, r) {
|
|
39
|
+
r === void 0 && (r = null);
|
|
40
|
+
for (var i = 0, o = this.__entries__; i < o.length; i++) {
|
|
41
|
+
var s = o[i];
|
|
42
|
+
n.call(r, s[1], s[0]);
|
|
43
|
+
}
|
|
44
|
+
}, t;
|
|
45
|
+
}()
|
|
46
|
+
);
|
|
47
|
+
}(), v = typeof window != "undefined" && typeof document != "undefined" && window.document === document, f = function() {
|
|
48
|
+
return typeof global != "undefined" && global.Math === Math ? global : typeof self != "undefined" && self.Math === Math ? self : typeof window != "undefined" && window.Math === Math ? window : Function("return this")();
|
|
49
|
+
}(), O = function() {
|
|
50
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(f) : function(e) {
|
|
51
|
+
return setTimeout(function() {
|
|
52
|
+
return e(Date.now());
|
|
53
|
+
}, 1e3 / 60);
|
|
54
|
+
};
|
|
55
|
+
}(), E = 2;
|
|
56
|
+
function R(e, t) {
|
|
57
|
+
var n = !1, r = !1, i = 0;
|
|
58
|
+
function o() {
|
|
59
|
+
n && (n = !1, e()), r && a();
|
|
60
|
+
}
|
|
61
|
+
function s() {
|
|
62
|
+
O(o);
|
|
63
|
+
}
|
|
64
|
+
function a() {
|
|
65
|
+
var u = Date.now();
|
|
66
|
+
if (n) {
|
|
67
|
+
if (u - i < E)
|
|
68
|
+
return;
|
|
69
|
+
r = !0;
|
|
70
|
+
} else
|
|
71
|
+
n = !0, r = !1, setTimeout(s, t);
|
|
72
|
+
i = u;
|
|
73
|
+
}
|
|
74
|
+
return a;
|
|
75
|
+
}
|
|
76
|
+
var M = 20, x = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], A = typeof MutationObserver != "undefined", z = (
|
|
77
|
+
/** @class */
|
|
78
|
+
function() {
|
|
79
|
+
function e() {
|
|
80
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = R(this.refresh.bind(this), M);
|
|
81
|
+
}
|
|
82
|
+
return e.prototype.addObserver = function(t) {
|
|
83
|
+
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
84
|
+
}, e.prototype.removeObserver = function(t) {
|
|
85
|
+
var n = this.observers_, r = n.indexOf(t);
|
|
86
|
+
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
|
|
87
|
+
}, e.prototype.refresh = function() {
|
|
88
|
+
var t = this.updateObservers_();
|
|
89
|
+
t && this.refresh();
|
|
90
|
+
}, e.prototype.updateObservers_ = function() {
|
|
91
|
+
var t = this.observers_.filter(function(n) {
|
|
92
|
+
return n.gatherActive(), n.hasActive();
|
|
93
|
+
});
|
|
94
|
+
return t.forEach(function(n) {
|
|
95
|
+
return n.broadcastActive();
|
|
96
|
+
}), t.length > 0;
|
|
97
|
+
}, e.prototype.connect_ = function() {
|
|
98
|
+
!v || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), A ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
99
|
+
attributes: !0,
|
|
100
|
+
childList: !0,
|
|
101
|
+
characterData: !0,
|
|
102
|
+
subtree: !0
|
|
103
|
+
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
104
|
+
}, e.prototype.disconnect_ = function() {
|
|
105
|
+
!v || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
106
|
+
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
107
|
+
var n = t.propertyName, r = n === void 0 ? "" : n, i = x.some(function(o) {
|
|
108
|
+
return !!~r.indexOf(o);
|
|
109
|
+
});
|
|
110
|
+
i && this.refresh();
|
|
111
|
+
}, e.getInstance = function() {
|
|
112
|
+
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
113
|
+
}, e.instance_ = null, e;
|
|
114
|
+
}()
|
|
115
|
+
), m = function(e, t) {
|
|
116
|
+
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
117
|
+
var i = r[n];
|
|
118
|
+
Object.defineProperty(e, i, {
|
|
119
|
+
value: t[i],
|
|
120
|
+
enumerable: !1,
|
|
121
|
+
writable: !1,
|
|
122
|
+
configurable: !0
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return e;
|
|
126
|
+
}, c = function(e) {
|
|
127
|
+
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
128
|
+
return t || f;
|
|
129
|
+
}, y = d(0, 0, 0, 0);
|
|
130
|
+
function h(e) {
|
|
131
|
+
return parseFloat(e) || 0;
|
|
132
|
+
}
|
|
133
|
+
function b(e) {
|
|
134
|
+
for (var t = [], n = 1; n < arguments.length; n++)
|
|
135
|
+
t[n - 1] = arguments[n];
|
|
136
|
+
return t.reduce(function(r, i) {
|
|
137
|
+
var o = e["border-" + i + "-width"];
|
|
138
|
+
return r + h(o);
|
|
139
|
+
}, 0);
|
|
140
|
+
}
|
|
141
|
+
function T(e) {
|
|
142
|
+
for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
143
|
+
var o = i[r], s = e["padding-" + o];
|
|
144
|
+
n[o] = h(s);
|
|
145
|
+
}
|
|
146
|
+
return n;
|
|
147
|
+
}
|
|
148
|
+
function C(e) {
|
|
149
|
+
var t = e.getBBox();
|
|
150
|
+
return d(0, 0, t.width, t.height);
|
|
151
|
+
}
|
|
152
|
+
function S(e) {
|
|
153
|
+
var t = e.clientWidth, n = e.clientHeight;
|
|
154
|
+
if (!t && !n)
|
|
155
|
+
return y;
|
|
156
|
+
var r = c(e).getComputedStyle(e), i = T(r), o = i.left + i.right, s = i.top + i.bottom, a = h(r.width), u = h(r.height);
|
|
157
|
+
if (r.boxSizing === "border-box" && (Math.round(a + o) !== t && (a -= b(r, "left", "right") + o), Math.round(u + s) !== n && (u -= b(r, "top", "bottom") + s)), !G(e)) {
|
|
158
|
+
var l = Math.round(a + o) - t, p = Math.round(u + s) - n;
|
|
159
|
+
Math.abs(l) !== 1 && (a -= l), Math.abs(p) !== 1 && (u -= p);
|
|
160
|
+
}
|
|
161
|
+
return d(i.left, i.top, a, u);
|
|
162
|
+
}
|
|
163
|
+
var D = function() {
|
|
164
|
+
return typeof SVGGraphicsElement != "undefined" ? function(e) {
|
|
165
|
+
return e instanceof c(e).SVGGraphicsElement;
|
|
166
|
+
} : function(e) {
|
|
167
|
+
return e instanceof c(e).SVGElement && typeof e.getBBox == "function";
|
|
168
|
+
};
|
|
169
|
+
}();
|
|
170
|
+
function G(e) {
|
|
171
|
+
return e === c(e).document.documentElement;
|
|
172
|
+
}
|
|
173
|
+
function L(e) {
|
|
174
|
+
return v ? D(e) ? C(e) : S(e) : y;
|
|
175
|
+
}
|
|
176
|
+
function P(e) {
|
|
177
|
+
var t = e.x, n = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly != "undefined" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
|
|
178
|
+
return m(s, {
|
|
179
|
+
x: t,
|
|
180
|
+
y: n,
|
|
181
|
+
width: r,
|
|
182
|
+
height: i,
|
|
183
|
+
top: n,
|
|
184
|
+
right: t + r,
|
|
185
|
+
bottom: i + n,
|
|
186
|
+
left: t
|
|
187
|
+
}), s;
|
|
188
|
+
}
|
|
189
|
+
function d(e, t, n, r) {
|
|
190
|
+
return {
|
|
191
|
+
x: e,
|
|
192
|
+
y: t,
|
|
193
|
+
width: n,
|
|
194
|
+
height: r
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
var W = (
|
|
198
|
+
/** @class */
|
|
199
|
+
function() {
|
|
200
|
+
function e(t) {
|
|
201
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = d(0, 0, 0, 0), this.target = t;
|
|
202
|
+
}
|
|
203
|
+
return e.prototype.isActive = function() {
|
|
204
|
+
var t = L(this.target);
|
|
205
|
+
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
206
|
+
}, e.prototype.broadcastRect = function() {
|
|
207
|
+
var t = this.contentRect_;
|
|
208
|
+
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
209
|
+
}, e;
|
|
210
|
+
}()
|
|
211
|
+
), j = (
|
|
212
|
+
/** @class */
|
|
213
|
+
function() {
|
|
214
|
+
function e(t, n) {
|
|
215
|
+
var r = P(n);
|
|
216
|
+
m(this, {
|
|
217
|
+
target: t,
|
|
218
|
+
contentRect: r
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return e;
|
|
222
|
+
}()
|
|
223
|
+
), F = (
|
|
224
|
+
/** @class */
|
|
225
|
+
function() {
|
|
226
|
+
function e(t, n, r) {
|
|
227
|
+
if (this.activeObservations_ = [], this.observations_ = new _(), typeof t != "function")
|
|
228
|
+
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
229
|
+
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
|
|
230
|
+
}
|
|
231
|
+
return e.prototype.observe = function(t) {
|
|
232
|
+
if (!arguments.length)
|
|
233
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
234
|
+
if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
|
|
235
|
+
if (!(t instanceof c(t).Element))
|
|
236
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
237
|
+
var n = this.observations_;
|
|
238
|
+
n.has(t) || (n.set(t, new W(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
239
|
+
}
|
|
240
|
+
}, e.prototype.unobserve = function(t) {
|
|
241
|
+
if (!arguments.length)
|
|
242
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
243
|
+
if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
|
|
244
|
+
if (!(t instanceof c(t).Element))
|
|
245
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
246
|
+
var n = this.observations_;
|
|
247
|
+
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
|
|
248
|
+
}
|
|
249
|
+
}, e.prototype.disconnect = function() {
|
|
250
|
+
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
251
|
+
}, e.prototype.gatherActive = function() {
|
|
252
|
+
var t = this;
|
|
253
|
+
this.clearActive(), this.observations_.forEach(function(n) {
|
|
254
|
+
n.isActive() && t.activeObservations_.push(n);
|
|
255
|
+
});
|
|
256
|
+
}, e.prototype.broadcastActive = function() {
|
|
257
|
+
if (this.hasActive()) {
|
|
258
|
+
var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
|
|
259
|
+
return new j(r.target, r.broadcastRect());
|
|
260
|
+
});
|
|
261
|
+
this.callback_.call(t, n, t), this.clearActive();
|
|
262
|
+
}
|
|
263
|
+
}, e.prototype.clearActive = function() {
|
|
264
|
+
this.activeObservations_.splice(0);
|
|
265
|
+
}, e.prototype.hasActive = function() {
|
|
266
|
+
return this.activeObservations_.length > 0;
|
|
267
|
+
}, e;
|
|
268
|
+
}()
|
|
269
|
+
), g = typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : new _(), w = (
|
|
270
|
+
/** @class */
|
|
271
|
+
function() {
|
|
272
|
+
function e(t) {
|
|
273
|
+
if (!(this instanceof e))
|
|
274
|
+
throw new TypeError("Cannot call a class as a function.");
|
|
275
|
+
if (!arguments.length)
|
|
276
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
277
|
+
var n = z.getInstance(), r = new F(t, n, this);
|
|
278
|
+
g.set(this, r);
|
|
279
|
+
}
|
|
280
|
+
return e;
|
|
281
|
+
}()
|
|
282
|
+
);
|
|
283
|
+
["observe", "unobserve", "disconnect"].forEach(function(e) {
|
|
284
|
+
w.prototype[e] = function() {
|
|
285
|
+
var t;
|
|
286
|
+
return (t = g.get(this))[e].apply(t, arguments);
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
var H = function() {
|
|
290
|
+
return typeof f.ResizeObserver != "undefined" ? f.ResizeObserver : w;
|
|
291
|
+
}();
|
|
292
|
+
export {
|
|
293
|
+
H as default
|
|
294
|
+
};
|