@glodon-aiot/agent-cli-ui 3.2.2-beta.2 → 3.2.2-beta.4

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.
Files changed (403) hide show
  1. package/dist/es/AgentClientUI.mjs +3 -4
  2. package/dist/es/Dialog/AgentChat/index.mjs +229 -226
  3. package/dist/es/Dialog/ConnectToNetwork/index.mjs +2 -3
  4. package/dist/es/Dialog/FileCard/index.mjs +2 -3
  5. package/dist/es/Dialog/FilePreview/index.mjs +2 -3
  6. package/dist/es/Dialog/Greeting/index.mjs +2 -3
  7. package/dist/es/Dialog/HistoryContent/index.mjs +2 -3
  8. package/dist/es/Dialog/HistoryItem/index.mjs +29 -30
  9. package/dist/es/Dialog/KnowledgeDoc/index.mjs +2 -3
  10. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +2 -3
  11. package/dist/es/Dialog/KnowledgeList/index.mjs +21 -22
  12. package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +1 -1
  13. package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +2 -3
  14. package/dist/es/Dialog/PromptManager/index.mjs +2 -3
  15. package/dist/es/Dialog/PromptSetting/index.mjs +2 -3
  16. package/dist/es/Dialog/Recommend/RecommendItem.mjs +3 -4
  17. package/dist/es/Dialog/Recommend/index.mjs +2 -3
  18. package/dist/es/Dialog/ReferCollapse/index.mjs +2 -3
  19. package/dist/es/Dialog/SearchReference/index.mjs +92 -55
  20. package/dist/es/Dialog/SessionAction/index.mjs +4 -5
  21. package/dist/es/Dialog/SessionList/index.mjs +3 -4
  22. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +2 -3
  23. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +2 -3
  24. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +2 -3
  25. package/dist/es/Dialog/SessionListDrawer/index.mjs +2 -3
  26. package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +2 -3
  27. package/dist/es/Dialog/SessionRefer/index.mjs +2 -3
  28. package/dist/es/Dialog/SessionRelated/index.mjs +2 -3
  29. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +2 -3
  30. package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +2 -3
  31. package/dist/es/Dialog/UploadingPrompt/index.mjs +2 -3
  32. package/dist/es/Dialog/index.mjs +57 -58
  33. package/dist/es/FileItem/index.mjs +2 -3
  34. package/dist/es/Footer/FooterWarning.mjs +2 -3
  35. package/dist/es/Footer/index.mjs +2 -3
  36. package/dist/es/Iconfont/index.mjs +2 -2
  37. package/dist/es/InputProgress/index.mjs +2 -3
  38. package/dist/es/QuillEditor/index.mjs +4 -5
  39. package/dist/es/components/Copy/index.mjs +2 -3
  40. package/dist/es/components/JsonDisplay/index.mjs +2 -3
  41. package/dist/es/components/Markdown/ATag/index.mjs +1 -1
  42. package/dist/es/components/Markdown/Code/index.mjs +1 -1
  43. package/dist/es/components/Markdown/Image/index.mjs +20 -21
  44. package/dist/es/components/Markdown/Video/index.mjs +1 -1
  45. package/dist/es/components/Markdown/index.mjs +16 -17
  46. package/dist/es/components/WebLink/index.mjs +1 -1
  47. package/dist/es/constant.mjs +8 -2
  48. package/dist/es/index.mjs +60 -65
  49. package/dist/es/src/style.css +1 -0
  50. package/dist/es/src/style10.css +1 -0
  51. package/dist/es/src/style11.css +1 -0
  52. package/dist/es/src/style12.css +1 -0
  53. package/dist/es/src/style13.css +1 -0
  54. package/dist/es/src/style14.css +1 -0
  55. package/dist/es/src/style15.css +1 -0
  56. package/dist/es/src/style16.css +1 -0
  57. package/dist/es/src/style17.css +1 -0
  58. package/dist/es/src/style18.css +1 -0
  59. package/dist/es/src/style19.css +1 -0
  60. package/dist/es/src/style2.css +1 -0
  61. package/dist/es/src/style20.css +1 -0
  62. package/dist/es/src/style21.css +0 -0
  63. package/dist/es/src/style22.css +1 -0
  64. package/dist/es/src/style23.css +1 -0
  65. package/dist/es/src/style24.css +1 -0
  66. package/dist/es/src/style25.css +1 -0
  67. package/dist/es/src/style26.css +1 -0
  68. package/dist/es/src/style27.css +1 -0
  69. package/dist/es/src/style28.css +1 -0
  70. package/dist/es/src/style29.css +1 -0
  71. package/dist/es/src/style3.css +1 -0
  72. package/dist/es/src/style30.css +1 -0
  73. package/dist/es/src/style31.css +1 -0
  74. package/dist/es/src/style32.css +1 -0
  75. package/dist/es/src/style33.css +1 -0
  76. package/dist/es/src/style4.css +1 -0
  77. package/dist/es/src/style5.css +1 -0
  78. package/dist/es/src/style6.css +1 -0
  79. package/dist/es/src/style7.css +1 -0
  80. package/dist/es/src/style8.css +1 -0
  81. package/dist/es/src/style9.css +1 -0
  82. package/dist/lib/index.css +1 -0
  83. package/dist/lib/index.js +5 -311
  84. package/dist/src/Dialog/SearchReference/index.d.ts +7 -4
  85. package/dist/src/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
  86. package/dist/src/Iconfont/index.d.ts +0 -1
  87. package/dist/src/components/Markdown/ATag/index.d.ts +0 -1
  88. package/dist/src/components/Markdown/Code/index.d.ts +0 -1
  89. package/dist/src/components/Markdown/Image/index.d.ts +0 -1
  90. package/dist/src/components/Markdown/Video/index.d.ts +0 -1
  91. package/dist/src/types.d.ts +11 -2
  92. package/package.json +19 -6
  93. package/dist/es/Dialog/AgentChat/style.less.mjs +0 -4
  94. package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +0 -4
  95. package/dist/es/Dialog/FileCard/style.less.mjs +0 -4
  96. package/dist/es/Dialog/FilePreview/style.less.mjs +0 -4
  97. package/dist/es/Dialog/Greeting/style.less.mjs +0 -4
  98. package/dist/es/Dialog/HistoryContent/style.less.mjs +0 -4
  99. package/dist/es/Dialog/HistoryItem/style.less.mjs +0 -4
  100. package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +0 -4
  101. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +0 -4
  102. package/dist/es/Dialog/KnowledgeList/style.less.mjs +0 -4
  103. package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +0 -4
  104. package/dist/es/Dialog/PromptManager/style.less.mjs +0 -4
  105. package/dist/es/Dialog/PromptSetting/style.less.mjs +0 -4
  106. package/dist/es/Dialog/Recommend/style.less.mjs +0 -4
  107. package/dist/es/Dialog/ReferCollapse/style.less.mjs +0 -4
  108. package/dist/es/Dialog/SearchReference/style.less.mjs +0 -4
  109. package/dist/es/Dialog/SessionAction/style.less.mjs +0 -4
  110. package/dist/es/Dialog/SessionList/style.less.mjs +0 -4
  111. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +0 -4
  112. package/dist/es/Dialog/SessionListDrawer/style.less.mjs +0 -4
  113. package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +0 -4
  114. package/dist/es/Dialog/SessionRefer/style.less.mjs +0 -4
  115. package/dist/es/Dialog/SessionRelated/style.less.mjs +0 -4
  116. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +0 -4
  117. package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +0 -4
  118. package/dist/es/Dialog/UploadingPrompt/style.less.mjs +0 -4
  119. package/dist/es/Dialog/style.less.mjs +0 -4
  120. package/dist/es/FileItem/style.less.mjs +0 -4
  121. package/dist/es/Footer/style.less.mjs +0 -4
  122. package/dist/es/InputProgress/style.less.mjs +0 -4
  123. package/dist/es/QuillEditor/style.less.mjs +0 -4
  124. package/dist/es/_virtual/_cloneBuffer.mjs +0 -4
  125. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
  126. package/dist/es/_virtual/_nodeUtil.mjs +0 -4
  127. package/dist/es/_virtual/index.mjs +0 -4
  128. package/dist/es/_virtual/isBuffer.mjs +0 -4
  129. package/dist/es/_virtual/jsx-runtime.mjs +0 -7
  130. package/dist/es/_virtual/jsx-runtime2.mjs +0 -4
  131. package/dist/es/_virtual/lib.mjs +0 -4
  132. package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +0 -4
  133. package/dist/es/_virtual/ua-parser.min.mjs +0 -4
  134. package/dist/es/components/Copy/style.less.mjs +0 -4
  135. package/dist/es/components/JsonDisplay/style.less.mjs +0 -4
  136. package/dist/es/components/Markdown/style.less.mjs +0 -4
  137. package/dist/es/favicon.ico +0 -0
  138. package/dist/es/favicon2.ico +0 -0
  139. package/dist/es/font/font_4108228_4w5nlhafpte.js +0 -1
  140. package/dist/es/font/font_4439177_0sppkcnqiqgs.js +0 -1
  141. package/dist/es/font/gos-font.js +0 -64
  142. package/dist/es/images/empty.svg +0 -40
  143. package/dist/es/images/loading.gif +0 -0
  144. package/dist/es/images/logo.png +0 -0
  145. package/dist/es/images/map-example.png +0 -0
  146. package/dist/es/images/sketch.png +0 -0
  147. package/dist/es/index.html +0 -43
  148. package/dist/es/logo192.png +0 -0
  149. package/dist/es/logo512.png +0 -0
  150. package/dist/es/manifest.json +0 -25
  151. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
  152. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
  153. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
  154. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
  155. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
  156. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
  157. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
  158. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
  159. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
  160. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
  161. package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +0 -221
  162. package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +0 -8
  163. package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +0 -19
  164. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +0 -16
  165. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +0 -34
  166. package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +0 -17
  167. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +0 -13
  168. package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +0 -27
  169. package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +0 -11
  170. package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +0 -7
  171. package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +0 -13
  172. package/dist/es/node_modules/ahooks/es/utils/index.mjs +0 -12
  173. package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +0 -5
  174. package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +0 -5
  175. package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +0 -5
  176. package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +0 -11
  177. package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +0 -7
  178. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +0 -8
  179. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +0 -7
  180. package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +0 -4
  181. package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +0 -23
  182. package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +0 -132
  183. package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +0 -8
  184. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
  185. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +0 -4
  186. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
  187. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -14
  188. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
  189. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -172
  190. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -81
  191. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -5
  192. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +0 -4
  193. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
  194. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -5
  195. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +0 -4
  196. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
  197. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +0 -4
  198. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -4
  199. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
  200. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
  201. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
  202. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
  203. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
  204. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
  205. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
  206. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
  207. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
  208. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -46
  209. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
  210. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
  211. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
  212. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
  213. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
  214. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
  215. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
  216. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
  217. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
  218. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
  219. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
  220. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
  221. package/dist/es/node_modules/classnames/index.mjs +0 -42
  222. package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -13
  223. package/dist/es/node_modules/copy-to-clipboard/index.mjs +0 -46
  224. package/dist/es/node_modules/devlop/lib/default.mjs +0 -5
  225. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
  226. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +0 -126
  227. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +0 -8
  228. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
  229. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +0 -12
  230. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +0 -61
  231. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +0 -33
  232. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +0 -368
  233. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +0 -6
  234. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +0 -566
  235. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  236. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  237. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +0 -14
  238. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  239. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +0 -28
  240. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +0 -10
  241. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +0 -21
  242. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +0 -15
  243. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +0 -19
  244. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +0 -15
  245. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +0 -16
  246. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
  247. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
  248. package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
  249. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
  250. package/dist/es/node_modules/katex/dist/katex.min.css.mjs +0 -4
  251. package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
  252. package/dist/es/node_modules/lodash/_Hash.mjs +0 -22
  253. package/dist/es/node_modules/lodash/_ListCache.mjs +0 -22
  254. package/dist/es/node_modules/lodash/_Map.mjs +0 -6
  255. package/dist/es/node_modules/lodash/_MapCache.mjs +0 -22
  256. package/dist/es/node_modules/lodash/_Stack.mjs +0 -20
  257. package/dist/es/node_modules/lodash/_Symbol.mjs +0 -5
  258. package/dist/es/node_modules/lodash/_Uint8Array.mjs +0 -5
  259. package/dist/es/node_modules/lodash/_apply.mjs +0 -17
  260. package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +0 -21
  261. package/dist/es/node_modules/lodash/_assignMergeValue.mjs +0 -10
  262. package/dist/es/node_modules/lodash/_assignValue.mjs +0 -11
  263. package/dist/es/node_modules/lodash/_assocIndexOf.mjs +0 -12
  264. package/dist/es/node_modules/lodash/_baseAssignValue.mjs +0 -14
  265. package/dist/es/node_modules/lodash/_baseCreate.mjs +0 -17
  266. package/dist/es/node_modules/lodash/_baseFor.mjs +0 -5
  267. package/dist/es/node_modules/lodash/_baseGetTag.mjs +0 -11
  268. package/dist/es/node_modules/lodash/_baseIsArguments.mjs +0 -10
  269. package/dist/es/node_modules/lodash/_baseIsNative.mjs +0 -15
  270. package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +0 -13
  271. package/dist/es/node_modules/lodash/_baseKeysIn.mjs +0 -16
  272. package/dist/es/node_modules/lodash/_baseMerge.mjs +0 -22
  273. package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +0 -33
  274. package/dist/es/node_modules/lodash/_baseRest.mjs +0 -11
  275. package/dist/es/node_modules/lodash/_baseSetToString.mjs +0 -14
  276. package/dist/es/node_modules/lodash/_baseTimes.mjs +0 -9
  277. package/dist/es/node_modules/lodash/_baseTrim.mjs +0 -9
  278. package/dist/es/node_modules/lodash/_baseUnary.mjs +0 -9
  279. package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +0 -10
  280. package/dist/es/node_modules/lodash/_cloneBuffer.mjs +0 -17
  281. package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +0 -10
  282. package/dist/es/node_modules/lodash/_copyArray.mjs +0 -10
  283. package/dist/es/node_modules/lodash/_copyObject.mjs +0 -16
  284. package/dist/es/node_modules/lodash/_coreJsData.mjs +0 -5
  285. package/dist/es/node_modules/lodash/_createAssigner.mjs +0 -17
  286. package/dist/es/node_modules/lodash/_createBaseFor.mjs +0 -14
  287. package/dist/es/node_modules/lodash/_defineProperty.mjs +0 -11
  288. package/dist/es/node_modules/lodash/_freeGlobal.mjs +0 -5
  289. package/dist/es/node_modules/lodash/_getMapData.mjs +0 -10
  290. package/dist/es/node_modules/lodash/_getNative.mjs +0 -11
  291. package/dist/es/node_modules/lodash/_getPrototype.mjs +0 -5
  292. package/dist/es/node_modules/lodash/_getRawTag.mjs +0 -16
  293. package/dist/es/node_modules/lodash/_getValue.mjs +0 -7
  294. package/dist/es/node_modules/lodash/_hashClear.mjs +0 -9
  295. package/dist/es/node_modules/lodash/_hashDelete.mjs +0 -8
  296. package/dist/es/node_modules/lodash/_hashGet.mjs +0 -14
  297. package/dist/es/node_modules/lodash/_hashHas.mjs +0 -10
  298. package/dist/es/node_modules/lodash/_hashSet.mjs +0 -10
  299. package/dist/es/node_modules/lodash/_initCloneObject.mjs +0 -11
  300. package/dist/es/node_modules/lodash/_isIndex.mjs +0 -9
  301. package/dist/es/node_modules/lodash/_isIterateeCall.mjs +0 -15
  302. package/dist/es/node_modules/lodash/_isKeyable.mjs +0 -8
  303. package/dist/es/node_modules/lodash/_isMasked.mjs +0 -12
  304. package/dist/es/node_modules/lodash/_isPrototype.mjs +0 -9
  305. package/dist/es/node_modules/lodash/_listCacheClear.mjs +0 -7
  306. package/dist/es/node_modules/lodash/_listCacheDelete.mjs +0 -13
  307. package/dist/es/node_modules/lodash/_listCacheGet.mjs +0 -10
  308. package/dist/es/node_modules/lodash/_listCacheHas.mjs +0 -9
  309. package/dist/es/node_modules/lodash/_listCacheSet.mjs +0 -10
  310. package/dist/es/node_modules/lodash/_mapCacheClear.mjs +0 -15
  311. package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +0 -10
  312. package/dist/es/node_modules/lodash/_mapCacheGet.mjs +0 -9
  313. package/dist/es/node_modules/lodash/_mapCacheHas.mjs +0 -9
  314. package/dist/es/node_modules/lodash/_mapCacheSet.mjs +0 -10
  315. package/dist/es/node_modules/lodash/_nativeCreate.mjs +0 -5
  316. package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +0 -11
  317. package/dist/es/node_modules/lodash/_nodeUtil.mjs +0 -17
  318. package/dist/es/node_modules/lodash/_objectToString.mjs +0 -8
  319. package/dist/es/node_modules/lodash/_overArg.mjs +0 -9
  320. package/dist/es/node_modules/lodash/_overRest.mjs +0 -16
  321. package/dist/es/node_modules/lodash/_root.mjs +0 -5
  322. package/dist/es/node_modules/lodash/_safeGet.mjs +0 -8
  323. package/dist/es/node_modules/lodash/_setToString.mjs +0 -6
  324. package/dist/es/node_modules/lodash/_shortOut.mjs +0 -17
  325. package/dist/es/node_modules/lodash/_stackClear.mjs +0 -9
  326. package/dist/es/node_modules/lodash/_stackDelete.mjs +0 -8
  327. package/dist/es/node_modules/lodash/_stackGet.mjs +0 -7
  328. package/dist/es/node_modules/lodash/_stackHas.mjs +0 -7
  329. package/dist/es/node_modules/lodash/_stackSet.mjs +0 -18
  330. package/dist/es/node_modules/lodash/_toSource.mjs +0 -18
  331. package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +0 -10
  332. package/dist/es/node_modules/lodash/constant.mjs +0 -9
  333. package/dist/es/node_modules/lodash/debounce.mjs +0 -57
  334. package/dist/es/node_modules/lodash/eq.mjs +0 -7
  335. package/dist/es/node_modules/lodash/identity.mjs +0 -7
  336. package/dist/es/node_modules/lodash/isArguments.mjs +0 -10
  337. package/dist/es/node_modules/lodash/isArray.mjs +0 -4
  338. package/dist/es/node_modules/lodash/isArrayLike.mjs +0 -10
  339. package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +0 -10
  340. package/dist/es/node_modules/lodash/isBuffer.mjs +0 -12
  341. package/dist/es/node_modules/lodash/isFunction.mjs +0 -13
  342. package/dist/es/node_modules/lodash/isLength.mjs +0 -8
  343. package/dist/es/node_modules/lodash/isObject.mjs +0 -8
  344. package/dist/es/node_modules/lodash/isObjectLike.mjs +0 -7
  345. package/dist/es/node_modules/lodash/isPlainObject.mjs +0 -17
  346. package/dist/es/node_modules/lodash/isSymbol.mjs +0 -10
  347. package/dist/es/node_modules/lodash/isTypedArray.mjs +0 -7
  348. package/dist/es/node_modules/lodash/keysIn.mjs +0 -11
  349. package/dist/es/node_modules/lodash/merge.mjs +0 -10
  350. package/dist/es/node_modules/lodash/now.mjs +0 -7
  351. package/dist/es/node_modules/lodash/stubFalse.mjs +0 -7
  352. package/dist/es/node_modules/lodash/toNumber.mjs +0 -23
  353. package/dist/es/node_modules/lodash/toPlainObject.mjs +0 -10
  354. package/dist/es/node_modules/longest-streak/index.mjs +0 -12
  355. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
  356. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
  357. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
  358. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
  359. package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
  360. package/dist/es/node_modules/micromark-util-character/index.mjs +0 -10
  361. package/dist/es/node_modules/object-assign/index.mjs +0 -34
  362. package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +0 -18
  363. package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +0 -31
  364. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +0 -45
  365. package/dist/es/node_modules/react/jsx-runtime.mjs +0 -8
  366. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
  367. package/dist/es/node_modules/react-fast-compare/index.mjs +0 -78
  368. package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +0 -188
  369. package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +0 -4
  370. package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
  371. package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
  372. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +0 -294
  373. package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -7
  374. package/dist/es/node_modules/toggle-selection/index.mjs +0 -25
  375. package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -64
  376. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -120
  377. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
  378. package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
  379. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
  380. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
  381. package/dist/es/node_modules/web-namespaces/index.mjs +0 -11
  382. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +0 -4
  383. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +0 -13
  384. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -9
  385. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +0 -23
  386. package/dist/es/robots.txt +0 -3
  387. package/dist/es/style.less.mjs +0 -4
  388. package/dist/lib/favicon.ico +0 -0
  389. package/dist/lib/favicon2.ico +0 -0
  390. package/dist/lib/font/font_4108228_4w5nlhafpte.js +0 -1
  391. package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +0 -1
  392. package/dist/lib/font/gos-font.js +0 -64
  393. package/dist/lib/images/empty.svg +0 -40
  394. package/dist/lib/images/loading.gif +0 -0
  395. package/dist/lib/images/logo.png +0 -0
  396. package/dist/lib/images/map-example.png +0 -0
  397. package/dist/lib/images/sketch.png +0 -0
  398. package/dist/lib/index.html +0 -43
  399. package/dist/lib/logo192.png +0 -0
  400. package/dist/lib/logo512.png +0 -0
  401. package/dist/lib/manifest.json +0 -25
  402. package/dist/lib/robots.txt +0 -3
  403. /package/dist/es/{Dialog/HistoryItem → assets}/think.svg.mjs +0 -0
@@ -1,35 +0,0 @@
1
- function M(r, u, e) {
2
- return Math.max(u, Math.min(r, e));
3
- }
4
- const y = {
5
- toVector(r, u) {
6
- return r === void 0 && (r = u), Array.isArray(r) ? r : [r, r];
7
- },
8
- add(r, u) {
9
- return [r[0] + u[0], r[1] + u[1]];
10
- },
11
- sub(r, u) {
12
- return [r[0] - u[0], r[1] - u[1]];
13
- },
14
- addTo(r, u) {
15
- r[0] += u[0], r[1] += u[1];
16
- },
17
- subTo(r, u) {
18
- r[0] -= u[0], r[1] -= u[1];
19
- }
20
- };
21
- function b(r, u, e) {
22
- return u === 0 || Math.abs(u) === 1 / 0 ? Math.pow(r, e * 5) : r * u * e / (u + e * r);
23
- }
24
- function t(r, u, e, f = 0.15) {
25
- return f === 0 ? M(r, u, e) : r < u ? -b(u - r, e - u, f) + u : r > e ? +b(r - e, e - u, f) + e : r;
26
- }
27
- function A(r, [u, e], [f, a]) {
28
- const [[d, c], [h, n]] = r;
29
- return [t(u, d, c, f), t(e, h, n, a)];
30
- }
31
- export {
32
- y as V,
33
- A as c,
34
- t as r
35
- };
@@ -1,226 +0,0 @@
1
- import { a as f, i as E, b as y, E as m, _ as p, c as O, p as P, d as I, C as b, t as T, S as j } from "./actions-fe213e88.esm.mjs";
2
- function M(e, t) {
3
- if (e == null)
4
- return {};
5
- var s = {}, n = Object.keys(e), r, i;
6
- for (i = 0; i < n.length; i++)
7
- r = n[i], !(t.indexOf(r) >= 0) && (s[r] = e[r]);
8
- return s;
9
- }
10
- function k(e, t) {
11
- if (e == null)
12
- return {};
13
- var s = M(e, t), n, r;
14
- if (Object.getOwnPropertySymbols) {
15
- var i = Object.getOwnPropertySymbols(e);
16
- for (r = 0; r < i.length; r++)
17
- n = i[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (s[n] = e[n]);
18
- }
19
- return s;
20
- }
21
- const H = {
22
- target(e) {
23
- if (e)
24
- return () => "current" in e ? e.current : e;
25
- },
26
- enabled(e = !0) {
27
- return e;
28
- },
29
- window(e = j.isBrowser ? window : void 0) {
30
- return e;
31
- },
32
- eventOptions({
33
- passive: e = !0,
34
- capture: t = !1
35
- } = {}) {
36
- return {
37
- passive: e,
38
- capture: t
39
- };
40
- },
41
- transform(e) {
42
- return e;
43
- }
44
- }, R = ["target", "eventOptions", "window", "enabled", "transform"];
45
- function g(e = {}, t) {
46
- const s = {};
47
- for (const [n, r] of Object.entries(t))
48
- switch (typeof r) {
49
- case "function":
50
- s[n] = r.call(s, e[n], n, e);
51
- break;
52
- case "object":
53
- s[n] = g(e[n], r);
54
- break;
55
- case "boolean":
56
- r && (s[n] = e[n]);
57
- break;
58
- }
59
- return s;
60
- }
61
- function W(e, t, s = {}) {
62
- const n = e, {
63
- target: r,
64
- eventOptions: i,
65
- window: o,
66
- enabled: c,
67
- transform: u
68
- } = n, a = k(n, R);
69
- if (s.shared = g({
70
- target: r,
71
- eventOptions: i,
72
- window: o,
73
- enabled: c,
74
- transform: u
75
- }, H), t) {
76
- const h = b.get(t);
77
- s[t] = g(p({
78
- shared: s.shared
79
- }, a), h);
80
- } else
81
- for (const h in a) {
82
- const v = b.get(h);
83
- v && (s[h] = g(p({
84
- shared: s.shared
85
- }, a[h]), v));
86
- }
87
- return s;
88
- }
89
- class _ {
90
- constructor(t, s) {
91
- f(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = t, this._gestureKey = s;
92
- }
93
- add(t, s, n, r, i) {
94
- const o = this._listeners, c = T(s, n), u = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, a = p(p({}, u), i);
95
- t.addEventListener(c, r, a);
96
- const h = () => {
97
- t.removeEventListener(c, r, a), o.delete(h);
98
- };
99
- return o.add(h), h;
100
- }
101
- clean() {
102
- this._listeners.forEach((t) => t()), this._listeners.clear();
103
- }
104
- }
105
- class x {
106
- constructor() {
107
- f(this, "_timeouts", /* @__PURE__ */ new Map());
108
- }
109
- add(t, s, n = 140, ...r) {
110
- this.remove(t), this._timeouts.set(t, window.setTimeout(s, n, ...r));
111
- }
112
- remove(t) {
113
- const s = this._timeouts.get(t);
114
- s && window.clearTimeout(s);
115
- }
116
- clean() {
117
- this._timeouts.forEach((t) => void window.clearTimeout(t)), this._timeouts.clear();
118
- }
119
- }
120
- class F {
121
- constructor(t) {
122
- f(this, "gestures", /* @__PURE__ */ new Set()), f(this, "_targetEventStore", new _(this)), f(this, "gestureEventStores", {}), f(this, "gestureTimeoutStores", {}), f(this, "handlers", {}), f(this, "config", {}), f(this, "pointerIds", /* @__PURE__ */ new Set()), f(this, "touchIds", /* @__PURE__ */ new Set()), f(this, "state", {
123
- shared: {
124
- shiftKey: !1,
125
- metaKey: !1,
126
- ctrlKey: !1,
127
- altKey: !1
128
- }
129
- }), D(this, t);
130
- }
131
- setEventIds(t) {
132
- if (E(t))
133
- return this.touchIds = new Set(y(t)), this.touchIds;
134
- if ("pointerId" in t)
135
- return t.type === "pointerup" || t.type === "pointercancel" ? this.pointerIds.delete(t.pointerId) : t.type === "pointerdown" && this.pointerIds.add(t.pointerId), this.pointerIds;
136
- }
137
- applyHandlers(t, s) {
138
- this.handlers = t, this.nativeHandlers = s;
139
- }
140
- applyConfig(t, s) {
141
- this.config = W(t, s, this.config);
142
- }
143
- clean() {
144
- this._targetEventStore.clean();
145
- for (const t of this.gestures)
146
- this.gestureEventStores[t].clean(), this.gestureTimeoutStores[t].clean();
147
- }
148
- effect() {
149
- return this.config.shared.target && this.bind(), () => this._targetEventStore.clean();
150
- }
151
- bind(...t) {
152
- const s = this.config.shared, n = {};
153
- let r;
154
- if (!(s.target && (r = s.target(), !r))) {
155
- if (s.enabled) {
156
- for (const o of this.gestures) {
157
- const c = this.config[o], u = S(n, c.eventOptions, !!r);
158
- if (c.enabled) {
159
- const a = m.get(o);
160
- new a(this, t, o).bind(u);
161
- }
162
- }
163
- const i = S(n, s.eventOptions, !!r);
164
- for (const o in this.nativeHandlers)
165
- i(o, "", (c) => this.nativeHandlers[o](p(p({}, this.state.shared), {}, {
166
- event: c,
167
- args: t
168
- })), void 0, !0);
169
- }
170
- for (const i in n)
171
- n[i] = O(...n[i]);
172
- if (!r)
173
- return n;
174
- for (const i in n) {
175
- const {
176
- device: o,
177
- capture: c,
178
- passive: u
179
- } = P(i);
180
- this._targetEventStore.add(r, o, "", n[i], {
181
- capture: c,
182
- passive: u
183
- });
184
- }
185
- }
186
- }
187
- }
188
- function d(e, t) {
189
- e.gestures.add(t), e.gestureEventStores[t] = new _(e, t), e.gestureTimeoutStores[t] = new x();
190
- }
191
- function D(e, t) {
192
- t.drag && d(e, "drag"), t.wheel && d(e, "wheel"), t.scroll && d(e, "scroll"), t.move && d(e, "move"), t.pinch && d(e, "pinch"), t.hover && d(e, "hover");
193
- }
194
- const S = (e, t, s) => (n, r, i, o = {}, c = !1) => {
195
- var u, a;
196
- const h = (u = o.capture) !== null && u !== void 0 ? u : t.capture, v = (a = o.passive) !== null && a !== void 0 ? a : t.passive;
197
- let w = c ? n : I(n, r, h);
198
- s && v && (w += "Passive"), e[w] = e[w] || [], e[w].push(i);
199
- }, G = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;
200
- function L(e) {
201
- const t = {}, s = {}, n = /* @__PURE__ */ new Set();
202
- for (let r in e)
203
- G.test(r) ? (n.add(RegExp.lastMatch), s[r] = e[r]) : t[r] = e[r];
204
- return [s, t, n];
205
- }
206
- function l(e, t, s, n, r, i) {
207
- if (!e.has(s) || !m.has(n))
208
- return;
209
- const o = s + "Start", c = s + "End", u = (a) => {
210
- let h;
211
- return a.first && o in t && t[o](a), s in t && (h = t[s](a)), a.last && c in t && t[c](a), h;
212
- };
213
- r[n] = u, i[n] = i[n] || {};
214
- }
215
- function K(e, t) {
216
- const [s, n, r] = L(e), i = {};
217
- return l(r, s, "onDrag", "drag", i, t), l(r, s, "onWheel", "wheel", i, t), l(r, s, "onScroll", "scroll", i, t), l(r, s, "onPinch", "pinch", i, t), l(r, s, "onMove", "move", i, t), l(r, s, "onHover", "hover", i, t), {
218
- handlers: i,
219
- config: t,
220
- nativeHandlers: n
221
- };
222
- }
223
- export {
224
- F as Controller,
225
- K as parseMergedHandlers
226
- };
@@ -1,33 +0,0 @@
1
- import i from "react";
2
- import { Controller as c, parseMergedHandlers as d } from "../../core/dist/use-gesture-core.esm.mjs";
3
- import { r as a, e as p } from "../../core/dist/actions-fe213e88.esm.mjs";
4
- import { C as A, E as H, f as R } from "../../core/dist/actions-fe213e88.esm.mjs";
5
- function f(r, n = {}, t, o) {
6
- const e = i.useMemo(() => new c(r), []);
7
- if (e.applyHandlers(r, o), e.applyConfig(n, t), i.useEffect(e.effect.bind(e)), i.useEffect(() => e.clean.bind(e), []), n.target === void 0)
8
- return e.bind.bind(e);
9
- }
10
- function E(r, n) {
11
- return a(p), f({
12
- drag: r
13
- }, n || {}, "drag");
14
- }
15
- function b(r) {
16
- return r.forEach(a), function(t, o) {
17
- const {
18
- handlers: e,
19
- nativeHandlers: s,
20
- config: u
21
- } = d(t, o || {});
22
- return f(e, u, void 0, s);
23
- };
24
- }
25
- export {
26
- A as ConfigResolverMap,
27
- H as EngineMap,
28
- b as createUseGesture,
29
- p as dragAction,
30
- R as pinchAction,
31
- a as registerAction,
32
- E as useDrag
33
- };
@@ -1,221 +0,0 @@
1
- import { __values as x } from "../../../tslib/tslib.es6.mjs";
2
- import q from "../useLatest/index.mjs";
3
- import { isString as O, isNumber as j, isFunction as R } from "../utils/index.mjs";
4
- import { getTargetElement as z } from "../utils/domTarget.mjs";
5
- import N from "../utils/useDeepCompareWithTarget.mjs";
6
- import P from "../utils/isAppleDevice.mjs";
7
- var B = {
8
- 0: 48,
9
- 1: 49,
10
- 2: 50,
11
- 3: 51,
12
- 4: 52,
13
- 5: 53,
14
- 6: 54,
15
- 7: 55,
16
- 8: 56,
17
- 9: 57,
18
- backspace: 8,
19
- tab: 9,
20
- enter: 13,
21
- shift: 16,
22
- ctrl: 17,
23
- alt: 18,
24
- pausebreak: 19,
25
- capslock: 20,
26
- esc: 27,
27
- space: 32,
28
- pageup: 33,
29
- pagedown: 34,
30
- end: 35,
31
- home: 36,
32
- leftarrow: 37,
33
- uparrow: 38,
34
- rightarrow: 39,
35
- downarrow: 40,
36
- insert: 45,
37
- delete: 46,
38
- a: 65,
39
- b: 66,
40
- c: 67,
41
- d: 68,
42
- e: 69,
43
- f: 70,
44
- g: 71,
45
- h: 72,
46
- i: 73,
47
- j: 74,
48
- k: 75,
49
- l: 76,
50
- m: 77,
51
- n: 78,
52
- o: 79,
53
- p: 80,
54
- q: 81,
55
- r: 82,
56
- s: 83,
57
- t: 84,
58
- u: 85,
59
- v: 86,
60
- w: 87,
61
- x: 88,
62
- y: 89,
63
- z: 90,
64
- leftwindowkey: 91,
65
- rightwindowkey: 92,
66
- meta: P ? [91, 93] : [91, 92],
67
- selectkey: 93,
68
- numpad0: 96,
69
- numpad1: 97,
70
- numpad2: 98,
71
- numpad3: 99,
72
- numpad4: 100,
73
- numpad5: 101,
74
- numpad6: 102,
75
- numpad7: 103,
76
- numpad8: 104,
77
- numpad9: 105,
78
- multiply: 106,
79
- add: 107,
80
- subtract: 109,
81
- decimalpoint: 110,
82
- divide: 111,
83
- f1: 112,
84
- f2: 113,
85
- f3: 114,
86
- f4: 115,
87
- f5: 116,
88
- f6: 117,
89
- f7: 118,
90
- f8: 119,
91
- f9: 120,
92
- f10: 121,
93
- f11: 122,
94
- f12: 123,
95
- numlock: 144,
96
- scrolllock: 145,
97
- semicolon: 186,
98
- equalsign: 187,
99
- comma: 188,
100
- dash: 189,
101
- period: 190,
102
- forwardslash: 191,
103
- graveaccent: 192,
104
- openbracket: 219,
105
- backslash: 220,
106
- closebracket: 221,
107
- singlequote: 222
108
- }, C = {
109
- ctrl: function(r) {
110
- return r.ctrlKey;
111
- },
112
- shift: function(r) {
113
- return r.shiftKey;
114
- },
115
- alt: function(r) {
116
- return r.altKey;
117
- },
118
- meta: function(r) {
119
- return r.type === "keyup" ? B.meta.includes(r.keyCode) : r.metaKey;
120
- }
121
- };
122
- function D(r) {
123
- return O(r) || j(r);
124
- }
125
- function S(r) {
126
- var a = Object.keys(C).reduce(function(n, e) {
127
- return C[e](r) ? n + 1 : n;
128
- }, 0);
129
- return [16, 17, 18, 91, 92].includes(r.keyCode) ? a : a + 1;
130
- }
131
- function T(r, a, n) {
132
- var e, m;
133
- if (!r.key)
134
- return !1;
135
- if (j(a))
136
- return r.keyCode === a ? a : !1;
137
- var u = a.split("."), d = 0;
138
- try {
139
- for (var f = x(u), l = f.next(); !l.done; l = f.next()) {
140
- var s = l.value, v = C[s], y = B[s.toLowerCase()];
141
- (v && v(r) || y && y === r.keyCode) && d++;
142
- }
143
- } catch (g) {
144
- e = {
145
- error: g
146
- };
147
- } finally {
148
- try {
149
- l && !l.done && (m = f.return) && m.call(f);
150
- } finally {
151
- if (e)
152
- throw e.error;
153
- }
154
- }
155
- return n ? d === u.length && S(r) === u.length ? a : !1 : d === u.length ? a : !1;
156
- }
157
- function V(r, a) {
158
- return R(r) ? r : D(r) ? function(n) {
159
- return T(n, r, a);
160
- } : Array.isArray(r) ? function(n) {
161
- return r.find(function(e) {
162
- return T(n, e, a);
163
- });
164
- } : function() {
165
- return !!r;
166
- };
167
- }
168
- var W = ["keydown"];
169
- function Z(r, a, n) {
170
- var e = n || {}, m = e.events, u = m === void 0 ? W : m, d = e.target, f = e.exactMatch, l = f === void 0 ? !1 : f, s = e.useCapture, v = s === void 0 ? !1 : s, y = q(a), g = q(r);
171
- N(function() {
172
- var k, E, K, t = z(d, window);
173
- if (t) {
174
- var L = function(o) {
175
- var p, w = V(g.current, l), i = w(o), c = D(i) ? i : o.key;
176
- if (i)
177
- return (p = y.current) === null || p === void 0 ? void 0 : p.call(y, o, c);
178
- };
179
- try {
180
- for (var b = x(u), h = b.next(); !h.done; h = b.next()) {
181
- var G = h.value;
182
- (K = t == null ? void 0 : t.addEventListener) === null || K === void 0 || K.call(t, G, L, v);
183
- }
184
- } catch (o) {
185
- k = {
186
- error: o
187
- };
188
- } finally {
189
- try {
190
- h && !h.done && (E = b.return) && E.call(b);
191
- } finally {
192
- if (k)
193
- throw k.error;
194
- }
195
- }
196
- return function() {
197
- var o, p, w;
198
- try {
199
- for (var i = x(u), c = i.next(); !c.done; c = i.next()) {
200
- var H = c.value;
201
- (w = t == null ? void 0 : t.removeEventListener) === null || w === void 0 || w.call(t, H, L, v);
202
- }
203
- } catch (M) {
204
- o = {
205
- error: M
206
- };
207
- } finally {
208
- try {
209
- c && !c.done && (p = i.return) && p.call(i);
210
- } finally {
211
- if (o)
212
- throw o.error;
213
- }
214
- }
215
- };
216
- }
217
- }, [u], d);
218
- }
219
- export {
220
- Z as default
221
- };
@@ -1,8 +0,0 @@
1
- import { useRef as t } from "react";
2
- function u(r) {
3
- var e = t(r);
4
- return e.current = r, e;
5
- }
6
- export {
7
- u as default
8
- };
@@ -1,19 +0,0 @@
1
- import { useRef as u, useMemo as i } from "react";
2
- import { isFunction as a } from "../utils/index.mjs";
3
- import c from "../utils/isDev.mjs";
4
- function p(r) {
5
- c && (a(r) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof r)));
6
- var n = u(r);
7
- n.current = i(function() {
8
- return r;
9
- }, [r]);
10
- var t = u();
11
- return t.current || (t.current = function() {
12
- for (var o = [], e = 0; e < arguments.length; e++)
13
- o[e] = arguments[e];
14
- return n.current.apply(this, o);
15
- }), t.current;
16
- }
17
- export {
18
- p as default
19
- };
@@ -1,16 +0,0 @@
1
- import { __read as i } from "../../../tslib/tslib.es6.mjs";
2
- import { useRef as m, useState as c, useCallback as f } from "react";
3
- import s from "../useUnmount/index.mjs";
4
- function v(a) {
5
- var t = m(0), e = i(c(a), 2), r = e[0], n = e[1], u = f(function(o) {
6
- cancelAnimationFrame(t.current), t.current = requestAnimationFrame(function() {
7
- n(o);
8
- });
9
- }, []);
10
- return s(function() {
11
- cancelAnimationFrame(t.current);
12
- }), [r, u];
13
- }
14
- export {
15
- v as default
16
- };
@@ -1,34 +0,0 @@
1
- import { __read as d } from "../../../tslib/tslib.es6.mjs";
2
- import s from "../../../resize-observer-polyfill/dist/ResizeObserver.es.mjs";
3
- import l from "../useRafState/index.mjs";
4
- import { getTargetElement as o } from "../utils/domTarget.mjs";
5
- import g from "../utils/useIsomorphicLayoutEffectWithTarget.mjs";
6
- function E(e) {
7
- var i = d(l(function() {
8
- var t = o(e);
9
- return t ? {
10
- width: t.clientWidth,
11
- height: t.clientHeight
12
- } : void 0;
13
- }), 2), f = i[0], a = i[1];
14
- return g(function() {
15
- var t = o(e);
16
- if (t) {
17
- var r = new s(function(c) {
18
- c.forEach(function(u) {
19
- var n = u.target, h = n.clientWidth, m = n.clientHeight;
20
- a({
21
- width: h,
22
- height: m
23
- });
24
- });
25
- });
26
- return r.observe(t), function() {
27
- r.disconnect();
28
- };
29
- }
30
- }, [], e), f;
31
- }
32
- export {
33
- E as default
34
- };
@@ -1,17 +0,0 @@
1
- import { useEffect as e } from "react";
2
- import n from "../useLatest/index.mjs";
3
- import { isFunction as r } from "../utils/index.mjs";
4
- import u from "../utils/isDev.mjs";
5
- var f = function(t) {
6
- u && (r(t) || console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));
7
- var o = n(t);
8
- e(function() {
9
- return function() {
10
- o.current();
11
- };
12
- }, []);
13
- };
14
- const a = f;
15
- export {
16
- a as default
17
- };
@@ -1,13 +0,0 @@
1
- import { useRef as n, useEffect as u } from "react";
2
- var t = function() {
3
- var e = n(!1);
4
- return u(function() {
5
- return e.current = !1, function() {
6
- e.current = !0;
7
- };
8
- }, []), e;
9
- };
10
- const f = t;
11
- export {
12
- f as default
13
- };
@@ -1,27 +0,0 @@
1
- import { useRef as a } from "react";
2
- import h from "../useUnmount/index.mjs";
3
- import l from "./depsAreSame.mjs";
4
- import { getTargetElement as p } from "./domTarget.mjs";
5
- var d = function(v) {
6
- var m = function(i, u, c) {
7
- var f = a(!1), t = a([]), o = a([]), e = a();
8
- v(function() {
9
- var r, s = Array.isArray(c) ? c : [c], n = s.map(function(g) {
10
- return p(g);
11
- });
12
- if (!f.current) {
13
- f.current = !0, t.current = n, o.current = u, e.current = i();
14
- return;
15
- }
16
- (n.length !== t.current.length || !l(t.current, n) || !l(o.current, u)) && ((r = e.current) === null || r === void 0 || r.call(e), t.current = n, o.current = u, e.current = i());
17
- }), h(function() {
18
- var r;
19
- (r = e.current) === null || r === void 0 || r.call(e), f.current = !1;
20
- });
21
- };
22
- return m;
23
- };
24
- const W = d;
25
- export {
26
- W as default
27
- };
@@ -1,11 +0,0 @@
1
- function u(e, t) {
2
- if (e === t)
3
- return !0;
4
- for (var r = 0; r < e.length; r++)
5
- if (!Object.is(e[r], t[r]))
6
- return !1;
7
- return !0;
8
- }
9
- export {
10
- u as default
11
- };
@@ -1,7 +0,0 @@
1
- import r from "../../../react-fast-compare/index.mjs";
2
- var t = function(i, o) {
3
- return i === void 0 && (i = []), o === void 0 && (o = []), r(i, o);
4
- };
5
- export {
6
- t as depsEqual
7
- };
@@ -1,13 +0,0 @@
1
- import { isFunction as i } from "./index.mjs";
2
- import f from "./isBrowser.mjs";
3
- function m(e, n) {
4
- if (f) {
5
- if (!e)
6
- return n;
7
- var r;
8
- return i(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
9
- }
10
- }
11
- export {
12
- m as getTargetElement
13
- };