@gientech/modual 1.2.7 → 1.2.9-fix

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 (377) hide show
  1. package/.editorconfig +38 -0
  2. package/.prettierignore +16 -0
  3. package/.prettierrc +17 -0
  4. package/README.md +643 -129
  5. package/USAGE.md +247 -0
  6. package/bash.exe.stackdump +40 -0
  7. package/components.json +21 -0
  8. package/dist/README.md +643 -0
  9. package/dist/assets/GientechStreamReader-C21-q_Qv.js +449 -0
  10. package/dist/assets/chevron-down-DjLtKwcs.js +280 -0
  11. package/{assets → dist/assets}/database.svg +11 -11
  12. package/{assets → dist/assets}/database_add.svg +53 -53
  13. package/{assets → dist/assets}/database_connect.svg +66 -66
  14. package/{assets → dist/assets}/database_upload.svg +29 -29
  15. package/dist/assets/databse.svg +6 -0
  16. package/{assets → dist/assets}/defaultWeLogo.svg +14 -14
  17. package/dist/assets/graph.svg +4 -0
  18. package/dist/assets/homeBg.png +0 -0
  19. package/dist/assets/index-BMz4lcjQ.js +1 -0
  20. package/dist/assets/index-C3Viu8Oj.js +1 -0
  21. package/dist/assets/index-C9GlPyHu.js +13 -0
  22. package/dist/assets/index-CRbX3ZA1.js +1 -0
  23. package/dist/assets/index-CTwzi_v2.js +21 -0
  24. package/dist/assets/index-DQlLDleQ.js +11 -0
  25. package/dist/assets/index-DRU1P9R0.js +1150 -0
  26. package/dist/assets/index-Dqej68NT.js +585 -0
  27. package/dist/assets/index-ECprhahs.js +157 -0
  28. package/dist/assets/index-i7qcZOwY.js +1088 -0
  29. package/dist/assets/knowledge.svg +4 -0
  30. package/dist/assets/left.jpg +0 -0
  31. package/dist/assets/logoImg.png +0 -0
  32. package/{assets/MySQL.svg → dist/assets/mysql.svg} +14 -14
  33. package/{assets/plus-fNg4vmeA.js → dist/assets/plus-CvJRSbOe.js} +1 -1
  34. package/dist/assets/sensitive.svg +5 -0
  35. package/dist/assets/style.css +1 -0
  36. package/dist/assets/style3.css +1 -0
  37. package/dist/assets/worker-BbpylX7l.js +13 -0
  38. package/{assets/x-tMUaBf0a.js → dist/assets/x-DKPeLdlu.js} +1 -1
  39. package/dist/assistantConfig.d.ts +31 -0
  40. package/dist/assistantConfig.js +1 -0
  41. package/{chat.d.ts → dist/chat.d.ts} +25 -1
  42. package/dist/chat.js +842 -0
  43. package/dist/database.js +20 -0
  44. package/dist/databaseId.js +1 -0
  45. package/dist/databaseTable.js +6 -0
  46. package/dist/index.d.ts +85 -0
  47. package/dist/index.js +1 -0
  48. package/dist/modelManage.js +1 -0
  49. package/dist/package.json +68 -0
  50. package/dist/sensitive.js +1 -0
  51. package/{streamFilesReader.d.ts → dist/streamFilesReader.d.ts} +3 -0
  52. package/dist/streamFilesReader.js +1 -0
  53. package/{worker → dist/worker}/pdf.worker.min.js +21 -21
  54. package/doc_assets/2.png +0 -0
  55. package/doc_assets/demo.md +27 -0
  56. package/doc_assets/demos/dist-app/assets/index.Dh-ZAS9Z.css +2 -0
  57. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js +23699 -0
  58. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js.map +1 -0
  59. package/doc_assets/demos/dist-app/index.html +14 -0
  60. package/doc_assets/demos/dist-app/vite.svg +1 -0
  61. package/doc_assets/images/1.png +0 -0
  62. package/doc_assets/images/3.png +0 -0
  63. package/doc_assets/images/component-screenshot.png +1 -0
  64. package/doc_assets/install.md +5 -0
  65. package/doc_assets//346/226/271/346/241/210//344/274/230/345/214/226/346/226/271/346/241/210-/345/244/232/344/274/232/350/257/235SSE/350/277/236/346/216/245/347/256/241/347/220/206.md +504 -0
  66. package/eslint.config.js +92 -0
  67. package/index.html +13 -0
  68. package/package.json +109 -40
  69. package/package.json.demo-backup +109 -0
  70. package/postcss.config.cjs +19 -0
  71. package/public/vite.svg +1 -0
  72. package/public/worker/pdf.worker.min.js +22 -0
  73. package/scripts/README.md +133 -0
  74. package/scripts/build-demo.js +88 -0
  75. package/scripts/demo-selector.js +216 -0
  76. package/scripts/dev-demo.js +76 -0
  77. package/scripts/preview-demo.js +130 -0
  78. package/scripts/run-demo.bat +34 -0
  79. package/src/assets/img/close.png +0 -0
  80. package/src/assets/img/database.png +0 -0
  81. package/src/assets/img/downArrow.png +0 -0
  82. package/src/assets/img/downLoad.png +0 -0
  83. package/src/assets/img/excel.png +0 -0
  84. package/src/assets/img/graphIcon.png +0 -0
  85. package/src/assets/img/img.png +0 -0
  86. package/src/assets/img/pdf.png +0 -0
  87. package/src/assets/img/ppt.png +0 -0
  88. package/src/assets/img/singleQa.png +0 -0
  89. package/src/assets/img/txt.png +0 -0
  90. package/src/assets/img/webSearch.png +0 -0
  91. package/src/assets/img/word.png +0 -0
  92. package/src/assets/login/homeBg.png +0 -0
  93. package/src/assets/login/left.jpg +0 -0
  94. package/src/assets/login/logoImg.png +0 -0
  95. package/src/examples/ConversationAssistantPage/index.tsx +37 -0
  96. package/src/examples/Demo/index.tsx +12 -0
  97. package/src/examples/LoginPage/index.tsx +18 -0
  98. package/src/examples/chat/components/DrawerGraphPreview.tsx +78 -0
  99. package/src/examples/chat/index.tsx +153 -0
  100. package/src/examples/chat/logo03.png +0 -0
  101. package/src/examples/gientechStreamFilesReader/index.tsx +951 -0
  102. package/src/examples/ragDatabaseDataPage/index.tsx +36 -0
  103. package/src/examples/ragDatabaseIdPage/index.tsx +44 -0
  104. package/src/examples/ragDatabasePage/index.tsx +36 -0
  105. package/src/examples/ragModelManagePage/index.tsx +37 -0
  106. package/src/examples/ragSearchPage/index.tsx +0 -0
  107. package/src/examples/ragSensitiveWordsPage/index.tsx +32 -0
  108. package/src/examples/streamFiles/index.tsx +384 -0
  109. package/src/lib_enter.ts +43 -0
  110. package/src/main.tsx +5 -0
  111. package/src/main.tsx.backup +5 -0
  112. package/src/modules/assistantConfig/assets/databse.svg +6 -0
  113. package/src/modules/assistantConfig/assets/empty.png +0 -0
  114. package/src/modules/assistantConfig/assets/graph.svg +4 -0
  115. package/src/modules/assistantConfig/assets/knowledge.svg +4 -0
  116. package/src/modules/assistantConfig/assets/sensitive.svg +5 -0
  117. package/src/modules/assistantConfig/components/Database.tsx +144 -0
  118. package/src/modules/assistantConfig/components/Graph.tsx +156 -0
  119. package/src/modules/assistantConfig/components/Knowledge.tsx +266 -0
  120. package/src/modules/assistantConfig/components/NotFoundContent.tsx +21 -0
  121. package/src/modules/assistantConfig/components/Paragraph.tsx +51 -0
  122. package/src/modules/assistantConfig/components/ParamsItem.tsx +39 -0
  123. package/src/modules/assistantConfig/components/ResourceBinderItem.tsx +132 -0
  124. package/src/modules/assistantConfig/components/SearchableSelector.tsx +500 -0
  125. package/src/modules/assistantConfig/components/Sensitive.tsx +179 -0
  126. package/src/modules/assistantConfig/components/SliderInput.tsx +65 -0
  127. package/src/modules/assistantConfig/constants.tsx +74 -0
  128. package/src/modules/assistantConfig/index.tsx +700 -0
  129. package/src/modules/assistantConfig/server.ts +262 -0
  130. package/src/modules/chat/Conversations/Item.tsx +167 -0
  131. package/src/modules/chat/Conversations/List.tsx +210 -0
  132. package/src/modules/chat/Conversations/groupByTime.ts +39 -0
  133. package/src/modules/chat/Conversations/index.tsx +230 -0
  134. package/src/modules/chat/ReferenceBar.tsx +592 -0
  135. package/src/modules/chat/constants.tsx +56 -0
  136. package/src/modules/chat/data.txt +82 -0
  137. package/src/modules/chat/index.tsx +2081 -0
  138. package/src/modules/chat/referenceCom/DeleteModal.tsx +75 -0
  139. package/src/modules/chat/referenceCom/DrawerContent.tsx +136 -0
  140. package/src/modules/chat/referenceCom/DrawerDatabase.tsx +110 -0
  141. package/src/modules/chat/referenceCom/DrawerGraphPreview.tsx +86 -0
  142. package/src/modules/chat/referenceCom/DrawerPreview.tsx +73 -0
  143. package/src/modules/chat/referenceCom/DrawerTitle.tsx +26 -0
  144. package/src/modules/chat/referenceCom/RenameModal.tsx +86 -0
  145. package/src/modules/chat/referenceCom/TagCom.tsx +30 -0
  146. package/src/modules/chat/style.less +3 -0
  147. package/src/modules/chat/types.ts +17 -0
  148. package/src/modules/chat/utils/index.ts +326 -0
  149. package/src/modules/database/CreateModal.tsx +398 -0
  150. package/src/modules/database/assets/Doris.png +0 -0
  151. package/src/modules/database/assets/PostgreSQL.png +0 -0
  152. package/src/modules/database/assets/SQLServer.png +0 -0
  153. package/src/modules/database/assets/database.svg +11 -0
  154. package/src/modules/database/assets/database_add.svg +53 -0
  155. package/src/modules/database/assets/database_connect.svg +66 -0
  156. package/src/modules/database/assets/database_upload.svg +29 -0
  157. package/src/modules/database/assets/empty.png +0 -0
  158. package/src/modules/database/assets/mysql.svg +14 -0
  159. package/src/modules/database/index.tsx +466 -0
  160. package/src/modules/database/server.ts +196 -0
  161. package/src/modules/databaseId/CustomCom.tsx +156 -0
  162. package/src/modules/databaseId/EditConfig.tsx +268 -0
  163. package/src/modules/databaseId/UploadDrawer.tsx +520 -0
  164. package/src/modules/databaseId/assets/aiOptimize.svg +10 -0
  165. package/src/modules/databaseId/assets/empty.png +0 -0
  166. package/src/modules/databaseId/assets/template.svg +6 -0
  167. package/src/modules/databaseId/assets/upload.svg +9 -0
  168. package/src/modules/databaseId/assets/useTemp.svg +6 -0
  169. package/src/modules/databaseId/index.tsx +734 -0
  170. package/src/modules/databaseId/server.ts +286 -0
  171. package/src/modules/databaseId/style.css +5 -0
  172. package/src/modules/databaseTable/EditRowDrawer.tsx +119 -0
  173. package/src/modules/databaseTable/index.tsx +357 -0
  174. package/src/modules/databaseTable/server.ts +180 -0
  175. package/src/modules/headlessChat/constants.tsx +32 -0
  176. package/src/modules/headlessChat/index.tsx +1063 -0
  177. package/src/modules/headlessChat/types.ts +23 -0
  178. package/src/modules/login/components/Login/LoginBox/index.tsx +102 -0
  179. package/src/modules/login/components/Login/RegisterBox/index.tsx +180 -0
  180. package/src/modules/login/components/Login/index.tsx +100 -0
  181. package/src/modules/login/index.tsx +106 -0
  182. package/src/modules/login/style.css +3 -0
  183. package/src/modules/login/useServices.ts +53 -0
  184. package/src/modules/login/utils.ts +42 -0
  185. package/src/modules/modelManage/ConfigDrawer.tsx +249 -0
  186. package/src/modules/modelManage/assets/empty.png +0 -0
  187. package/src/modules/modelManage/const.ts +50 -0
  188. package/src/modules/modelManage/index.tsx +439 -0
  189. package/src/modules/modelManage/server.ts +185 -0
  190. package/src/modules/nodegraph/index.tsx +1 -0
  191. package/src/modules/search/assets/Icon-history.svg +8 -0
  192. package/src/modules/search/assets/answerAwartar.png +0 -0
  193. package/src/modules/search/assets/doc.png +0 -0
  194. package/src/modules/search/assets/genera.gif +0 -0
  195. package/src/modules/search/assets/icon-robot.svg +9 -0
  196. package/src/modules/search/assets/icon-search-bar.svg +14 -0
  197. package/src/modules/search/assets/icon-sub-title.svg +3 -0
  198. package/src/modules/search/assets/icon-title.svg +9 -0
  199. package/src/modules/search/assets/icon-zoomOut.svg +9 -0
  200. package/src/modules/search/assets/iconAi.svg +9 -0
  201. package/src/modules/search/assets/pdf.png +0 -0
  202. package/src/modules/search/assets/ppt.png +0 -0
  203. package/src/modules/search/assets/search.svg +3 -0
  204. package/src/modules/search/assets/selected.svg +4 -0
  205. package/src/modules/search/assets/txt.png +0 -0
  206. package/src/modules/search/assets/xls.png +0 -0
  207. package/src/modules/search/components/AssisSelect.tsx +137 -0
  208. package/src/modules/search/components/Editor/ChatViewEditor.tsx +261 -0
  209. package/src/modules/search/components/Editor/aichat.css +1 -0
  210. package/src/modules/search/components/Editor/constant.ts +13 -0
  211. package/src/modules/search/components/Editor/index.tsx +113 -0
  212. package/src/modules/search/components/Editor/plugins/autofomatRules.ts +332 -0
  213. package/src/modules/search/components/Editor/plugins/convertImgPlugins.tsx +20 -0
  214. package/src/modules/search/components/Editor/plugins/createIndexes.tsx +38 -0
  215. package/src/modules/search/components/Editor/plugins/displayer.ts +298 -0
  216. package/src/modules/search/components/Editor/plugins/imageClick.tsx +32 -0
  217. package/src/modules/search/components/Editor/plugins/myplugin.tsx +98 -0
  218. package/src/modules/search/components/Editor/ui/avatar.tsx +19 -0
  219. package/src/modules/search/components/Editor/ui/blockquote-element.tsx +21 -0
  220. package/src/modules/search/components/Editor/ui/button.tsx +58 -0
  221. package/src/modules/search/components/Editor/ui/calendar.tsx +68 -0
  222. package/src/modules/search/components/Editor/ui/caption.tsx +46 -0
  223. package/src/modules/search/components/Editor/ui/checkbox.tsx +27 -0
  224. package/src/modules/search/components/Editor/ui/code-block-combobox.tsx +188 -0
  225. package/src/modules/search/components/Editor/ui/code-block-element.css +434 -0
  226. package/src/modules/search/components/Editor/ui/code-block-element.tsx +39 -0
  227. package/src/modules/search/components/Editor/ui/code-leaf.tsx +24 -0
  228. package/src/modules/search/components/Editor/ui/code-line-element.tsx +10 -0
  229. package/src/modules/search/components/Editor/ui/code-syntax-leaf.tsx +21 -0
  230. package/src/modules/search/components/Editor/ui/column-element.tsx +30 -0
  231. package/src/modules/search/components/Editor/ui/column-group-element.tsx +94 -0
  232. package/src/modules/search/components/Editor/ui/command.tsx +75 -0
  233. package/src/modules/search/components/Editor/ui/comment-avatar.tsx +22 -0
  234. package/src/modules/search/components/Editor/ui/comment-create-form.tsx +37 -0
  235. package/src/modules/search/components/Editor/ui/comment-item.tsx +74 -0
  236. package/src/modules/search/components/Editor/ui/comment-leaf.tsx +49 -0
  237. package/src/modules/search/components/Editor/ui/comment-more-dropdown.tsx +42 -0
  238. package/src/modules/search/components/Editor/ui/comment-reply-items.tsx +22 -0
  239. package/src/modules/search/components/Editor/ui/comment-resolve-button.tsx +32 -0
  240. package/src/modules/search/components/Editor/ui/comment-value.tsx +34 -0
  241. package/src/modules/search/components/Editor/ui/comments-popover.tsx +63 -0
  242. package/src/modules/search/components/Editor/ui/date-element.tsx +83 -0
  243. package/src/modules/search/components/Editor/ui/dialog.tsx +63 -0
  244. package/src/modules/search/components/Editor/ui/draggable.tsx +177 -0
  245. package/src/modules/search/components/Editor/ui/dropdown-menu.tsx +180 -0
  246. package/src/modules/search/components/Editor/ui/emoji-input-element.tsx +85 -0
  247. package/src/modules/search/components/Editor/ui/excalidraw-element.tsx +28 -0
  248. package/src/modules/search/components/Editor/ui/fixed-toolbar-buttons.tsx +76 -0
  249. package/src/modules/search/components/Editor/ui/fixed-toolbar.tsx +8 -0
  250. package/src/modules/search/components/Editor/ui/floating-toolbar-buttons.tsx +51 -0
  251. package/src/modules/search/components/Editor/ui/floating-toolbar.tsx +77 -0
  252. package/src/modules/search/components/Editor/ui/heading-element.tsx +48 -0
  253. package/src/modules/search/components/Editor/ui/highlight-leaf.tsx +17 -0
  254. package/src/modules/search/components/Editor/ui/hr-element.tsx +30 -0
  255. package/src/modules/search/components/Editor/ui/icons.tsx +267 -0
  256. package/src/modules/search/components/Editor/ui/image-element.tsx +74 -0
  257. package/src/modules/search/components/Editor/ui/inline-combobox.tsx +368 -0
  258. package/src/modules/search/components/Editor/ui/input.tsx +25 -0
  259. package/src/modules/search/components/Editor/ui/insert-dropdown-menu.tsx +218 -0
  260. package/src/modules/search/components/Editor/ui/kbd-leaf.tsx +20 -0
  261. package/src/modules/search/components/Editor/ui/link-element.tsx +29 -0
  262. package/src/modules/search/components/Editor/ui/link-floating-toolbar.tsx +161 -0
  263. package/src/modules/search/components/Editor/ui/list-element.tsx +30 -0
  264. package/src/modules/search/components/Editor/ui/mark-toolbar-button.tsx +24 -0
  265. package/src/modules/search/components/Editor/ui/media-embed-element.tsx +133 -0
  266. package/src/modules/search/components/Editor/ui/media-popover.tsx +97 -0
  267. package/src/modules/search/components/Editor/ui/mention-element.tsx +43 -0
  268. package/src/modules/search/components/Editor/ui/mention-input-element.tsx +141 -0
  269. package/src/modules/search/components/Editor/ui/mode-dropdown-menu.tsx +93 -0
  270. package/src/modules/search/components/Editor/ui/more-dropdown-menu.tsx +67 -0
  271. package/src/modules/search/components/Editor/ui/paragraph-element.tsx +4 -0
  272. package/src/modules/search/components/Editor/ui/placeholder.tsx +52 -0
  273. package/src/modules/search/components/Editor/ui/popover.tsx +32 -0
  274. package/src/modules/search/components/Editor/ui/resizable.tsx +66 -0
  275. package/src/modules/search/components/Editor/ui/separator.tsx +25 -0
  276. package/src/modules/search/components/Editor/ui/style.less +12 -0
  277. package/src/modules/search/components/Editor/ui/table-cell-element.tsx +143 -0
  278. package/src/modules/search/components/Editor/ui/table-element.tsx +243 -0
  279. package/src/modules/search/components/Editor/ui/table-row-element.tsx +22 -0
  280. package/src/modules/search/components/Editor/ui/tableValue.tsx +135 -0
  281. package/src/modules/search/components/Editor/ui/todo-list-element.tsx +43 -0
  282. package/src/modules/search/components/Editor/ui/toggle-element.tsx +31 -0
  283. package/src/modules/search/components/Editor/ui/toolbar.tsx +157 -0
  284. package/src/modules/search/components/Editor/ui/tooltip.tsx +65 -0
  285. package/src/modules/search/components/Editor/ui/turn-into-dropdown-menu.tsx +160 -0
  286. package/src/modules/search/components/Editor/ui/with-draggables.tsx +175 -0
  287. package/src/modules/search/components/FileList.tsx +287 -0
  288. package/src/modules/search/components/ImageGroupView/index.tsx +85 -0
  289. package/src/modules/search/components/ResultContent.tsx +232 -0
  290. package/src/modules/search/components/SearchInput.tsx +232 -0
  291. package/src/modules/search/components/SearchLanding.tsx +74 -0
  292. package/src/modules/search/components/SearchView.tsx +563 -0
  293. package/src/modules/search/components/SimpleEditor.tsx +158 -0
  294. package/src/modules/search/components/SimpleFileList.tsx +215 -0
  295. package/src/modules/search/index.tsx +10 -0
  296. package/src/modules/search/reademe.md +1 -0
  297. package/src/modules/search/servers/apis.tsx +19 -0
  298. package/src/modules/search/servers/index.ts +184 -0
  299. package/src/modules/search/style.less +503 -0
  300. package/src/modules/search/type.ts +22 -0
  301. package/src/modules/search/utils.ts +34 -0
  302. package/src/modules/sensitive/index.tsx +313 -0
  303. package/src/modules/sensitive/server.ts +122 -0
  304. package/src/modules/streamFilesReader/GientechStreamReader.tsx +1624 -0
  305. package/src/modules/streamFilesReader/components/Header/Toolbar.tsx +0 -0
  306. package/src/modules/streamFilesReader/components/Header/index.tsx +297 -0
  307. package/src/modules/streamFilesReader/index.tsx +3 -0
  308. package/src/style.css +6 -0
  309. package/src/type.d.ts +0 -0
  310. package/src/utils/commonFn.tsx +111 -0
  311. package/src/utils/gientechCommon/components/AppError.tsx +32 -0
  312. package/src/utils/gientechCommon/components/AppLoading.tsx +75 -0
  313. package/src/utils/gientechCommon/components/DeleteModal.tsx +75 -0
  314. package/src/utils/gientechCommon/components/DisplayError.tsx +33 -0
  315. package/src/utils/gientechCommon/components/DisplayLoading.tsx +38 -0
  316. package/src/utils/gientechCommon/components/FeedBackModal.tsx +310 -0
  317. package/src/utils/gientechCommon/components/FileCardCommon.tsx +82 -0
  318. package/src/utils/gientechCommon/components/FileManager/index.tsx +390 -0
  319. package/src/utils/gientechCommon/components/FileManager/style.css +5 -0
  320. package/src/utils/gientechCommon/components/Messages/GientechNewChatWelcome.tsx +581 -0
  321. package/src/utils/gientechCommon/components/Messages/ReferenceCard.tsx +339 -0
  322. package/src/utils/gientechCommon/components/Messages/RetriveItem.tsx +245 -0
  323. package/src/utils/gientechCommon/components/Messages/WebRetriveItem.tsx +209 -0
  324. package/src/utils/gientechCommon/components/Messages/defaultBot.png +0 -0
  325. package/src/utils/gientechCommon/components/Messages/defaultStyleSet.tsx +148 -0
  326. package/src/utils/gientechCommon/components/Messages/defaultWeLogo.svg +14 -0
  327. package/src/utils/gientechCommon/components/RenameModal.tsx +86 -0
  328. package/src/utils/gientechCommon/components/style.less +11 -0
  329. package/src/utils/gientechCommon/configs/commonConfig.ts +2 -0
  330. package/src/utils/gientechCommon/configs/senderConfig.ts +0 -0
  331. package/src/utils/gientechCommon/configs/stylesConfig.ts +142 -0
  332. package/src/utils/gientechCommon/hooks/AichatUseController.tsx +417 -0
  333. package/src/utils/gientechCommon/slate/converters/deserializers.ts +763 -0
  334. package/src/utils/gientechCommon/slate/converters/mockData.ts +232 -0
  335. package/src/utils/gientechCommon/slate/converters/slateConverters.ts +258 -0
  336. package/src/utils/gientechCommon/slate/richElements/index.tsx +499 -0
  337. package/src/utils/gientechCommon/utils/request.ts +37 -0
  338. package/src/utils/gientechCommon/utils/serverFn.ts +172 -0
  339. package/src/utils/index.tsx +126 -0
  340. package/src/utils/testconfigs/demologin/index.tsx +32 -0
  341. package/src/utils/testconfigs/index.ts +59 -0
  342. package/src/vite-env.d.ts +11 -0
  343. package/stats.html +4949 -0
  344. package/tailwind.config.js +170 -0
  345. package/tsconfig.app.json +30 -0
  346. package/tsconfig.app.tsbuildinfo +11 -0
  347. package/tsconfig.json +13 -0
  348. package/tsconfig.node.json +22 -0
  349. package/tsconfig.node.tsbuildinfo +1 -0
  350. package/vite.config.ts +227 -0
  351. package/workflows/release.yml +60 -0
  352. package/assets/_commonjsHelpers-gnU0ypJ3.js +0 -1
  353. package/assets/index--DG-fVvc.js +0 -26
  354. package/assets/index-BfureYPx.js +0 -1505
  355. package/assets/index-CXwV5fAx.js +0 -1230
  356. package/assets/style.css +0 -1
  357. package/assets/style3.css +0 -1
  358. package/assets/styled-components.browser.esm-DPkS13KC.js +0 -2
  359. package/chat.js +0 -893
  360. package/database.js +0 -20
  361. package/databaseId.js +0 -21
  362. package/databaseTable.js +0 -6
  363. package/modelManage.js +0 -1
  364. package/sensitive.js +0 -1
  365. package/streamFilesReader.js +0 -442
  366. /package/{assets → dist/assets}/Doris.png +0 -0
  367. /package/{assets → dist/assets}/PostgreSQL.png +0 -0
  368. /package/{assets → dist/assets}/SQLServer.png +0 -0
  369. /package/{assets → dist/assets}/empty.png +0 -0
  370. /package/{assets → dist/assets}/index-CpW6Dhpp.js +0 -0
  371. /package/{assets → dist/assets}/style2.css +0 -0
  372. /package/{database.d.ts → dist/database.d.ts} +0 -0
  373. /package/{databaseId.d.ts → dist/databaseId.d.ts} +0 -0
  374. /package/{databaseTable.d.ts → dist/databaseTable.d.ts} +0 -0
  375. /package/{modelManage.d.ts → dist/modelManage.d.ts} +0 -0
  376. /package/{sensitive.d.ts → dist/sensitive.d.ts} +0 -0
  377. /package/{vite.svg → dist/vite.svg} +0 -0
@@ -0,0 +1,1150 @@
1
+ import{jsxs as se,jsx as k,Fragment as Xn}from"react/jsx-runtime";import*as f from"react";import Ae,{useMemo as Bt,forwardRef as ln,useContext as qn,useImperativeHandle as ro,createElement as nn,useState as Je,useRef as _t,useEffect as bt,useCallback as tt,memo as Jn,Suspense as rl}from"react";import{_ as ot,d as Re,aP as Wt,aQ as al,G as De,E as pe,A as te,ad as kn,aq as nt,a3 as $t,aR as Dt,z as ol,aS as il,J as Ot,x as Oe,aT as ll,aU as ao,y as er,v as rn,aV as sl,aW as cl,aF as Wr,aX as ul,g as Ur,m as xn,f as ye,r as an,af as oo,h as Ut,O as dl,aY as tr,as as nr,aZ as qr,a_ as fl,a$ as io,b0 as ml,b1 as vl,aC as gl,b2 as hl,o as Zr,b3 as pl,b4 as bl,b5 as wn,ag as Cl,a0 as yl,b6 as xl,b7 as wl,b8 as Sl,b9 as kl,ae as Ml,ba as $l,bb as xa,bc as wa,bd as Il,be as Ll,bf as Dl,bg as El,bh as Pl,bi as Al,bj as Hl,ac as Gr,u as Nl,bk as Ol,B as Or,bl as lo,bm as Qr,an as so,Q as co,S as uo,bn as fo,bo as mo,bp as vo,bq as Kr,al as go,e as Tl,j as Rl,br as Fl,L as Vl,M as Sa,bs as zl,W as ae,a6 as Tt,a7 as it,i as Ve,c as sn,F as ke,bt as jl,I as rt,a9 as Ln,ab as Dn,aa as ka,a4 as Ma,a8 as $a,T as Xr,a5 as Bl}from"./chevron-down-DjLtKwcs.js";import{createPortal as ho}from"react-dom";function po(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const s=n[o],c=a[o];if(s&&typeof s=="object")if(c&&typeof c=="object")r[o]=po(s,r[o],c);else{const{_default:l}=s;l&&(r[o]=r[o]||{},r[o][l]=Re(r[o][l],c))}else r[o]=Re(r[o],c)}),r),{})}function _l(e,...t){return f.useMemo(()=>po.apply(void 0,[e].concat(t)),[t,e])}function Yl(...e){return f.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function Tr(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?Tr(o,a):o}}),n}const Wl=(e,t,n)=>{const r=_l.apply(void 0,[n].concat(ot(e))),a=Yl.apply(void 0,ot(t));return f.useMemo(()=>[Tr(r,n),Tr(a,n)],[r,a,n])};var zn={exports:{}},Ul=zn.exports,Ia;function ql(){return Ia||(Ia=1,(function(e,t){(function(n,r){e.exports=r()})(Ul,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",c="minute",l="hour",v="day",u="week",d="month",g="quarter",m="year",h="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,i={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var S=["th","st","nd","rd"],y=I%100;return"["+I+(S[(y-20)%10]||S[y]||S[0])+"]"}},C=function(I,S,y){var P=String(I);return!P||P.length>=S?I:""+Array(S+1-P.length).join(y)+I},b={s:C,z:function(I){var S=-I.utcOffset(),y=Math.abs(S),P=Math.floor(y/60),$=y%60;return(S<=0?"+":"-")+C(P,2,"0")+":"+C($,2,"0")},m:function I(S,y){if(S.date()<y.date())return-I(y,S);var P=12*(y.year()-S.year())+(y.month()-S.month()),$=S.clone().add(P,d),O=y-$<0,R=S.clone().add(P+(O?-1:1),d);return+(-(P+(y-$)/(O?$-R:R-$))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:m,w:u,d:v,D:h,h:l,m:c,s,ms:o,Q:g}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},M="en",E={};E[M]=i;var T="$isDayjsObject",z=function(I){return I instanceof G||!(!I||!I[T])},_=function I(S,y,P){var $;if(!S)return M;if(typeof S=="string"){var O=S.toLowerCase();E[O]&&($=O),y&&(E[O]=y,$=O);var R=S.split("-");if(!$&&R.length>1)return I(R[0])}else{var F=S.name;E[F]=S,$=F}return!P&&$&&(M=$),$||!P&&M},D=function(I,S){if(z(I))return I.clone();var y=typeof S=="object"?S:{};return y.date=I,y.args=arguments,new G(y)},H=b;H.l=_,H.i=z,H.w=function(I,S){return D(I,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var G=(function(){function I(y){this.$L=_(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[T]=!0}var S=I.prototype;return S.parse=function(y){this.$d=(function(P){var $=P.date,O=P.utc;if($===null)return new Date(NaN);if(H.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var R=$.match(w);if(R){var F=R[2]-1||0,V=(R[7]||"0").substring(0,3);return O?new Date(Date.UTC(R[1],F,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)):new Date(R[1],F,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)}}return new Date($)})(y),this.init()},S.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},S.$utils=function(){return H},S.isValid=function(){return this.$d.toString()!==x},S.isSame=function(y,P){var $=D(y);return this.startOf(P)<=$&&$<=this.endOf(P)},S.isAfter=function(y,P){return D(y)<this.startOf(P)},S.isBefore=function(y,P){return this.endOf(P)<D(y)},S.$g=function(y,P,$){return H.u(y)?this[P]:this.set($,y)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(y,P){var $=this,O=!!H.u(P)||P,R=H.p(y),F=function(p,Y){var q=H.w($.$u?Date.UTC($.$y,Y,p):new Date($.$y,Y,p),$);return O?q:q.endOf(v)},V=function(p,Y){return H.w($.toDate()[p].apply($.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Y)),$)},B=this.$W,U=this.$M,K=this.$D,N="set"+(this.$u?"UTC":"");switch(R){case m:return O?F(1,0):F(31,11);case d:return O?F(1,U):F(0,U+1);case u:var A=this.$locale().weekStart||0,j=(B<A?B+7:B)-A;return F(O?K-j:K+(6-j),U);case v:case h:return V(N+"Hours",0);case l:return V(N+"Minutes",1);case c:return V(N+"Seconds",2);case s:return V(N+"Milliseconds",3);default:return this.clone()}},S.endOf=function(y){return this.startOf(y,!1)},S.$set=function(y,P){var $,O=H.p(y),R="set"+(this.$u?"UTC":""),F=($={},$[v]=R+"Date",$[h]=R+"Date",$[d]=R+"Month",$[m]=R+"FullYear",$[l]=R+"Hours",$[c]=R+"Minutes",$[s]=R+"Seconds",$[o]=R+"Milliseconds",$)[O],V=O===v?this.$D+(P-this.$W):P;if(O===d||O===m){var B=this.clone().set(h,1);B.$d[F](V),B.init(),this.$d=B.set(h,Math.min(this.$D,B.daysInMonth())).$d}else F&&this.$d[F](V);return this.init(),this},S.set=function(y,P){return this.clone().$set(y,P)},S.get=function(y){return this[H.p(y)]()},S.add=function(y,P){var $,O=this;y=Number(y);var R=H.p(P),F=function(U){var K=D(O);return H.w(K.date(K.date()+Math.round(U*y)),O)};if(R===d)return this.set(d,this.$M+y);if(R===m)return this.set(m,this.$y+y);if(R===v)return F(1);if(R===u)return F(7);var V=($={},$[c]=r,$[l]=a,$[s]=n,$)[R]||1,B=this.$d.getTime()+y*V;return H.w(B,this)},S.subtract=function(y,P){return this.add(-1*y,P)},S.format=function(y){var P=this,$=this.$locale();if(!this.isValid())return $.invalidDate||x;var O=y||"YYYY-MM-DDTHH:mm:ssZ",R=H.z(this),F=this.$H,V=this.$m,B=this.$M,U=$.weekdays,K=$.months,N=$.meridiem,A=function(Y,q,Z,Q){return Y&&(Y[q]||Y(P,O))||Z[q].slice(0,Q)},j=function(Y){return H.s(F%12||12,Y,"0")},p=N||function(Y,q,Z){var Q=Y<12?"AM":"PM";return Z?Q.toLowerCase():Q};return O.replace(L,(function(Y,q){return q||(function(Z){switch(Z){case"YY":return String(P.$y).slice(-2);case"YYYY":return H.s(P.$y,4,"0");case"M":return B+1;case"MM":return H.s(B+1,2,"0");case"MMM":return A($.monthsShort,B,K,3);case"MMMM":return A(K,B);case"D":return P.$D;case"DD":return H.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return A($.weekdaysMin,P.$W,U,2);case"ddd":return A($.weekdaysShort,P.$W,U,3);case"dddd":return U[P.$W];case"H":return String(F);case"HH":return H.s(F,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return p(F,V,!0);case"A":return p(F,V,!1);case"m":return String(V);case"mm":return H.s(V,2,"0");case"s":return String(P.$s);case"ss":return H.s(P.$s,2,"0");case"SSS":return H.s(P.$ms,3,"0");case"Z":return R}return null})(Y)||R.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(y,P,$){var O,R=this,F=H.p(P),V=D(y),B=(V.utcOffset()-this.utcOffset())*r,U=this-V,K=function(){return H.m(R,V)};switch(F){case m:O=K()/12;break;case d:O=K();break;case g:O=K()/3;break;case u:O=(U-B)/6048e5;break;case v:O=(U-B)/864e5;break;case l:O=U/a;break;case c:O=U/r;break;case s:O=U/n;break;default:O=U}return $?O:H.a(O)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return E[this.$L]},S.locale=function(y,P){if(!y)return this.$L;var $=this.clone(),O=_(y,P,!0);return O&&($.$L=O),$},S.clone=function(){return H.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},I})(),W=G.prototype;return D.prototype=W,[["$ms",o],["$s",s],["$m",c],["$H",l],["$W",v],["$M",d],["$y",m],["$D",h]].forEach((function(I){W[I[1]]=function(S){return this.$g(S,I[0],I[1])}})),D.extend=function(I,S){return I.$i||(I(S,G,D),I.$i=!0),D},D.locale=_,D.isDayjs=z,D.unix=function(I){return D(1e3*I)},D.en=E[M],D.Ls=E,D.p={},D}))})(zn)),zn.exports}var Zl=ql();const ft=Wt(Zl);var jn={exports:{}},Gl=jn.exports,La;function Ql(){return La||(La=1,(function(e,t){(function(n,r){e.exports=r()})(Gl,(function(){return function(n,r){r.prototype.weekday=function(a){var o=this.$locale().weekStart||0,s=this.$W,c=(s<o?s+7:s)-o;return this.$utils().u(a)?c:this.subtract(c,"day").add(a,"day")}}}))})(jn)),jn.exports}var Kl=Ql();const Xl=Wt(Kl);var Bn={exports:{}},Jl=Bn.exports,Da;function e0(){return Da||(Da=1,(function(e,t){(function(n,r){e.exports=r()})(Jl,(function(){return function(n,r,a){var o=r.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},c=function(d,g,m,h,x){var w=d.name?d:d.$locale(),L=s(w[g]),i=s(w[m]),C=L||i.map((function(M){return M.slice(0,h)}));if(!x)return C;var b=w.weekStart;return C.map((function(M,E){return C[(E+(b||0))%7]}))},l=function(){return a.Ls[a.locale()]},v=function(d,g){return d.formats[g]||(function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,x,w){return x||w.slice(1)}))})(d.formats[g.toUpperCase()])},u=function(){var d=this;return{months:function(g){return g?g.format("MMMM"):c(d,"months")},monthsShort:function(g){return g?g.format("MMM"):c(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):c(d,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):c(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):c(d,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return v(d.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},a.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(g){return v(d,g)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return c(l(),"months")},a.monthsShort=function(){return c(l(),"monthsShort","months",3)},a.weekdays=function(d){return c(l(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return c(l(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return c(l(),"weekdaysMin","weekdays",2,d)}}}))})(Bn)),Bn.exports}var t0=e0();const n0=Wt(t0);var _n={exports:{}},r0=_n.exports,Ea;function a0(){return Ea||(Ea=1,(function(e,t){(function(n,r){e.exports=r()})(r0,(function(){var n="week",r="year";return function(a,o,s){var c=o.prototype;c.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var v=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(v),d=s(this).endOf(n);if(u.isBefore(d))return 1}var g=s(this).startOf(r).date(v).startOf(n).subtract(1,"millisecond"),m=this.diff(g,n,!0);return m<0?s(this).startOf("week").week():Math.ceil(m)},c.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(_n)),_n.exports}var o0=a0();const i0=Wt(o0);var Yn={exports:{}},l0=Yn.exports,Pa;function s0(){return Pa||(Pa=1,(function(e,t){(function(n,r){e.exports=r()})(l0,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),s=this.year();return o===1&&a===11?s+1:a===0&&o>=52?s-1:s}}}))})(Yn)),Yn.exports}var c0=s0();const u0=Wt(c0);var Wn={exports:{}},d0=Wn.exports,Aa;function f0(){return Aa||(Aa=1,(function(e,t){(function(n,r){e.exports=r()})(d0,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(s){var c=this,l=this.$locale();if(!this.isValid())return o.bind(this)(s);var v=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return l.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return l.ordinal(c.week(),"W");case"w":case"ww":return v.s(c.week(),d==="w"?1:2,"0");case"W":case"WW":return v.s(c.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return v.s(String(c.$H===0?24:c.$H),d==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return d}}));return o.bind(this)(u)}}}))})(Wn)),Wn.exports}var m0=f0();const v0=Wt(m0);var Un={exports:{}},g0=Un.exports,Ha;function h0(){return Ha||(Ha=1,(function(e,t){(function(n,r){e.exports=r()})(g0,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,l={},v=function(w){return(w=+w)+(w>68?1900:2e3)},u=function(w){return function(L){this[w]=+L}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(L){if(!L||L==="Z")return 0;var i=L.match(/([+-]|\d\d)/g),C=60*i[1]+(+i[2]||0);return C===0?0:i[0]==="+"?-C:C})(w)}],g=function(w){var L=l[w];return L&&(L.indexOf?L:L.s.concat(L.f))},m=function(w,L){var i,C=l.meridiem;if(C){for(var b=1;b<=24;b+=1)if(w.indexOf(C(b,0,L))>-1){i=b>12;break}}else i=w===(L?"pm":"PM");return i},h={A:[c,function(w){this.afternoon=m(w,!1)}],a:[c,function(w){this.afternoon=m(w,!0)}],Q:[a,function(w){this.month=3*(w-1)+1}],S:[a,function(w){this.milliseconds=100*+w}],SS:[o,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[o,u("day")],Do:[c,function(w){var L=l.ordinal,i=w.match(/\d+/);if(this.day=i[0],L)for(var C=1;C<=31;C+=1)L(C).replace(/\[|\]/g,"")===w&&(this.day=C)}],w:[s,u("week")],ww:[o,u("week")],M:[s,u("month")],MM:[o,u("month")],MMM:[c,function(w){var L=g("months"),i=(g("monthsShort")||L.map((function(C){return C.slice(0,3)}))).indexOf(w)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[c,function(w){var L=g("months").indexOf(w)+1;if(L<1)throw new Error;this.month=L%12||L}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(w){this.year=v(w)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function x(w){var L,i;L=w,i=l&&l.formats;for(var C=(w=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(D,H,G){var W=G&&G.toUpperCase();return H||i[G]||n[G]||i[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(I,S,y){return S||y.slice(1)}))}))).match(r),b=C.length,M=0;M<b;M+=1){var E=C[M],T=h[E],z=T&&T[0],_=T&&T[1];C[M]=_?{regex:z,parser:_}:E.replace(/^\[|\]$/g,"")}return function(D){for(var H={},G=0,W=0;G<b;G+=1){var I=C[G];if(typeof I=="string")W+=I.length;else{var S=I.regex,y=I.parser,P=D.slice(W),$=S.exec(P)[0];y.call(H,$),D=D.replace($,"")}}return(function(O){var R=O.afternoon;if(R!==void 0){var F=O.hours;R?F<12&&(O.hours+=12):F===12&&(O.hours=0),delete O.afternoon}})(H),H}}return function(w,L,i){i.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(v=w.parseTwoDigitYear);var C=L.prototype,b=C.parse;C.parse=function(M){var E=M.date,T=M.utc,z=M.args;this.$u=T;var _=z[1];if(typeof _=="string"){var D=z[2]===!0,H=z[3]===!0,G=D||H,W=z[2];H&&(W=z[2]),l=this.$locale(),!D&&W&&(l=i.Ls[W]),this.$d=(function(P,$,O,R){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*P);var F=x($)(P),V=F.year,B=F.month,U=F.day,K=F.hours,N=F.minutes,A=F.seconds,j=F.milliseconds,p=F.zone,Y=F.week,q=new Date,Z=U||(V||B?1:q.getDate()),Q=V||q.getFullYear(),oe=0;V&&!B||(oe=B>0?B-1:q.getMonth());var ge,le=K||0,we=N||0,ue=A||0,He=j||0;return p?new Date(Date.UTC(Q,oe,Z,le,we,ue,He+60*p.offset*1e3)):O?new Date(Date.UTC(Q,oe,Z,le,we,ue,He)):(ge=new Date(Q,oe,Z,le,we,ue,He),Y&&(ge=R(ge).week(Y).toDate()),ge)}catch{return new Date("")}})(E,_,T,i),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),G&&E!=this.format(_)&&(this.$d=new Date("")),l={}}else if(_ instanceof Array)for(var I=_.length,S=1;S<=I;S+=1){z[1]=_[S-1];var y=i.apply(this,z);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}S===I&&(this.$d=new Date(""))}else b.call(this,M)}}}))})(Un)),Un.exports}var p0=h0();const b0=Wt(p0);ft.extend(b0);ft.extend(v0);ft.extend(Xl);ft.extend(n0);ft.extend(i0);ft.extend(u0);ft.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var s=(o||"").replace("Wo","wo");return r.bind(this)(s)}});var C0={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},jt=function(t){var n=C0[t];return n||t.split("_")[0]},y0={getNow:function(){var t=ft();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ft(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ft().locale(jt(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(jt(t)).weekday(0)},getWeek:function(t,n){return n.locale(jt(t)).week()},getShortWeekDays:function(t){return ft().locale(jt(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ft().locale(jt(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(jt(t)).format(r)},parse:function(t,n,r){for(var a=jt(t),o=0;o<r.length;o+=1){var s=r[o],c=n;if(s.includes("wo")||s.includes("Wo")){for(var l=c.split("-")[0],v=c.split("-")[1],u=ft(l,"YYYY").startOf("year").locale(a),d=0;d<=52;d+=1){var g=u.add(d,"week");if(g.format("Wo")===v)return g}return null}var m=ft(c,s,!0).locale(a);if(m.isValid())return m}return null}}};function x0(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Ct=f.createContext(null),w0={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function bo(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,o=e.transitionName,s=e.getPopupContainer,c=e.children,l=e.range,v=e.placement,u=e.builtinPlacements,d=u===void 0?w0:u,g=e.direction,m=e.visible,h=e.onClose,x=f.useContext(Ct),w=x.prefixCls,L="".concat(w,"-dropdown"),i=x0(v,g==="rtl");return f.createElement(al,{showAction:[],hideAction:["click"],popupPlacement:i,builtinPlacements:d,prefixCls:L,popupTransitionName:o,popup:t,popupAlign:a,popupVisible:m,popupClassName:Re(r,De(De({},"".concat(L,"-range"),l),"".concat(L,"-rtl"),g==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(b){b||h()}},c)}function Jr(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function qt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Cn(e,t,n){var r=ot(e);return r[t]=n,r}function rr(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function Co(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function yo(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(o){return e[o]});return r!==a?e[a]:void 0}function xo(e){return rr(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ea(e,t,n,r){var a=f.useMemo(function(){return e||function(s,c){var l=s;return t&&c.type==="date"?t(l,c.today):n&&c.type==="month"?n(l,c.locale):c.originNode}},[e,n,t]),o=f.useCallback(function(s,c){return a(s,pe(pe({},c),{},{range:r}))},[a,r]);return o}function wo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=f.useState([!1,!1]),a=te(r,2),o=a[0],s=a[1],c=function(u,d){s(function(g){return Cn(g,d,u)})},l=f.useMemo(function(){return o.map(function(v,u){if(v)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,o,t,n]);return[l,c]}function So(e,t,n,r,a){var o="",s=[];return e&&s.push(a?"hh":"HH"),t&&s.push("mm"),n&&s.push("ss"),o=s.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function S0(e,t,n,r,a,o){var s=e.fieldDateTimeFormat,c=e.fieldDateFormat,l=e.fieldTimeFormat,v=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,g=e.fieldQuarterFormat,m=e.yearFormat,h=e.cellYearFormat,x=e.cellQuarterFormat,w=e.dayFormat,L=e.cellDateFormat,i=So(t,n,r,a,o);return pe(pe({},e),{},{fieldDateTimeFormat:s||"YYYY-MM-DD ".concat(i),fieldDateFormat:c||"YYYY-MM-DD",fieldTimeFormat:l||i,fieldMonthFormat:v||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:x||"[Q]Q",cellDateFormat:L||w||"D"})}function ko(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,s=t.use12Hours;return Ae.useMemo(function(){return S0(e,n,r,a,o,s)},[e,n,r,a,o,s])}function gn(e,t,n){return n??t.some(function(r){return e.includes(r)})}var k0=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function M0(e){var t=rr(e,k0),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=kn(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function $0(e){return e&&typeof e=="string"}function Mo(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function $o(e,t,n,r,a){var o=t,s=n,c=r;if(!e&&!o&&!s&&!c&&!a)o=!0,s=!0,c=!0;else if(e){var l,v,u,d=[o,s,c].some(function(h){return h===!1}),g=[o,s,c].some(function(h){return h===!0}),m=d?!0:!g;o=(l=o)!==null&&l!==void 0?l:m,s=(v=s)!==null&&v!==void 0?v:m,c=(u=c)!==null&&u!==void 0?u:m}return[o,s,c,a]}function Io(e){var t=e.showTime,n=M0(e),r=te(n,2),a=r[0],o=r[1],s=t&&kn(t)==="object"?t:{},c=pe(pe({defaultOpenValue:s.defaultOpenValue||s.defaultValue},a),s),l=c.showMillisecond,v=c.showHour,u=c.showMinute,d=c.showSecond,g=Mo(v,u,d,l),m=$o(g,v,u,d,l),h=te(m,3);return v=h[0],u=h[1],d=h[2],[c,pe(pe({},c),{},{showHour:v,showMinute:u,showSecond:d,showMillisecond:l}),c.format,o]}function Lo(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var s=r,c=Co(e,a,null),l=c,v=[t,n],u=0;u<v.length;u+=1){var d=qt(v[u])[0];if($0(d)){l=d;break}}var g=s.showHour,m=s.showMinute,h=s.showSecond,x=s.showMillisecond,w=s.use12Hours,L=gn(l,["a","A","LT","LLL","LTS"],w),i=Mo(g,m,h,x);i||(g=gn(l,["H","h","k","LT","LLL"]),m=gn(l,["m","LT","LLL"]),h=gn(l,["s","LTS"]),x=gn(l,["SSS"]));var C=$o(i,g,m,h,x),b=te(C,3);g=b[0],m=b[1],h=b[2];var M=t||So(g,m,h,x,L);return pe(pe({},s),{},{format:M,showHour:g,showMinute:m,showSecond:h,showMillisecond:x,use12Hours:L})}return null}function I0(e,t,n){if(t===!1)return null;var r=t&&kn(t)==="object"?t:{};return r.clearIcon||n||f.createElement("span",{className:"".concat(e,"-clear-btn")})}var Lr=7;function Rt(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Rr(e,t,n){return Rt(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function Yt(e,t,n){return Rt(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Na(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function L0(e,t,n){return Rt(t,n,function(){return Yt(e,t,n)&&Na(e,t)===Na(e,n)})}function ta(e,t,n){return Rt(t,n,function(){return Yt(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function na(e,t,n){return Rt(t,n,function(){return Yt(e,t,n)&&ta(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Do(e,t,n){return Rt(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Eo(e,t,n){return Rt(t,n,function(){return na(e,t,n)&&Do(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function pn(e,t,n,r){return Rt(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return Yt(e,a,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function at(e,t,n,r,a){switch(a){case"date":return na(e,n,r);case"week":return pn(e,t.locale,n,r);case"month":return ta(e,n,r);case"quarter":return L0(e,n,r);case"year":return Yt(e,n,r);case"decade":return Rr(e,n,r);case"time":return Do(e,n,r);default:return Eo(e,n,r)}}function ar(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function En(e,t,n,r,a){return at(e,t,n,r,a)?!0:e.isAfter(n,r)}function D0(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),o=t.getWeekDay(a),s=t.addDate(a,r-o);return t.getMonth(s)===t.getMonth(n)&&t.getDate(s)>1&&(s=t.addDate(s,-7)),s}function Qe(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Zn(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(s,c){n?r=e[s](r,e[a[c]](n)):r=e[s](r,0)}),r}function E0(e,t,n,r,a){var o=nt(function(s,c){return!!(n&&n(s,c)||r&&e.isAfter(r,s)&&!at(e,t,r,s,c.type)||a&&e.isAfter(s,a)&&!at(e,t,a,s,c.type))});return o}function P0(e,t,n){return f.useMemo(function(){var r=Co(e,t,n),a=qt(r),o=a[0],s=kn(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(c){return typeof c=="string"||typeof c=="function"?c:c.format}),s]},[e,t,n])}function A0(e,t,n){return typeof e[0]=="function"||n?!0:t}function H0(e,t,n,r){var a=nt(function(o,s){var c=pe({type:t},s);if(delete c.activeIndex,!e.isValidate(o)||n&&n(o,c))return!0;if((t==="date"||t==="time")&&r){var l,v=s&&s.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,o,v,{from:c.from}))||{},d=u.disabledHours,g=u.disabledMinutes,m=u.disabledSeconds,h=u.disabledMilliseconds,x=r.disabledHours,w=r.disabledMinutes,L=r.disabledSeconds,i=d||x,C=g||w,b=m||L,M=e.getHour(o),E=e.getMinute(o),T=e.getSecond(o),z=e.getMillisecond(o);if(i&&i().includes(M)||C&&C(M).includes(E)||b&&b(M,E).includes(T)||h&&h(M,E,T).includes(z))return!0}return!1});return a}function Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=f.useMemo(function(){var r=e&&qt(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Po(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,s=e.prefixCls,c=s===void 0?"rc-picker":s,l=e.styles,v=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,g=e.order,m=g===void 0?!0:g,h=e.components,x=h===void 0?{}:h,w=e.inputRender,L=e.allowClear,i=e.clearIcon,C=e.needConfirm,b=e.multiple,M=e.format,E=e.inputReadOnly,T=e.disabledDate,z=e.minDate,_=e.maxDate,D=e.showTime,H=e.value,G=e.defaultValue,W=e.pickerValue,I=e.defaultPickerValue,S=Pn(H),y=Pn(G),P=Pn(W),$=Pn(I),O=o==="date"&&D?"datetime":o,R=O==="time"||O==="datetime",F=R||b,V=C??R,B=Io(e),U=te(B,4),K=U[0],N=U[1],A=U[2],j=U[3],p=ko(r,N),Y=f.useMemo(function(){return Lo(O,A,j,K,p)},[O,A,j,K,p]),q=f.useMemo(function(){return pe(pe({},e),{},{prefixCls:c,locale:p,picker:o,styles:v,classNames:d,order:m,components:pe({input:w},x),clearIcon:I0(c,L,i),showTime:Y,value:S,defaultValue:y,pickerValue:P,defaultPickerValue:$},t==null?void 0:t())},[e]),Z=P0(O,p,M),Q=te(Z,2),oe=Q[0],ge=Q[1],le=A0(oe,E,b),we=E0(n,r,T,z,_),ue=H0(n,o,we,Y),He=f.useMemo(function(){return pe(pe({},q),{},{needConfirm:V,inputReadOnly:le,disabledDate:we})},[q,V,le,we]);return[He,O,F,oe,ge,ue]}function N0(e,t,n){var r=$t(t,{value:e}),a=te(r,2),o=a[0],s=a[1],c=Ae.useRef(e),l=Ae.useRef(),v=function(){Dt.cancel(l.current)},u=nt(function(){s(c.current),n&&o!==c.current&&n(c.current)}),d=nt(function(g,m){v(),c.current=g,g||m?u():l.current=Dt(u)});return Ae.useEffect(function(){return v},[]),[o,d]}function Ao(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(u){return u})?!1:e,o=N0(a,t||!1,r),s=te(o,2),c=s[0],l=s[1];function v(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||c)&&l(u,d.force)}return[c,v]}function Ho(e){var t=f.useRef();return f.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function No(e,t){return f.useMemo(function(){return e||(t?(ol(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=te(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function ra(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=f.useRef(t);r.current=t,il(function(){if(e)r.current(e);else{var a=Dt(function(){r.current(e)},n);return function(){Dt.cancel(a)}}},[e])}function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=f.useState(0),a=te(r,2),o=a[0],s=a[1],c=f.useState(!1),l=te(c,2),v=l[0],u=l[1],d=f.useRef([]),g=f.useRef(null),m=f.useRef(null),h=function(b){g.current=b},x=function(b){return g.current===b},w=function(b){u(b)},L=function(b){return b&&(m.current=b),m.current},i=function(b){var M=d.current,E=new Set(M.filter(function(z){return b[z]||t[z]})),T=M[M.length-1]===0?1:0;return E.size>=2||e[T]?null:T};return ra(v||n,function(){v||(d.current=[],h(null))}),f.useEffect(function(){v&&d.current.push(o)},[v,o]),[v,w,L,o,s,i,d.current,h,x]}function O0(e,t,n,r,a,o){var s=n[n.length-1],c=function(v,u){var d=te(e,2),g=d[0],m=d[1],h=pe(pe({},u),{},{from:yo(e,n)});return s===1&&t[0]&&g&&!at(r,a,g,v,h.type)&&r.isAfter(g,v)||s===0&&t[1]&&m&&!at(r,a,m,v,h.type)&&r.isAfter(v,m)?!0:o==null?void 0:o(v,h)};return c}function bn(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Dr=[];function To(e,t,n,r,a,o,s,c){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Dr,v=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Dr,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Dr,d=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,h=s==="time",x=o||0,w=function(P){var $=e.getNow();return h&&($=Zn(e,$)),l[P]||n[P]||$},L=te(v,2),i=L[0],C=L[1],b=$t(function(){return w(0)},{value:i}),M=te(b,2),E=M[0],T=M[1],z=$t(function(){return w(1)},{value:C}),_=te(z,2),D=_[0],H=_[1],G=f.useMemo(function(){var y=[E,D][x];return h?y:Zn(e,y,u[x])},[h,E,D,x,e,u]),W=function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",O=[T,H][x];O(P);var R=[E,D];R[x]=P,d&&(!at(e,t,E,R[0],s)||!at(e,t,D,R[1],s))&&d(R,{source:$,range:x===1?"end":"start",mode:r})},I=function(P,$){if(c){var O={date:"month",week:"month",month:"year",quarter:"year"},R=O[s];if(R&&!at(e,t,P,$,R))return bn(e,s,$,-1);if(s==="year"&&P){var F=Math.floor(e.getYear(P)/10),V=Math.floor(e.getYear($)/10);if(F!==V)return bn(e,s,$,-1)}}return $},S=f.useRef(null);return Ot(function(){if(a&&!l[x]){var y=h?null:e.getNow();if(S.current!==null&&S.current!==x?y=[E,D][x^1]:n[x]?y=x===0?n[0]:I(n[0],n[1]):n[x^1]&&(y=n[x^1]),y){g&&e.isAfter(g,y)&&(y=g);var P=c?bn(e,s,y,1):y;m&&e.isAfter(P,m)&&(y=c?bn(e,s,m,-1):m),W(y,"reset")}}},[a,x,n[x]]),f.useEffect(function(){a?S.current=x:S.current=null},[a,x]),Ot(function(){a&&l&&l[x]&&W(l[x],"reset")},[a,x]),[G,W]}function Ro(e,t){var n=f.useRef(e),r=f.useState({}),a=te(r,2),o=a[1],s=function(v){return v&&t!==void 0?t:n.current},c=function(v){n.current=v,o({})};return[s,c,s(!0)]}var T0=[];function Fo(e,t,n){var r=function(s){return s.map(function(c){return Qe(c,{generateConfig:e,locale:t,format:n[0]})})},a=function(s,c){for(var l=Math.max(s.length,c.length),v=-1,u=0;u<l;u+=1){var d=s[u]||null,g=c[u]||null;if(d!==g&&!Eo(e,d,g)){v=u;break}}return[v<0,v!==0]};return[r,a]}function Vo(e,t){return ot(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function R0(e){var t=Ro(e),n=te(t,2),r=n[0],a=n[1],o=nt(function(){a(e)});return f.useEffect(function(){o()},[e]),[r,a]}function zo(e,t,n,r,a,o,s,c,l){var v=$t(o,{value:s}),u=te(v,2),d=u[0],g=u[1],m=d||T0,h=R0(m),x=te(h,2),w=x[0],L=x[1],i=Fo(e,t,n),C=te(i,2),b=C[0],M=C[1],E=nt(function(z){var _=ot(z);if(r)for(var D=0;D<2;D+=1)_[D]=_[D]||null;else a&&(_=Vo(_.filter(function(y){return y}),e));var H=M(w(),_),G=te(H,2),W=G[0],I=G[1];if(!W&&(L(_),c)){var S=b(_);c(_,S,{range:I?"end":"start"})}}),T=function(){l&&l(w())};return[m,g,w,E,T]}function jo(e,t,n,r,a,o,s,c,l,v){var u=e.generateConfig,d=e.locale,g=e.picker,m=e.onChange,h=e.allowEmpty,x=e.order,w=o.some(function(W){return W})?!1:x,L=Fo(u,d,s),i=te(L,2),C=i[0],b=i[1],M=Ro(t),E=te(M,2),T=E[0],z=E[1],_=nt(function(){z(t)});f.useEffect(function(){_()},[t]);var D=nt(function(W){var I=W===null,S=ot(W||T());if(I)for(var y=Math.max(o.length,S.length),P=0;P<y;P+=1)o[P]||(S[P]=null);w&&S[0]&&S[1]&&(S=Vo(S,u)),a(S);var $=S,O=te($,2),R=O[0],F=O[1],V=!R,B=!F,U=h?(!V||h[0])&&(!B||h[1]):!0,K=!x||V||B||at(u,d,R,F,g)||u.isAfter(F,R),N=(o[0]||!R||!v(R,{activeIndex:0}))&&(o[1]||!F||!v(F,{from:R,activeIndex:1})),A=I||U&&K&&N;if(A){n(S);var j=b(S,t),p=te(j,1),Y=p[0];m&&!Y&&m(I&&S.every(function(q){return!q})?null:S,C(S))}return A}),H=nt(function(W,I){var S=Cn(T(),W,r()[W]);z(S),I&&D()}),G=!c&&!l;return ra(!G,function(){G&&(D(),a(t),_())},2),[H,D]}function Bo(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function F0(e,t,n,r,a,o){var s=e;function c(d,g,m){var h=o[d](s),x=m.find(function(C){return C.value===h});if(!x||x.disabled){var w=m.filter(function(C){return!C.disabled}),L=ot(w).reverse(),i=L.find(function(C){return C.value<=h})||w[0];i&&(h=i.value,s=o[g](s,h))}return h}var l=c("getHour","setHour",t()),v=c("getMinute","setMinute",n(l)),u=c("getSecond","setSecond",r(l,v));return c("getMillisecond","setMillisecond",a(l,v,u)),s}function An(){return[]}function Hn(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,s=[],c=n>=1?n|0:1,l=e;l<=t;l+=c){var v=a.includes(l);(!v||!r)&&s.push({label:Jr(l,o),value:l,disabled:v})}return s}function aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,s=o===void 0?1:o,c=r.minuteStep,l=c===void 0?1:c,v=r.secondStep,u=v===void 0?1:v,d=r.millisecondStep,g=d===void 0?100:d,m=r.hideDisabledOptions,h=r.disabledTime,x=r.disabledHours,w=r.disabledMinutes,L=r.disabledSeconds,i=f.useMemo(function(){return n||e.getNow()},[n,e]),C=f.useCallback(function($){var O=(h==null?void 0:h($))||{};return[O.disabledHours||x||An,O.disabledMinutes||w||An,O.disabledSeconds||L||An,O.disabledMilliseconds||An]},[h,x,w,L]),b=f.useMemo(function(){return C(i)},[i,C]),M=te(b,4),E=M[0],T=M[1],z=M[2],_=M[3],D=f.useCallback(function($,O,R,F){var V=Hn(0,23,s,m,$()),B=a?V.map(function(A){return pe(pe({},A),{},{label:Jr(A.value%12||12,2)})}):V,U=function(j){return Hn(0,59,l,m,O(j))},K=function(j,p){return Hn(0,59,u,m,R(j,p))},N=function(j,p,Y){return Hn(0,999,g,m,F(j,p,Y),3)};return[B,U,K,N]},[m,s,a,g,l,u]),H=f.useMemo(function(){return D(E,T,z,_)},[D,E,T,z,_]),G=te(H,4),W=G[0],I=G[1],S=G[2],y=G[3],P=function(O,R){var F=function(){return W},V=I,B=S,U=y;if(R){var K=C(R),N=te(K,4),A=N[0],j=N[1],p=N[2],Y=N[3],q=D(A,j,p,Y),Z=te(q,4),Q=Z[0],oe=Z[1],ge=Z[2],le=Z[3];F=function(){return Q},V=oe,B=ge,U=le}var we=F0(O,F,V,B,U,e);return we};return[P,W,I,S,y]}function V0(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,s=e.onSubmit,c=e.onNow,l=e.invalid,v=e.needConfirm,u=e.generateConfig,d=e.disabledDate,g=f.useContext(Ct),m=g.prefixCls,h=g.locale,x=g.button,w=x===void 0?"button":x,L=u.getNow(),i=aa(u,o,L),C=te(i,1),b=C[0],M=r==null?void 0:r(t),E=d(L,{type:t}),T=function(){if(!E){var I=b(L);c(I)}},z="".concat(m,"-now"),_="".concat(z,"-btn"),D=a&&f.createElement("li",{className:z},f.createElement("a",{className:Re(_,E&&"".concat(_,"-disabled")),"aria-disabled":E,onClick:T},n==="date"?h.today:h.now)),H=v&&f.createElement("li",{className:"".concat(m,"-ok")},f.createElement(w,{disabled:l,onClick:s},h.ok)),G=(D||H)&&f.createElement("ul",{className:"".concat(m,"-ranges")},D,H);return!M&&!G?null:f.createElement("div",{className:"".concat(m,"-footer")},M&&f.createElement("div",{className:"".concat(m,"-footer-extra")},M),G)}function _o(e,t,n){function r(a,o){var s=a.findIndex(function(l){return at(e,t,l,o,n)});if(s===-1)return[].concat(ot(a),[o]);var c=ot(a);return c.splice(s,1),c}return r}var Zt=f.createContext(null);function or(){return f.useContext(Zt)}function cn(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,s=e.minDate,c=e.maxDate,l=e.cellRender,v=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,g=e.values,m=e.pickerValue,h=e.onSelect,x=e.prevIcon,w=e.nextIcon,L=e.superPrevIcon,i=e.superNextIcon,C=r.getNow(),b={now:C,values:g,pickerValue:m,prefixCls:n,disabledDate:o,minDate:s,maxDate:c,cellRender:l,hoverValue:v,hoverRangeValue:u,onHover:d,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:x,nextIcon:w,superPrevIcon:L,superNextIcon:i};return[b,C]}var Nt=f.createContext({});function Mn(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,s=e.rowClassName,c=e.titleFormat,l=e.getCellText,v=e.getCellClassName,u=e.headerCells,d=e.cellSelection,g=d===void 0?!0:d,m=e.disabledDate,h=or(),x=h.prefixCls,w=h.panelType,L=h.now,i=h.disabledDate,C=h.cellRender,b=h.onHover,M=h.hoverValue,E=h.hoverRangeValue,T=h.generateConfig,z=h.values,_=h.locale,D=h.onSelect,H=m||i,G="".concat(x,"-cell"),W=f.useContext(Nt),I=W.onCellDblClick,S=function(B){return z.some(function(U){return U&&at(T,_,B,U,w)})},y=[],P=0;P<t;P+=1){for(var $=[],O=void 0,R=function(){var B=P*n+F,U=a(r,B),K=H==null?void 0:H(U,{type:w});F===0&&(O=U,o&&$.push(o(O)));var N=!1,A=!1,j=!1;if(g&&E){var p=te(E,2),Y=p[0],q=p[1];N=ar(T,Y,q,U),A=at(T,_,U,Y,w),j=at(T,_,U,q,w)}var Z=c?Qe(U,{locale:_,format:c,generateConfig:T}):void 0,Q=f.createElement("div",{className:"".concat(G,"-inner")},l(U));$.push(f.createElement("td",{key:F,title:Z,className:Re(G,pe(De(De(De(De(De(De({},"".concat(G,"-disabled"),K),"".concat(G,"-hover"),(M||[]).some(function(oe){return at(T,_,U,oe,w)})),"".concat(G,"-in-range"),N&&!A&&!j),"".concat(G,"-range-start"),A),"".concat(G,"-range-end"),j),"".concat(x,"-cell-selected"),!E&&w!=="week"&&S(U)),v(U))),onClick:function(){K||D(U)},onDoubleClick:function(){!K&&I&&I()},onMouseEnter:function(){K||b==null||b(U)},onMouseLeave:function(){K||b==null||b(null)}},C?C(U,{prefixCls:x,originNode:Q,today:L,type:w,locale:_}):Q))},F=0;F<n;F+=1)R();y.push(f.createElement("tr",{key:P,className:s==null?void 0:s(O)},$))}return f.createElement("div",{className:"".concat(x,"-body")},f.createElement("table",{className:"".concat(x,"-content")},u&&f.createElement("thead",null,f.createElement("tr",null,u)),f.createElement("tbody",null,y)))}var Nn={visibility:"hidden"};function un(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,o=e.getEnd,s=e.children,c=or(),l=c.prefixCls,v=c.prevIcon,u=v===void 0?"\u2039":v,d=c.nextIcon,g=d===void 0?"\u203A":d,m=c.superPrevIcon,h=m===void 0?"\xAB":m,x=c.superNextIcon,w=x===void 0?"\xBB":x,L=c.minDate,i=c.maxDate,C=c.generateConfig,b=c.locale,M=c.pickerValue,E=c.panelType,T="".concat(l,"-header"),z=f.useContext(Nt),_=z.hidePrev,D=z.hideNext,H=z.hideHeader,G=f.useMemo(function(){if(!L||!t||!o)return!1;var V=o(t(-1,M));return!En(C,b,V,L,E)},[L,t,M,o,C,b,E]),W=f.useMemo(function(){if(!L||!n||!o)return!1;var V=o(n(-1,M));return!En(C,b,V,L,E)},[L,n,M,o,C,b,E]),I=f.useMemo(function(){if(!i||!t||!a)return!1;var V=a(t(1,M));return!En(C,b,i,V,E)},[i,t,M,a,C,b,E]),S=f.useMemo(function(){if(!i||!n||!a)return!1;var V=a(n(1,M));return!En(C,b,i,V,E)},[i,n,M,a,C,b,E]),y=function(B){t&&r(t(B,M))},P=function(B){n&&r(n(B,M))};if(H)return null;var $="".concat(T,"-prev-btn"),O="".concat(T,"-next-btn"),R="".concat(T,"-super-prev-btn"),F="".concat(T,"-super-next-btn");return f.createElement("div",{className:T},n&&f.createElement("button",{type:"button","aria-label":b.previousYear,onClick:function(){return P(-1)},tabIndex:-1,className:Re(R,W&&"".concat(R,"-disabled")),disabled:W,style:_?Nn:{}},h),t&&f.createElement("button",{type:"button","aria-label":b.previousMonth,onClick:function(){return y(-1)},tabIndex:-1,className:Re($,G&&"".concat($,"-disabled")),disabled:G,style:_?Nn:{}},u),f.createElement("div",{className:"".concat(T,"-view")},s),t&&f.createElement("button",{type:"button","aria-label":b.nextMonth,onClick:function(){return y(1)},tabIndex:-1,className:Re(O,I&&"".concat(O,"-disabled")),disabled:I,style:D?Nn:{}},g),n&&f.createElement("button",{type:"button","aria-label":b.nextYear,onClick:function(){return P(1)},tabIndex:-1,className:Re(F,S&&"".concat(F,"-disabled")),disabled:S,style:D?Nn:{}},w))}function ir(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,o=e.generateConfig,s=e.pickerValue,c=e.onPickerValueChange,l=e.onModeChange,v=e.mode,u=v===void 0?"date":v,d=e.disabledDate,g=e.onSelect,m=e.onHover,h=e.showWeek,x="".concat(t,"-").concat(r,"-panel"),w="".concat(t,"-cell"),L=u==="week",i=cn(e,u),C=te(i,2),b=C[0],M=C[1],E=o.locale.getWeekFirstDay(a.locale),T=o.setDate(s,1),z=D0(a.locale,o,T),_=o.getMonth(s),D=h===void 0?L:h,H=D?function(V){var B=d==null?void 0:d(V,{type:"week"});return f.createElement("td",{key:"week",className:Re(w,"".concat(w,"-week"),De({},"".concat(w,"-disabled"),B)),onClick:function(){B||g(V)},onMouseEnter:function(){B||m==null||m(V)},onMouseLeave:function(){B||m==null||m(null)}},f.createElement("div",{className:"".concat(w,"-inner")},o.locale.getWeek(a.locale,V)))}:null,G=[],W=a.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(a.locale):[]);H&&G.push(f.createElement("th",{key:"empty"},f.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var I=0;I<Lr;I+=1)G.push(f.createElement("th",{key:I},W[(I+E)%Lr]));var S=function(B,U){return o.addDate(B,U)},y=function(B){return Qe(B,{locale:a,format:a.cellDateFormat,generateConfig:o})},P=function(B){var U=De(De({},"".concat(t,"-cell-in-view"),ta(o,B,s)),"".concat(t,"-cell-today"),na(o,B,M));return U},$=a.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(a.locale):[]),O=f.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){l("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},Qe(s,{locale:a,format:a.yearFormat,generateConfig:o})),R=f.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){l("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?Qe(s,{locale:a,format:a.monthFormat,generateConfig:o}):$[_]),F=a.monthBeforeYear?[R,O]:[O,R];return f.createElement(Zt.Provider,{value:b},f.createElement("div",{className:Re(x,h&&"".concat(x,"-show-week"))},f.createElement(un,{offset:function(B){return o.addMonth(s,B)},superOffset:function(B){return o.addYear(s,B)},onChange:c,getStart:function(B){return o.setDate(B,1)},getEnd:function(B){var U=o.setDate(B,1);return U=o.addMonth(U,1),o.addDate(U,-1)}},F),f.createElement(Mn,Oe({titleFormat:a.fieldDateFormat},e,{colNum:Lr,rowNum:6,baseDate:z,headerCells:G,getCellDate:S,getCellText:y,getCellClassName:P,prefixColumn:H,cellSelection:!L}))))}var z0=1/3;function j0(e,t){var n=f.useRef(!1),r=f.useRef(null),a=f.useRef(null),o=function(){return n.current},s=function(){Dt.cancel(r.current),n.current=!1},c=f.useRef(),l=function(){var d=e.current;if(a.current=null,c.current=0,d){var g=d.querySelector('[data-value="'.concat(t,'"]')),m=d.querySelector("li"),h=function x(){s(),n.current=!0,c.current+=1;var w=d.scrollTop,L=m.offsetTop,i=g.offsetTop,C=i-L;if(i===0&&g!==m||!ll(d)){c.current<=5&&(r.current=Dt(x));return}var b=w+(C-w)*z0,M=Math.abs(C-b);if(a.current!==null&&a.current<M){s();return}if(a.current=M,M<=1){d.scrollTop=C,s();return}d.scrollTop=b,r.current=Dt(x)};g&&m&&h()}},v=nt(l);return[v,s,o]}var B0=300;function _0(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function hn(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,o=e.onChange,s=e.onHover,c=e.onDblClick,l=e.changeOnScroll,v=or(),u=v.prefixCls,d=v.cellRender,g=v.now,m=v.locale,h="".concat(u,"-time-panel"),x="".concat(u,"-time-panel-cell"),w=f.useRef(null),L=f.useRef(),i=function(){clearTimeout(L.current)},C=j0(w,n??r),b=te(C,3),M=b[0],E=b[1],T=b[2];Ot(function(){return M(),i(),function(){E(),i()}},[n,r,_0(t)]);var z=function(H){i();var G=H.target;!T()&&l&&(L.current=setTimeout(function(){var W=w.current,I=W.querySelector("li").offsetTop,S=Array.from(W.querySelectorAll("li")),y=S.map(function(F){return F.offsetTop-I}),P=y.map(function(F,V){return t[V].disabled?Number.MAX_SAFE_INTEGER:Math.abs(F-G.scrollTop)}),$=Math.min.apply(Math,ot(P)),O=P.findIndex(function(F){return F===$}),R=t[O];R&&!R.disabled&&o(R.value)},B0))},_="".concat(h,"-column");return f.createElement("ul",{className:_,ref:w,"data-type":a,onScroll:z},t.map(function(D){var H=D.label,G=D.value,W=D.disabled,I=f.createElement("div",{className:"".concat(x,"-inner")},H);return f.createElement("li",{key:G,className:Re(x,De(De({},"".concat(x,"-selected"),n===G),"".concat(x,"-disabled"),W)),onClick:function(){W||o(G)},onDoubleClick:function(){!W&&c&&c()},onMouseEnter:function(){s(G)},onMouseLeave:function(){s(null)},"data-value":G},d?d(G,{prefixCls:u,originNode:I,today:g,type:"time",subType:a,locale:m}):I)}))}function At(e){return e<12}function Y0(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,o=e.use12Hours,s=e.changeOnScroll,c=or(),l=c.prefixCls,v=c.values,u=c.generateConfig,d=c.locale,g=c.onSelect,m=c.onHover,h=m===void 0?function(){}:m,x=c.pickerValue,w=(v==null?void 0:v[0])||null,L=f.useContext(Nt),i=L.onCellDblClick,C=aa(u,e,w),b=te(C,5),M=b[0],E=b[1],T=b[2],z=b[3],_=b[4],D=function(re){var Fe=w&&u[re](w),ze=x&&u[re](x);return[Fe,ze]},H=D("getHour"),G=te(H,2),W=G[0],I=G[1],S=D("getMinute"),y=te(S,2),P=y[0],$=y[1],O=D("getSecond"),R=te(O,2),F=R[0],V=R[1],B=D("getMillisecond"),U=te(B,2),K=U[0],N=U[1],A=W===null?null:At(W)?"am":"pm",j=f.useMemo(function(){return o?At(W)?E.filter(function(J){return At(J.value)}):E.filter(function(J){return!At(J.value)}):E},[W,E,o]),p=function(re,Fe){var ze,_e=re.filter(function(ct){return!ct.disabled});return Fe??(_e==null||(ze=_e[0])===null||ze===void 0?void 0:ze.value)},Y=p(E,W),q=f.useMemo(function(){return T(Y)},[T,Y]),Z=p(q,P),Q=f.useMemo(function(){return z(Y,Z)},[z,Y,Z]),oe=p(Q,F),ge=f.useMemo(function(){return _(Y,Z,oe)},[_,Y,Z,oe]),le=p(ge,K),we=f.useMemo(function(){if(!o)return[];var J=u.getNow(),re=u.setHour(J,6),Fe=u.setHour(J,18),ze=function(ct,Ke){var ut=d.cellMeridiemFormat;return ut?Qe(ct,{generateConfig:u,locale:d,format:ut}):Ke};return[{label:ze(re,"AM"),value:"am",disabled:E.every(function(_e){return _e.disabled||!At(_e.value)})},{label:ze(Fe,"PM"),value:"pm",disabled:E.every(function(_e){return _e.disabled||At(_e.value)})}]},[E,o,u,d]),ue=function(re){var Fe=M(re);g(Fe)},He=f.useMemo(function(){var J=w||x||u.getNow(),re=function(ze){return ze!=null};return re(W)?(J=u.setHour(J,W),J=u.setMinute(J,P),J=u.setSecond(J,F),J=u.setMillisecond(J,K)):re(I)?(J=u.setHour(J,I),J=u.setMinute(J,$),J=u.setSecond(J,V),J=u.setMillisecond(J,N)):re(Y)&&(J=u.setHour(J,Y),J=u.setMinute(J,Z),J=u.setSecond(J,oe),J=u.setMillisecond(J,le)),J},[w,x,W,P,F,K,Y,Z,oe,le,I,$,V,N,u]),Ee=function(re,Fe){return re===null?null:u[Fe](He,re)},Te=function(re){return Ee(re,"setHour")},Le=function(re){return Ee(re,"setMinute")},Be=function(re){return Ee(re,"setSecond")},je=function(re){return Ee(re,"setMillisecond")},Ne=function(re){return re===null?null:re==="am"&&!At(W)?u.setHour(He,W-12):re==="pm"&&At(W)?u.setHour(He,W+12):He},xe=function(re){ue(Te(re))},X=function(re){ue(Le(re))},me=function(re){ue(Be(re))},ve=function(re){ue(je(re))},Ce=function(re){ue(Ne(re))},Me=function(re){h(Te(re))},ie=function(re){h(Le(re))},$e=function(re){h(Be(re))},ee=function(re){h(je(re))},ne=function(re){h(Ne(re))},ce={onDblClick:i,changeOnScroll:s};return f.createElement("div",{className:"".concat(l,"-content")},t&&f.createElement(hn,Oe({units:j,value:W,optionalValue:I,type:"hour",onChange:xe,onHover:Me},ce)),n&&f.createElement(hn,Oe({units:q,value:P,optionalValue:$,type:"minute",onChange:X,onHover:ie},ce)),r&&f.createElement(hn,Oe({units:Q,value:F,optionalValue:V,type:"second",onChange:me,onHover:$e},ce)),a&&f.createElement(hn,Oe({units:ge,value:K,optionalValue:N,type:"millisecond",onChange:ve,onHover:ee},ce)),o&&f.createElement(hn,Oe({units:we,value:A,type:"meridiem",onChange:Ce,onHover:ne},ce)))}function Yo(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,o=e.showTime,s=o||{},c=s.format,l="".concat(t,"-time-panel"),v=cn(e,"time"),u=te(v,1),d=u[0];return f.createElement(Zt.Provider,{value:d},f.createElement("div",{className:Re(l)},f.createElement(un,null,n?Qe(n,{locale:r,format:c,generateConfig:a}):"\xA0"),f.createElement(Y0,o)))}function W0(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,o=e.value,s=e.pickerValue,c=e.onHover,l="".concat(t,"-datetime-panel"),v=aa(n,r),u=te(v,1),d=u[0],g=function(w){return o?Zn(n,w,o):Zn(n,w,s)},m=function(w){c==null||c(w&&g(w))},h=function(w){var L=g(w);a(d(L,L))};return f.createElement("div",{className:l},f.createElement(ir,Oe({},e,{onSelect:h,onHover:m})),f.createElement(Yo,e))}function U0(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,c="".concat(t,"-decade-panel"),l=cn(e,"decade"),v=te(l,1),u=v[0],d=function(E){var T=Math.floor(r.getYear(E)/100)*100;return r.setYear(E,T)},g=function(E){var T=d(E);return r.addYear(T,99)},m=d(a),h=g(a),x=r.addYear(m,-10),w=function(E,T){return r.addYear(E,T*10)},L=function(E){var T=n.cellYearFormat,z=Qe(E,{locale:n,format:T,generateConfig:r}),_=Qe(r.addYear(E,9),{locale:n,format:T,generateConfig:r});return"".concat(z,"-").concat(_)},i=function(E){return De({},"".concat(t,"-cell-in-view"),Rr(r,E,m)||Rr(r,E,h)||ar(r,m,h,E))},C=o?function(M,E){var T=r.setDate(M,1),z=r.setMonth(T,0),_=r.setYear(z,Math.floor(r.getYear(z)/10)*10),D=r.addYear(_,10),H=r.addDate(D,-1);return o(_,E)&&o(H,E)}:null,b="".concat(Qe(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Qe(h,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Zt.Provider,{value:u},f.createElement("div",{className:c},f.createElement(un,{superOffset:function(E){return r.addYear(a,E*100)},onChange:s,getStart:d,getEnd:g},b),f.createElement(Mn,Oe({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:x,getCellDate:w,getCellText:L,getCellClassName:i}))))}function q0(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,c=e.onModeChange,l="".concat(t,"-month-panel"),v=cn(e,"month"),u=te(v,1),d=u[0],g=r.setMonth(a,0),m=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(b,M){return r.addMonth(b,M)},x=function(b){var M=r.getMonth(b);return n.monthFormat?Qe(b,{locale:n,format:n.monthFormat,generateConfig:r}):m[M]},w=function(){return De({},"".concat(t,"-cell-in-view"),!0)},L=o?function(C,b){var M=r.setDate(C,1),E=r.setMonth(M,r.getMonth(M)+1),T=r.addDate(E,-1);return o(M,b)&&o(T,b)}:null,i=f.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Qe(a,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Zt.Provider,{value:d},f.createElement("div",{className:l},f.createElement(un,{superOffset:function(b){return r.addYear(a,b)},onChange:s,getStart:function(b){return r.setMonth(b,0)},getEnd:function(b){return r.setMonth(b,11)}},i),f.createElement(Mn,Oe({},e,{disabledDate:L,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:h,getCellText:x,getCellClassName:w}))))}function Z0(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-quarter-panel"),l=cn(e,"quarter"),v=te(l,1),u=v[0],d=r.setMonth(a,0),g=function(L,i){return r.addMonth(L,i*3)},m=function(L){return Qe(L,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return De({},"".concat(t,"-cell-in-view"),!0)},x=f.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Qe(a,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Zt.Provider,{value:u},f.createElement("div",{className:c},f.createElement(un,{superOffset:function(L){return r.addYear(a,L)},onChange:o,getStart:function(L){return r.setMonth(L,0)},getEnd:function(L){return r.setMonth(L,11)}},x),f.createElement(Mn,Oe({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:g,getCellText:m,getCellClassName:h}))))}function G0(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,o=e.hoverValue,s=e.hoverRangeValue,c=r.locale,l="".concat(t,"-week-panel-row"),v=function(d){var g={};if(s){var m=te(s,2),h=m[0],x=m[1],w=pn(n,c,h,d),L=pn(n,c,x,d);g["".concat(l,"-range-start")]=w,g["".concat(l,"-range-end")]=L,g["".concat(l,"-range-hover")]=!w&&!L&&ar(n,h,x,d)}return o&&(g["".concat(l,"-hover")]=o.some(function(i){return pn(n,c,d,i)})),Re(l,De({},"".concat(l,"-selected"),!s&&pn(n,c,a,d)),g)};return f.createElement(ir,Oe({},e,{mode:"week",panelName:"week",rowClassName:v}))}function Q0(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,c=e.onModeChange,l="".concat(t,"-year-panel"),v=cn(e,"year"),u=te(v,1),d=u[0],g=function(T){var z=Math.floor(r.getYear(T)/10)*10;return r.setYear(T,z)},m=function(T){var z=g(T);return r.addYear(z,9)},h=g(a),x=m(a),w=r.addYear(h,-1),L=function(T,z){return r.addYear(T,z)},i=function(T){return Qe(T,{locale:n,format:n.cellYearFormat,generateConfig:r})},C=function(T){return De({},"".concat(t,"-cell-in-view"),Yt(r,T,h)||Yt(r,T,x)||ar(r,h,x,T))},b=o?function(E,T){var z=r.setMonth(E,0),_=r.setDate(z,1),D=r.addYear(_,1),H=r.addDate(D,-1);return o(_,T)&&o(H,T)}:null,M=f.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){c("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Qe(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Qe(x,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Zt.Provider,{value:d},f.createElement("div",{className:l},f.createElement(un,{superOffset:function(T){return r.addYear(a,T*10)},onChange:s,getStart:g,getEnd:m},M),f.createElement(Mn,Oe({},e,{disabledDate:b,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:w,getCellDate:L,getCellText:i,getCellClassName:C}))))}var K0={date:ir,datetime:W0,week:G0,month:q0,quarter:Z0,year:Q0,decade:U0,time:Yo};function X0(e,t){var n,r=e.locale,a=e.generateConfig,o=e.direction,s=e.prefixCls,c=e.tabIndex,l=c===void 0?0:c,v=e.multiple,u=e.defaultValue,d=e.value,g=e.onChange,m=e.onSelect,h=e.defaultPickerValue,x=e.pickerValue,w=e.onPickerValueChange,L=e.mode,i=e.onPanelChange,C=e.picker,b=C===void 0?"date":C,M=e.showTime,E=e.hoverValue,T=e.hoverRangeValue,z=e.cellRender,_=e.dateRender,D=e.monthCellRender,H=e.components,G=H===void 0?{}:H,W=e.hideHeader,I=((n=f.useContext(Ct))===null||n===void 0?void 0:n.prefixCls)||s||"rc-picker",S=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:S.current}});var y=Io(e),P=te(y,4),$=P[0],O=P[1],R=P[2],F=P[3],V=ko(r,O),B=b==="date"&&M?"datetime":b,U=f.useMemo(function(){return Lo(B,R,F,$,V)},[B,R,F,$,V]),K=a.getNow(),N=$t(b,{value:L,postState:function(ne){return ne||"date"}}),A=te(N,2),j=A[0],p=A[1],Y=j==="date"&&U?"datetime":j,q=_o(a,r,B),Z=$t(u,{value:d}),Q=te(Z,2),oe=Q[0],ge=Q[1],le=f.useMemo(function(){var ee=qt(oe).filter(function(ne){return ne});return v?ee:ee.slice(0,1)},[oe,v]),we=nt(function(ee){ge(ee),g&&(ee===null||le.length!==ee.length||le.some(function(ne,ce){return!at(a,r,ne,ee[ce],B)}))&&(g==null||g(v?ee:ee[0]))}),ue=nt(function(ee){if(m==null||m(ee),j===b){var ne=v?q(le,ee):[ee];we(ne)}}),He=$t(h||le[0]||K,{value:x}),Ee=te(He,2),Te=Ee[0],Le=Ee[1];f.useEffect(function(){le[0]&&!x&&Le(le[0])},[le[0]]);var Be=function(ne,ce){i==null||i(ne||x,ce||j)},je=function(ne){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Le(ne),w==null||w(ne),ce&&Be(ne)},Ne=function(ne,ce){p(ne),ce&&je(ce),Be(ce,ne)},xe=function(ne){if(ue(ne),je(ne),j!==b){var ce=["decade","year"],J=[].concat(ce,["month"]),re={quarter:[].concat(ce,["quarter"]),week:[].concat(ot(J),["week"]),date:[].concat(ot(J),["date"])},Fe=re[b]||J,ze=Fe.indexOf(j),_e=Fe[ze+1];_e&&Ne(_e,ne)}},X=f.useMemo(function(){var ee,ne;if(Array.isArray(T)){var ce=te(T,2);ee=ce[0],ne=ce[1]}else ee=T;return!ee&&!ne?null:(ee=ee||ne,ne=ne||ee,a.isAfter(ee,ne)?[ne,ee]:[ee,ne])},[T,a]),me=ea(z,_,D),ve=G[Y]||K0[Y]||ir,Ce=f.useContext(Nt),Me=f.useMemo(function(){return pe(pe({},Ce),{},{hideHeader:W})},[Ce,W]),ie="".concat(I,"-panel"),$e=rr(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return f.createElement(Nt.Provider,{value:Me},f.createElement("div",{ref:S,tabIndex:l,className:Re(ie,De({},"".concat(ie,"-rtl"),o==="rtl"))},f.createElement(ve,Oe({},$e,{showTime:U,prefixCls:I,locale:V,generateConfig:a,onModeChange:Ne,pickerValue:Te,onPickerValueChange:function(ne){je(ne,!0)},value:le[0],onSelect:xe,values:le,cellRender:me,hoverRangeValue:X,hoverValue:E}))))}var Er=f.memo(f.forwardRef(X0));function J0(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,s=e.onSubmit,c=e.range,l=e.hoverValue,v=f.useContext(Ct),u=v.prefixCls,d=v.generateConfig,g=f.useCallback(function(i,C){return bn(d,t,i,C)},[d,t]),m=f.useMemo(function(){return g(r,1)},[r,g]),h=function(C){a(g(C,-1))},x={onCellDblClick:function(){o&&s()}},w=t==="time",L=pe(pe({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:w});return c?L.hoverRangeValue=l:L.hoverValue=l,n?f.createElement("div",{className:"".concat(u,"-panels")},f.createElement(Nt.Provider,{value:pe(pe({},x),{},{hideNext:!0})},f.createElement(Er,L)),f.createElement(Nt.Provider,{value:pe(pe({},x),{},{hidePrev:!0})},f.createElement(Er,Oe({},L,{pickerValue:m,onPickerValueChange:h})))):f.createElement(Nt.Provider,{value:pe({},x)},f.createElement(Er,L))}function Oa(e){return typeof e=="function"?e():e}function e2(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?f.createElement("div",{className:"".concat(t,"-presets")},f.createElement("ul",null,n.map(function(o,s){var c=o.label,l=o.value;return f.createElement("li",{key:s,onClick:function(){r(Oa(l))},onMouseEnter:function(){a(Oa(l))},onMouseLeave:function(){a(null)}},c)}))):null}function Wo(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,s=e.multiple,c=e.activeInfo,l=c===void 0?[0,0,0]:c,v=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,g=e.onFocus,m=e.onBlur,h=e.onPanelMouseDown,x=e.direction,w=e.value,L=e.onSelect,i=e.isInvalid,C=e.defaultOpenValue,b=e.onOk,M=e.onSubmit,E=f.useContext(Ct),T=E.prefixCls,z="".concat(T,"-panel"),_=x==="rtl",D=f.useRef(null),H=f.useRef(null),G=f.useState(0),W=te(G,2),I=W[0],S=W[1],y=f.useState(0),P=te(y,2),$=P[0],O=P[1],R=f.useState(0),F=te(R,2),V=F[0],B=F[1],U=function(xe){xe.width&&S(xe.width)},K=te(l,3),N=K[0],A=K[1],j=K[2],p=f.useState(0),Y=te(p,2),q=Y[0],Z=Y[1];f.useEffect(function(){Z(10)},[N]),f.useEffect(function(){if(o&&H.current){var Ne,xe=((Ne=D.current)===null||Ne===void 0?void 0:Ne.offsetWidth)||0,X=H.current.getBoundingClientRect();if(!X.height||X.right<0){Z(function(Me){return Math.max(0,Me-1)});return}var me=(_?A-xe:N)-X.left;if(B(me),I&&I<j){var ve=_?X.right-(A-xe+I):N+xe-X.left-I,Ce=Math.max(0,ve);O(Ce)}else O(0)}},[q,_,I,N,A,j,o]);function Q(Ne){return Ne.filter(function(xe){return xe})}var oe=f.useMemo(function(){return Q(qt(w))},[w]),ge=r==="time"&&!oe.length,le=f.useMemo(function(){return ge?Q([C]):oe},[ge,oe,C]),we=ge?C:oe,ue=f.useMemo(function(){return le.length?le.some(function(Ne){return i(Ne)}):!0},[le,i]),He=function(){ge&&L(C),b(),M()},Ee=f.createElement("div",{className:"".concat(T,"-panel-layout")},f.createElement(e2,{prefixCls:T,presets:v,onClick:d,onHover:u}),f.createElement("div",null,f.createElement(J0,Oe({},e,{value:we})),f.createElement(V0,Oe({},e,{showNow:s?!1:a,invalid:ue,onSubmit:He}))));t&&(Ee=t(Ee));var Te="".concat(z,"-container"),Le="marginLeft",Be="marginRight",je=f.createElement("div",{onMouseDown:h,tabIndex:-1,className:Re(Te,"".concat(T,"-").concat(n,"-panel-container")),style:De(De({},_?Be:Le,$),_?Le:Be,"auto"),onFocus:g,onBlur:m},Ee);return o&&(je=f.createElement("div",{onMouseDown:h,ref:H,className:Re("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},f.createElement("div",{ref:D,className:"".concat(T,"-range-arrow"),style:{left:V}}),f.createElement(ao,{onResize:U},je))),je}function Uo(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,s=e.preserveInvalidOnBlur,c=e.inputReadOnly,l=e.required,v=e["aria-required"],u=e.onSubmit,d=e.onFocus,g=e.onBlur,m=e.onInputChange,h=e.onInvalid,x=e.open,w=e.onOpenChange,L=e.onKeyDown,i=e.onChange,C=e.activeHelp,b=e.name,M=e.autoComplete,E=e.id,T=e.value,z=e.invalid,_=e.placeholder,D=e.disabled,H=e.activeIndex,G=e.allHelp,W=e.picker,I=function(V,B){var U=a.locale.parse(o.locale,V,[B]);return U&&a.isValidate(U)?U:null},S=n[0],y=f.useCallback(function(F){return Qe(F,{locale:o,format:S,generateConfig:a})},[o,a,S]),P=f.useMemo(function(){return T.map(y)},[T,y]),$=f.useMemo(function(){var F=W==="time"?8:10,V=typeof S=="function"?S(a.getNow()).length:S.length;return Math.max(F,V)+2},[S,W,a]),O=function(V){for(var B=0;B<n.length;B+=1){var U=n[B];if(typeof U=="string"){var K=I(V,U);if(K)return K}}return!1},R=function(V){function B(N){return V!==void 0?N[V]:N}var U=er(e,{aria:!0,data:!0}),K=pe(pe({},U),{},{format:r,validateFormat:function(A){return!!O(A)},preserveInvalidOnBlur:s,readOnly:c,required:l,"aria-required":v,name:b,autoComplete:M,size:$,id:B(E),value:B(P)||"",invalid:B(z),placeholder:B(_),active:H===V,helped:G||C&&H===V,disabled:B(D),onFocus:function(A){d(A,V)},onBlur:function(A){g(A,V)},onSubmit:u,onChange:function(A){m();var j=O(A);if(j){h(!1,V),i(j,V);return}h(!!A,V)},onHelp:function(){w(!0,{index:V})},onKeyDown:function(A){var j=!1;if(L==null||L(A,function(){j=!0}),!A.defaultPrevented&&!j)switch(A.key){case"Escape":w(!1,{index:V});break;case"Enter":x||w(!0);break}}},t==null?void 0:t({valueTexts:P}));return Object.keys(K).forEach(function(N){K[N]===void 0&&delete K[N]}),K};return[R,y]}var t2=["onMouseEnter","onMouseLeave"];function qo(e){return f.useMemo(function(){return rr(e,t2)},[e])}var n2=["icon","type"],r2=["onClear"];function lr(e){var t=e.icon,n=e.type,r=rn(e,n2),a=f.useContext(Ct),o=a.prefixCls;return t?f.createElement("span",Oe({className:"".concat(o,"-").concat(n)},r),t):null}function Fr(e){var t=e.onClear,n=rn(e,r2);return f.createElement(lr,Oe({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var Pr=["YYYY","MM","DD","HH","mm","ss","SSS"],Ta="\u9867",a2=(function(){function e(t){cl(this,e),De(this,"format",void 0),De(this,"maskFormat",void 0),De(this,"cells",void 0),De(this,"maskCells",void 0),this.format=t;var n=Pr.map(function(c){return"(".concat(c,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(c){return Ta.repeat(c.length)});var a=new RegExp("(".concat(Pr.join("|"),")")),o=(t.split(a)||[]).filter(function(c){return c}),s=0;this.cells=o.map(function(c){var l=Pr.includes(c),v=s,u=s+c.length;return s=u,{text:c,mask:l,start:v,end:u}}),this.maskCells=this.cells.filter(function(c){return c.mask})}return sl(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,o=r.end;return[a||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],o=n[r];if(!o||a!==Ta&&a!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,o=0;o<this.maskCells.length;o+=1){var s=this.maskCells[o],c=s.start,l=s.end;if(n>=c&&n<=l)return o;var v=Math.min(Math.abs(n-c),Math.abs(n-l));v<r&&(r=v,a=o)}return a}}]),e})();function o2(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var i2=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Vr=f.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,o=e.suffixIcon,s=e.format,c=e.validateFormat,l=e.onChange;e.onInput;var v=e.helped,u=e.onHelp,d=e.onSubmit,g=e.onKeyDown,m=e.preserveInvalidOnBlur,h=m===void 0?!1:m,x=e.invalid,w=e.clearIcon,L=rn(e,i2),i=e.value,C=e.onFocus,b=e.onBlur,M=e.onMouseUp,E=f.useContext(Ct),T=E.prefixCls,z=E.input,_=z===void 0?"input":z,D="".concat(T,"-input"),H=f.useState(!1),G=te(H,2),W=G[0],I=G[1],S=f.useState(i),y=te(S,2),P=y[0],$=y[1],O=f.useState(""),R=te(O,2),F=R[0],V=R[1],B=f.useState(null),U=te(B,2),K=U[0],N=U[1],A=f.useState(null),j=te(A,2),p=j[0],Y=j[1],q=P||"";f.useEffect(function(){$(i)},[i]);var Z=f.useRef(),Q=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:Z.current,inputElement:Q.current,focus:function(ee){Q.current.focus(ee)},blur:function(){Q.current.blur()}}});var oe=f.useMemo(function(){return new a2(s||"")},[s]),ge=f.useMemo(function(){return v?[0,0]:oe.getSelection(K)},[oe,K,v]),le=te(ge,2),we=le[0],ue=le[1],He=function(ee){ee&&ee!==s&&ee!==i&&u()},Ee=nt(function($e){c($e)&&l($e),$($e),He($e)}),Te=function(ee){if(!s){var ne=ee.target.value;He(ne),$(ne),l(ne)}},Le=function(ee){var ne=ee.clipboardData.getData("text");c(ne)&&Ee(ne)},Be=f.useRef(!1),je=function(){Be.current=!0},Ne=function(ee){var ne=ee.target,ce=ne.selectionStart,J=oe.getMaskCellIndex(ce);N(J),Y({}),M==null||M(ee),Be.current=!1},xe=function(ee){I(!0),N(0),V(""),C(ee)},X=function(ee){b(ee)},me=function(ee){I(!1),X(ee)};ra(n,function(){!n&&!h&&$(i)});var ve=function(ee){ee.key==="Enter"&&c(q)&&d(),g==null||g(ee)},Ce=function(ee){ve(ee);var ne=ee.key,ce=null,J=null,re=ue-we,Fe=s.slice(we,ue),ze=function(ut){N(function(lt){var Ge=lt+ut;return Ge=Math.max(Ge,0),Ge=Math.min(Ge,oe.size()-1),Ge})},_e=function(ut){var lt=o2(Fe),Ge=te(lt,3),gt=Ge[0],yt=Ge[1],It=Ge[2],fe=q.slice(we,ue),Ye=Number(fe);if(isNaN(Ye))return String(It||(ut>0?gt:yt));var Ue=Ye+ut,mt=yt-gt+1;return String(gt+(mt+Ue-gt)%mt)};switch(ne){case"Backspace":case"Delete":ce="",J=Fe;break;case"ArrowLeft":ce="",ze(-1);break;case"ArrowRight":ce="",ze(1);break;case"ArrowUp":ce="",J=_e(1);break;case"ArrowDown":ce="",J=_e(-1);break;default:isNaN(Number(ne))||(ce=F+ne,J=ce);break}if(ce!==null&&(V(ce),ce.length>=re&&(ze(1),V(""))),J!==null){var ct=q.slice(0,we)+Jr(J,re)+q.slice(ue);Ee(ct.slice(0,s.length))}Y({})},Me=f.useRef();Ot(function(){if(!(!W||!s||Be.current)){if(!oe.match(q)){Ee(s);return}return Q.current.setSelectionRange(we,ue),Me.current=Dt(function(){Q.current.setSelectionRange(we,ue)}),function(){Dt.cancel(Me.current)}}},[oe,s,W,q,K,we,ue,p,Ee]);var ie=s?{onFocus:xe,onBlur:me,onKeyDown:Ce,onMouseDown:je,onMouseUp:Ne,onPaste:Le}:{};return f.createElement("div",{ref:Z,className:Re(D,De(De({},"".concat(D,"-active"),n&&a),"".concat(D,"-placeholder"),v))},f.createElement(_,Oe({ref:Q,"aria-invalid":x,autoComplete:"off"},L,{onKeyDown:ve,onBlur:X},ie,{value:q,onChange:Te})),f.createElement(lr,{type:"suffix",icon:o}),w)}),l2=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],s2=["index"];function c2(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,s=e.separator,c=s===void 0?"~":s,l=e.activeIndex;e.activeHelp,e.allHelp;var v=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,g=e.style,m=e.onClick,h=e.onClear,x=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,L=e.invalid;e.inputReadOnly;var i=e.direction;e.onOpenChange;var C=e.onActiveInfo;e.placement;var b=e.onMouseDown;e.required,e["aria-required"];var M=e.autoFocus,E=e.tabIndex,T=rn(e,l2),z=i==="rtl",_=f.useContext(Ct),D=_.prefixCls,H=f.useMemo(function(){if(typeof n=="string")return[n];var p=n||{};return[p.start,p.end]},[n]),G=f.useRef(),W=f.useRef(),I=f.useRef(),S=function(Y){var q;return(q=[W,I][Y])===null||q===void 0?void 0:q.current};f.useImperativeHandle(t,function(){return{nativeElement:G.current,focus:function(Y){if(kn(Y)==="object"){var q,Z=Y||{},Q=Z.index,oe=Q===void 0?0:Q,ge=rn(Z,s2);(q=S(oe))===null||q===void 0||q.focus(ge)}else{var le;(le=S(Y??0))===null||le===void 0||le.focus()}},blur:function(){var Y,q;(Y=S(0))===null||Y===void 0||Y.blur(),(q=S(1))===null||q===void 0||q.blur()}}});var y=qo(T),P=f.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),$=Uo(pe(pe({},e),{},{id:H,placeholder:P})),O=te($,1),R=O[0],F=f.useState({position:"absolute",width:0}),V=te(F,2),B=V[0],U=V[1],K=nt(function(){var p=S(l);if(p){var Y=p.nativeElement.getBoundingClientRect(),q=G.current.getBoundingClientRect(),Z=Y.left-q.left;U(function(Q){return pe(pe({},Q),{},{width:Y.width,left:Z})}),C([Y.left,Y.right,q.width])}});f.useEffect(function(){K()},[l]);var N=a&&(x[0]&&!w[0]||x[1]&&!w[1]),A=M&&!w[0],j=M&&!A&&!w[1];return f.createElement(ao,{onResize:K},f.createElement("div",Oe({},y,{className:Re(D,"".concat(D,"-range"),De(De(De(De({},"".concat(D,"-focused"),v),"".concat(D,"-disabled"),w.every(function(p){return p})),"".concat(D,"-invalid"),L.some(function(p){return p})),"".concat(D,"-rtl"),z),d),style:g,ref:G,onClick:m,onMouseDown:function(Y){var q=Y.target;q!==W.current.inputElement&&q!==I.current.inputElement&&Y.preventDefault(),b==null||b(Y)}}),r&&f.createElement("div",{className:"".concat(D,"-prefix")},r),f.createElement(Vr,Oe({ref:W},R(0),{autoFocus:A,tabIndex:E,"date-range":"start"})),f.createElement("div",{className:"".concat(D,"-range-separator")},c),f.createElement(Vr,Oe({ref:I},R(1),{autoFocus:j,tabIndex:E,"date-range":"end"})),f.createElement("div",{className:"".concat(D,"-active-bar"),style:B}),f.createElement(lr,{type:"suffix",icon:o}),N&&f.createElement(Fr,{icon:a,onClear:h})))}var u2=f.forwardRef(c2);function Ra(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function On(e){return e===1?"end":"start"}function d2(e,t){var n=Po(e,function(){var Pe=e.disabled,be=e.allowEmpty,Ie=Ra(Pe,!1),We=Ra(be,!1);return{disabled:Ie,allowEmpty:We}}),r=te(n,6),a=r[0],o=r[1],s=r[2],c=r[3],l=r[4],v=r[5],u=a.prefixCls,d=a.styles,g=a.classNames,m=a.defaultValue,h=a.value,x=a.needConfirm,w=a.onKeyDown,L=a.disabled,i=a.allowEmpty,C=a.disabledDate,b=a.minDate,M=a.maxDate,E=a.defaultOpen,T=a.open,z=a.onOpenChange,_=a.locale,D=a.generateConfig,H=a.picker,G=a.showNow,W=a.showToday,I=a.showTime,S=a.mode,y=a.onPanelChange,P=a.onCalendarChange,$=a.onOk,O=a.defaultPickerValue,R=a.pickerValue,F=a.onPickerValueChange,V=a.inputReadOnly,B=a.suffixIcon,U=a.onFocus,K=a.onBlur,N=a.presets,A=a.ranges,j=a.components,p=a.cellRender,Y=a.dateRender,q=a.monthCellRender,Z=a.onClick,Q=Ho(t),oe=Ao(T,E,L,z),ge=te(oe,2),le=ge[0],we=ge[1],ue=function(be,Ie){(L.some(function(We){return!We})||!be)&&we(be,Ie)},He=zo(D,_,c,!0,!1,m,h,P,$),Ee=te(He,5),Te=Ee[0],Le=Ee[1],Be=Ee[2],je=Ee[3],Ne=Ee[4],xe=Be(),X=Oo(L,i,le),me=te(X,9),ve=me[0],Ce=me[1],Me=me[2],ie=me[3],$e=me[4],ee=me[5],ne=me[6],ce=me[7],J=me[8],re=function(be,Ie){Ce(!0),U==null||U(be,{range:On(Ie??ie)})},Fe=function(be,Ie){Ce(!1),K==null||K(be,{range:On(Ie??ie)})},ze=f.useMemo(function(){if(!I)return null;var Pe=I.disabledTime,be=Pe?function(Ie){var We=On(ie),et=yo(xe,ne,ie);return Pe(Ie,We,{from:et})}:void 0;return pe(pe({},I),{},{disabledTime:be})},[I,ie,xe,ne]),_e=$t([H,H],{value:S}),ct=te(_e,2),Ke=ct[0],ut=ct[1],lt=Ke[ie]||H,Ge=lt==="date"&&ze?"datetime":lt,gt=Ge===H&&Ge!=="time",yt=Bo(H,lt,G,W,!0),It=jo(a,Te,Le,Be,je,L,c,ve,le,v),fe=te(It,2),Ye=fe[0],Ue=fe[1],mt=O0(xe,L,ne,D,_,C),Gt=wo(xe,v,i),Ft=te(Gt,2),Qt=Ft[0],Vt=Ft[1],zt=To(D,_,xe,Ke,le,ie,o,gt,O,R,ze==null?void 0:ze.defaultOpenValue,F,b,M),Kt=te(zt,2),Xe=Kt[0],Xt=Kt[1],ht=nt(function(Pe,be,Ie){var We=Cn(Ke,ie,be);if((We[0]!==Ke[0]||We[1]!==Ke[1])&&ut(We),y&&Ie!==!1){var et=ot(xe);Pe&&(et[ie]=Pe),y(et,We)}}),xt=function(be,Ie){return Cn(xe,Ie,be)},vt=function(be,Ie){var We=xe;be&&(We=xt(be,ie)),ce(ie);var et=ee(We);je(We),Ye(ie,et===null),et===null?ue(!1,{force:!0}):Ie||Q.current.focus({index:et})},st=function(be){var Ie,We=be.target.getRootNode();if(!Q.current.nativeElement.contains((Ie=We.activeElement)!==null&&Ie!==void 0?Ie:document.activeElement)){var et=L.findIndex(function(nl){return!nl});et>=0&&Q.current.focus({index:et})}ue(!0),Z==null||Z(be)},Pt=function(){Ue(null),ue(!1,{force:!0})},dr=f.useState(null),dn=te(dr,2),fr=dn[0],fn=dn[1],Lt=f.useState(null),Jt=te(Lt,2),en=Jt[0],mn=Jt[1],$n=f.useMemo(function(){return en||xe},[xe,en]);f.useEffect(function(){le||mn(null)},[le]);var mr=f.useState([0,0,0]),vn=te(mr,2),vr=vn[0],gr=vn[1],hr=No(N,A),pr=function(be){mn(be),fn("preset")},br=function(be){var Ie=Ue(be);Ie&&ue(!1,{force:!0})},Cr=function(be){vt(be)},yr=function(be){mn(be?xt(be,ie):null),fn("cell")},xr=function(be){ue(!0),re(be)},wr=function(){Me("panel")},Sr=function(be){var Ie=Cn(xe,ie,be);je(Ie),!x&&!s&&o===Ge&&vt(be)},kr=function(){ue(!1)},Mr=ea(p,Y,q,On(ie)),$r=xe[ie]||null,Ir=nt(function(Pe){return v(Pe,{activeIndex:ie})}),Se=f.useMemo(function(){var Pe=er(a,!1),be=Wr(a,[].concat(ot(Object.keys(Pe)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return be},[a]),he=f.createElement(Wo,Oe({},Se,{showNow:yt,showTime:ze,range:!0,multiplePanel:gt,activeInfo:vr,disabledDate:mt,onFocus:xr,onBlur:Fe,onPanelMouseDown:wr,picker:H,mode:lt,internalMode:Ge,onPanelChange:ht,format:l,value:$r,isInvalid:Ir,onChange:null,onSelect:Sr,pickerValue:Xe,defaultOpenValue:qt(I==null?void 0:I.defaultOpenValue)[ie],onPickerValueChange:Xt,hoverValue:$n,onHover:yr,needConfirm:x,onSubmit:vt,onOk:Ne,presets:hr,onPresetHover:pr,onPresetSubmit:br,onNow:Cr,cellRender:Mr})),dt=function(be,Ie){var We=xt(be,Ie);je(We)},wt=function(){Me("input")},In=function(be,Ie){var We=ne.length,et=ne[We-1];if(We&&et!==Ie&&x&&!i[et]&&!J(et)&&xe[et]){Q.current.focus({index:et});return}Me("input"),ue(!0,{inherit:!0}),ie!==Ie&&le&&!x&&s&&vt(null,!0),$e(Ie),re(be,Ie)},Ji=function(be,Ie){if(ue(!1),!x&&Me()==="input"){var We=ee(xe);Ye(ie,We===null)}Fe(be,Ie)},el=function(be,Ie){be.key==="Tab"&&vt(null,!0),w==null||w(be,Ie)},tl=f.useMemo(function(){return{prefixCls:u,locale:_,generateConfig:D,button:j.button,input:j.input}},[u,_,D,j.button,j.input]);return Ot(function(){le&&ie!==void 0&&ht(null,H,!1)},[le,ie,H]),Ot(function(){var Pe=Me();!le&&Pe==="input"&&(ue(!1),vt(null,!0)),!le&&s&&!x&&Pe==="panel"&&(ue(!0),vt())},[le]),f.createElement(Ct.Provider,{value:tl},f.createElement(bo,Oe({},xo(a),{popupElement:he,popupStyle:d.popup,popupClassName:g.popup,visible:le,onClose:kr,range:!0}),f.createElement(u2,Oe({},a,{ref:Q,suffixIcon:B,activeIndex:ve||le?ie:null,activeHelp:!!en,allHelp:!!en&&fr==="preset",focused:ve,onFocus:In,onBlur:Ji,onKeyDown:el,onSubmit:vt,value:$n,maskFormat:l,onChange:dt,onInputChange:wt,format:c,inputReadOnly:V,disabled:L,open:le,onOpenChange:ue,onClick:st,onClear:Pt,invalid:Qt,onInvalid:Vt,onActiveInfo:gr}))))}var f2=f.forwardRef(d2);function m2(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"\xD7":a,s=e.formatDate,c=e.disabled,l=e.maxTagCount,v=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),g="".concat(d,"-overflow");function m(w,L){return f.createElement("span",{className:Re("".concat(d,"-item")),title:typeof w=="string"?w:null},f.createElement("span",{className:"".concat(d,"-item-content")},w),!c&&L&&f.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:L,className:"".concat(d,"-item-remove")},o))}function h(w){var L=s(w),i=function(b){b&&b.stopPropagation(),r(w)};return m(L,i)}function x(w){var L="+ ".concat(w.length," ...");return m(L)}return f.createElement("div",{className:u},f.createElement(ul,{prefixCls:g,data:n,renderItem:h,renderRest:x,itemKey:function(L){return s(L)},maxCount:l}),!n.length&&f.createElement("span",{className:"".concat(t,"-selection-placeholder")},v))}var v2=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function g2(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var c=e.locale,l=e.generateConfig,v=e.placeholder,u=e.className,d=e.style,g=e.onClick,m=e.onClear,h=e.internalPicker,x=e.value,w=e.onChange,L=e.onSubmit;e.onInputChange;var i=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,M=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var T=e.onMouseDown;e.required,e["aria-required"];var z=e.autoFocus,_=e.tabIndex,D=e.removeIcon,H=rn(e,v2),G=E==="rtl",W=f.useContext(Ct),I=W.prefixCls,S=f.useRef(),y=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:S.current,focus:function(A){var j;(j=y.current)===null||j===void 0||j.focus(A)},blur:function(){var A;(A=y.current)===null||A===void 0||A.blur()}}});var P=qo(H),$=function(A){w([A])},O=function(A){var j=x.filter(function(p){return p&&!at(l,c,p,A,h)});w(j),n||L()},R=Uo(pe(pe({},e),{},{onChange:$}),function(N){var A=N.valueTexts;return{value:A[0]||"",active:s}}),F=te(R,2),V=F[0],B=F[1],U=!!(a&&x.length&&!b),K=i?f.createElement(f.Fragment,null,f.createElement(m2,{prefixCls:I,value:x,onRemove:O,formatDate:B,maxTagCount:C,disabled:b,removeIcon:D,placeholder:v}),f.createElement("input",{className:"".concat(I,"-multiple-input"),value:x.map(B).join(","),ref:y,readOnly:!0,autoFocus:z,tabIndex:_}),f.createElement(lr,{type:"suffix",icon:o}),U&&f.createElement(Fr,{icon:a,onClear:m})):f.createElement(Vr,Oe({ref:y},V(),{autoFocus:z,tabIndex:_,suffixIcon:o,clearIcon:U&&f.createElement(Fr,{icon:a,onClear:m}),showActiveCls:!1}));return f.createElement("div",Oe({},P,{className:Re(I,De(De(De(De(De({},"".concat(I,"-multiple"),i),"".concat(I,"-focused"),s),"".concat(I,"-disabled"),b),"".concat(I,"-invalid"),M),"".concat(I,"-rtl"),G),u),style:d,ref:S,onClick:g,onMouseDown:function(A){var j,p=A.target;p!==((j=y.current)===null||j===void 0?void 0:j.inputElement)&&A.preventDefault(),T==null||T(A)}}),r&&f.createElement("div",{className:"".concat(I,"-prefix")},r),K)}var h2=f.forwardRef(g2);function p2(e,t){var n=Po(e),r=te(n,6),a=r[0],o=r[1],s=r[2],c=r[3],l=r[4],v=r[5],u=a,d=u.prefixCls,g=u.styles,m=u.classNames,h=u.order,x=u.defaultValue,w=u.value,L=u.needConfirm,i=u.onChange,C=u.onKeyDown,b=u.disabled,M=u.disabledDate,E=u.minDate,T=u.maxDate,z=u.defaultOpen,_=u.open,D=u.onOpenChange,H=u.locale,G=u.generateConfig,W=u.picker,I=u.showNow,S=u.showToday,y=u.showTime,P=u.mode,$=u.onPanelChange,O=u.onCalendarChange,R=u.onOk,F=u.multiple,V=u.defaultPickerValue,B=u.pickerValue,U=u.onPickerValueChange,K=u.inputReadOnly,N=u.suffixIcon,A=u.removeIcon,j=u.onFocus,p=u.onBlur,Y=u.presets,q=u.components,Z=u.cellRender,Q=u.dateRender,oe=u.monthCellRender,ge=u.onClick,le=Ho(t);function we(Se){return Se===null?null:F?Se:Se[0]}var ue=_o(G,H,o),He=Ao(_,z,[b],D),Ee=te(He,2),Te=Ee[0],Le=Ee[1],Be=function(he,dt,wt){if(O){var In=pe({},wt);delete In.range,O(we(he),we(dt),In)}},je=function(he){R==null||R(we(he))},Ne=zo(G,H,c,!1,h,x,w,Be,je),xe=te(Ne,5),X=xe[0],me=xe[1],ve=xe[2],Ce=xe[3],Me=xe[4],ie=ve(),$e=Oo([b]),ee=te($e,4),ne=ee[0],ce=ee[1],J=ee[2],re=ee[3],Fe=function(he){ce(!0),j==null||j(he,{})},ze=function(he){ce(!1),p==null||p(he,{})},_e=$t(W,{value:P}),ct=te(_e,2),Ke=ct[0],ut=ct[1],lt=Ke==="date"&&y?"datetime":Ke,Ge=Bo(W,Ke,I,S),gt=i&&function(Se,he){i(we(Se),we(he))},yt=jo(pe(pe({},a),{},{onChange:gt}),X,me,ve,Ce,[],c,ne,Te,v),It=te(yt,2),fe=It[1],Ye=wo(ie,v),Ue=te(Ye,2),mt=Ue[0],Gt=Ue[1],Ft=f.useMemo(function(){return mt.some(function(Se){return Se})},[mt]),Qt=function(he,dt){if(U){var wt=pe(pe({},dt),{},{mode:dt.mode[0]});delete wt.range,U(he[0],wt)}},Vt=To(G,H,ie,[Ke],Te,re,o,!1,V,B,qt(y==null?void 0:y.defaultOpenValue),Qt,E,T),zt=te(Vt,2),Kt=zt[0],Xe=zt[1],Xt=nt(function(Se,he,dt){if(ut(he),$&&dt!==!1){var wt=Se||ie[ie.length-1];$(wt,he)}}),ht=function(){fe(ve()),Le(!1,{force:!0})},xt=function(he){!b&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),Le(!0),ge==null||ge(he)},vt=function(){fe(null),Le(!1,{force:!0})},st=f.useState(null),Pt=te(st,2),dr=Pt[0],dn=Pt[1],fr=f.useState(null),fn=te(fr,2),Lt=fn[0],Jt=fn[1],en=f.useMemo(function(){var Se=[Lt].concat(ot(ie)).filter(function(he){return he});return F?Se:Se.slice(0,1)},[ie,Lt,F]),mn=f.useMemo(function(){return!F&&Lt?[Lt]:ie.filter(function(Se){return Se})},[ie,Lt,F]);f.useEffect(function(){Te||Jt(null)},[Te]);var $n=No(Y),mr=function(he){Jt(he),dn("preset")},vn=function(he){var dt=F?ue(ve(),he):[he],wt=fe(dt);wt&&!F&&Le(!1,{force:!0})},vr=function(he){vn(he)},gr=function(he){Jt(he),dn("cell")},hr=function(he){Le(!0),Fe(he)},pr=function(he){if(J("panel"),!(F&&lt!==W)){var dt=F?ue(ve(),he):[he];Ce(dt),!L&&!s&&o===lt&&ht()}},br=function(){Le(!1)},Cr=ea(Z,Q,oe),yr=f.useMemo(function(){var Se=er(a,!1),he=Wr(a,[].concat(ot(Object.keys(Se)),["onChange","onCalendarChange","style","className","onPanelChange"]));return pe(pe({},he),{},{multiple:a.multiple})},[a]),xr=f.createElement(Wo,Oe({},yr,{showNow:Ge,showTime:y,disabledDate:M,onFocus:hr,onBlur:ze,picker:W,mode:Ke,internalMode:lt,onPanelChange:Xt,format:l,value:ie,isInvalid:v,onChange:null,onSelect:pr,pickerValue:Kt,defaultOpenValue:y==null?void 0:y.defaultOpenValue,onPickerValueChange:Xe,hoverValue:en,onHover:gr,needConfirm:L,onSubmit:ht,onOk:Me,presets:$n,onPresetHover:mr,onPresetSubmit:vn,onNow:vr,cellRender:Cr})),wr=function(he){Ce(he)},Sr=function(){J("input")},kr=function(he){J("input"),Le(!0,{inherit:!0}),Fe(he)},Mr=function(he){Le(!1),ze(he)},$r=function(he,dt){he.key==="Tab"&&ht(),C==null||C(he,dt)},Ir=f.useMemo(function(){return{prefixCls:d,locale:H,generateConfig:G,button:q.button,input:q.input}},[d,H,G,q.button,q.input]);return Ot(function(){Te&&re!==void 0&&Xt(null,W,!1)},[Te,re,W]),Ot(function(){var Se=J();!Te&&Se==="input"&&(Le(!1),ht()),!Te&&s&&!L&&Se==="panel"&&ht()},[Te]),f.createElement(Ct.Provider,{value:Ir},f.createElement(bo,Oe({},xo(a),{popupElement:xr,popupStyle:g.popup,popupClassName:m.popup,visible:Te,onClose:br}),f.createElement(h2,Oe({},a,{ref:le,suffixIcon:N,removeIcon:A,activeHelp:!!Lt,allHelp:!!Lt&&dr==="preset",focused:ne,onFocus:kr,onBlur:Mr,onKeyDown:$r,onSubmit:ht,value:mn,maskFormat:l,onChange:wr,onInputChange:Sr,internalPicker:o,format:c,inputReadOnly:K,disabled:b,open:Te,onOpenChange:Le,onClick:xt,onClear:vt,invalid:Ft,onInvalid:function(he){Gt(he,0)}}))))}var b2=f.forwardRef(p2);const Zo=f.createContext(null),C2=Zo.Provider,Go=f.createContext(null),y2=Go.Provider,x2=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},an(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},w2=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:v,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:g,paddingXS:m,dotColorDisabled:h,lineType:x,radioColor:w,radioBgColor:L,calc:i}=e,C=`${t}-inner`,M=i(a).sub(i(4).mul(2)),E=i(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ye(u)} ${x} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
2
+ &:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:oo(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:i(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:i(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:w,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${c}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:v,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:L,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${c}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:d,borderColor:v,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${i(M).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},S2=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:s,motionDurationMid:c,buttonPaddingInline:l,fontSize:v,buttonBg:u,fontSizeLG:d,controlHeightLG:g,controlHeightSM:m,paddingXS:h,borderRadius:x,borderRadiusSM:w,borderRadiusLG:L,buttonCheckedBg:i,buttonSolidCheckedColor:C,colorTextDisabled:b,colorBgContainerDisabled:M,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:T,colorPrimary:z,colorPrimaryHover:_,colorPrimaryActive:D,buttonSolidCheckedBg:H,buttonSolidCheckedHoverBg:G,buttonSolidCheckedActiveBg:W,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:v,lineHeight:ye(I(n).sub(I(a).mul(2)).equal()),background:u,border:`${ye(a)} ${o} ${s}`,borderBlockStartWidth:I(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:I(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${ye(a)} ${o} ${s}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:g,fontSize:d,lineHeight:ye(I(g).sub(I(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child":{borderStartEndRadius:L,borderEndEndRadius:L}},[`${r}-group-small &`]:{height:m,paddingInline:I(h).sub(a).equal(),paddingBlock:0,lineHeight:ye(I(m).sub(I(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},"&:hover":{position:"relative",color:z},"&:has(:focus-visible)":oo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:z,background:i,borderColor:z,"&::before":{backgroundColor:z},"&:first-child":{borderColor:z},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:H,borderColor:H,"&:hover":{color:C,background:G,borderColor:G},"&:active":{color:C,background:W,borderColor:W}},"&-disabled":{color:b,backgroundColor:M,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:b,backgroundColor:M,borderColor:s}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:E,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},k2=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:s,colorBgContainer:c,colorTextDisabled:l,controlItemBgActiveDisabled:v,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:g,colorPrimaryActive:m,colorWhite:h}=e,x=4,w=o,L=t?w-x*2:w-(x+a)*2;return{radioSize:w,dotSize:L,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:m,buttonBg:c,buttonCheckedBg:c,buttonColor:s,buttonCheckedBgDisabled:v,buttonCheckedColorDisabled:l,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?c:d}},Qo=Ur("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ye(n)} ${t}`,o=xn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[x2(o),w2(o),S2(o)]},k2,{unitless:{radioSize:!0,dotSize:!0}});var M2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $2=(e,t)=>{var n,r;const a=f.useContext(Zo),o=f.useContext(Go),{getPrefixCls:s,direction:c,radio:l}=f.useContext(Ut),v=f.useRef(null),u=dl(t,v),{isFormItemInput:d}=f.useContext(tr),g=y=>{var P,$;(P=e.onChange)===null||P===void 0||P.call(e,y),($=a==null?void 0:a.onChange)===null||$===void 0||$.call(a,y)},{prefixCls:m,className:h,rootClassName:x,children:w,style:L,title:i}=e,C=M2(e,["prefixCls","className","rootClassName","children","style","title"]),b=s("radio",m),M=((a==null?void 0:a.optionType)||o)==="button",E=M?`${b}-button`:b,T=nr(b),[z,_,D]=Qo(b,T),H=Object.assign({},C),G=f.useContext(qr);a&&(H.name=a.name,H.onChange=g,H.checked=e.value===a.value,H.disabled=(n=H.disabled)!==null&&n!==void 0?n:a.disabled),H.disabled=(r=H.disabled)!==null&&r!==void 0?r:G;const W=Re(`${E}-wrapper`,{[`${E}-wrapper-checked`]:H.checked,[`${E}-wrapper-disabled`]:H.disabled,[`${E}-wrapper-rtl`]:c==="rtl",[`${E}-wrapper-in-form-item`]:d,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},l==null?void 0:l.className,h,x,_,D,T),[I,S]=fl(H.onClick);return z(f.createElement(io,{component:"Radio",disabled:H.disabled},f.createElement("label",{className:W,style:Object.assign(Object.assign({},l==null?void 0:l.style),L),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:i,onClick:I},f.createElement(ml,Object.assign({},H,{className:Re(H.className,{[vl]:!M}),type:"radio",prefixCls:E,ref:u,onClick:S})),w!==void 0?f.createElement("span",{className:`${E}-label`},w):null)))},Gn=f.forwardRef($2),I2=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(Ut),{name:a}=f.useContext(tr),o=gl(hl(a)),{prefixCls:s,className:c,rootClassName:l,options:v,buttonStyle:u="outline",disabled:d,children:g,size:m,style:h,id:x,optionType:w,name:L=o,defaultValue:i,value:C,block:b=!1,onChange:M,onMouseEnter:E,onMouseLeave:T,onFocus:z,onBlur:_}=e,[D,H]=$t(i,{value:C}),G=f.useCallback(B=>{const U=D,K=B.target.value;"value"in e||H(K),K!==U&&(M==null||M(B))},[D,H,M]),W=n("radio",s),I=`${W}-group`,S=nr(W),[y,P,$]=Qo(W,S);let O=g;v&&v.length>0&&(O=v.map(B=>typeof B=="string"||typeof B=="number"?f.createElement(Gn,{key:B.toString(),prefixCls:W,disabled:d,value:B,checked:D===B},B):f.createElement(Gn,{key:`radio-group-value-options-${B.value}`,prefixCls:W,disabled:B.disabled||d,value:B.value,checked:D===B.value,title:B.title,style:B.style,className:B.className,id:B.id,required:B.required},B.label)));const R=Zr(m),F=Re(I,`${I}-${u}`,{[`${I}-${R}`]:R,[`${I}-rtl`]:r==="rtl",[`${I}-block`]:b},c,l,P,$,S),V=f.useMemo(()=>({onChange:G,value:D,disabled:d,name:L,optionType:w,block:b}),[G,D,d,L,w,b]);return y(f.createElement("div",Object.assign({},er(e,{aria:!0,data:!0}),{className:F,style:h,onMouseEnter:E,onMouseLeave:T,onFocus:z,onBlur:_,id:x,ref:t}),f.createElement(C2,{value:V},O)))}),L2=f.memo(I2);var D2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const E2=(e,t)=>{const{getPrefixCls:n}=f.useContext(Ut),{prefixCls:r}=e,a=D2(e,["prefixCls"]),o=n("radio",r);return f.createElement(y2,{value:"button"},f.createElement(Gn,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},P2=f.forwardRef(E2),Sn=Gn;Sn.Button=P2;Sn.Group=L2;Sn.__ANT_RADIO=!0;const Ar=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=bl(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:ye(o.itemLineHeight)}}}]},A2=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=xn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=xn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ar(a,"small"),Ar(e),Ar(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},pl(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},H2=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:s,lineWidth:c,lineType:l,colorPrimary:v,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:g,cellBgDisabled:m,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ye(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
3
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:s}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ye(c)} ${l} ${v}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
4
+ &-in-view${t}-range-start,
5
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
6
+ &-in-view${t}-range-start,
7
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:v},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:m}},[`&-disabled${t}-today ${n}::before`]:{borderColor:g}}},N2=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:s,paddingSM:c,paddingXS:l,paddingXXS:v,colorBgContainer:u,lineWidth:d,lineType:g,borderRadiusLG:m,colorPrimary:h,colorTextHeading:x,colorSplit:w,pickerControlIconBorderWidth:L,colorIcon:i,textHeight:C,motionDurationMid:b,colorIconHover:M,fontWeightStrong:E,cellHeight:T,pickerCellPaddingVertical:z,colorTextDisabled:_,colorText:D,fontSize:H,motionDurationSlow:G,withoutTimeCellHeight:W,pickerQuarterPanelContentHeight:I,borderRadiusSM:S,colorTextLightSolid:y,cellHoverBg:P,timeColumnHeight:$,timeColumnWidth:O,timeCellHeight:R,controlItemBgActive:F,marginXXS:V,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:U}=e,K=e.calc(s).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:m,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
8
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
9
+ ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:K},"&-header":{display:"flex",padding:`0 ${ye(l)}`,color:x,borderBottom:`${ye(d)} ${g} ${w}`,"> *":{flex:"none"},button:{padding:0,color:i,lineHeight:ye(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${b}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:H,"&:hover":{color:M},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:ye(C),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:L,borderInlineStartWidth:L,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:L,borderInlineStartWidth:L,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:T,fontWeight:"normal"},th:{height:e.calc(T).add(e.calc(z).mul(2)).equal(),color:D,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ye(z)} 0`,color:_,cursor:"pointer","&-in-view":{color:D}},H2(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(W).mul(4).equal()},[r]:{padding:`0 ${ye(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${ye(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ye(l)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ye(l)} ${ye(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${b}`},"&:first-child:before":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child:before":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new wn(y).setA(.5).toHexString()},[r]:{color:y}}},"&-range-hover td:before":{background:F}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ye(l)} ${ye(c)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ye(d)} ${g} ${w}`},[`${t}-date-panel,
10
+ ${t}-time-panel`]:{transition:`opacity ${G}`},"&-active":{[`${t}-date-panel,
11
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:$},"&-column":{flex:"1 0 auto",width:O,margin:`${ye(v)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${b}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ye(R)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ye(d)} ${g} ${w}`},"&-active":{background:new wn(F).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(O).sub(e.calc(V).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(O).sub(R).div(2).equal(),color:D,lineHeight:ye(R),borderRadius:S,cursor:"pointer",transition:`background ${b}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:F}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:_,background:"transparent",cursor:"not-allowed"}}}}}}}}},O2=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:s,cellActiveWithRangeBg:c,colorPrimaryBorder:l,lineType:v,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ye(r)} ${v} ${u}`,"&-extra":{padding:`0 ${ye(a)}`,lineHeight:ye(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ye(r)} ${v} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ye(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ye(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:s,background:c,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},T2=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},R2=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:s}=e,c=o*2,l=s*2,v=Math.min(n-c,n-l),u=Math.min(r-c,r-l),d=Math.min(a-c,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new wn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new wn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},F2=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Cl(e)),R2(e)),yl(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),V2=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},xl(e)),wl(e)),Sl(e)),kl(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Hr=(e,t)=>({padding:`${ye(e)} ${ye(t)}`}),z2=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},j2=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:s,colorBorder:c,borderRadius:l,motionDurationMid:v,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:g,fontSizeLG:m,inputFontSizeLG:h,fontSizeSM:x,inputFontSizeSM:w,controlHeightSM:L,paddingInlineSM:i,paddingXS:C,marginXS:b,colorIcon:M,lineWidthBold:E,colorPrimary:T,motionDurationSlow:z,zIndexPopup:_,paddingXXS:D,sizePopupArrow:H,colorBgElevated:G,borderRadiusLG:W,boxShadowSecondary:I,borderRadiusSM:S,colorSplit:y,cellHoverBg:P,presetsWidth:$,presetsMaxWidth:O,boxShadowPopoverArrow:R,fontHeight:F,lineHeightLG:V}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},an(e)),Hr(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${v}, box-shadow ${v}, background ${v}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${v}`},Hl(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},Hr(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??m,lineHeight:V}}),"&-small":Object.assign(Object.assign({},Hr(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:w??x}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(C).div(2).equal(),color:g,lineHeight:1,pointerEvents:"none",transition:`opacity ${v}, color ${v}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${v}, color ${v}`,"> *":{verticalAlign:"top"},"&:hover":{color:M}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:m,color:g,fontSize:m,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:M},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:E,background:T,opacity:0,transition:`all ${z} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${ye(C)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:i}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},an(e)),N2(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
12
+ &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
13
+ &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
14
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
15
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
16
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:El},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
17
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
18
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
19
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Dl},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
20
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Ll},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
21
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Il},[`${n}-panel > ${n}-time-panel`]:{paddingTop:D},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${z} ease-out`},Al(e,G,R)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:G,borderRadius:W,boxShadow:I,transition:`margin ${z}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:$,maxWidth:O,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${ye(o)} ${s} ${y}`,li:Object.assign(Object.assign({},Pl),{borderRadius:S,paddingInline:C,paddingBlock:e.calc(L).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${z}`,"+ li":{marginTop:b},"&:hover":{background:P}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${ye(e.calc(H).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},xa(e,"slide-up"),xa(e,"slide-down"),wa(e,"move-up"),wa(e,"move-down")]},Ko=Ur("DatePicker",e=>{const t=xn(Ml(e),T2(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[O2(t),j2(t),V2(t),z2(t),A2(t),$l(e,{focusElCls:`${e.componentCls}-focused`})]},F2);var B2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},_2=function(t,n){return f.createElement(Gr,Oe({},t,{ref:n,icon:B2}))},Y2=f.forwardRef(_2);const Xo=(e,t,n,r,a)=>{const{classNames:o,styles:s}=Nl(e),[c,l]=Wl([o,t],[s,n],{popup:{_default:"root"}});return f.useMemo(()=>{var v,u;const d=Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Re((v=c.popup)===null||v===void 0?void 0:v.root,r)})}),g=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),a)})});return[d,g]},[c,l,r,a])};function W2(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function U2(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Jo(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=Ol(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[f.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[q2,Z2]=["week","WeekPicker"],[G2,Q2]=["month","MonthPicker"],[K2,X2]=["year","YearPicker"],[J2,es]=["quarter","QuarterPicker"],[oa,Fa]=["time","TimePicker"];var ts={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},ns=function(t,n){return f.createElement(Gr,Oe({},t,{ref:n,icon:ts}))},rs=f.forwardRef(ns),as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},os=function(t,n){return f.createElement(Gr,Oe({},t,{ref:n,icon:as}))},is=f.forwardRef(os);const ei=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?Ae.createElement(Ae.Fragment,null,e===oa?Ae.createElement(is,null):Ae.createElement(rs,null),t&&n):r,ls=e=>f.createElement(Or,Object.assign({size:"small",type:"primary"},e));function ti(e){return Bt(()=>Object.assign({button:ls},e),[e])}var ss=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cs=e=>ln((n,r)=>{var a;const{prefixCls:o,getPopupContainer:s,components:c,className:l,style:v,placement:u,size:d,disabled:g,bordered:m=!0,placeholder:h,popupStyle:x,popupClassName:w,dropdownClassName:L,status:i,rootClassName:C,variant:b,picker:M,styles:E,classNames:T,suffixIcon:z}=n,_=ss(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),D=M===oa?"timePicker":"datePicker",H=f.useRef(null),{getPrefixCls:G,direction:W,getPopupContainer:I,rangePicker:S}=qn(Ut),y=G("picker",o),{compactSize:P,compactItemClassnames:$}=lo(y,W),O=G(),[R,F]=Qr("rangePicker",b,m),V=nr(y),[B,U,K]=Ko(y,V),[N,A]=Xo(D,T,E,w||L,x),[j]=Jo(n,y),p=ti(c),Y=Zr(Te=>{var Le;return(Le=d??P)!==null&&Le!==void 0?Le:Te}),q=f.useContext(qr),Z=g??q,Q=qn(tr),{hasFeedback:oe,status:ge,feedbackIcon:le}=Q,we=f.createElement(ei,{picker:M,hasFeedback:oe,feedbackIcon:le,suffixIcon:z});ro(r,()=>H.current);const[ue]=so("Calendar",vo),He=Object.assign(Object.assign({},ue),n.locale),[Ee]=co("DatePicker",(a=A.popup.root)===null||a===void 0?void 0:a.zIndex);return B(f.createElement(uo,{space:!0},f.createElement(f2,Object.assign({separator:f.createElement("span",{"aria-label":"to",className:`${y}-separator`},f.createElement(Y2,null)),disabled:Z,ref:H,placement:u,placeholder:U2(He,M,h),suffixIcon:we,prevIcon:f.createElement("span",{className:`${y}-prev-icon`}),nextIcon:f.createElement("span",{className:`${y}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${y}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${y}-super-next-icon`}),transitionName:`${O}-slide-up`,picker:M},_,{className:Re({[`${y}-${Y}`]:Y,[`${y}-${R}`]:F},fo(y,mo(ge,i),oe),U,$,l,S==null?void 0:S.className,K,V,C,N.root),style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.style),v),A.root),locale:He.lang,prefixCls:y,getPopupContainer:s||I,generateConfig:e,components:p,direction:W,classNames:{popup:Re(U,K,V,C,N.popup.root)},styles:{popup:Object.assign(Object.assign({},A.popup.root),{zIndex:Ee})},allowClear:j}))))});var us=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ds=e=>{const t=(l,v)=>{const u=v===Fa?"timePicker":"datePicker";return ln((g,m)=>{var h;const{prefixCls:x,getPopupContainer:w,components:L,style:i,className:C,rootClassName:b,size:M,bordered:E,placement:T,placeholder:z,popupStyle:_,popupClassName:D,dropdownClassName:H,disabled:G,status:W,variant:I,onCalendarChange:S,styles:y,classNames:P,suffixIcon:$}=g,O=us(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:R,direction:F,getPopupContainer:V,[u]:B}=qn(Ut),U=R("picker",x),{compactSize:K,compactItemClassnames:N}=lo(U,F),A=f.useRef(null),[j,p]=Qr("datePicker",I,E),Y=nr(U),[q,Z,Q]=Ko(U,Y);ro(m,()=>A.current);const oe={showToday:!0},ge=l||g.picker,le=R(),{onSelect:we,multiple:ue}=O,He=we&&l==="time"&&!ue,Ee=(J,re,Fe)=>{S==null||S(J,re,Fe),He&&we(J)},[Te,Le]=Xo(u,P,y,D||H,_),[Be,je]=Jo(g,U),Ne=ti(L),xe=Zr(J=>{var re;return(re=M??K)!==null&&re!==void 0?re:J}),X=f.useContext(qr),me=G??X,ve=qn(tr),{hasFeedback:Ce,status:Me,feedbackIcon:ie}=ve,$e=f.createElement(ei,{picker:ge,hasFeedback:Ce,feedbackIcon:ie,suffixIcon:$}),[ee]=so("DatePicker",vo),ne=Object.assign(Object.assign({},ee),g.locale),[ce]=co("DatePicker",(h=Le.popup.root)===null||h===void 0?void 0:h.zIndex);return q(f.createElement(uo,{space:!0},f.createElement(b2,Object.assign({ref:A,placeholder:W2(ne,ge,z),suffixIcon:$e,placement:T,prevIcon:f.createElement("span",{className:`${U}-prev-icon`}),nextIcon:f.createElement("span",{className:`${U}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${U}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${U}-super-next-icon`}),transitionName:`${le}-slide-up`,picker:l,onCalendarChange:Ee},oe,O,{locale:ne.lang,className:Re({[`${U}-${xe}`]:xe,[`${U}-${j}`]:p},fo(U,mo(Me,W),Ce),Z,N,B==null?void 0:B.className,C,Q,Y,b,Te.root),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),i),Le.root),prefixCls:U,getPopupContainer:w||V,generateConfig:e,components:Ne,direction:F,disabled:me,classNames:{popup:Re(Z,Q,Y,b,Te.popup.root)},styles:{popup:Object.assign(Object.assign({},Le.popup.root),{zIndex:ce})},allowClear:Be,removeIcon:je}))))})},n=t(),r=t(q2,Z2),a=t(G2,Q2),o=t(K2,X2),s=t(J2,es),c=t(oa,Fa);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:c,QuarterPicker:s}},ni=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:s}=ds(e),c=cs(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=a,l.RangePicker=c,l.TimePicker=o,l.QuarterPicker=s,l},St=ni(y0),fs=Kr(St,"popupAlign",void 0,"picker");St._InternalPanelDoNotUseOrYouWillBeFired=fs;const ms=Kr(St.RangePicker,"popupAlign",void 0,"picker");St._InternalRangePanelDoNotUseOrYouWillBeFired=ms;St.generatePicker=ni;const vs=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,s=o(r).sub(n).equal(),c=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},an(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},ia=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return xn(e,{tagFontSize:a,tagLineHeight:ye(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},la=e=>({defaultBg:new wn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),ri=Ur("Tag",e=>{const t=ia(e);return vs(t)},la);var gs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hs=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:o,children:s,icon:c,onChange:l,onClick:v}=e,u=gs(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:d,tag:g}=f.useContext(Ut),m=C=>{l==null||l(!o),v==null||v(C)},h=d("tag",n),[x,w,L]=ri(h),i=Re(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},g==null?void 0:g.className,a,w,L);return x(f.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),g==null?void 0:g.style),className:i,onClick:m}),c,f.createElement("span",null,s)))}),ps=e=>Tl(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),bs=go(["Tag","preset"],e=>{const t=ia(e);return ps(t)},la);function Cs(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Tn=(e,t,n)=>{const r=Cs(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},ys=go(["Tag","status"],e=>{const t=ia(e);return[Tn(t,"success","Success"),Tn(t,"processing","Info"),Tn(t,"error","Error"),Tn(t,"warning","Warning")]},la);var xs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ws=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,children:s,icon:c,color:l,onClose:v,bordered:u=!0,visible:d}=e,g=xs(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:h,tag:x}=f.useContext(Ut),[w,L]=f.useState(!0),i=Wr(g,["closeIcon","closable"]);f.useEffect(()=>{d!==void 0&&L(d)},[d]);const C=Rl(l),b=Fl(l),M=C||b,E=Object.assign(Object.assign({backgroundColor:l&&!M?l:void 0},x==null?void 0:x.style),o),T=m("tag",n),[z,_,D]=ri(T),H=Re(T,x==null?void 0:x.className,{[`${T}-${l}`]:M,[`${T}-has-color`]:l&&!M,[`${T}-hidden`]:!w,[`${T}-rtl`]:h==="rtl",[`${T}-borderless`]:!u},r,a,_,D),G=$=>{$.stopPropagation(),v==null||v($),!$.defaultPrevented&&L(!1)},[,W]=Vl(Sa(e),Sa(x),{closable:!1,closeIconRender:$=>{const O=f.createElement("span",{className:`${T}-close-icon`,onClick:G},$);return zl($,O,R=>({onClick:F=>{var V;(V=R==null?void 0:R.onClick)===null||V===void 0||V.call(R,F),G(F)},className:Re(R==null?void 0:R.className,`${T}-close-icon`)}))}}),I=typeof g.onClick=="function"||s&&s.type==="a",S=c||null,y=S?f.createElement(f.Fragment,null,S,s&&f.createElement("span",null,s)):s,P=f.createElement("span",Object.assign({},i,{ref:t,className:H,style:E}),y,W,C&&f.createElement(bs,{key:"preset",prefixCls:T}),b&&f.createElement(ys,{key:"status",prefixCls:T}));return z(I?f.createElement(io,{component:"Tag"},P):P)}),ai=ws;ai.CheckableTag=hs;var Ss=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const{TimePicker:ks,RangePicker:Ms}=St,$s=f.forwardRef((e,t)=>f.createElement(Ms,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),on=f.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:o}=e,s=Ss(e,["addon","renderExtraFooter","variant","bordered"]);const[c]=Qr("timePicker",a,o),l=f.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return f.createElement(ks,Object.assign({},s,{mode:void 0,ref:t,renderExtraFooter:l,variant:c}))}),oi=Kr(on,"popupAlign",void 0,"picker");on._InternalPanelDoNotUseOrYouWillBeFired=oi;on.RangePicker=$s;on._InternalPanelDoNotUseOrYouWillBeFired=oi;const Is=ae.button`
22
+ height: 36px;
23
+ min-height: 36px;
24
+ max-height: 36px;
25
+ line-height: 34px;
26
+ padding: 0 12px;
27
+ border-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
28
+ font-size: 12px;
29
+ border: none;
30
+ cursor: ${e=>e.$disabled||e.$loading?"not-allowed":"pointer"};
31
+ transition: all 0.2s;
32
+ opacity: ${e=>e.$disabled?.5:1};
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ gap: 6px;
37
+ position: relative;
38
+ background: ${({$btnType:e,$theme:t})=>{var n,r,a;return e==="text"?"none":e==="primary"?((n=t==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff":e==="error"?((r=t==null?void 0:t.colors)==null?void 0:r.error)||"#FF0000":e==="default"?((a=t==null?void 0:t.colors)==null?void 0:a.background)||"#f8f9fa":"none"}};
39
+ color: ${({$btnType:e,$theme:t})=>{var n,r;return e==="text"?((n=t==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff":e==="primary"||e==="error"?"#ffffff":((r=t==null?void 0:t.colors)==null?void 0:r.text)||"#343a40"}};
40
+ border: ${({$btnType:e,$theme:t})=>{var n;return e==="default"?`1px solid ${((n=t==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}`:"none"}};
41
+ box-shadow: none;
42
+
43
+ /* Loading 状态样式 */
44
+ ${e=>e.$loading&&`
45
+ pointer-events: none;
46
+ opacity: 0.8;
47
+
48
+ .button-loading {
49
+ width: 14px;
50
+ height: 14px;
51
+ border: 2px solid transparent;
52
+ border-top: 2px solid currentColor;
53
+ border-radius: 50%;
54
+ animation: spin 1s linear infinite;
55
+ margin-right: 6px;
56
+ }
57
+ `}
58
+
59
+ @keyframes spin {
60
+ 0% { transform: rotate(0deg); }
61
+ 100% { transform: rotate(360deg); }
62
+ }
63
+ `,tn=({mode:e="default",label:t,icon:n,disabled:r=!1,loading:a=!1,onClick:o,styles:s,style:c,className:l,children:v,...u})=>{const d=Tt(),g=it(it({theme:Ve,mode:"light"},d),s),m=()=>{!r&&!a&&o&&o()};return se(Is,{$btnType:e,$disabled:r,$loading:a,$theme:g.theme||Ve,onClick:m,disabled:r||a,style:c,className:l,...u,children:[a&&k("span",{className:"button-loading"}),n&&k("span",{className:"button-icon",style:{marginRight:4},children:n}),t&&k("span",{className:"button-label",children:t}),v]})};/**
64
+ * @license lucide-react v0.456.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const Ls=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ii=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
69
+ * @license lucide-react v0.456.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */var Ds={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
74
+ * @license lucide-react v0.456.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const Es=ln(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:s,...c},l)=>nn("svg",{ref:l,...Ds,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ii("lucide",a),...c},[...s.map(([v,u])=>nn(v,u)),...Array.isArray(o)?o:[o]]));/**
79
+ * @license lucide-react v0.456.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const li=(e,t)=>{const n=ln(({className:r,...a},o)=>nn(Es,{ref:o,iconNode:t,className:ii(`lucide-${Ls(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
84
+ * @license lucide-react v0.456.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const Ps=li("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
89
+ * @license lucide-react v0.456.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const As=li("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Hs=ae.div`
94
+ position: fixed;
95
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
96
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
97
+ border-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
98
+ box-shadow: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.shadow)||"0 1px 3px rgba(0, 0, 0, 0.12)"}};
99
+ z-index: 9999;
100
+ min-width: ${e=>e.$buttonRect?`${e.$buttonRect.width}px`:"auto"};
101
+ max-width: 300px;
102
+ overflow: hidden;
103
+ padding: 4px 0;
104
+ `,Ns=ae.div`
105
+ padding: 8px 12px;
106
+ cursor: pointer;
107
+ display: flex;
108
+ align-items: center;
109
+ gap: 8px;
110
+ font-size: 12px;
111
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
112
+ background: transparent;
113
+ transition: background-color 0.2s;
114
+
115
+ &:hover {
116
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.disabledBackground)||"#F5F5F5"}};
117
+ }
118
+
119
+ &:first-child {
120
+ border-top-left-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
121
+ border-top-right-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
122
+ }
123
+
124
+ &:last-child {
125
+ border-bottom-left-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
126
+ border-bottom-right-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
127
+ }
128
+ `,Os=ae.div`
129
+ height: 1px;
130
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
131
+ margin: 4px 0;
132
+ `,Md=({mode:e="default",label:t="\u9009\u62E9\u9009\u9879",actions:n,styles:r,icon:a,disabled:o=!1,style:s,className:c,children:l,eventEmit:v,...u})=>{const[d,g]=Je(!1),m=_t(null),[h,x]=Je(null),[w,L]=Je({top:0,left:0}),i=Tt(),C=it(it({theme:Ve,mode:"light"},i),r);bt(()=>{console.log("[DropDownButton] \u7EC4\u4EF6\u6302\u8F7D\uFF0CeventEmit:",v),console.log("[DropDownButton] actions:",n)},[v,n]);const b=()=>{if(!m.current)return;const z=m.current.getBoundingClientRect();x(z);const _=z.bottom+4,D=z.left;L({top:_,left:D})};bt(()=>{if(!d)return;const z=H=>{m.current&&!m.current.contains(H.target)&&g(!1)},_=()=>g(!1),D=()=>g(!1);return document.addEventListener("mousedown",z),window.addEventListener("scroll",_,!0),window.addEventListener("resize",D),()=>{document.removeEventListener("mousedown",z),window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",D)}},[d]);const M=z=>{v&&v("dropdown_action",{key:z}),g(!1)},E=()=>{o||(d||b(),g(!d))},T=()=>!d||!h?null:k(Hs,{$theme:C.theme||Ve,$buttonRect:h,style:{top:w.top,left:w.left},children:n.map((z,_)=>z.type==="divider"?k(Os,{$theme:C.theme||Ve},z.key||`divider-${_}`):se(Ns,{$theme:C.theme||Ve,onMouseDown:D=>{D.preventDefault(),D.stopPropagation(),M(z.key),z.onClick&&z.onClick()},children:[z.icon&&k("span",{className:"mr-2",children:z.icon}),z.component||z.label]},z.key||`action-${_}`))});return se("div",{ref:m,style:{position:"relative",display:"inline-block"},className:c,children:[se(tn,{mode:e,label:t,icon:a,disabled:o,onClick:E,styles:r,style:s,...u,children:[l,k(Ps,{size:14,style:{marginLeft:4,transition:"transform 0.2s",transform:d?"rotate(180deg)":"rotate(0deg)"}})]}),d&&ho(T(),document.body)]})},Ts=({actions:e,onAction:t,direction:n="top",styles:r})=>{const[a,o]=Je(!1),s=_t(null),[c,l]=Je({}),v=_t(null);bt(()=>{if(!a)return;const m=s.current;if(!m)return;const h=m.getBoundingClientRect(),x=window.scrollX||window.pageXOffset,w=window.scrollY||window.pageYOffset,L=128,i=8;let C={position:"absolute",left:h.right-L+x,width:L,zIndex:9999};if(n==="bottom")C.top=h.bottom+i-12+w;else{const b=e.length*30+1;C.top=h.top-i+10-b+w}l(C)},[a,n,e]),bt(()=>{if(!a)return;const m=x=>{s.current&&s.current.contains(x.target)||v.current&&v.current.contains(x.target)||o(!1)},h=()=>o(!1);return document.addEventListener("mousedown",m),window.addEventListener("scroll",h,!0),()=>{document.removeEventListener("mousedown",m),window.removeEventListener("scroll",h,!0)}},[a]);const u=Tt(),d=it(it({theme:Ve,mode:"light"},u),r),g=k("div",{ref:v,className:`origin-bottom-right absolute right-0 w-32 rounded-md shadow-lg focus:outline-none border transition-all duration-200 ease-in-out
133
+ ${a?"opacity-100 translate-y-0 pointer-events-auto scale-100":"opacity-0 pointer-events-none scale-95"}
134
+ `,style:{...c,background:d.theme.colors.background,color:d.theme.colors.text,border:`1px solid ${d.theme.colors.border}`,borderRadius:d.theme.space.radius,boxShadow:d.theme.colors.shadow,minWidth:128,zIndex:9999},children:k("div",{className:"py-1 px-2",children:e.map((m,h)=>m.type==="divider"?k("div",{className:"my-2 bg-gray-100",style:{height:1}},m.key||`divider-${h}`):se("button",{className:"w-full rounded flex cursor-pointer items-center px-4 py-2 text-sm transition whitespace-nowrap",style:{color:d.theme.colors.text,background:"transparent",border:"none",fontSize:12},onClick:x=>{x.stopPropagation(),o(!1),t(m.key),m.onClick&&m.onClick()},type:"button",onMouseOver:x=>x.currentTarget.style.background=d.theme.colors.disabledBackground,onMouseOut:x=>x.currentTarget.style.background="transparent",children:[m.icon&&k("span",{className:"mr-2",children:m.icon}),m.label]},m.key||`action-${h}`))})});return se(Xn,{children:[k("button",{ref:s,className:"card-action-more-btn cursor-pointer! flex items-center justify-center w-9 h-9 rounded-sm transition border-none outline-none",style:{background:"transparent",color:d.theme.colors.primary,borderRadius:d.theme.space.radius},onClick:m=>{m.stopPropagation(),o(h=>!h)},tabIndex:0,"aria-label":"\u66F4\u591A\u64CD\u4F5C",type:"button",children:k(As,{size:18,className:"text-blue-500"})}),a&&ho(g,document.body)]})};if(typeof window<"u"&&!document.getElementById("card-action-more-btn-style")){const e=document.createElement("style");e.id="card-action-more-btn-style",e.innerHTML=`
135
+ .card-action-more-btn:hover {
136
+ background: #f5f6fa !important;
137
+ color: #222 !important;
138
+ box-shadow: 0 2px 8px 0 rgba(51,112,255,0.06);
139
+ }
140
+ `,document.head.appendChild(e)}const Rs=({current:e,pageSize:t,total:n,onChange:r,showSizeChanger:a=!0,pageSizeOptions:o=[6,12,24,48],onPageSizeChange:s,theme:c,size:l="md",showPageNumbers:v=!0})=>{const u=Math.ceil(n/t);if(u<=1&&!a)return null;const d={colors:{background:"#ffffff",text:"#1f2937",border:"#d9d9d9",disabledBackground:"#f5f5f5",primary:"#1677ff"},space:{radius:"6px"},...c},g=(()=>{const b=[],M=[];for(let E=Math.max(2,e-2);E<=Math.min(u-1,e+2);E++)b.push(E);return e-2>2?M.push(1,"..."):M.push(1),M.push(...b),e+2<u-1?M.push("...",u):u>1&&M.push(u),M})(),m=l==="sm"?{height:24,minWidth:24,fontSize:12,paddingX:8}:{height:28,minWidth:28,fontSize:12,paddingX:8},[h,x]=Ae.useState(""),w=()=>{if(!h||h.trim()==="")return;const b=parseInt(h,10);if(Number.isNaN(b))return;const M=Math.max(1,Math.min(u,b));M!==e&&r(M),x(String(M))},L={background:d.colors.background,color:d.colors.text,border:"1px solid transparent",borderRadius:d.space.radius,height:m.height,minWidth:m.minWidth,padding:`0 ${m.paddingX}px`,fontSize:m.fontSize,lineHeight:`${m.height}px`},i={...L,border:`1px solid ${d.colors.primary}`,color:d.colors.primary},C={background:"transparent",color:d.colors.text,border:"none",height:m.height,minWidth:m.minWidth,padding:`0 ${m.paddingX}px`,fontSize:m.fontSize,lineHeight:`${m.height}px`,borderRadius:d.space.radius};return se("div",{className:"flex items-center justify-center gap-2 select-none",children:[a&&se("div",{className:"flex items-center gap-2 mr-3",children:[k("span",{style:{fontSize:m.fontSize,color:d.colors.text},children:"\u6BCF\u9875"}),k("select",{value:t,onChange:b=>s&&s(parseInt(b.target.value,10)),style:{height:m.height,border:`1px solid ${d.colors.border}`,borderRadius:d.space.radius,padding:`0 ${m.paddingX}px`,background:d.colors.background,color:d.colors.text,fontSize:m.fontSize},"aria-label":"\u6BCF\u9875\u6761\u6570",children:o.map(b=>k("option",{value:b,children:b},b))}),k("span",{style:{fontSize:m.fontSize,color:d.colors.text},children:"\u6761"})]}),k("button",{disabled:e===1,onClick:()=>r(e-1),className:"flex items-center justify-center disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-200",style:C,onMouseEnter:b=>{e!==1&&(b.currentTarget.style.color=d.colors.primary)},onMouseLeave:b=>{b.currentTarget.style.color=e===1?"#bfbfbf":d.colors.text},"aria-label":"\u4E0A\u4E00\u9875",children:k("svg",{width:m.fontSize+4,height:m.fontSize+4,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:e===1?"#bfbfbf":void 0},children:k("polyline",{points:"15,18 9,12 15,6"})})}),v&&g.map((b,M)=>{if(b==="...")return k("span",{style:{...L,color:"#bfbfbf"},children:"..."},`ellipsis-${M}`);const E=b===e;return k("button",{onClick:()=>r(b),className:"flex items-center justify-center transition-all duration-150",style:E?i:L,onMouseEnter:T=>{E||(T.currentTarget.style.borderColor=d.colors.primary,T.currentTarget.style.color=d.colors.primary)},onMouseLeave:T=>{E||(T.currentTarget.style.borderColor="transparent",T.currentTarget.style.color=d.colors.text)},"aria-label":`\u7B2C ${b} \u9875`,"aria-current":E?"page":void 0,children:b},b)}),k("button",{disabled:e===u,onClick:()=>r(e+1),className:"flex items-center justify-center disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-200",style:C,onMouseEnter:b=>{e!==u&&(b.currentTarget.style.color=d.colors.primary)},onMouseLeave:b=>{b.currentTarget.style.color=e===u?"#bfbfbf":d.colors.text},"aria-label":"\u4E0B\u4E00\u9875",children:k("svg",{width:m.fontSize+4,height:m.fontSize+4,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:e===u?"#bfbfbf":void 0},children:k("polyline",{points:"9,18 15,12 9,6"})})}),se("div",{className:"flex items-center gap-2 ml-4",children:[k("span",{style:{fontSize:m.fontSize,color:d.colors.text},children:"\u524D\u5F80"}),k("input",{type:"number",inputMode:"numeric",min:1,max:u,value:h,onChange:b=>x(b.target.value),onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),w())},onBlur:()=>w(),style:{height:m.height,width:l==="sm"?48:64,border:`1px solid ${d.colors.border}`,borderRadius:d.space.radius,padding:`0 ${m.paddingX}px`,background:d.colors.background,color:d.colors.text,fontSize:m.fontSize},"aria-label":"\u8DF3\u8F6C\u9875\u7801\u8F93\u5165"}),k("span",{style:{fontSize:m.fontSize,color:d.colors.text},children:"\u9875"})]})]})};var si={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},sa={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Fs=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Qn={CSS:{},springs:{}};function kt(e,t,n){return Math.min(Math.max(e,t),n)}function yn(e,t){return e.indexOf(t)>-1}function Nr(e,t){return e.apply(null,t)}var de={arr:function(e){return Array.isArray(e)},obj:function(e){return yn(Object.prototype.toString.call(e),"Object")},pth:function(e){return de.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||de.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return de.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return de.hex(e)||de.rgb(e)||de.hsl(e)},key:function(e){return!si.hasOwnProperty(e)&&!sa.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function ci(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function ui(e,t){var n=ci(e),r=kt(de.und(n[0])?1:n[0],.1,100),a=kt(de.und(n[1])?100:n[1],.1,100),o=kt(de.und(n[2])?10:n[2],.1,100),s=kt(de.und(n[3])?0:n[3],.1,100),c=Math.sqrt(a/r),l=o/(2*Math.sqrt(a*r)),v=l<1?c*Math.sqrt(1-l*l):0,u=1,d=l<1?(l*c+-s)/v:-s+c;function g(h){var x=t?t*h/1e3:h;return l<1?x=Math.exp(-x*l*c)*(u*Math.cos(v*x)+d*Math.sin(v*x)):x=(u+d*x)*Math.exp(-x*c),h===0||h===1?h:1-x}function m(){var h=Qn.springs[e];if(h)return h;for(var x=1/6,w=0,L=0;;)if(w+=x,g(w)===1){if(L++,L>=16)break}else L=0;var i=w*x*1e3;return Qn.springs[e]=i,i}return t?g:m}function Vs(e){return e===void 0&&(e=10),function(t){return Math.ceil(kt(t,1e-6,1)*e)*(1/e)}}var zs=(function(){var e=11,t=1/(e-1);function n(u,d){return 1-3*d+3*u}function r(u,d){return 3*d-6*u}function a(u){return 3*u}function o(u,d,g){return((n(d,g)*u+r(d,g))*u+a(d))*u}function s(u,d,g){return 3*n(d,g)*u*u+2*r(d,g)*u+a(d)}function c(u,d,g,m,h){var x,w,L=0;do w=d+(g-d)/2,x=o(w,m,h)-u,x>0?g=w:d=w;while(Math.abs(x)>1e-7&&++L<10);return w}function l(u,d,g,m){for(var h=0;h<4;++h){var x=s(d,g,m);if(x===0)return d;var w=o(d,g,m)-u;d-=w/x}return d}function v(u,d,g,m){if(!(0<=u&&u<=1&&0<=g&&g<=1))return;var h=new Float32Array(e);if(u!==d||g!==m)for(var x=0;x<e;++x)h[x]=o(x*t,u,g);function w(L){for(var i=0,C=1,b=e-1;C!==b&&h[C]<=L;++C)i+=t;--C;var M=(L-h[C])/(h[C+1]-h[C]),E=i+M*t,T=s(E,u,g);return T>=.001?l(L,E,u,g):T===0?E:c(L,i,i+t,u,g)}return function(L){return u===d&&g===m||L===0||L===1?L:o(w(L),d,m)}}return v})(),di=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var a,o=4;r<((a=Math.pow(2,--o))-1)/11;);return 1/Math.pow(4,3-o)-7.5625*Math.pow((a*3-2)/22-r,2)}},Elastic:function(r,a){r===void 0&&(r=1),a===void 0&&(a=.5);var o=kt(r,1,10),s=kt(a,.1,2);return function(c){return c===0||c===1?c:-o*Math.pow(2,10*(c-1))*Math.sin((c-1-s/(Math.PI*2)*Math.asin(1/o))*(Math.PI*2)/s)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,a){t[r]=function(){return function(o){return Math.pow(o,a+2)}}}),Object.keys(t).forEach(function(r){var a=t[r];e["easeIn"+r]=a,e["easeOut"+r]=function(o,s){return function(c){return 1-a(o,s)(1-c)}},e["easeInOut"+r]=function(o,s){return function(c){return c<.5?a(o,s)(c*2)/2:1-a(o,s)(c*-2+2)/2}},e["easeOutIn"+r]=function(o,s){return function(c){return c<.5?(1-a(o,s)(1-c*2))/2:(a(o,s)(c*2-1)+1)/2}}}),e})();function ca(e,t){if(de.fnc(e))return e;var n=e.split("(")[0],r=di[n],a=ci(e);switch(n){case"spring":return ui(e,t);case"cubicBezier":return Nr(zs,a);case"steps":return Nr(Vs,a);default:return Nr(r,a)}}function fi(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function sr(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o<n;o++)if(o in e){var s=e[o];t.call(r,s,o,e)&&a.push(s)}return a}function cr(e){return e.reduce(function(t,n){return t.concat(de.arr(n)?cr(n):n)},[])}function Va(e){return de.arr(e)?e:(de.str(e)&&(e=fi(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function ua(e,t){return e.some(function(n){return n===t})}function da(e){var t={};for(var n in e)t[n]=e[n];return t}function zr(e,t){var n=da(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function ur(e,t){var n=da(e);for(var r in t)n[r]=de.und(e[r])?t[r]:e[r];return n}function js(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function Bs(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(c,l,v,u){return l+l+v+v+u+u}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),a=parseInt(r[1],16),o=parseInt(r[2],16),s=parseInt(r[3],16);return"rgba("+a+","+o+","+s+",1)"}function _s(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,a=parseInt(t[3],10)/100,o=t[4]||1;function s(g,m,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?g+(m-g)*6*h:h<1/2?m:h<2/3?g+(m-g)*(2/3-h)*6:g}var c,l,v;if(r==0)c=l=v=a;else{var u=a<.5?a*(1+r):a+r-a*r,d=2*a-u;c=s(d,u,n+1/3),l=s(d,u,n),v=s(d,u,n-1/3)}return"rgba("+c*255+","+l*255+","+v*255+","+o+")"}function Ys(e){if(de.rgb(e))return js(e);if(de.hex(e))return Bs(e);if(de.hsl(e))return _s(e)}function Et(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function Ws(e){if(yn(e,"translate")||e==="perspective")return"px";if(yn(e,"rotate")||yn(e,"skew"))return"deg"}function jr(e,t){return de.fnc(e)?e(t.target,t.id,t.total):e}function Mt(e,t){return e.getAttribute(t)}function fa(e,t,n){var r=Et(t);if(ua([n,"deg","rad","turn"],r))return t;var a=Qn.CSS[t+n];if(!de.und(a))return a;var o=100,s=document.createElement(e.tagName),c=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;c.appendChild(s),s.style.position="absolute",s.style.width=o+n;var l=o/s.offsetWidth;c.removeChild(s);var v=l*parseFloat(t);return Qn.CSS[t+n]=v,v}function mi(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?fa(e,a,n):a}}function ma(e,t){if(de.dom(e)&&!de.inp(e)&&(!de.nil(Mt(e,t))||de.svg(e)&&e[t]))return"attribute";if(de.dom(e)&&ua(Fs,t))return"transform";if(de.dom(e)&&t!=="transform"&&mi(e,t))return"css";if(e[t]!=null)return"object"}function vi(e){if(de.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,a;a=n.exec(t);)r.set(a[1],a[2]);return r}}function Us(e,t,n,r){var a=yn(t,"scale")?1:0+Ws(t),o=vi(e).get(t)||a;return n&&(n.transforms.list.set(t,o),n.transforms.last=t),r?fa(e,o,r):o}function va(e,t,n,r){switch(ma(e,t)){case"transform":return Us(e,t,r,n);case"css":return mi(e,t,n);case"attribute":return Mt(e,t);default:return e[t]||0}}function ga(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=Et(e)||0,a=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return a+o+r;case"-":return a-o+r;case"*":return a*o+r}}function gi(e,t){if(de.col(e))return Ys(e);if(/\s/g.test(e))return e;var n=Et(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function ha(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function qs(e){return Math.PI*2*Mt(e,"r")}function Zs(e){return Mt(e,"width")*2+Mt(e,"height")*2}function Gs(e){return ha({x:Mt(e,"x1"),y:Mt(e,"y1")},{x:Mt(e,"x2"),y:Mt(e,"y2")})}function hi(e){for(var t=e.points,n=0,r,a=0;a<t.numberOfItems;a++){var o=t.getItem(a);a>0&&(n+=ha(r,o)),r=o}return n}function Qs(e){var t=e.points;return hi(e)+ha(t.getItem(t.numberOfItems-1),t.getItem(0))}function pi(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return qs(e);case"rect":return Zs(e);case"line":return Gs(e);case"polyline":return hi(e);case"polygon":return Qs(e)}}function Ks(e){var t=pi(e);return e.setAttribute("stroke-dasharray",t),t}function Xs(e){for(var t=e.parentNode;de.svg(t)&&de.svg(t.parentNode);)t=t.parentNode;return t}function bi(e,t){var n=t||{},r=n.el||Xs(e),a=r.getBoundingClientRect(),o=Mt(r,"viewBox"),s=a.width,c=a.height,l=n.viewBox||(o?o.split(" "):[0,0,s,c]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:s,h:c,vW:l[2],vH:l[3]}}function Js(e,t){var n=de.str(e)?fi(e)[0]:e,r=t||100;return function(a){return{property:a,el:n,svg:bi(n),totalLength:pi(n)*(r/100)}}}function ec(e,t,n){function r(u){u===void 0&&(u=0);var d=t+u>=1?t+u:0;return e.el.getPointAtLength(d)}var a=bi(e.el,e.svg),o=r(),s=r(-1),c=r(1),l=n?1:a.w/a.vW,v=n?1:a.h/a.vH;switch(e.property){case"x":return(o.x-a.x)*l;case"y":return(o.y-a.y)*v;case"angle":return Math.atan2(c.y-s.y,c.x-s.x)*180/Math.PI}}function za(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=gi(de.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:de.str(e)||t?r.split(n):[]}}function pa(e){var t=e?cr(de.arr(e)?e.map(Va):Va(e)):[];return sr(t,function(n,r,a){return a.indexOf(n)===r})}function Ci(e){var t=pa(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:vi(n)}}})}function tc(e,t){var n=da(t);if(/^spring/.test(n.easing)&&(n.duration=ui(n.easing)),de.arr(e)){var r=e.length,a=r===2&&!de.obj(e[0]);a?e={value:e}:de.fnc(t.duration)||(n.duration=t.duration/r)}var o=de.arr(e)?e:[e];return o.map(function(s,c){var l=de.obj(s)&&!de.pth(s)?s:{value:s};return de.und(l.delay)&&(l.delay=c?0:t.delay),de.und(l.endDelay)&&(l.endDelay=c===o.length-1?t.endDelay:0),l}).map(function(s){return ur(s,n)})}function nc(e){for(var t=sr(cr(e.map(function(o){return Object.keys(o)})),function(o){return de.key(o)}).reduce(function(o,s){return o.indexOf(s)<0&&o.push(s),o},[]),n={},r=function(o){var s=t[o];n[s]=e.map(function(c){var l={};for(var v in c)de.key(v)?v==s&&(l.value=c[v]):l[v]=c[v];return l})},a=0;a<t.length;a++)r(a);return n}function rc(e,t){var n=[],r=t.keyframes;r&&(t=ur(nc(r),t));for(var a in t)de.key(a)&&n.push({name:a,tweens:tc(t[a],e)});return n}function ac(e,t){var n={};for(var r in e){var a=jr(e[r],t);de.arr(a)&&(a=a.map(function(o){return jr(o,t)}),a.length===1&&(a=a[0])),n[r]=a}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function oc(e,t){var n;return e.tweens.map(function(r){var a=ac(r,t),o=a.value,s=de.arr(o)?o[1]:o,c=Et(s),l=va(t.target,e.name,c,t),v=n?n.to.original:l,u=de.arr(o)?o[0]:v,d=Et(u)||Et(l),g=c||d;return de.und(s)&&(s=v),a.from=za(u,g),a.to=za(ga(s,u),g),a.start=n?n.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=ca(a.easing,a.duration),a.isPath=de.pth(o),a.isPathTargetInsideSVG=a.isPath&&de.svg(t.target),a.isColor=de.col(a.from.original),a.isColor&&(a.round=1),n=a,a})}var yi={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,a){if(r.list.set(t,n),t===r.last||a){var o="";r.list.forEach(function(s,c){o+=c+"("+s+") "}),e.style.transform=o}}};function xi(e,t){var n=Ci(e);n.forEach(function(r){for(var a in t){var o=jr(t[a],r),s=r.target,c=Et(o),l=va(s,a,c,r),v=c||Et(l),u=ga(gi(o,v),l),d=ma(s,a);yi[d](s,a,u,r.transforms,!0)}})}function ic(e,t){var n=ma(e.target,t.name);if(n){var r=oc(t,e),a=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:a.end,delay:r[0].delay,endDelay:a.endDelay}}}function lc(e,t){return sr(cr(e.map(function(n){return t.map(function(r){return ic(n,r)})})),function(n){return!de.und(n)})}function wi(e,t){var n=e.length,r=function(o){return o.timelineOffset?o.timelineOffset:0},a={};return a.duration=n?Math.max.apply(Math,e.map(function(o){return r(o)+o.duration})):t.duration,a.delay=n?Math.min.apply(Math,e.map(function(o){return r(o)+o.delay})):t.delay,a.endDelay=n?a.duration-Math.max.apply(Math,e.map(function(o){return r(o)+o.duration-o.endDelay})):t.endDelay,a}var ja=0;function sc(e){var t=zr(si,e),n=zr(sa,e),r=rc(n,e),a=Ci(e.targets),o=lc(a,r),s=wi(o,n),c=ja;return ja++,ur(t,{id:c,children:[],animatables:a,animations:o,duration:s.duration,delay:s.delay,endDelay:s.endDelay})}var pt=[],Si=(function(){var e;function t(){!e&&(!Ba()||!Ze.suspendWhenDocumentHidden)&&pt.length>0&&(e=requestAnimationFrame(n))}function n(a){for(var o=pt.length,s=0;s<o;){var c=pt[s];c.paused?(pt.splice(s,1),o--):(c.tick(a),s++)}e=s>0?requestAnimationFrame(n):void 0}function r(){Ze.suspendWhenDocumentHidden&&(Ba()?e=cancelAnimationFrame(e):(pt.forEach(function(a){return a._onDocumentVisibility()}),Si()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function Ba(){return!!document&&document.hidden}function Ze(e){e===void 0&&(e={});var t=0,n=0,r=0,a,o=0,s=null;function c(i){var C=window.Promise&&new Promise(function(b){return s=b});return i.finished=C,C}var l=sc(e);c(l);function v(){var i=l.direction;i!=="alternate"&&(l.direction=i!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,a.forEach(function(C){return C.reversed=l.reversed})}function u(i){return l.reversed?l.duration-i:i}function d(){t=0,n=u(l.currentTime)*(1/Ze.speed)}function g(i,C){C&&C.seek(i-C.timelineOffset)}function m(i){if(l.reversePlayback)for(var b=o;b--;)g(i,a[b]);else for(var C=0;C<o;C++)g(i,a[C])}function h(i){for(var C=0,b=l.animations,M=b.length;C<M;){var E=b[C],T=E.animatable,z=E.tweens,_=z.length-1,D=z[_];_&&(D=sr(z,function(N){return i<N.end})[0]||D);for(var H=kt(i-D.start-D.delay,0,D.duration)/D.duration,G=isNaN(H)?1:D.easing(H),W=D.to.strings,I=D.round,S=[],y=D.to.numbers.length,P=void 0,$=0;$<y;$++){var O=void 0,R=D.to.numbers[$],F=D.from.numbers[$]||0;D.isPath?O=ec(D.value,G*R,D.isPathTargetInsideSVG):O=F+G*(R-F),I&&(D.isColor&&$>2||(O=Math.round(O*I)/I)),S.push(O)}var V=W.length;if(!V)P=S[0];else{P=W[0];for(var B=0;B<V;B++){W[B];var U=W[B+1],K=S[B];isNaN(K)||(U?P+=K+U:P+=K+" ")}}yi[E.type](T.target,E.property,P,T.transforms),E.currentValue=P,C++}}function x(i){l[i]&&!l.passThrough&&l[i](l)}function w(){l.remaining&&l.remaining!==!0&&l.remaining--}function L(i){var C=l.duration,b=l.delay,M=C-l.endDelay,E=u(i);l.progress=kt(E/C*100,0,100),l.reversePlayback=E<l.currentTime,a&&m(E),!l.began&&l.currentTime>0&&(l.began=!0,x("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,x("loopBegin")),E<=b&&l.currentTime!==0&&h(0),(E>=M&&l.currentTime!==C||!C)&&h(C),E>b&&E<M?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,x("changeBegin")),x("change"),h(E)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,x("changeComplete")),l.currentTime=kt(E,0,C),l.began&&x("update"),i>=C&&(n=0,w(),l.remaining?(t=r,x("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&v()):(l.paused=!0,l.completed||(l.completed=!0,x("loopComplete"),x("complete"),!l.passThrough&&"Promise"in window&&(s(),c(l)))))}return l.reset=function(){var i=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=i==="reverse",l.remaining=l.loop,a=l.children,o=a.length;for(var C=o;C--;)l.children[C].reset();(l.reversed&&l.loop!==!0||i==="alternate"&&l.loop===1)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=d,l.set=function(i,C){return xi(i,C),l},l.tick=function(i){r=i,t||(t=r),L((r+(n-t))*Ze.speed)},l.seek=function(i){L(u(i))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,pt.push(l),d(),Si())},l.reverse=function(){v(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.remove=function(i){var C=pa(i);ki(C,l)},l.reset(),l.autoplay&&l.play(),l}function _a(e,t){for(var n=t.length;n--;)ua(e,t[n].animatable.target)&&t.splice(n,1)}function ki(e,t){var n=t.animations,r=t.children;_a(e,n);for(var a=r.length;a--;){var o=r[a],s=o.animations;_a(e,s),!s.length&&!o.children.length&&r.splice(a,1)}!n.length&&!r.length&&t.pause()}function cc(e){for(var t=pa(e),n=pt.length;n--;){var r=pt[n];ki(t,r)}}function uc(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?ca(t.easing):null,a=t.grid,o=t.axis,s=t.from||0,c=s==="first",l=s==="center",v=s==="last",u=de.arr(e),d=parseFloat(u?e[0]:e),g=u?parseFloat(e[1]):0,m=Et(u?e[1]:e)||0,h=t.start||0+(u?d:0),x=[],w=0;return function(L,i,C){if(c&&(s=0),l&&(s=(C-1)/2),v&&(s=C-1),!x.length){for(var b=0;b<C;b++){if(!a)x.push(Math.abs(s-b));else{var M=l?(a[0]-1)/2:s%a[0],E=l?(a[1]-1)/2:Math.floor(s/a[0]),T=b%a[0],z=Math.floor(b/a[0]),_=M-T,D=E-z,H=Math.sqrt(_*_+D*D);o==="x"&&(H=-_),o==="y"&&(H=-D),x.push(H)}w=Math.max.apply(Math,x)}r&&(x=x.map(function(W){return r(W/w)*w})),n==="reverse"&&(x=x.map(function(W){return o?W<0?W*-1:-W:Math.abs(w-W)}))}var G=u?(g-d)/w:d;return h+G*(Math.round(x[i]*100)/100)+m}}function dc(e){e===void 0&&(e={});var t=Ze(e);return t.duration=0,t.add=function(n,r){var a=pt.indexOf(t),o=t.children;a>-1&&pt.splice(a,1);function s(g){g.passThrough=!0}for(var c=0;c<o.length;c++)s(o[c]);var l=ur(n,zr(sa,e));l.targets=l.targets||e.targets;var v=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=de.und(r)?v:ga(r,v),s(t),t.seek(l.timelineOffset);var u=Ze(l);s(u),o.push(u);var d=wi(o,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}Ze.version="3.2.1";Ze.speed=1;Ze.suspendWhenDocumentHidden=!0;Ze.running=pt;Ze.remove=cc;Ze.get=va;Ze.set=xi;Ze.convertPx=fa;Ze.path=Js;Ze.setDashoffset=Ks;Ze.stagger=uc;Ze.timeline=dc;Ze.easing=ca;Ze.penner=di;Ze.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};/**
141
+ * @license lucide-react v0.456.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const fc=sn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
146
+ * @license lucide-react v0.456.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Ya=sn("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
151
+ * @license lucide-react v0.456.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const Mi=sn("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
156
+ * @license lucide-react v0.456.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Ht=sn("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
161
+ * @license lucide-react v0.456.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const mc=sn("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
166
+ * @license lucide-react v0.456.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const vc=sn("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),gc=ae.div`
171
+ background-color: #ffffff;
172
+ box-shadow: 0 2px 12px rgba(0,0,0,0.08);
173
+ border-radius: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.space)==null?void 0:n.radius)||"8px"}};
174
+ height: 90vh;
175
+ overflow: hidden;
176
+ position: relative;
177
+ `,hc=()=>{bt(()=>{const e="goggle-nav-icon-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=`
178
+ :root { --color-gray: #64748b; --color-blue: #3b82f6; }
179
+ .g-nav-item { position: relative; transition: all .3s ease; border-radius: 8px; }
180
+ .g-nav-icon img { transition: all .3s ease; filter: grayscale(100%) brightness(100%) opacity(.7); }
181
+ .g-nav-text { color: var(--color-gray); transition: color .3s ease; }
182
+ .g-nav-item:not(.active):hover .g-nav-icon img { filter: sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(80%) opacity(1); transform: scale(1.05); }
183
+ .g-nav-item:not(.active):hover .g-nav-text { color: var(--color-blue); font-weight: 500; }
184
+ .g-nav-item.active { background-color: rgba(219,234,254,0.6); }
185
+ .g-nav-item.active .g-nav-icon img { filter: sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(100%) opacity(1); transform: scale(1.05); }
186
+ .g-nav-item.active .g-nav-text { color: var(--color-blue); opacity: .8; font-weight: 500; }
187
+ .g-nav-item.active::before { content: ''; position: absolute; left: 0; top: 30%; bottom: 30%; width: 3px; background: var(--color-blue); border-radius: 0 2px 2px 0; }
188
+ `,document.head.appendChild(t)}},[])},pc=({items:e,activePath:t,defaultOpen:n=!0,open:r,onOpenChange:a,onItemClick:o,logo:s,className:c,style:l,styles:v})=>{const u=Tt(),d=it(it({theme:Ve,mode:"light"},u),v);hc();const[g,m]=Je(n),h=typeof r=="boolean"?r:g,x=b=>{typeof r=="boolean"||m(b),a==null||a(b)},[w,L]=Je(!1),i=b=>b?typeof b=="string"?k("img",{src:b,className:"w-6 h-6 transition-all duration-200",alt:"nav"}):b:null,C=Bt(()=>({width:h?"60px":"20px",minWidth:h?"60px":"20px",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}),[h]);return se(gc,{$theme:d.theme||Ve,className:`relative ${c||""}`,style:{...C,...l},children:[k("div",{onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),className:"absolute top-1/2 -translate-y-1/2 right-1 w-6 h-6 cursor-pointer z-20 transition-all duration-300",onClick:()=>x(!h),"aria-label":h?"\u6536\u8D77":"\u5C55\u5F00",role:"button",children:k("div",{className:"group flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",children:se("div",{className:"relative w-4 h-4 flex items-center justify-center",children:[k("div",{className:`absolute w-[2px] h-3 bg-gray-400 rounded-full transition-all duration-300 ${w?"opacity-0 scale-0":"opacity-100 scale-100"}`}),k("svg",{viewBox:"0 0 24 24",fill:"none",className:`absolute w-4 h-4 stroke-gray-400 transition-all duration-300 ${w?"opacity-100 scale-100":"opacity-0 scale-0"} ${h?"rotate-0":"rotate-180"}`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:k("polyline",{points:"15 18 9 12 15 6"})})]})})}),se("div",{className:"h-full py-6 px-[2px] flex flex-col items-center",style:{opacity:h?1:0,transform:h?"translateX(0)":"translateX(-10px)",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)"},children:[k("div",{className:"mb-6 transition-transform duration-300 hover:scale-105",children:typeof s=="string"?k("img",{src:s,className:"w-7 h-7",alt:"logo"}):s||k("div",{className:"w-7 h-7 rounded bg-gray-100 flex items-center justify-center text-xs text-gray-500",children:"G"})}),k("div",{className:"w-full gap-y-[2px] mb-10 flex-1 overflow-x-hidden overflow-y-auto scrollbar-none flex flex-col items-center",children:e.map(b=>{const M=!!(t&&b.path&&t.startsWith(b.path)),E=M&&b.activeIcon?b.activeIcon:b.icon;return se("div",{onClick:()=>!b.disabled&&(o==null?void 0:o(b)),className:`g-nav-item group relative w-full flex flex-col items-center justify-center py-3 px-2 rounded-lg cursor-pointer transition-all duration-200 ${M?"active bg-blue-50":"text-gray-500 hover:bg-gray-50"}`,children:[se("div",{className:"relative g-nav-icon transition-transform duration-200 group-hover:scale-105",children:[i(E),b.badge&&b.badge>0&&k("span",{className:"absolute -top-1 -right-1 min-w-[16px] h-4 px-1 rounded-full bg-red-500 text-white text-[10px] leading-4 text-center",children:b.badge>99?"99+":b.badge})]}),k("div",{className:"mt-1 text-xs text-center g-nav-text transition-colors duration-200",children:b.name})]},b.key)})})]})]})};ae.div.withConfig({shouldForwardProp:e=>!["itemWidth","itemGap","theme"].includes(e)})`
189
+ position: relative;
190
+ display: flex;
191
+ align-items: flex-end;
192
+ justify-content: center;
193
+ padding: 12px 20px;
194
+ background: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.background)||"rgba(255, 255, 255, 0.18)"}};
195
+ backdrop-filter: saturate(180%) blur(20px);
196
+ -webkit-backdrop-filter: saturate(180%) blur(20px);
197
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.border)||"rgba(255, 255, 255, 0.28)"}};
198
+ border-radius: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.space)==null?void 0:n.radius)||"14px"}};
199
+ box-shadow: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.shadow)||"0 6px 24px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.4)"}};
200
+ width: fit-content;
201
+ margin: 0 auto;
202
+ min-width: ${e=>e.itemWidth*2}px;
203
+ `;ae.div.withConfig({shouldForwardProp:e=>!["itemWidth","itemHeight","itemGap","isHovered","magnification"].includes(e)})`
204
+ position: relative;
205
+ width: ${e=>e.itemWidth}px;
206
+ height: ${e=>e.itemHeight}px;
207
+ margin: 0 ${e=>e.itemGap/2}px;
208
+ cursor: pointer;
209
+ transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
210
+ transform: ${e=>e.isHovered?`scale(${e.magnification})`:"scale(1)"};
211
+ transform-origin: center bottom;
212
+ z-index: ${e=>e.isHovered?10:1};
213
+ `;ae.img.withConfig({shouldForwardProp:e=>!["isActive"].includes(e)})`
214
+ width: 80%;
215
+ height: 80%;
216
+ object-fit: contain;
217
+ border-radius: 8px;
218
+ transition: all 0.15s ease;
219
+ filter: ${e=>e.isActive?"none":"grayscale(0.3) brightness(0.8)"};
220
+
221
+ &:hover {
222
+ filter: none;
223
+ }
224
+ `;ae.div.withConfig({shouldForwardProp:e=>!["isActive","theme"].includes(e)})`
225
+ position: absolute;
226
+ bottom: -4px;
227
+ left: 40%;
228
+ transform: translateX(-50%);
229
+ width: 6px;
230
+ height: 6px;
231
+ background: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007AFF"}};
232
+ border-radius: 50%;
233
+ opacity: ${e=>e.isActive?1:0};
234
+ transition: opacity 0.2s ease;
235
+ `;ae.div.withConfig({shouldForwardProp:e=>!["visible","theme"].includes(e)})`
236
+ position: absolute;
237
+ bottom: 100%;
238
+ left: 40%;
239
+ transform: translateX(-50%) translateY(-8px);
240
+ background: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.text)||"rgba(0, 0, 0, 0.8)"}};
241
+ color: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.background)||"white"}};
242
+ padding: 4px 8px;
243
+ border-radius: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.space)==null?void 0:n.radius)||"4px"}};
244
+ font-size: 10px;
245
+ white-space: nowrap;
246
+ opacity: ${e=>e.visible?1:0};
247
+ visibility: ${e=>e.visible?"visible":"hidden"};
248
+ transition: all 0.2s ease;
249
+ z-index: 1000;
250
+
251
+ &::after {
252
+ content: '';
253
+ position: absolute;
254
+ top: 100%;
255
+ left: 50%;
256
+ transform: translateX(-50%);
257
+ border: 4px solid transparent;
258
+ border-top-color: ${e=>{var t,n;return((n=(t=e.theme)==null?void 0:t.colors)==null?void 0:n.text)||"rgba(0, 0, 0, 0.8)"}};
259
+ }
260
+ `;const $i=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]},Wa=()=>Math.random().toString(36).substr(2,9),bc=(e,t)=>{const n={...e.formData},r=["name","filename","title","displayName","fileName"],a=["size","fileSize","file_size"],o=["type","fileType","mimeType","contentType"];return t.forEach(s=>{const c=s.name||s.field;c&&(r.includes(c.toLowerCase())&&!n[c]&&(n[c]=e.name),a.includes(c.toLowerCase())&&!n[c]&&(n[c]=$i(e.size)),o.includes(c.toLowerCase())&&!n[c]&&(n[c]=e.type))}),n},Cc=async(e,t,n={},r={},a)=>new Promise((o,s)=>{var c;const l=new XMLHttpRequest,v=new URL(t);if(Object.entries(r).forEach(([d,g])=>{v.searchParams.append(d,g)}),(c=n["Content-Type"])==null?void 0:c.includes("application/json")){const d=new FileReader;d.onload=()=>{const g=d.result,m=JSON.stringify({file:g.split(",")[1]});u(m)},d.onerror=()=>s(new Error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")),d.readAsDataURL(e)}else{const d=new FormData;d.append("tableFile",e),u(d)}function u(d){l.upload.addEventListener("progress",g=>{if(g.lengthComputable){const m=Math.round(g.loaded/g.total*100);a==null||a(m)}}),l.addEventListener("load",()=>{if(l.status>=200&&l.status<300)try{const g=JSON.parse(l.responseText);g.data?o(g.data):o(l.responseText)}catch{o(l.responseText)}else{console.log("====xhr.responseText",l.responseText);let g="";try{const h=JSON.parse(l.responseText);h.errorMsg?g=h.errorMsg:h.message?g=h.message:h.error?g=h.error:g=`\u4E0A\u4F20\u5931\u8D25: ${l.status} ${l.statusText}`}catch{g=`\u4E0A\u4F20\u5931\u8D25: ${l.status} ${l.statusText}`}const m=new Error(g);m.response={status:l.status,statusText:l.statusText,data:l.responseText?JSON.parse(l.responseText):null,headers:l.getAllResponseHeaders()},s(m)}}),l.addEventListener("error",()=>{const g=new Error("\u7F51\u7EDC\u9519\u8BEF\uFF0C\u4E0A\u4F20\u5931\u8D25");g.request=l,g.type="network",s(g)}),l.addEventListener("timeout",()=>{const g=new Error("\u8BF7\u6C42\u8D85\u65F6\uFF0C\u4E0A\u4F20\u5931\u8D25");g.request=l,g.type="timeout",s(g)}),l.open("POST",v.toString()),Object.entries(n).forEach(([g,m])=>{l.setRequestHeader(g,m)}),l.send(d)}}),yc=ae.div`
261
+ border: 2px dashed ${e=>{var t,n,r,a;return e.$isDragOver?((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff":((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.border)||"#dee2e6"}};
262
+ border-radius: 4px;
263
+ background: ${e=>{var t,n,r,a;return e.$isDragOver?`${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}10`:((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.background)||"#f8f9fa"}};
264
+ padding: 24px;
265
+ text-align: center;
266
+ transition: all 0.2s ease;
267
+ cursor: pointer;
268
+ min-height: 200px;
269
+ display: flex;
270
+ flex-direction: column;
271
+ align-items: center;
272
+ justify-content: center;
273
+ gap: 16px;
274
+
275
+ &:hover {
276
+ border-color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
277
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
278
+ }
279
+ `,xc=ae.div`
280
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
281
+ font-size: 48px;
282
+ margin-bottom: 8px;
283
+ `,wc=ae.div`
284
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
285
+ font-size: 16px;
286
+ font-weight: 500;
287
+ margin-bottom: 4px;
288
+ `,Ua=ae.div`
289
+ color: ${e=>{var t,n,r,a;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.textSecondary)||((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.disabledText)||"#6b7280"}};
290
+ font-size: 14px;
291
+ `,Sc=ae.input`
292
+ display: none;
293
+ `,kc=ae.div`
294
+
295
+ width: 100%;
296
+ max-width: 600px;
297
+ `,Mc=ae.div.attrs({className:"upload-item"})`
298
+ display: flex;
299
+ align-items: center;
300
+ padding: 8px 12px;
301
+ border-bottom: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
302
+ border: ${e=>{var t,n,r,a;return e.$hasForm?"none":e.$status==="error"?`1px solid ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}`:`1px solid ${((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.border)||"#dee2e6"}`}};
303
+ border-radius: 4px;
304
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#ffffff"}};
305
+ transition: all 0.2s ease;
306
+
307
+ &:hover {
308
+ border-color: ${e=>{var t,n,r,a;return e.$hasForm?"transparent":e.$status==="error"?((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000":((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.primary)||"#007bff"}};
309
+ }
310
+ `,$c=ae.div`
311
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
312
+ margin-right: 12px;
313
+ flex-shrink: 0;
314
+ `,Ic=ae.div`
315
+ flex: 1;
316
+ min-width: 0;
317
+ `,Lc=ae.div`
318
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
319
+ font-size: 12px;
320
+ font-weight: 400;
321
+ margin-bottom: 2px;
322
+ white-space: nowrap;
323
+ overflow: hidden;
324
+ text-overflow: ellipsis;
325
+ `,Dc=ae.div`
326
+ color: ${e=>{var t,n,r,a;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.textSecondary)||((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.disabledText)||"#6b7280"}};
327
+ font-size: 10px;
328
+ `,Ec=ae.div`
329
+ width: 100%;
330
+ height: 4px;
331
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
332
+ border-radius: 2px;
333
+ overflow: hidden;
334
+ margin-top: 8px;
335
+ position: relative;
336
+
337
+ &::after {
338
+ content: '';
339
+ position: absolute;
340
+ top: 0;
341
+ left: 0;
342
+ height: 100%;
343
+ width: ${e=>e.$progress}%;
344
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
345
+ transition: width 0.3s ease;
346
+ }
347
+ `,Pc=ae.div`
348
+ margin-left: 12px;
349
+ flex-shrink: 0;
350
+ color: ${e=>{var t,n,r,a,o,s,c,l,v,u;switch(e.$status){case"success":return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.success)||"#008000";case"error":return((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.error)||"#FF0000";case"uploading":return((s=(o=e.$theme)==null?void 0:o.colors)==null?void 0:s.primary)||"#007bff";case"pending":return((l=(c=e.$theme)==null?void 0:c.colors)==null?void 0:l.warning)||"#FFA500";default:return((u=(v=e.$theme)==null?void 0:v.colors)==null?void 0:u.disabledText)||"#808080"}}};
351
+ `,Ac=ae.button`
352
+ background: none;
353
+ border: none;
354
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}};
355
+ cursor: pointer;
356
+ padding: 4px;
357
+ border-radius: 4px;
358
+ margin-left: 8px;
359
+ transition: all 0.2s ease;
360
+
361
+ &:hover {
362
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}}20;
363
+ }
364
+ `;ae.button`
365
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
366
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
367
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
368
+ padding: 8px 16px;
369
+ border-radius: 4px;
370
+ cursor: pointer;
371
+ display: flex;
372
+ align-items: center;
373
+ gap: 8px;
374
+ font-size: 14px;
375
+ transition: all 0.2s ease;
376
+
377
+ &:hover {
378
+ border-color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
379
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}}10;
380
+ }
381
+ `;ae.button`
382
+ background: none;
383
+ border: none;
384
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
385
+ cursor: pointer;
386
+ padding: 4px;
387
+ border-radius: 4px;
388
+ margin-left: 8px;
389
+ transition: all 0.2s ease;
390
+ display: flex;
391
+ align-items: center;
392
+
393
+ &:hover {
394
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}}20;
395
+ }
396
+ `;const Hc=ae.div`
397
+ padding: 0px;
398
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
399
+
400
+ /* 移除边框,避免与外层容器边框重叠 */
401
+ border: none;
402
+ border-radius: 0;
403
+
404
+ /* 添加上方隔离线 */
405
+ border-top: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
406
+
407
+ /* 当有错误时,使用错误状态的隔离线颜色 */
408
+ ${e=>{var t,n;return e.$hasError&&`
409
+ border-top-color: ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"};
410
+ `}}
411
+
412
+ /* 添加左右内边距,与外层容器对齐 */
413
+ margin: 0 1px;
414
+
415
+ /* 添加背景色区分 */
416
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.listBackground)||"#f9f9f9"}};
417
+ `;ae.input`
418
+ border: 1px solid ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.border)||"#dee2e6"}};
419
+ border-radius: 4px;
420
+ padding: 8px 12px;
421
+ font-size: 14px;
422
+ width: 100%;
423
+ margin-top: 8px;
424
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
425
+ color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.text)||"#343a40"}};
426
+
427
+ &:focus {
428
+ outline: none;
429
+ border-color: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.primary)||"#007bff"}};
430
+ }
431
+ `;const Nc=ae.div`
432
+ /* 基础样式 */
433
+ margin-top: 5px;
434
+ background: ${e=>{var t,n;return((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.background)||"#f8f9fa"}};
435
+ transition: all 0.2s ease;
436
+
437
+ /* 边框逻辑:有表单时显示边框,无表单时不显示 */
438
+ border: ${e=>{var t,n,r,a;return e.$hasForm?e.$status==="error"?`1px solid ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}`:`1px solid ${((a=(r=e.$theme)==null?void 0:r.colors)==null?void 0:a.border)||"#dee2e6"}`:"none"}};
439
+
440
+ /* 圆角设置:有表单时设置圆角,无表单时不设置 */
441
+ border-radius: ${e=>e.$hasForm?"4px":"0"};
442
+
443
+ /* 当有表单时的特殊样式 */
444
+ ${e=>e.$hasForm&&`
445
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
446
+
447
+ /* \u786E\u4FDD\u8FB9\u6846\u5B8C\u6574\u5305\u88F9\u6574\u4E2A\u5BB9\u5668 */
448
+ overflow: hidden;
449
+ `}
450
+
451
+ /* 错误状态的特殊样式 */
452
+ ${e=>{var t,n;return e.$status==="error"&&`
453
+ background: ${((n=(t=e.$theme)==null?void 0:t.colors)==null?void 0:n.error)||"#FF0000"}05;
454
+ `}}
455
+
456
+ /* 样式覆盖 */
457
+ .list-my div{
458
+ padding: 2px 2px !important;
459
+ }
460
+
461
+ :where(.css-dev-only-do-not-override-1v28nim).ant-input-textarea-affix-wrapper.ant-input-affix-wrapper >textarea.ant-input{
462
+ min-height: 32px !important;
463
+ }
464
+ `;function qe(e){return e.label?se("div",{className:"flex items-center gap-2",children:[k("span",{className:"font-medium text-gray-800 text-sm",children:e.label}),e.required&&k("span",{className:"text-red-500 font-bold text-sm",children:"*"}),(e.helpText||e.description)&&k(Xr,{title:e.helpText||e.description,placement:"top",children:k(Mi,{className:"text-gray-400 hover:text-gray-600 cursor-help transition-colors",size:14})})]}):null}function Oc(e=[],t,n={},r="md"){const a=r==="sm"?"28px":"40px",o=r==="sm"?"28px":"40px",s=r==="sm"?"0 8px":"0 12px",c=r==="sm"?"16px":"24px",l=r==="sm"?"12px":"14px",v=Ae.useMemo(()=>{var i,C,b,M,E,T;(C=(i=t==null?void 0:t.theme)==null?void 0:i.colors)!=null&&C.border;const z=((M=(b=t==null?void 0:t.theme)==null?void 0:b.colors)==null?void 0:M.primary)||"#3b82f6",_=((T=(E=t==null?void 0:t.theme)==null?void 0:E.colors)==null?void 0:T.textSecondary)||"#9ca3af";return`
465
+ .dynamic-form .ant-form-item-label > label {
466
+ height: auto !important;
467
+ line-height: 1.5 !important;
468
+ margin-bottom: ${r==="sm"?"6px":"8px"} !important;
469
+ font-weight: 500 !important;
470
+ color: #374151 !important;
471
+ font-size: ${l} !important;
472
+ }
473
+ .dynamic-form .ant-form-item {
474
+ margin-bottom: ${c} !important;
475
+ animation: df-fade-in 200ms ease-out both;
476
+ }
477
+
478
+ /* \u53D7\u63A7\u9879\u51FA\u73B0\u7684\u8F7B\u5FAE\u52A8\u753B */
479
+ @keyframes df-fade-in {
480
+ from { opacity: 0; transform: translateY(6px); }
481
+ to { opacity: 1; transform: translateY(0); }
482
+ }
483
+ .df-stagger { animation: df-fade-in 200ms ease-out both; }
484
+
485
+ /* \u9690\u85CFAnt Design\u7684\u5FC5\u586B\u661F\u53F7 */
486
+ .dynamic-form .ant-form-item-required::before {
487
+ display: none !important;
488
+ }
489
+ .dynamic-form .ant-form-item-required::after {
490
+ display: none !important;
491
+ }
492
+
493
+ .dynamic-form .ant-input,
494
+ .dynamic-form .ant-select-selector,
495
+ {
496
+ border-radius: 6px !important;
497
+ border: none !important;
498
+ transition: all 0.2s !important;
499
+
500
+ line-height: ${o} !important;
501
+ padding: ${s} !important;
502
+ font-size: ${l} !important;
503
+ }
504
+
505
+ /* smooth show/hide for controlled items */
506
+ .df-hidden {
507
+ opacity: 0 !important;
508
+ transform: translateY(-4px) !important;
509
+ max-height: 0 !important;
510
+ margin-bottom: 0 !important;
511
+ overflow: hidden !important;
512
+ pointer-events: none !important;
513
+ transition: all 180ms ease !important;
514
+ }
515
+ .df-stagger { transition: all 200ms ease; }
516
+
517
+ .dynamic-form .ant-input-number,
518
+ .dynamic-form .ant-picker {
519
+ line-height: ${o} !important;
520
+ padding: ${s} !important;
521
+ font-size: ${l} !important;
522
+ }
523
+
524
+ .dynamic-form .ant-input{
525
+ padding: 0 6px !important;
526
+ }
527
+ .ant-input-affix-wrapper:where(.css-dev-only-do-not-override-1vjf2v5).ant-input-affix-wrapper {
528
+ padding:0 6px !important;
529
+ }
530
+
531
+ .dynamic-form .ant-input-textarea .ant-input {
532
+ border: none !important;
533
+ background: transparent !important;
534
+ padding: ${r==="sm"?"6px 8px":"8px 12px"} !important;
535
+ min-height: ${r==="sm"?"56px":"80px"} !important;
536
+ resize: vertical !important;
537
+ }
538
+
539
+ /* textarea \u6837\u5F0F\u4FEE\u590D */
540
+ .dynamic-form .ant-input-textarea {
541
+ border-radius: 6px !important;
542
+ border: 1px solid #d1d5db !important;
543
+ transition: all 0.2s !important;
544
+ font-size: ${l} !important;
545
+ }
546
+
547
+ /* \u5BC6\u7801\u6846\u6837\u5F0F\u4FEE\u590D */
548
+ .dynamic-form .ant-input-password {
549
+ height: ${a} !important;
550
+ line-height: ${o} !important;
551
+ padding: 0 0px !important;
552
+ }
553
+ .dynamic-form .ant-input-number .ant-input-number-input {
554
+ padding: 0 0px !important;
555
+ }
556
+ .dynamic-form :where(.css-dev-only-do-not-override-1d4w9r2).ant-input-number .ant-input-number-input{
557
+ padding: 0 0px !important;
558
+ }
559
+ .dynamic-form .ant-input-password .ant-input {
560
+ height: ${r==="sm"?"26px":"38px"} !important;
561
+ line-height: ${r==="sm"?"26px":"38px"} !important;
562
+ padding: ${s} !important;
563
+ border: none !important;
564
+ background: transparent !important;
565
+ }
566
+ /* \u6570\u5B57\u6846\u6837\u5F0F\u4FEE\u590D */
567
+ .dynamic-form .ant-input-number {
568
+ height: ${a} !important;
569
+ line-height: ${o} !important;
570
+ width: 100% !important;
571
+ }
572
+ .dynamic-form .ant-input-number .ant-input-number-input {
573
+ height: ${r==="sm"?"26px":"38px"} !important;
574
+ line-height: ${r==="sm"?"26px":"38px"} !important;
575
+ text-align: left !important;
576
+ }
577
+ .dynamic-form .ant-input:focus,
578
+ .dynamic-form .ant-select-focused .ant-select-selector,
579
+ .dynamic-form .ant-input-number-focused,
580
+ .dynamic-form .ant-picker-focused {
581
+ border-color: ${z} !important;
582
+ box-shadow: 0 0 0 2px ${z}1A !important;
583
+ }
584
+ .dynamic-form .ant-input:hover,
585
+ .dynamic-form .ant-select:hover .ant-select-selector,
586
+ .dynamic-form .ant-input-number:hover,
587
+ .dynamic-form .ant-picker:hover {
588
+ border-color: ${_} !important;
589
+ }
590
+ .ant-form input[type="file"] {
591
+ display: none !important;
592
+ }
593
+
594
+
595
+
596
+ /* \u8BA1\u6570\u5668\u6837\u5F0F\u4F18\u5316\uFF0C\u907F\u514D\u4E0E\u81EA\u5B9A\u4E49\u6837\u5F0F\u51B2\u7A81 */
597
+ .dynamic-form .ant-input-show-count-suffix {
598
+ color: #6b7280 !important;
599
+ font-size: 12px !important;
600
+ margin-left: 8px !important;
601
+ }
602
+
603
+ .dynamic-form .ant-input-textarea-show-count-suffix {
604
+ color: #6b7280 !important;
605
+ font-size: 12px !important;
606
+ text-align: right !important;
607
+ margin-top: 4px !important;
608
+ }
609
+
610
+ /* \u786E\u4FDD\u8BA1\u6570\u5668\u4E0D\u4E0E\u5176\u4ED6\u5143\u7D20\u91CD\u53E0 */
611
+ .dynamic-form .ant-form-item-control-input {
612
+ position: relative !important;
613
+ }
614
+
615
+ .dynamic-form .ant-form-item-control-input-content {
616
+ position: relative !important;
617
+ }
618
+ `},[r,a,o,s,c,l,t]);Ae.useEffect(()=>{const i=document.createElement("style");return i.textContent=v,document.head.appendChild(i),()=>{document.head.removeChild(i)}},[v]);const[u,d]=Ae.useState(()=>{const i={};return e.forEach(C=>{C.name&&(C.type==="switch"?i[C.name]=n[C.name]??C.defaultValue??!1:["select","radio","checkbox"].includes(C.type)&&(i[C.name]=n[C.name]??C.defaultValue??(C.type==="checkbox"?[]:"")))}),i}),g=Ae.useRef();Ae.useEffect(()=>{t&&t.formInstance&&!g.current&&(g.current=t.formInstance)},[t]);const m=(i,C,b)=>{var M;if(d(E=>({...E,[i]:C})),g.current&&b){let E=[];if(Array.isArray(b))E=b;else if(typeof b=="object"){const T=String(C);Object.keys(b).forEach(z=>{z!==T&&b[z].forEach(_=>{_&&g.current.setFieldsValue({[_]:void 0})})})}Array.isArray(b)&&((M=e.find(T=>T.name===i))==null?void 0:M.type)==="switch"&&!C&&E.forEach(T=>{T&&g.current.setFieldsValue({[T]:void 0})})}},h=new Set,x=(()=>{var i,C;try{return((C=(i=t==null?void 0:t.formInstance)==null?void 0:i.getFieldsValue)==null?void 0:C.call(i))||{}}catch{return{}}})(),w=i=>{i.forEach(C=>{if(C){if(C.controlledItems&&C.name){const b=u[C.name];if(Array.isArray(C.controlledItems))C.type==="switch"&&b===!1&&C.controlledItems.forEach(M=>{M&&h.add(M)});else if(typeof C.controlledItems=="object"){const M=new Set;Object.values(C.controlledItems).forEach(z=>{(z||[]).forEach(_=>_&&M.add(_))});const E=String(b??""),T=new Set((C.controlledItems[E]||[]).filter(Boolean));M.forEach(z=>{T.has(z)||h.add(z)})}}(typeof C.hidden=="function"?C.hidden(x):C.hidden===!0)&&C.name&&h.add(C.name),C.type==="col"&&Array.isArray(C.children)&&w(C.children)}})};w(e);const L=e.map((i,C)=>{var b,M,E,T,z,_,D,H,G,W,I,S,y,P,$,O,R,F,V,B,U,K;if(i.name&&h.has(i.name))return null;if(i.type==="divider")return k("div",{className:"my-3 border-b border-solid border-gray-200"},i.name||`divider-${Math.random()}`);if(i.type==="title"){const N=i.level||1,A={1:"text-[16px]",2:"text-[14px]",3:"text-[12px]"},j=A[N]||A[1];return k("div",{className:`${j} text-gray-800 mb-4 mt-6 ${i.className||""} df-stagger`,style:{color:"#1f2937",lineHeight:"1.4",fontWeight:N===1?700:N===2?600:500,animationDelay:`${C*30}ms`},children:se("div",{className:"flex items-center",children:[k("span",{className:"mr-3",children:i.label}),k("div",{className:"flex-1 border-b-[1px] border-dashed border-gray-200",style:{borderBottomStyle:"dashed",borderBottomWidth:"1px",borderBottomColor:"#e5e7eb"}})]})},i.name||`title-${Math.random()}`)}if(i.type==="col"){if(!i.children||i.children.length===0)return null;const N=(p,Y)=>{var q,Z,Q,oe,ge,le,we,ue,He,Ee,Te,Le,Be,je,Ne,xe,X,me,ve,Ce,Me,ie;const $e=typeof p.hidden=="function"?p.hidden(x):p.hidden===!0;if(p.name&&h.has(p.name)||$e)return null;const ee={label:p.label?qe(p):void 0,name:p.name,rules:p.name?[{required:p.required,message:p.error||`\u8BF7\u8F93\u5165${p.label}`}]:void 0,className:"mb-6 df-stagger",style:{animationDelay:`${Y*30}ms`},labelCol:{span:24},wrapperCol:{span:24},required:!1},ne=p.name||p.id||`form-item-${Y}`,ce=`${p.className||""} ${r==="sm"?"h-7":"h-10"}`;switch(p.type){case"divider":return k("div",{className:"my-3 border-b border-solid border-gray-200"},p.name||p.id||`divider-${Y}`);case"input":return k(ke.Item,{...ee,children:k(rt,{placeholder:p.placeholder,disabled:p.disabled,className:ce})},ne);case"select":return k(ke.Item,{...ee,children:k(Ln,{placeholder:p.placeholder,disabled:p.disabled,className:ce,value:u[p.name||""],onChange:J=>m(p.name||"",J,p.controlledItems),children:(q=p.options)==null?void 0:q.map((J,re)=>k(Ln.Option,{value:J.value,children:J.render?J.render():J.label},J.value||re))})},ne);case"number":return k(ke.Item,{...ee,children:k(Dn,{addonAfter:p.unit?k("span",{className:"text-[10px] text-gray-300",children:p.unit}):null,min:(Z=p.range)==null?void 0:Z.min,max:(Q=p.range)==null?void 0:Q.max,step:p.step,placeholder:p.placeholder,disabled:p.disabled,className:ce,style:{width:"100%"}})},ne);case"password":return k(ke.Item,{...ee,children:k(rt.Password,{placeholder:p.placeholder,disabled:p.disabled,className:ce})},ne);case"textarea":return k(ke.Item,{...ee,children:k(rt.TextArea,{placeholder:p.placeholder,disabled:p.disabled,className:ce,rows:r==="sm"?3:4})},ne);case"date":return k(ke.Item,{...ee,children:k(St,{placeholder:p.placeholder,disabled:p.disabled,className:ce,style:{width:"100%"}})},ne);case"radio":return k(ke.Item,{...ee,children:k(Sn.Group,{options:p.options,disabled:p.disabled,className:p.className})},ne);case"switch":return k(ke.Item,{label:null,colon:!1,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},children:se("div",{className:"flex items-center justify-between",children:[k("div",{className:"flex items-center gap-2",children:p.label?qe(p):null}),k(ke.Item,{name:p.name,valuePropName:"checked",noStyle:!0,children:k(Ma,{disabled:p.disabled,checked:u[p.name||""],onChange:J=>m(p.name||"",J,p.controlledItems)})})]})},p.name||`switch-${Math.random()}`);case"slider":return se("div",{className:"mb-6",children:[se("div",{className:"flex items-center justify-between mb-3",children:[k("div",{className:"flex items-center",children:p.label?qe(p):null}),se("div",{className:"flex items-center gap-2",children:[k(ke.Item,{name:p.name,noStyle:!0,children:k(Dn,{min:(oe=p.range)==null?void 0:oe.min,max:(ge=p.range)==null?void 0:ge.max,step:p.step,disabled:p.disabled,className:"h-8 w-20"})}),p.unit&&k("span",{className:"text-sm text-gray-500",children:p.unit})]})]}),k(ke.Item,{name:p.name,noStyle:!0,children:k(ka,{min:(le=p.range)==null?void 0:le.min,max:(we=p.range)==null?void 0:we.max,step:p.step,disabled:p.disabled,className:p.className})})]},p.name||`slider-${Math.random()}`);case"checkbox":return k(ke.Item,{...ee,children:k($a.Group,{options:p.options,disabled:p.disabled,className:p.className})},ne);case"email":return k(ke.Item,{...ee,children:k(rt,{type:"email",placeholder:p.placeholder,disabled:p.disabled,className:ce})},ne);case"time":return k(ke.Item,{...ee,children:k(on,{placeholder:p.placeholder,disabled:p.disabled,className:ce,style:{width:"100%"}})},ne);case"datetime":return k(ke.Item,{...ee,children:k(St,{showTime:!0,placeholder:p.placeholder,disabled:p.disabled,className:ce,style:{width:"100%"}})},ne);case"file":return k(ke.Item,{...ee,children:k(rt,{type:"file",placeholder:p.placeholder,disabled:p.disabled,className:ce})},ne);case"color":return k(ke.Item,{...ee,children:k(rt,{type:"color",placeholder:p.placeholder,disabled:p.disabled,className:ce,style:{width:"65px",height:"40px",padding:"4px !important"}})},ne);case"json":return k(ke.Item,{...ee,children:k(rt.TextArea,{placeholder:p.placeholder,disabled:p.disabled,className:ce,rows:4})},ne);case"markdown":return k(ke.Item,{...ee,children:k(rt.TextArea,{placeholder:p.placeholder,disabled:p.disabled,className:ce,rows:6})},ne);case"uploader":return k(ke.Item,{...ee,children:k(Za,{multiple:((ue=p.uploaderConfig)==null?void 0:ue.multiple)??!0,accept:((He=p.uploaderConfig)==null?void 0:He.accept)??"*/*",maxSize:((Ee=p.uploaderConfig)==null?void 0:Ee.maxSize)??100,maxFiles:((Te=p.uploaderConfig)==null?void 0:Te.maxFiles)??10,autoUpload:((Le=p.uploaderConfig)==null?void 0:Le.autoUpload)??!0,url:(Be=p.uploaderConfig)==null?void 0:Be.url,headers:((je=p.uploaderConfig)==null?void 0:je.headers)??{},queryParams:((Ne=p.uploaderConfig)==null?void 0:Ne.queryParams)??{},itemForm:((xe=p.uploaderConfig)==null?void 0:xe.itemForm)??[],buttons:((X=p.uploaderConfig)==null?void 0:X.buttons)||[],icons:(me=p.uploaderConfig)==null?void 0:me.icons,placeholder:(ve=p.uploaderConfig)==null?void 0:ve.placeholder,listName:(Ce=p.uploaderConfig)==null?void 0:Ce.listName,errorMessages:(Me=p.uploaderConfig)==null?void 0:Me.errorMessages,onRef:(ie=p.uploaderConfig)==null?void 0:ie.onRef,styles:t,eventsEmit:(J,re)=>{if(t&&typeof t.eventsEmit=="function"){const Fe=J.startsWith("uploader:")?J:`uploader:${J}`;t.eventsEmit(Fe,{fieldName:p.name,...re})}}})},ne);default:return null}},A=i.children.map((p,Y)=>N(p,Y)),j=p=>{if(!i.percentage||i.percentage.length===0)return"flex-1";const Y=i.percentage[p];return Y&&Y>0?`${Y/12*100}%`:"flex-1"};return k("div",{className:`flex justify-between items-start gap-x-2 ${i.className||""}`,style:{flexDirection:i.direction==="column"?"column":"row",flexWrap:i.wrap?"wrap":"nowrap",gap:i.gap?`${i.gap}px`:"8px",justifyContent:i.justify||"space-between",alignItems:i.align||"start"},children:A.map((p,Y)=>k("div",{style:{width:j(Y),flex:i.percentage?"none":"1"},children:p},`col-child-${Y}`))},i.name||`col-${Math.random()}`)}if(i.type==="input"){const N=[];return i.required&&N.push({required:!0,message:i.error||`\u8BF7\u8F93\u5165${i.label}`}),i.validate&&N.push({validator:async(A,j)=>{if(j&&i.validate){const p=i.validate(j);if(p)throw new Error(p)}}}),k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:N.length>0?N:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,maxLength:i.counter,showCount:!!i.counter})},i.name||`input-${Math.random()}`)}if(i.type==="select")return k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(Ln,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,value:u[i.name||""],onChange:N=>m(i.name||"",N,i.controlledItems),children:(b=i.options)==null?void 0:b.map((N,A)=>k(Ln.Option,{value:N.value,children:N.render?N.render():N.label},N.value||A))})},i.name||`select-${Math.random()}`);if(i.type==="number")return k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u8F93\u5165${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(Dn,{addonAfter:i.unit?k("span",{className:"text-[10px] text-gray-300",children:i.unit}):null,min:(M=i.range)==null?void 0:M.min,max:(E=i.range)==null?void 0:E.max,step:i.step,placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},i.name||`number-${Math.random()}`);if(i.type==="slider")return se("div",{className:"mb-6",children:[se("div",{className:"flex items-center justify-between mb-3",children:[k("div",{className:"flex items-center",children:i.label?qe(i):null}),se("div",{className:"flex items-center gap-2",children:[k(ke.Item,{name:i.name,noStyle:!0,children:k(Dn,{min:(T=i.range)==null?void 0:T.min,max:(z=i.range)==null?void 0:z.max,step:i.step,disabled:i.disabled,className:"h-8 w-20"})}),i.unit&&k("span",{className:"text-sm text-gray-500",children:i.unit})]})]}),k(ke.Item,{name:i.name,noStyle:!0,children:k(ka,{min:(_=i.range)==null?void 0:_.min,max:(D=i.range)==null?void 0:D.max,step:i.step,disabled:i.disabled,className:i.className})})]},i.name||`slider-${Math.random()}`);if(i.type==="switch")return k(ke.Item,{label:null,colon:!1,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},children:se("div",{className:"flex items-center justify-between",children:[k("div",{className:"flex items-center gap-2",children:i.label?qe(i):null}),k(ke.Item,{name:i.name,valuePropName:"checked",noStyle:!0,children:k(Ma,{disabled:i.disabled,checked:i.name?u[i.name]:!1,className:i.className,onChange:N=>i.name&&m(i.name,N,i.controlledItems)})})]})},i.name||`switch-${Math.random()}`);if(i.type==="textarea"){const N=[];return i.required&&N.push({required:!0,message:i.error||`\u8BF7\u8F93\u5165${i.label}`}),i.validate&&N.push({validator:async(A,j)=>{if(j&&i.validate){const p=i.validate(j);if(p)throw new Error(p)}}}),k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:N.length>0?N:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt.TextArea,{placeholder:i.placeholder,disabled:i.disabled,rows:r==="sm"?2:3,style:{height:"auto !important"},maxLength:i.counter,showCount:!!i.counter})},i.name||`textarea-${Math.random()}`)}return i.type==="date"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(St,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},i.name||`date-${Math.random()}`):i.type==="radio"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(Sn.Group,{options:i.options,disabled:i.disabled,className:i.className})},i.name||`radio-${Math.random()}`):i.type==="password"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u8F93\u5165${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt.Password,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`})},i.name||`password-${Math.random()}`):i.type==="checkbox"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k($a.Group,{options:i.options,disabled:i.disabled,className:i.className})},i.name||`checkbox-${Math.random()}`):i.type==="email"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u8F93\u5165${i.label}`},{type:"email",message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740"}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt,{type:"email",placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`})},i.name||`email-${Math.random()}`):i.type==="time"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(on,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},i.name||`time-${Math.random()}`):i.type==="datetime"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(St,{showTime:!0,placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%"}})},i.name||`datetime-${Math.random()}`):i.type==="file"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt,{type:"file",placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`})},i.name||`file-${Math.random()}`):i.type==="color"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u9009\u62E9${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt,{type:"color",placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,style:{width:"100%",height:r==="sm"?"28px":"40px"}})},i.name||`color-${Math.random()}`):i.type==="json"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u8F93\u5165${i.label}`},{validator:(N,A)=>{if(!A)return Promise.resolve();try{return JSON.parse(A),Promise.resolve()}catch{return Promise.reject(new Error("\u8BF7\u8F93\u5165\u6709\u6548\u7684JSON\u683C\u5F0F"))}}}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt.TextArea,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,rows:4})},i.name||`json-${Math.random()}`):i.type==="markdown"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u8F93\u5165${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(rt.TextArea,{placeholder:i.placeholder,disabled:i.disabled,className:`${i.className||""} ${r==="sm"?"h-7":"h-10"}`,rows:6})},i.name||`markdown-${Math.random()}`):i.type==="uploader"?k(ke.Item,{label:i.label?qe(i):void 0,name:i.name,rules:i.name?[{required:i.required,message:i.error||`\u8BF7\u4E0A\u4F20${i.label}`}]:void 0,className:"mb-6",labelCol:{span:24},wrapperCol:{span:24},required:!1,children:k(Za,{multiple:((H=i.uploaderConfig)==null?void 0:H.multiple)??!0,accept:((G=i.uploaderConfig)==null?void 0:G.accept)??"*/*",maxSize:((W=i.uploaderConfig)==null?void 0:W.maxSize)??100,maxFiles:((I=i.uploaderConfig)==null?void 0:I.maxFiles)??10,autoUpload:((S=i.uploaderConfig)==null?void 0:S.autoUpload)??!0,url:(y=i.uploaderConfig)==null?void 0:y.url,headers:((P=i.uploaderConfig)==null?void 0:P.headers)??{},queryParams:(($=i.uploaderConfig)==null?void 0:$.queryParams)??{},itemForm:((O=i.uploaderConfig)==null?void 0:O.itemForm)??[],buttons:((R=i.uploaderConfig)==null?void 0:R.buttons)||[],icons:(F=i.uploaderConfig)==null?void 0:F.icons,placeholder:(V=i.uploaderConfig)==null?void 0:V.placeholder,listName:(B=i.uploaderConfig)==null?void 0:B.listName,errorMessages:(U=i.uploaderConfig)==null?void 0:U.errorMessages,onRef:(K=i.uploaderConfig)==null?void 0:K.onRef,styles:t,eventsEmit:(N,A)=>{if(t&&typeof t.eventsEmit=="function"){const j=N.startsWith("uploader:")?N:`uploader:${N}`;t.eventsEmit(j,{fieldName:i.name,...A})}}})},i.name||`uploader-${Math.random()}`):null});return Ae.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(g)},[t]),L}const Tc=`
619
+ .ant-input-password .ant-input-suffix {
620
+ position: absolute !important;
621
+ right: 8px !important;
622
+ top: 50% !important;
623
+ transform: translateY(-50%) !important;
624
+ display: flex !important;
625
+ align-items: center !important;
626
+ justify-content: center !important;
627
+ }
628
+
629
+ .ant-input-password .ant-input-suffix .anticon {
630
+ font-size: 14px !important;
631
+ color: rgba(0, 0, 0, 0.45) !important;
632
+ }
633
+
634
+ .ant-input-password:hover .ant-input-suffix .anticon {
635
+ color: rgba(0, 0, 0, 0.65) !important;
636
+ }
637
+ `,Ii=Ae.forwardRef(({formItems:e,formProps:t={},initialValues:n={},eventsEmit:r,databaseType:a,styles:o,size:s="md",formConfig:c,title:l,description:v,formWidth:u,...d},g)=>{var m,h,x,w,L,i,C,b,M,E,T,z,_,D;const[H]=ke.useForm(),G=Tt(),W=it(it({theme:Ve,mode:"light"},G),o),I=_t({}),S=()=>{const A=H.getFieldsValue(),j=[],p=q=>{q==null||q.forEach(Z=>{Z&&(Z.type==="col"&&Array.isArray(Z.children)?p(Z.children):Z.name&&j.push({name:Z.name,type:Z.type}))})};p(e);const Y=j.map(q=>{const Z=q.type==="uploader"?I.current[q.name]||A[q.name]||[]:A[q.name];return{name:q.name,type:q.type,value:Z}});return{formName:(t==null?void 0:t.name)||"",values:A,fields:Y,files:I.current,timestamp:new Date().toISOString()}},y=(A,j)=>{typeof r=="function"&&(r("form:change",{formName:(t==null?void 0:t.name)||"",values:j,changedValues:A}),Object.keys(A).forEach(p=>{r("form:fieldChange",{formName:(t==null?void 0:t.name)||"",field:p,value:A[p],allValues:j})}))},P=(A,j)=>{if(A.startsWith("uploader:")){const p=j==null?void 0:j.fieldName;if(p){const Y=I.current[p]||[];let q=Y;switch(A){case"uploader:success":{const Z=j==null?void 0:j.item;if(Z){const Q={id:Z.id,name:Z.name,size:Z.size,type:Z.type,uploadApiRes:Z.uploadApiRes||{},formData:Z.formData||{}},oe=Y.findIndex(ge=>ge.id===Q.id);oe>=0?(Y[oe]=Q,q=[...Y]):q=[...Y,Q]}break}case"uploader:remove":{const Z=j==null?void 0:j.itemId;q=Y.filter(Q=>Q.id!==Z);break}case"uploader:formDataChange":{const Z=j==null?void 0:j.itemId,Q=(j==null?void 0:j.formData)||{};q=Y.map(oe=>oe.id===Z?{...oe,formData:Q}:oe);break}case"uploader:dataChange":{Array.isArray(j==null?void 0:j.items)&&(q=j.items.map(Z=>({id:Z.id,name:Z.name,size:Z.size,type:Z.type,uploadApiRes:Z.uploadApiRes||{},formData:Z.formData||{}})));break}}I.current[p]=q,H.setFieldsValue({[p]:q})}}if(typeof r=="function"){const p={formName:(t==null?void 0:t.name)||"",...j};A==="uploader:error"&&p.data===void 0&&(p.data=S()),r(A,p)}},[$,O]=Je(e);bt(()=>{O(e)},[e]);const R=(A,j)=>{const p=Y=>Y.map(q=>q&&(q.type==="col"&&Array.isArray(q.children)?{...q,children:p(q.children)}:q.name===A?{...q,...j}:q));O(Y=>p(Y))},F=A=>{const j=[...$];for(;j.length;){const p=j.shift();if(p){if(p.type==="col"&&Array.isArray(p.children))j.push(...p.children);else if(p.name===A)return p}}},V=Oc($,{...o,eventsEmit:P,formInstance:H},n,s),B=async()=>{try{const A=await H.validateFields();typeof r=="function"?r("form:submit",{formName:(t==null?void 0:t.name)||"",values:A,data:S()}):H.submit(),c!=null&&c.onSubmit?c.onSubmit(A):H.resetFields()}catch(A){typeof r=="function"&&r("form:submit_error",{formName:(t==null?void 0:t.name)||"",error:A,data:S()})}},U=()=>{H.resetFields(),typeof r=="function"&&r("form:reset",{formName:(t==null?void 0:t.name)||"",data:S()}),c!=null&&c.onReset&&c.onReset()},K=()=>{H.resetFields(),typeof r=="function"&&r("form:cancel",{formName:(t==null?void 0:t.name)||"",data:S()})},N=async()=>{try{const A=await H.validateFields(),j=[],p=q=>{q==null||q.forEach(Z=>{Z&&(Z.type==="col"&&Array.isArray(Z.children)?p(Z.children):Z.name&&j.push({name:Z.name,type:Z.type}))})};p(e);const Y=j.map(q=>{const Z=q.type==="uploader"?I.current[q.name]||A[q.name]||[]:A[q.name];return{name:q.name,type:q.type,value:Z}});return{fields:Y,formName:(t==null?void 0:t.name)||"",fieldCount:Y.length,timestamp:new Date().toISOString(),isValid:!0}}catch(A){const j=H.getFieldsValue(),p=[],Y=Z=>{Z==null||Z.forEach(Q=>{Q&&(Q.type==="col"&&Array.isArray(Q.children)?Y(Q.children):Q.name&&p.push({name:Q.name,type:Q.type}))})};Y(e);const q=p.map(Z=>{const Q=Z.type==="uploader"?I.current[Z.name]||j[Z.name]||[]:j[Z.name];return{name:Z.name,type:Z.type,value:Q}});return{fields:q,formName:(t==null?void 0:t.name)||"",fieldCount:q.length,timestamp:new Date().toISOString(),isValid:!1,errors:A}}};return Ae.useImperativeHandle(g,()=>({form:H,getAllData:N,submit:B,reset:U,cancel:K,validate:()=>H.validateFields(),getValue:A=>H.getFieldValue(A),getValues:()=>H.getFieldsValue(),setValues:A=>H.setFieldsValue(A),setFieldProps:(A,j)=>R(A,j),getFieldProps:A=>F(A)}),[H,N,B,U,K]),se(Xn,{children:[k("style",{children:Tc}),se("div",{style:{position:"relative",height:"100%",padding:"24px",width:u||"100%",maxWidth:u||"100%"},children:[(l||v)&&se("div",{style:{marginBottom:"24px"},children:[l&&k("h2",{style:{fontSize:"24px",fontWeight:"600",color:((h=(m=W.theme)==null?void 0:m.colors)==null?void 0:h.text)||"#1f2937",margin:"0 0 8px 0"},children:l}),v&&k("p",{style:{fontSize:"14px",color:((w=(x=W.theme)==null?void 0:x.colors)==null?void 0:w.secondary)||"#6b7280",margin:"0",lineHeight:"1.5"},children:v})]}),se(ke,{form:H,...t,initialValues:n,onValuesChange:y,...d,style:{...t==null?void 0:t.style,width:"100%",paddingBottom:"30px"},className:"dynamic-form",loading:(t==null?void 0:t.loading)===!0?!0:void 0,children:[V,((c==null?void 0:c.showSubmit)||(c==null?void 0:c.showReset))&&se("div",{style:{marginTop:"32px",paddingTop:"24px",borderTop:`1px solid ${((i=(L=W.theme)==null?void 0:L.colors)==null?void 0:i.border)||"#e5e7eb"}`,display:"flex",gap:"12px",justifyContent:"flex-end"},children:[(c==null?void 0:c.showReset)&&k(Or,{onClick:U,style:{borderColor:((b=(C=W.theme)==null?void 0:C.colors)==null?void 0:b.border)||"#e5e7eb",color:((E=(M=W.theme)==null?void 0:M.colors)==null?void 0:E.text)||"#1f2937"},children:(c==null?void 0:c.resetText)||"\u91CD\u7F6E"}),(c==null?void 0:c.showSubmit)&&k(Or,{type:"primary",onClick:B,style:{backgroundColor:((z=(T=W.theme)==null?void 0:T.colors)==null?void 0:z.primary)||"#2563eb",borderColor:((D=(_=W.theme)==null?void 0:_.colors)==null?void 0:D.primary)||"#2563eb"},children:(c==null?void 0:c.submitText)||"\u63D0\u4EA4"})]})]})]})]})});Ae.memo(Ii);const qa=!1,Rc=(e,t)=>t!=null&&t.fileType?e.startsWith("image/")?t.fileType.image||k(Ht,{size:20}):e.includes("document")||e.includes("pdf")||e.includes("text")?t.fileType.document||k(Ht,{size:20}):e.includes("spreadsheet")||e.includes("excel")||e.includes("csv")?t.fileType.spreadsheet||k(Ht,{size:20}):e.includes("zip")||e.includes("rar")||e.includes("7z")?t.fileType.archive||k(Ht,{size:20}):e.startsWith("video/")?t.fileType.video||k(Ht,{size:20}):e.startsWith("audio/")?t.fileType.audio||k(Ht,{size:20}):t.fileType.default||k(Ht,{size:20}):k(Ht,{size:20}),Fc=(e,t,n)=>{var r,a,o,s;if(n!=null&&n.itemStatus)switch(e){case"error":return n.itemStatus.error||k(Ya,{size:20});case"uploading":return n.itemStatus.uploading||k("span",{style:{fontSize:"12px",color:((r=t==null?void 0:t.colors)==null?void 0:r.primary)||"#007bff"},children:"\u4E0A\u4F20\u4E2D..."});case"success":return n.itemStatus.success||null;case"pending":return n.itemStatus.pending||k("span",{style:{fontSize:"12px",color:((a=t==null?void 0:t.colors)==null?void 0:a.warning)||"#FFA500"},children:"\u7B49\u5F85\u4E2D"});default:return null}switch(e){case"error":return k(Ya,{size:20});case"uploading":return k("span",{style:{fontSize:"12px",color:((o=t==null?void 0:t.colors)==null?void 0:o.primary)||"#007bff"},children:"\u4E0A\u4F20\u4E2D..."});case"pending":return k("span",{style:{fontSize:"12px",color:((s=t==null?void 0:t.colors)==null?void 0:s.warning)||"#FFA500"},children:"\u7B49\u5F85\u4E2D"});default:return null}};jl`
638
+ .upload-item-container .upload-item {
639
+ padding: 0px !important;
640
+ }
641
+
642
+ .upload-item-container .list-item {
643
+ padding: 0px !important;
644
+ }
645
+ `;const Vc=({item:e,index:t,theme:n,itemForm:r,onRemove:a,onToggleExpand:o,onFormDataChange:s,icons:c})=>{var l;return se(Nc,{$theme:n,$status:e.status,$hasForm:r.length>0,children:[se(Mc,{$theme:n,$status:e.status,$hasForm:r.length>0,children:[k($c,{$theme:n,children:Rc(e.type,c)}),se(Ic,{children:[se("div",{className:"flex items-center gap-1 line-clamp-1",children:[k(Lc,{$theme:n,children:e.name}),k(Dc,{$theme:n,children:$i(e.size)})]}),e.status==="uploading"&&k(Ec,{$theme:n,$progress:e.progress}),e.status==="error"&&e.error&&k("div",{style:{color:((l=n==null?void 0:n.colors)==null?void 0:l.error)||"#FF0000",fontSize:"12px",marginTop:"4px"},children:typeof e.error=="string"?e.error:String(e.error)})]}),(()=>{const v=Fc(e.status,n,c);return v&&k(Pc,{$theme:n,$status:e.status,children:v})})(),qa,k(Ac,{$theme:n,onClick:()=>a(e.id),title:"\u79FB\u9664\u6587\u4EF6",children:k(mc,{size:16})})]}),(r.length>0||qa)&&k(Hc,{$theme:n,$hasError:e.status==="error",className:"list-my",children:k(Ii,{formItems:r,initialValues:e.formData||{},size:"sm",formProps:{component:!1},eventsEmit:(v,u)=>{switch(console.log("DynamicForm Event:",v,u),v){case"form:submit":s(e.id,u.values);break;case"form:change":s(e.id,u.values);break;case"form:fieldChange":if(u.field&&u.value!==void 0){const d={...e.formData,[u.field]:u.value};s(e.id,d)}break;case"form:reset":s(e.id,{});break;case"form:validate":u.values&&s(e.id,u.values);break}},styles:{theme:n},style:{padding:"0px"}},`form-${e.id}-always`)})]})},Za=({multiple:e=!0,accept:t="*/*",maxSize:n=100,maxFiles:r=10,autoUpload:a=!0,url:o="http://localhost:3000/upload",headers:s={},queryParams:c={},itemForm:l=[],styles:v,buttons:u=[],errorMessages:d={},icons:g,eventsEmit:m,onRef:h,placeholder:x,listName:w})=>{var L,i;const C=Tt(),b=it(it({theme:Ve,mode:"light"},C),v),M=_t(null),[E,T]=Je(!1),[z,_]=Je([]),D=tt(N=>(N??z).map(A=>({id:A.id,name:A.name,status:A.status,error:A.error,uploadApiRes:A.uploadApiRes||{},formData:A.formData||{},file:A.file,size:A.size,type:A.type})),[z]),H=Bt(()=>{if(!x)return null;if(typeof x=="string"){let N=x;return N=N.replace(/<br\s*\/?>(?=\s*)/gi,`
646
+ `),N=N.replace(/\s*\/n\s*/gi,`
647
+ `),N=N.replace(/\\n/g,`
648
+ `),k(Ua,{$theme:b.theme||Ve,style:{textAlign:"center",whiteSpace:"pre-line"},children:N})}return x},[x,b.theme]),G={noUrl:"\u8BF7\u63D0\u4F9B\u4E0A\u4F20\u63A5\u53E3\u5730\u5740 (url)",uploadFailed:"\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",fileTooLarge:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${n}MB`,invalidFileType:"\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B"},W={...G,...d},I=(N,A)=>W[N]?W[N]:A||G[N],S=N=>{const A=N/1048576;return`${Number(A.toFixed(2))}MB`},y=tt((N,A)=>{const j=n*1024*1024,p=[],Y=[];if(N.forEach(Q=>{Q.size>j?p.push(Q):Y.push(Q)}),p.length>0){const Q=p.map(ge=>`${ge.name}\uFF08${S(ge.size)}\uFF09`).join("\u3001"),oe=`${I("fileTooLarge")}\uFF1A${Q}`;m==null||m("uploader:error",{type:"fileTooLarge",message:oe,files:p.map(ge=>({name:ge.name,size:ge.size})),limit:`${n}MB`,data:D()})}const q=Math.max(0,r-A);if(q<=0){const Q=`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20 ${r} \u4E2A\u6587\u4EF6\uFF0C\u5DF2\u5B58\u5728 ${A} \u4E2A\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u6DFB\u52A0\u3002`;return m==null||m("uploader:error",{type:"tooManyFiles",message:Q,currentCount:A,tryAdd:N.length,limit:r,data:D()}),[]}const Z=Y.slice(0,q);if(Y.length>q){const Q=Y.length-Z.length,oe=`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20 ${r} \u4E2A\u6587\u4EF6\uFF0C\u672C\u6B21\u4EC5\u63A5\u53D7 ${Z.length} \u4E2A\uFF0C\u5FFD\u7565 ${Q} \u4E2A\u3002`;m==null||m("uploader:error",{type:"tooManyFiles",message:oe,currentCount:A,accepted:Z.length,dropped:Q,limit:r,data:D()})}return Z},[n,r,I,m,D]),P=Bt(()=>({getUploadItems:()=>z,getUploadItemsData:N=>{let A=z;return N!=null&&N.includeStatus&&(A=A.filter(j=>N.includeStatus.includes(j.status))),N!=null&&N.excludeStatus&&(A=A.filter(j=>!N.excludeStatus.includes(j.status))),A.map(j=>({id:j.id,name:j.name,status:j.status,error:j.error,uploadApiRes:j.uploadApiRes||{},formData:j.formData||{},file:j.file,size:j.size,type:j.type}))},clearUploadItems:()=>{_([]),m==null||m("uploader:clear",{})},setItemError:(N,A)=>{_(j=>j.map(p=>p.id===N?{...p,status:"error",error:A}:p)),m==null||m("uploader:errorSet",{itemId:N,error:A,data:D()})},clearItemError:N=>{_(A=>A.map(j=>j.id===N?{...j,status:"pending",error:void 0}:j)),m==null||m("uploader:errorCleared",{itemId:N,data:D()})},addUploadItems:N=>{const A=y(N,z.length);if(A.length===0)return;const j=A.map(p=>({id:Wa(),file:p,name:p.name,size:p.size,type:p.type,status:"pending",progress:0,formData:{},isExpanded:!1}));_(p=>[...p,...j]),a&&V(j)},removeUploadItem:N=>{_(A=>{const j=A.find(p=>p.id===N);return j&&(m==null||m("uploader:remove",{itemId:N,item:j,data:D(A)})),A.filter(p=>p.id!==N)})},validateFormData:async()=>!(z.some(N=>N.status==="error")||z.some(N=>N.status==="uploading")||!z.some(N=>N.status==="success"))}),[z,a,m,y,D]);bt(()=>{h&&h(P)},[P,h]);const $=tt(N=>{if(!N)return;const A=y(Array.from(N),z.length);if(A.length===0)return;const j=A.map(p=>({id:Wa(),file:p,name:p.name,size:p.size,type:p.type,status:"pending",progress:0,formData:{},isExpanded:!1}));_(p=>[...p,...j]),a&&V(j)},[a,z.length,y]),O=tt(N=>{N.preventDefault(),T(!0)},[]),R=tt(N=>{N.preventDefault(),T(!1)},[]),F=tt(N=>{N.preventDefault(),T(!1),$(N.dataTransfer.files)},[$]),V=tt(async N=>{if(!o){console.error(I("noUrl"));return}m==null||m("uploader:start",{items:N,data:D()});for(const A of N)try{_(Z=>Z.map(Q=>Q.id===A.id?{...Q,status:"uploading"}:Q));const j=await Cc(A.file,o,s,c,Z=>{_(Q=>Q.map(oe=>oe.id===A.id?{...oe,progress:Z}:oe)),m==null||m("uploader:progress",{item:{...A,progress:Z},data:D()})}),p=bc(A,l),Y={...A,status:"success",uploadApiRes:j,progress:100,formData:p,isExpanded:l.length>0},q=z.map(Z=>Z.id===A.id?Y:Z);_(Z=>Z.map(Q=>Q.id===A.id?Y:Q)),m==null||m("uploader:success",{item:Y,data:D(q)})}catch(j){let p="";if(console.log("\u4E0A\u4F20\u9519\u8BEF\u8BE6\u60C5:",j),j&&typeof j=="object"){const Z=j;if(Z.response&&Z.response.data){const Q=Z.response.data;if(console.log("\u9519\u8BEF\u54CD\u5E94\u6570\u636E:",Q),Q.errorMsg)p=Q.errorMsg;else if(Q.message)p=Q.message;else if(Q.error)p=Q.error;else if(Q.errorCode)switch(Q.errorCode){case"30013":p="\u767B\u5F55\u5931\u6548\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";break;case"30014":p="\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C";break;case"30015":p="\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301";break;case"30016":p="\u6587\u4EF6\u5927\u5C0F\u8D85\u51FA\u9650\u5236";break;default:p=`\u64CD\u4F5C\u5931\u8D25 (${Q.errorCode})`}}else if(Z.message)try{const Q=JSON.parse(Z.message);if(console.log("\u89E3\u6790\u7684\u9519\u8BEF\u6570\u636E:",Q),Q.errorMsg)p=Q.errorMsg;else if(Q.message)p=Q.message;else if(Q.error)p=Q.error;else if(Q.errorCode)switch(Q.errorCode){case"30013":p="\u767B\u5F55\u5931\u6548\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";break;case"30014":p="\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C";break;case"30015":p="\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301";break;case"30016":p="\u6587\u4EF6\u5927\u5C0F\u8D85\u51FA\u9650\u5236";break;default:p=`\u64CD\u4F5C\u5931\u8D25 (${Q.errorCode})`}}catch(Q){console.log("\u9519\u8BEF\u6D88\u606F\u89E3\u6790\u5931\u8D25:",Q),p=Z.message}}p||(p=I("uploadFailed")),console.log("\u6700\u7EC8\u4F7F\u7528\u7684\u9519\u8BEF\u4FE1\u606F:",p);const Y={...A,status:"error",error:p},q=z.map(Z=>Z.id===A.id?Y:Z);_(Z=>Z.map(Q=>Q.id===A.id?Y:Q)),m==null||m("uploader:error",{item:Y,error:p,data:D(q)})}m==null||m("uploader:complete",{items:z,data:D()})},[o,s,c,m,z,l,W.uploadFailed,D]),B=tt(N=>{_(A=>{const j=A.find(p=>p.id===N);return j&&(m==null||m("uploader:remove",{itemId:N,item:j,data:D(A)})),A.filter(p=>p.id!==N)})},[m,D]),U=tt(N=>{_(A=>A.map(j=>{if(j.id===N){const p={...j,isExpanded:!j.isExpanded};return console.log("Toggle Expand:",N,p.isExpanded,p.formData),m==null||m("uploader:toggleExpand",{itemId:N,isExpanded:p.isExpanded,item:p,data:D(A)}),p}return j}))},[m,D]),K=tt((N,A)=>{console.log("FormData Change:",N,A),_(j=>{const p=j.map(Y=>{if(Y.id===N){const q={...Y,formData:{...A}};return m==null||m("uploader:formDataChange",{itemId:N,formData:q.formData,item:q,data:D(j)}),q}return Y});return m==null||m("uploader:dataChange",{items:p,changedItemId:N,changedFormData:A,data:D(p)}),p})},[m,D]);return se("div",{children:[se(yc,{$theme:b.theme||Ve,$isDragOver:E,onDragOver:O,onDragLeave:R,onDrop:F,onClick:()=>{var N;M.current&&(M.current.value=""),(N=M.current)==null||N.click()},children:[k(xc,{$theme:b.theme||Ve,children:(g==null?void 0:g.dragUpload)||k(vc,{size:48})}),H||se(Xn,{children:[k(wc,{$theme:b.theme||Ve,children:"\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\u6216\u70B9\u51FB\u9009\u62E9\u6587\u4EF6"}),se(Ua,{$theme:b.theme||Ve,children:["\u652F\u6301 ",t," \u683C\u5F0F\uFF0C\u5355\u4E2A\u6587\u4EF6\u6700\u5927 ",n,"MB",!o&&k("div",{style:{color:((i=(L=b.theme)==null?void 0:L.colors)==null?void 0:i.error)||"#FF0000",marginTop:"8px",fontSize:"12px"},children:I("noUrl")})]})]})]}),k(Sc,{ref:M,type:"file",multiple:e,accept:t,onChange:N=>{$(N.target.files),N.target.value=""}}),z.length>0&&se("div",{children:[se("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",margin:"6px 0px"},children:[k("div",{className:"text-[14px] font-bold opacity-60",children:w||"\u4E0A\u4F20\u6587\u4EF6\u5217\u8868"}),u.length>0&&k("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:u.map((N,A)=>k(tn,{mode:N.mode||"default",label:N.label,icon:N.icon,disabled:N.disabled,onClick:N.onClick,styles:v},A))})]}),k(kc,{$theme:b.theme||Ve,children:z.map((N,A)=>k(Vc,{item:N,index:A,itemForm:l,onRemove:B,onToggleExpand:U,onFormDataChange:K,theme:b.theme||Ve,icons:g},N.id))})]})]})};function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Br={exports:{}},zc=Br.exports,Ga;function Di(){return Ga||(Ga=1,(function(e,t){(function(n,r){e.exports=r()})(zc,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",c="minute",l="hour",v="day",u="week",d="month",g="quarter",m="year",h="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,i={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var S=["th","st","nd","rd"],y=I%100;return"["+I+(S[(y-20)%10]||S[y]||S[0])+"]"}},C=function(I,S,y){var P=String(I);return!P||P.length>=S?I:""+Array(S+1-P.length).join(y)+I},b={s:C,z:function(I){var S=-I.utcOffset(),y=Math.abs(S),P=Math.floor(y/60),$=y%60;return(S<=0?"+":"-")+C(P,2,"0")+":"+C($,2,"0")},m:function I(S,y){if(S.date()<y.date())return-I(y,S);var P=12*(y.year()-S.year())+(y.month()-S.month()),$=S.clone().add(P,d),O=y-$<0,R=S.clone().add(P+(O?-1:1),d);return+(-(P+(y-$)/(O?$-R:R-$))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:m,w:u,d:v,D:h,h:l,m:c,s,ms:o,Q:g}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},M="en",E={};E[M]=i;var T="$isDayjsObject",z=function(I){return I instanceof G||!(!I||!I[T])},_=function I(S,y,P){var $;if(!S)return M;if(typeof S=="string"){var O=S.toLowerCase();E[O]&&($=O),y&&(E[O]=y,$=O);var R=S.split("-");if(!$&&R.length>1)return I(R[0])}else{var F=S.name;E[F]=S,$=F}return!P&&$&&(M=$),$||!P&&M},D=function(I,S){if(z(I))return I.clone();var y=typeof S=="object"?S:{};return y.date=I,y.args=arguments,new G(y)},H=b;H.l=_,H.i=z,H.w=function(I,S){return D(I,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var G=(function(){function I(y){this.$L=_(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[T]=!0}var S=I.prototype;return S.parse=function(y){this.$d=(function(P){var $=P.date,O=P.utc;if($===null)return new Date(NaN);if(H.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var R=$.match(w);if(R){var F=R[2]-1||0,V=(R[7]||"0").substring(0,3);return O?new Date(Date.UTC(R[1],F,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)):new Date(R[1],F,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)}}return new Date($)})(y),this.init()},S.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},S.$utils=function(){return H},S.isValid=function(){return this.$d.toString()!==x},S.isSame=function(y,P){var $=D(y);return this.startOf(P)<=$&&$<=this.endOf(P)},S.isAfter=function(y,P){return D(y)<this.startOf(P)},S.isBefore=function(y,P){return this.endOf(P)<D(y)},S.$g=function(y,P,$){return H.u(y)?this[P]:this.set($,y)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(y,P){var $=this,O=!!H.u(P)||P,R=H.p(y),F=function(p,Y){var q=H.w($.$u?Date.UTC($.$y,Y,p):new Date($.$y,Y,p),$);return O?q:q.endOf(v)},V=function(p,Y){return H.w($.toDate()[p].apply($.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Y)),$)},B=this.$W,U=this.$M,K=this.$D,N="set"+(this.$u?"UTC":"");switch(R){case m:return O?F(1,0):F(31,11);case d:return O?F(1,U):F(0,U+1);case u:var A=this.$locale().weekStart||0,j=(B<A?B+7:B)-A;return F(O?K-j:K+(6-j),U);case v:case h:return V(N+"Hours",0);case l:return V(N+"Minutes",1);case c:return V(N+"Seconds",2);case s:return V(N+"Milliseconds",3);default:return this.clone()}},S.endOf=function(y){return this.startOf(y,!1)},S.$set=function(y,P){var $,O=H.p(y),R="set"+(this.$u?"UTC":""),F=($={},$[v]=R+"Date",$[h]=R+"Date",$[d]=R+"Month",$[m]=R+"FullYear",$[l]=R+"Hours",$[c]=R+"Minutes",$[s]=R+"Seconds",$[o]=R+"Milliseconds",$)[O],V=O===v?this.$D+(P-this.$W):P;if(O===d||O===m){var B=this.clone().set(h,1);B.$d[F](V),B.init(),this.$d=B.set(h,Math.min(this.$D,B.daysInMonth())).$d}else F&&this.$d[F](V);return this.init(),this},S.set=function(y,P){return this.clone().$set(y,P)},S.get=function(y){return this[H.p(y)]()},S.add=function(y,P){var $,O=this;y=Number(y);var R=H.p(P),F=function(U){var K=D(O);return H.w(K.date(K.date()+Math.round(U*y)),O)};if(R===d)return this.set(d,this.$M+y);if(R===m)return this.set(m,this.$y+y);if(R===v)return F(1);if(R===u)return F(7);var V=($={},$[c]=r,$[l]=a,$[s]=n,$)[R]||1,B=this.$d.getTime()+y*V;return H.w(B,this)},S.subtract=function(y,P){return this.add(-1*y,P)},S.format=function(y){var P=this,$=this.$locale();if(!this.isValid())return $.invalidDate||x;var O=y||"YYYY-MM-DDTHH:mm:ssZ",R=H.z(this),F=this.$H,V=this.$m,B=this.$M,U=$.weekdays,K=$.months,N=$.meridiem,A=function(Y,q,Z,Q){return Y&&(Y[q]||Y(P,O))||Z[q].slice(0,Q)},j=function(Y){return H.s(F%12||12,Y,"0")},p=N||function(Y,q,Z){var Q=Y<12?"AM":"PM";return Z?Q.toLowerCase():Q};return O.replace(L,(function(Y,q){return q||(function(Z){switch(Z){case"YY":return String(P.$y).slice(-2);case"YYYY":return H.s(P.$y,4,"0");case"M":return B+1;case"MM":return H.s(B+1,2,"0");case"MMM":return A($.monthsShort,B,K,3);case"MMMM":return A(K,B);case"D":return P.$D;case"DD":return H.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return A($.weekdaysMin,P.$W,U,2);case"ddd":return A($.weekdaysShort,P.$W,U,3);case"dddd":return U[P.$W];case"H":return String(F);case"HH":return H.s(F,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return p(F,V,!0);case"A":return p(F,V,!1);case"m":return String(V);case"mm":return H.s(V,2,"0");case"s":return String(P.$s);case"ss":return H.s(P.$s,2,"0");case"SSS":return H.s(P.$ms,3,"0");case"Z":return R}return null})(Y)||R.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(y,P,$){var O,R=this,F=H.p(P),V=D(y),B=(V.utcOffset()-this.utcOffset())*r,U=this-V,K=function(){return H.m(R,V)};switch(F){case m:O=K()/12;break;case d:O=K();break;case g:O=K()/3;break;case u:O=(U-B)/6048e5;break;case v:O=(U-B)/864e5;break;case l:O=U/a;break;case c:O=U/r;break;case s:O=U/n;break;default:O=U}return $?O:H.a(O)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return E[this.$L]},S.locale=function(y,P){if(!y)return this.$L;var $=this.clone(),O=_(y,P,!0);return O&&($.$L=O),$},S.clone=function(){return H.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},I})(),W=G.prototype;return D.prototype=W,[["$ms",o],["$s",s],["$m",c],["$H",l],["$W",v],["$M",d],["$y",m],["$D",h]].forEach((function(I){W[I[1]]=function(S){return this.$g(S,I[0],I[1])}})),D.extend=function(I,S){return I.$i||(I(S,G,D),I.$i=!0),D},D.locale=_,D.isDayjs=z,D.unix=function(I){return D(1e3*I)},D.en=E[M],D.Ls=E,D.p={},D}))})(Br)),Br.exports}var jc=Di();const ba=Li(jc);var _r={exports:{}},Bc=_r.exports,Qa;function _c(){return Qa||(Qa=1,(function(e,t){(function(n,r){e.exports=r()})(Bc,(function(){return function(n,r,a){n=n||{};var o=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(v,u,d,g){return o.fromToBase(v,u,d,g)}a.en.relativeTime=s,o.fromToBase=function(v,u,d,g,m){for(var h,x,w,L=d.$locale().relativeTime||s,i=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=i.length,b=0;b<C;b+=1){var M=i[b];M.d&&(h=g?a(v).diff(d,M.d,!0):d.diff(v,M.d,!0));var E=(n.rounding||Math.round)(Math.abs(h));if(w=h>0,E<=M.r||!M.r){E<=1&&b>0&&(M=i[b-1]);var T=L[M.l];m&&(E=m(""+E)),x=typeof T=="string"?T.replace("%d",E):T(E,u,M.l,w);break}}if(u)return x;var z=w?L.future:L.past;return typeof z=="function"?z(x):z.replace("%s",x)},o.to=function(v,u){return c(v,u,this,!0)},o.from=function(v,u){return c(v,u,this)};var l=function(v){return v.$u?a.utc():a()};o.toNow=function(v){return this.to(l(this),v)},o.fromNow=function(v){return this.from(l(this),v)}}}))})(_r)),_r.exports}var Yc=_c();const Wc=Li(Yc);var Yr={exports:{}},Uc=Yr.exports,Ka;function qc(){return Ka||(Ka=1,(function(e,t){(function(n,r){e.exports=r(Di())})(Uc,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),o={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(s,c){return c==="W"?s+"\u5468":s+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(s,c){var l=100*s+c;return l<600?"\u51CC\u6668":l<900?"\u65E9\u4E0A":l<1100?"\u4E0A\u5348":l<1300?"\u4E2D\u5348":l<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return a.default.locale(o,null,!0),o}))})(Yr)),Yr.exports}qc();ba.locale("zh-cn");ba.extend(Wc);const Xa={success:"green",error:"red",warning:"orange",processing:"blue",info:"cyan",default:"default"};function Zc(e){if(!e)return"-";const t=ba(e),n=t.format("YYYY\u5E74M\u6708D\u65E5 HH:mm"),r=t.fromNow();return k(Xr,{title:k("div",{style:{minWidth:120},children:k("div",{style:{color:"#aaa",fontSize:12,marginTop:2},children:r})}),children:k("span",{style:{fontWeight:500,opacity:.6},children:n})})}function Gc(e,t){if(e==null||e==="")return"-";const n=Number(e);if(isNaN(n))return e;switch(t){case"rmb":return`\uFFE5${n.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})}`;case"usd":return`$${n.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;case"filesize":return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(2)} KB`:n<1024*1024*1024?`${(n/1024/1024).toFixed(2)} MB`:`${(n/1024/1024/1024).toFixed(2)} GB`;case"float":default:return n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}}function Qc(e,t,n={}){const{eventsEmit:r}=t||{};return Ae.useMemo(()=>e.map(a=>{if(a.render)return a;switch(a.type){case"customized":return{...a,render:(o,s,c)=>{var l,v;const u=c==null?void 0:c.value;let d=u&&typeof u=="object"&&(u.component||u.Comp)?u.component||u.Comp:a.component;if(typeof d=="string"&&(d=((l=t==null?void 0:t.customizeComponents)==null?void 0:l[d])||((v=n==null?void 0:n.customizeComponents)==null?void 0:v[d])),!d)return a.fallback??null;const g=u&&typeof u=="object"&&"data"in u?u.data:c==null?void 0:c.value,m=typeof a.componentProps=="function"?a.componentProps({value:g,row:s,cell:c,col:a}):a.componentProps||{},h=u&&typeof u=="object"&&"props"in u?u.props||{}:{};let x={};if(u&&typeof u=="object"){const L=new Set(["component","Comp","props"]);Object.keys(u).forEach(i=>{L.has(i)||(x[i]=u[i])})}const w={value:g,row:s,cell:c,col:a,emit:(L,i)=>{var C;return(C=t==null?void 0:t.eventsEmit)==null?void 0:C.call(t,L,{row:s,cell:c,col:a,data:i})},...m,...x,...h};if(Ae.isValidElement(d))return Ae.cloneElement(d,w);if(typeof d=="function"){const L=d;return Ae.createElement(L,w)}return a.fallback??null}};case"status":return{...a,render:(o,s,c)=>{const l=(c==null?void 0:c.statusType)||"default",v=Xa[l]||Xa.default;return k(ai,{color:v,children:o})}};case"date":return{...a,render:o=>Zc(o)};case"number":return{...a,render:o=>{const s=a.numberStyle||"float";return k("span",{style:{textAlign:"right",display:"block",color:"#2563eb",fontWeight:500,fontVariantNumeric:"tabular-nums",fontFamily:"Consolas, Menlo, monospace"},children:Gc(o,s)})}};case"image":return{...a,render:o=>o?k("img",{src:o,style:{width:36,height:36,borderRadius:8,objectFit:"cover",boxShadow:"0 1px 4px 0 rgba(0,0,0,0.04)"}}):null};case"longText":return{...a,render:o=>{const s=a.maxRow||1,c=a.maxWidth||240,l=a.areaStyle||"default",v=13,u=1.6,d=v*u,g=s*d;let m={maxWidth:typeof c=="number"?`${c}px`:c,maxHeight:g,overflowY:"auto",color:l==="code"?"#d4d4d4":"#666",opacity:l==="code"?1:.85,fontSize:v,lineHeight:u,padding:"6px 10px",background:l==="code"?"#1e1e1e":"#f6f8fa",borderRadius:6,fontFamily:l==="code"?'"SF Mono", "Consolas", "Menlo", monospace':void 0,border:l==="code"?"1px solid #232323":"1px solid #e5e7eb",whiteSpace:"pre-wrap",wordBreak:"break-all",boxSizing:"border-box",width:"100%",display:"block"};return k("span",{style:m,children:o})}};case"tag":return{...a,render:o=>Array.isArray(o)?k("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px",minWidth:"200px",maxWidth:"100%"},children:o.map((s,c)=>k("span",{style:{display:"inline-block",background:"#EBF4FF",color:"#2563eb",borderRadius:12,padding:"4px 12px",fontSize:12,border:"1px solid #BFDBFE",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",boxShadow:"0 1px 2px rgba(37, 99, 235, 0.1)",flexShrink:0},children:s},c))}):null};case"action":return{...a,render:(o,s,c)=>{const l=t!=null&&t.isPending?t.isPending(s.id):!1;if(Array.isArray(o)){const u=o.map(d=>d&&typeof d=="object"&&(d.columnId==="actions"||d.type==="action")&&"value"in d&&!("mode"in d)?{value:d.value,label:d.label||d.value,icon:d.icon,disabled:d.disabled,key:d.key}:d);if(u.length>=3){const d=u.slice(0,2),g=u.slice(2);return se("div",{style:{display:"flex",gap:4,justifyContent:"center",alignItems:"center"},children:[d.map((m,h)=>k(tn,{mode:m.mode||"text",label:m.label||m.value||"",icon:m.icon,disabled:m.disabled||l&&m.value==="delete",styles:n,style:{padding:"0 8px",minWidth:0},onClick:()=>r==null?void 0:r(`table_action_${m.value}`,s)},h)),k(Ts,{actions:g.map((m,h)=>({key:m.value||String(h),label:m.label||m.value||"",icon:m.icon,disabled:m.disabled||l&&m.value==="delete"})),onAction:m=>{const h=g.find(x=>(x.value||String(x.key))===m);h&&!h.disabled&&!(l&&h.value==="delete")&&(r==null||r(`table_action_${h.value}`,s))}})]})}else return k("div",{style:{display:"flex",gap:4,justifyContent:"center"},children:u.map((d,g)=>k(tn,{mode:d.mode||"text",label:d.label||d.value||"",icon:d.icon,disabled:d.disabled||l&&d.value==="delete",styles:n,style:{padding:"0 8px",minWidth:0},onClick:()=>r==null?void 0:r(`table_action_${d.value}`,s)},g))})}const v=c||{};return k(tn,{mode:v.mode||"text",label:v.label||v.value||"",icon:v.icon,disabled:v.disabled||l&&v.value==="delete",styles:n,style:{padding:"0 8px",minWidth:0},onClick:()=>r==null?void 0:r(`table_action_${v.value}`,s)})}};case"label":return{...a,render:o=>k("span",{className:"font-bold",children:o})};case"title":return{...a,render:(o,s,c)=>{const l=(c==null?void 0:c.level)||1,v={1:"text-xl font-bold",2:"text-lg font-semibold",3:"text-base font-medium"},u=v[l]||v[1];return se("div",{className:`${u} text-gray-800 ${(c==null?void 0:c.className)||""}`,style:{color:"#1f2937",lineHeight:"1.4",fontWeight:l===1?700:l===2?600:400},children:[k("span",{className:"h-full w-1 bg-gray-500 rounded-full mr-2"}),k("span",{className:"text-gray-500",children:o})]})}};case"paragraph":return{...a,render:o=>k("div",{style:{maxWidth:240,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:o,children:o})};case"text":return{...a,render:o=>k("span",{children:o})};default:return{...a,render:o=>k("span",{children:o})}}}),[e,r,t==null?void 0:t.isPending,t==null?void 0:t.customizeComponents,n==null?void 0:n.customizeComponents])}function Kc(e){return se("div",{className:"flex items-center gap-2",children:[k("span",{className:"font-medium text-gray-800 text-sm",children:e.title}),e.helpText&&k(Xr,{title:e.helpText,placement:"top",children:k(Mi,{className:"text-gray-400 hover:text-gray-600 cursor-help transition-colors",size:14})})]})}const Xc=ae.div`
649
+ background: ${({theme:e})=>e.colors.background};
650
+ border-radius: ${({theme:e})=>e.space.radius};
651
+ box-shadow: ${({theme:e})=>e.colors.shadow};
652
+ padding: ${({theme:e})=>e.space.padding};
653
+ overflow-x: auto;
654
+ width: 100%;
655
+ max-width: 100%;
656
+ box-sizing: border-box;
657
+ min-height: 240px;
658
+ display: flex;
659
+ flex-direction: column;
660
+ `,Jc=ae.div`
661
+ background: ${({theme:e})=>e.colors.background};
662
+ border-radius: ${({theme:e})=>e.space.radius};
663
+ padding: ${({theme:e})=>e.space.padding};
664
+ width: 100%;
665
+ max-width: 100%;
666
+ box-sizing: border-box;
667
+ display: flex;
668
+ flex-direction: column;
669
+ overflow: visible; // 子table不产生滚动条,由外层容器处理
670
+ `,eu=ae.div`
671
+ overflow-x: auto;
672
+ overflow-y: hidden;
673
+ width: 100%;
674
+ max-width: 100%;
675
+ border: 1px solid ${({theme:e})=>e.colors.border};
676
+ border-radius: ${({theme:e})=>e.space.radius};
677
+ background: ${({theme:e})=>e.colors.background};
678
+ position: relative; // 为sticky列提供定位上下文
679
+ isolation: isolate; // 创建新的层叠上下文
680
+ height: auto; // 确保容器高度自适应内容
681
+ min-height: 200px; // 最小高度确保滚动条可见
682
+ box-sizing: border-box; // 确保padding和border包含在宽度内
683
+
684
+ /* 子table内容宽度控制 - 根据父容器动态计算 */
685
+ & > div {
686
+ min-width: 100%; // 使用父容器的100%宽度作为最小宽度
687
+ width: 100%; // 确保宽度填满父容器
688
+ }
689
+
690
+ /* 自定义滚动条样式 */
691
+ &::-webkit-scrollbar {
692
+ height: 6px;
693
+ }
694
+
695
+ &::-webkit-scrollbar-track {
696
+ background: ${({theme:e})=>e.colors.disabledBackground};
697
+ border-radius: 3px;
698
+ }
699
+
700
+ &::-webkit-scrollbar-thumb {
701
+ background: ${({theme:e})=>e.colors.border};
702
+ border-radius: 3px;
703
+ }
704
+
705
+ &::-webkit-scrollbar-thumb:hover {
706
+ background: ${({theme:e})=>e.colors.disabled};
707
+ }
708
+ `,Ja=e=>{switch(e){case"avatar":return{minWidth:48,textAlign:"center"};case"status":return{minWidth:56,textAlign:"center"};case"number":return{minWidth:56,textAlign:"right"};case"longText":return{minWidth:120,textAlign:"left"};case"tag":return{minWidth:200,textAlign:"left"};case"action":return{minWidth:112,textAlign:"center"};case"label":return{minWidth:120,textAlign:"left"};case"title":return{minWidth:150,textAlign:"left"};case"text":return{minWidth:80,textAlign:"left"};default:return{minWidth:80,textAlign:"left"}}},eo=ae.th`
709
+ background: ${({theme:e})=>e.colors.disabledBackground};
710
+ color: ${({theme:e})=>e.colors.text};
711
+ font-weight: 600;
712
+ font-size: 13px;
713
+ padding: 0.5rem 0.75rem;
714
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
715
+ min-width: 48px;
716
+ white-space: nowrap;
717
+ /* 移除默认的 text-align: center,让每列使用自己的对齐方式 */
718
+ `,to=ae.td`
719
+ padding: 0.5rem 0.75rem;
720
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
721
+ color: ${({theme:e})=>e.colors.text};
722
+ font-size: 14px;
723
+ vertical-align: middle;
724
+ white-space: nowrap;
725
+ overflow: hidden;
726
+ text-overflow: ellipsis;
727
+ `,tu=ae.tr`
728
+ &:hover {
729
+ background: ${({theme:e})=>e.colors.disabledBackground};
730
+ }
731
+ `,nu=Ae.forwardRef((e,t)=>k(tu,{...e,ref:t})),ru=`
732
+ .sticky-shadow-left {
733
+ box-shadow: 4px 0 8px -4px rgba(0,0,0,0.08);
734
+ transition: box-shadow 0.2s;
735
+ }
736
+ .sticky-shadow-right {
737
+ box-shadow: -4px 0 8px -4px rgba(0,0,0,0.08);
738
+ transition: box-shadow 0.2s;
739
+ }
740
+ `;if(typeof window<"u"&&!document.getElementById("dynamic-table-sticky-shadow")){const e=document.createElement("style");e.id="dynamic-table-sticky-shadow",e.innerHTML=ru,document.head.appendChild(e)}const au=Ae.memo(e=>{var t,n,r,a,o,s,c,l,v,u,d,g,m,h,x,w,L,i,C,b;const M=e.dataSource||[],E=e.columns||[],T=e.size||"md",z=e.level||0,_=Tt(),D=it(it({theme:Ve,mode:"light"},_),e.styles),{viewId:H,total:G,requestPagesize:W=50,viewPageSize:I}=e,[S,y]=Je(I);bt(()=>{typeof I=="number"&&I>0&&y(I)},[I]);const[P,$]=Je(new Set);bt(()=>{$(new Set)},[H]);const[O,R]=Je(!1),[F,V]=Je(!1),[B,U]=Je(new Set),K=_t(null),N=_t(null),[A,j]=Je(0),p=T==="sm"?.7:1,Y=Qc(E,{eventsEmit:e.eventsEmit,isPending:e.isPending,customizeComponents:e.customizeComponents},e.styles),[q,Z]=Je([]),Q=tt((X,me)=>{var ve;Z(ie=>{let $e;return me?$e=[...ie,X]:$e=ie.filter(ee=>ee!==X),$e});const Ce=me?[...q,X]:q.filter(ie=>ie!==X),Me=M.filter(ie=>Ce.includes(ie.id));(ve=e.eventsEmit)==null||ve.call(e,"table_row_select",{rowId:X,checked:me,selectedItems:Me})},[q,M,e.eventsEmit]),oe=Bt(()=>M.length>0&&q.length===M.length,[M.length,q.length]),ge=tt(X=>{var me;const ve=X?M.map(Me=>Me.id):[];Z(ve);const Ce=X?M:[];(me=e.eventsEmit)==null||me.call(e,"table_select_all",{checked:X,selectedItems:Ce,totalCount:M.length})},[M,e.eventsEmit]),[le,we]=Je(1),ue=typeof S=="number"&&S>0?S:I??(e.isSubTable?5:10),He=G||M.length;Bt(()=>Math.ceil(He/ue),[He,ue]);const Ee=Bt(()=>{if(e.viewBehavior!=="pagination")return M;const X=(le-1)*ue,me=X+ue;if(M.some(ve=>typeof ve.__absIndex=="number")){const ve=[];for(let Ce=X;Ce<me;Ce++){const Me=M.find(ie=>ie.__absIndex===Ce);Me&&ve.push(Me)}return ve}return M.slice(X,me)},[e.viewBehavior,M,le,ue]),Te=tt(X=>{var me;if(we(X),G&&W&&H){const ve=(X-1)*ue,Ce=Math.floor(ve/W)+1;(!P.has(Ce)||ve>=M.length)&&($(Me=>{const ie=new Set(Me);return ie.add(Ce),ie}),(me=e.eventsEmit)==null||me.call(e,"pagination:request_merge_data",{viewId:H,request:{pageNo:Ce,pageSize:W}},void 0))}},[G,W,H,ue,M.length,e.eventsEmit,P]),Le=tt(X=>{U(me=>{const ve=new Set(me);return ve.has(X)?ve.delete(X):(ve.add(X),setTimeout(()=>{var Ce,Me;(Me=e.eventsEmit)==null||Me.call(e,"table_expand",{tableId:X,children:((Ce=M.find(ie=>ie.id===X))==null?void 0:Ce.children)||[]})},0)),ve})},[M,e.eventsEmit]),Be=tt(X=>X.hasOwnProperty("children")&&X.children!==void 0,[]),je=tt(X=>B.has(X),[B]),Ne=tt(()=>{const X=K.current;X&&(e.isSubTable||(R(X.scrollLeft>0),V(X.scrollLeft<X.scrollWidth-X.offsetWidth-1)))},[e.isSubTable]);bt(()=>{const X=K.current;if(X)return Ne(),X.addEventListener("scroll",Ne),window.addEventListener("resize",Ne),()=>{X.removeEventListener("scroll",Ne),window.removeEventListener("resize",Ne)}},[Ne]),bt(()=>{const X=K.current;if(!X)return;const me=()=>{const Ce=X.getBoundingClientRect();j(Ce.width)};me(),window.addEventListener("resize",me);const ve=new ResizeObserver(me);return ve.observe(X),()=>{window.removeEventListener("resize",me),ve.disconnect()}},[]);const xe=e.isSubTable?Jc:Xc;return se(xe,{theme:D.theme||Ve,className:"w-full",style:{transform:`scale(${p})`,transformOrigin:"top left",height:"100%",display:"flex",flexDirection:"column"},children:[k("style",{children:`
741
+ .removing-row {
742
+ pointer-events: none;
743
+ overflow: hidden;
744
+ will-change: opacity, transform;
745
+ }
746
+ .stagger-row {
747
+ will-change: transform;
748
+ }
749
+ .adding-row {
750
+ animation: row-slide-in 0.6s ease-out forwards;
751
+ will-change: transform, opacity;
752
+ }
753
+ @keyframes row-slide-in {
754
+ 0% {
755
+ opacity: 0;
756
+ transform: translateY(-10px);
757
+ }
758
+ 100% {
759
+ opacity: 1;
760
+ transform: translateY(0);
761
+ }
762
+ }
763
+ @keyframes spin {
764
+ 0% { transform: rotate(0deg); }
765
+ 100% { transform: rotate(360deg); }
766
+ }
767
+ `}),k("div",{ref:K,style:{width:(e.isSubTable,"100%"),maxWidth:(e.isSubTable,"100%"),overflowX:e.isSubTable?"visible":"auto",overflowY:e.isSubTable?"visible":"auto",flex:e.isSubTable?void 0:1,height:e.isSubTable?"auto":void 0,position:"relative",boxSizing:"border-box"},children:se("table",{ref:N,className:"border-collapse",style:{minWidth:"max-content",width:"100%",tableLayout:"auto"},children:[k("thead",{style:{position:e.isSubTable?void 0:"sticky",top:0,zIndex:3,background:((n=(t=D.theme)==null?void 0:t.colors)==null?void 0:n.disabledBackground)||"#f5f5f5"},children:se("tr",{children:[e.allowMultiSelect&&k(eo,{theme:D.theme||Ve,style:{position:"sticky",left:0,zIndex:3,background:((a=(r=D.theme)==null?void 0:r.colors)==null?void 0:a.disabledBackground)||"#f5f5f5",width:40,minWidth:40,maxWidth:40,textAlign:"center"},className:O?"sticky-shadow-left":"",children:k("input",{type:"checkbox",checked:oe,onChange:X=>ge(X.target.checked)})}),Y.map((X,me)=>{var ve,Ce,Me,ie;const $e=me===0,ee=me===Y.length-1,ne=$e?{position:"sticky",left:e.allowMultiSelect?40:0,zIndex:2,background:((Ce=(ve=D.theme)==null?void 0:ve.colors)==null?void 0:Ce.disabledBackground)||"#f5f5f5"}:ee?{position:"sticky",right:0,zIndex:2,background:((ie=(Me=D.theme)==null?void 0:Me.colors)==null?void 0:ie.disabledBackground)||"#f5f5f5"}:{};return k(eo,{theme:D.theme||Ve,style:{...Ja(X.type),...ne,...X.maxWidth!==void 0?{maxWidth:typeof X.maxWidth=="number"?`${X.maxWidth}px`:X.maxWidth}:{}},className:$e&&O?"sticky-shadow-left":ee&&F?"sticky-shadow-right":"",children:Kc(X)},X.id)})]})}),k("tbody",{children:Ee.map((X,me)=>{var ve,Ce,Me,ie,$e,ee,ne,ce,J,re,Fe,ze,_e,ct,Ke,ut,lt,Ge;const gt=e.rowProps?e.rowProps(X,me):{},yt=Be(X),It=je(X.id)||X.__autoExpand&&yt;return se(Ae.Fragment,{children:[se(nu,{theme:D.theme||Ve,...gt,className:`${gt.className||""} ${(ve=e.addingIds)!=null&&ve.includes(X.id)?"adding-row":""}`,onAnimationEnd:fe=>{var Ye,Ue;fe.animationName==="row-slide-in"&&(Ye=e.addingIds)!=null&&Ye.includes(X.id)&&((Ue=e.onRowAddAnimationComplete)==null||Ue.call(e,X.id))},children:[e.allowMultiSelect&&k(to,{theme:D.theme||Ve,style:{position:"sticky",left:0,zIndex:2,background:((Me=(Ce=D.theme)==null?void 0:Ce.colors)==null?void 0:Me.background)||"#fff",width:40,minWidth:40,maxWidth:40,textAlign:"center"},className:O?"sticky-shadow-left":"",children:k("input",{type:"checkbox",checked:q.includes(X.id),onChange:fe=>Q(X.id,fe.target.checked)})}),Y.map((fe,Ye)=>{var Ue,mt,Gt,Ft,Qt;const Vt=Ye===0,zt=Ye===Y.length-1,Kt=Vt?{position:"sticky",left:e.allowMultiSelect?40:0,zIndex:1,background:((mt=(Ue=D.theme)==null?void 0:Ue.colors)==null?void 0:mt.background)||"#fff"}:zt?{position:"sticky",right:0,zIndex:1,background:((Ft=(Gt=D.theme)==null?void 0:Gt.colors)==null?void 0:Ft.background)||"#fff"}:{},Xe=((Qt=X.data)==null?void 0:Qt.filter(xt=>xt.columnId===fe.id))||[],Xt=Object.assign({},Ja(fe.type),Kt,fe.maxWidth!==void 0?{maxWidth:typeof fe.maxWidth=="number"?`${fe.maxWidth}px`:fe.maxWidth}:{}),ht=()=>{var xt,vt;return Vt&&yt?se("div",{style:{display:"flex",alignItems:"center",gap:8},children:[k("button",{onClick:()=>Le(X.id),style:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",justifyContent:"center",color:((vt=(xt=D.theme)==null?void 0:xt.colors)==null?void 0:vt.text)||"#222"},children:It?k(Bl,{size:16}):k(fc,{size:16})}),se("span",{style:{paddingLeft:z*16},children:[" ",Xe.length>0?fe.type==="action"?fe.render?fe.render(Xe.length>1?Xe.map(st=>st):Xe[0],X,Xe.length>1?void 0:Xe[0]):null:Xe.map((st,Pt)=>k("span",{style:{marginRight:4,display:"inline-block",maxWidth:fe.maxWidth?typeof fe.maxWidth=="number"?`${fe.maxWidth}px`:fe.maxWidth:void 0,overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle"},children:fe.render?fe.render(st.value,X,st):k("span",{children:st.value})},Pt)):null]})]}):se("span",{style:{paddingLeft:z*16},children:[" ",Xe.length>0?fe.type==="action"?fe.render?fe.render(Xe.length>1?Xe.map(st=>st):Xe[0],X,Xe.length>1?void 0:Xe[0]):null:Xe.map((st,Pt)=>k("span",{style:{marginRight:4,display:"inline-block",maxWidth:fe.maxWidth?typeof fe.maxWidth=="number"?`${fe.maxWidth}px`:fe.maxWidth:void 0,overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle"},children:fe.render?fe.render(st.value,X,st):k("span",{children:st.value})},Pt)):null]})};return k(to,{theme:D.theme||Ve,style:Xt,className:Vt&&O?"sticky-shadow-left":zt&&F?"sticky-shadow-right":"",children:ht()},fe.id)})]}),yt&&It&&X.children!==void 0&&k("tr",{className:" relative ",style:{width:A>0?`${A}px`:"100%"},children:k("td",{style:{width:A>0?`${A}px`:"100%"},colSpan:Y.length+(e.allowMultiSelect?1:0),children:se("div",{style:{position:"sticky",left:0,padding:"15px 18px",width:A>0?`${A}px`:"100%",minWidth:"800px",maxWidth:"100%",background:(($e=(ie=D.theme)==null?void 0:ie.colors)==null?void 0:$e.disabledBackground)||"#f5f5f5",boxSizing:"border-box"},children:[X.tableLoading&&k("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(255, 255, 255, 0.9)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,borderRadius:D.space.radius},children:se("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[k("div",{style:{width:24,height:24,border:`2px solid ${((ne=(ee=D.theme)==null?void 0:ee.colors)==null?void 0:ne.border)||"#d1d5db"}`,borderTop:`2px solid ${((J=(ce=D.theme)==null?void 0:ce.colors)==null?void 0:J.primary)||"#2563eb"}`,borderRadius:"50%",animation:"spin 1s linear infinite"}}),k("span",{style:{fontSize:14,color:((Fe=(re=D.theme)==null?void 0:re.colors)==null?void 0:Fe.text)||"#222"},children:"\u52A0\u8F7D\u4E2D..."})]})}),se("div",{style:{marginBottom:"16px"},children:[Array.isArray((ze=e.subTableConfig)==null?void 0:ze.toolbar)&&e.subTableConfig.toolbar.length>0&&k("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:8},children:e.subTableConfig.toolbar.map((fe,Ye)=>{const Ue={primary:"primary",error:"danger",default:"text"}[fe.btnType]||"text";return k(tn,{mode:Ue,label:fe.label,icon:fe.icon,onClick:()=>{var mt;return(mt=e.eventsEmit)==null?void 0:mt.call(e,"table_action_add",{tableId:X.id,action:fe})}},Ye)})}),k(eu,{theme:D,onWheel:fe=>{fe.stopPropagation()},onScroll:fe=>{fe.stopPropagation()},style:{position:"relative",overflow:"auto",maxHeight:"400px",width:"100%",maxWidth:"100%"},children:k(au,{columns:((_e=e.subTableConfig)==null?void 0:_e.columns)||[],dataSource:X.children||[],isSubTable:!0,isPending:fe=>{var Ye,Ue;return((Ue=(Ye=e.subTablePendingIds)==null?void 0:Ye[X.id])==null?void 0:Ue.includes(fe))||!1},onRowAnimationComplete:fe=>{var Ye;(Ye=e.onSubTableRowAnimationComplete)==null||Ye.call(e,X.id,fe),e.eventsEmit&&e.eventsEmit("_internal:subtable_animation_complete",{rowId:fe,tableId:X.id})},eventsEmit:(fe,Ye)=>{var Ue;(Ue=e.eventsEmit)==null||Ue.call(e,fe,{...Ye,tableId:X.id})},allowMultiSelect:(ct=e.subTableConfig)==null?void 0:ct.allowMultiSelect,size:e.size,level:z+1,subTableConfig:e.subTableConfig,styles:e.styles,onRowAddAnimationComplete:e.onRowAddAnimationComplete,addingIds:e.addingIds,viewBehavior:(Ke=e.subTableConfig)==null?void 0:Ke.viewBehavior,viewPageSize:(ut=e.subTableConfig)==null?void 0:ut.viewPageSize,total:(lt=e.subTableConfig)==null?void 0:lt.total,requestPagesize:(Ge=e.subTableConfig)==null?void 0:Ge.requestPagesize})})]})]})})})]},X.id??me)})})]})}),e.viewBehavior==="pagination"&&k("div",{style:{height:48,display:"flex",justifyContent:"end",alignItems:"center",background:((s=(o=D.theme)==null?void 0:o.colors)==null?void 0:s.background)||"#fff",borderTop:`1px solid ${((l=(c=D.theme)==null?void 0:c.colors)==null?void 0:l.border)||"#d1d5db"}`,flexShrink:0,paddingRight:16},children:k(Rs,{current:le,pageSize:ue,total:He,onChange:Te,onPageSizeChange:X=>{var me;we(1),y(X),G&&W&&H&&e.eventsEmit&&($(new Set),e.eventsEmit("pagination:request_merge_data",{viewId:H,request:{pageNo:1,pageSize:W}},void 0)),(me=e.eventsEmit)==null||me.call(e,"pagination:pageSizeChange",{viewId:H,pageSize:X})},showSizeChanger:!0,pageSizeOptions:[5,10,20,30,50],theme:{colors:{background:((u=(v=D.theme)==null?void 0:v.colors)==null?void 0:u.background)||"#fff",text:((g=(d=D.theme)==null?void 0:d.colors)==null?void 0:g.text)||"#222",border:((h=(m=D.theme)==null?void 0:m.colors)==null?void 0:h.border)||"#d1d5db",disabledBackground:((w=(x=D.theme)==null?void 0:x.colors)==null?void 0:w.disabledBackground)||"#f5f5f5",primary:((i=(L=D.theme)==null?void 0:L.colors)==null?void 0:i.primary)||"#2563eb"},space:{radius:((b=(C=D.theme)==null?void 0:C.space)==null?void 0:b.radius)||"6px"}},size:e.size,showPageNumbers:!0})})]})}),ou=f.createContext({outlet:null,matches:[],isDataRoute:!1}),iu=f.createContext(null);function lu(e){let t=f.useContext(ou).outlet;return t&&f.createElement(iu.Provider,{value:e},t)}function su(e){return lu(e.context)}new Promise(()=>{});/**
768
+ * @license lucide-react v0.456.0 - ISC
769
+ *
770
+ * This source code is licensed under the ISC license.
771
+ * See the LICENSE file in the root directory of this source tree.
772
+ */const cu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ei=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
773
+ * @license lucide-react v0.456.0 - ISC
774
+ *
775
+ * This source code is licensed under the ISC license.
776
+ * See the LICENSE file in the root directory of this source tree.
777
+ */var uu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
778
+ * @license lucide-react v0.456.0 - ISC
779
+ *
780
+ * This source code is licensed under the ISC license.
781
+ * See the LICENSE file in the root directory of this source tree.
782
+ */const du=ln(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:s,...c},l)=>nn("svg",{ref:l,...uu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ei("lucide",a),...c},[...s.map(([v,u])=>nn(v,u)),...Array.isArray(o)?o:[o]]));/**
783
+ * @license lucide-react v0.456.0 - ISC
784
+ *
785
+ * This source code is licensed under the ISC license.
786
+ * See the LICENSE file in the root directory of this source tree.
787
+ */const Pi=(e,t)=>{const n=ln(({className:r,...a},o)=>nn(du,{ref:o,iconNode:t,className:Ei(`lucide-${cu(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
788
+ * @license lucide-react v0.456.0 - ISC
789
+ *
790
+ * This source code is licensed under the ISC license.
791
+ * See the LICENSE file in the root directory of this source tree.
792
+ */const fu=Pi("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
793
+ * @license lucide-react v0.456.0 - ISC
794
+ *
795
+ * This source code is licensed under the ISC license.
796
+ * See the LICENSE file in the root directory of this source tree.
797
+ */const Rn=Pi("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),mu=ae.div`
798
+ display: flex;
799
+ justify-content: flex-start;
800
+ align-items: flex-start;
801
+ margin-left: 20px;
802
+ flex-direction: column;
803
+ height: 100%;
804
+ width: 100%;
805
+ max-width: 98%;
806
+ position: relative;
807
+ `,vu=ae.div`
808
+ display: flex;
809
+ height: 38px;
810
+ z-index: 10;
811
+ background: transparent;
812
+ gap: 8px;
813
+ flex-direction: row;
814
+ align-items: center;
815
+ justify-content: flex-start;
816
+ width: 100%;
817
+ min-width: 0; /* 确保 flex 子元素可以收缩 */
818
+ `,gu=ae.button`
819
+ display: flex;
820
+ align-items: center;
821
+ justify-content: center;
822
+ width: 32px;
823
+ height: 32px;
824
+ background: transparent;
825
+ border: none;
826
+ cursor: pointer;
827
+
828
+ /* 仅让图标在 hover 时上浮,按钮背景保持透明 */
829
+ svg {
830
+ transition: transform 0.2s ease;
831
+ }
832
+
833
+ &:hover {
834
+ background: transparent;
835
+ }
836
+
837
+ &:hover svg {
838
+ transform: translateY(-1px);
839
+ }
840
+
841
+ &:active svg {
842
+ transform: translateY(0);
843
+ }
844
+ `,hu=ae.div`
845
+ line-height: 1.4;
846
+ cursor: pointer;
847
+ transition: color 0.2s ease;
848
+ white-space: nowrap;
849
+ overflow: hidden;
850
+ text-overflow: ellipsis;
851
+ max-width: 200px;
852
+ min-width: 0;
853
+
854
+ &:hover {
855
+ color: #007bff;
856
+ }
857
+ `,pu=ae.div`
858
+ line-height: 1.4;
859
+ white-space: nowrap;
860
+ overflow: hidden;
861
+ text-overflow: ellipsis;
862
+ flex: 1;
863
+ min-width: 0;
864
+ `,no=ae.div`
865
+ display: flex;
866
+ align-items: center;
867
+ gap: 4px;
868
+ flex-wrap: nowrap;
869
+ max-width: 50%;
870
+ min-width: 0;
871
+ overflow: hidden;
872
+ `,Fn=ae.div`
873
+ display: flex;
874
+ align-items: center;
875
+ gap: 4px;
876
+ font-size: 14px;
877
+ color: ${e=>e.$isLast?"#343a40":"#6c757d"};
878
+ font-weight: ${e=>e.$isLast?"600":"normal"};
879
+ cursor: ${e=>e.$isClickable?"pointer":"default"};
880
+ transition: color 0.2s ease;
881
+ white-space: nowrap;
882
+ overflow: hidden;
883
+ text-overflow: ellipsis;
884
+ max-width: 120px;
885
+
886
+ &:hover {
887
+ color: ${e=>e.$isLast?"#007bff":"inherit"};
888
+ }
889
+ `,Vn=ae.div`
890
+ display: flex;
891
+ align-items: center;
892
+ color: #6c757d;
893
+ margin: 0 2px;
894
+ `,bu=ae.div`
895
+ display: flex;
896
+ flex-direction: column;
897
+ width: 100%;
898
+ height: calc(100% - 45px);
899
+ min-height: 650px;
900
+ overflow: auto;
901
+ `;ae.div`
902
+ position: fixed;
903
+ bottom: 20px;
904
+ left: 50%;
905
+ transform: translateX(-50%);
906
+ z-index: 1000;
907
+ `;const $d=({children:e,goBack:t,title:n,description:r,breadcrumbs:a,dockItems:o,dockActiveMode:s="single",defaultDockActiveId:c,defaultDockActiveIds:l,styles:v,eventsEmit:u})=>{var d,g,m,h,x,w,L,i;const C=Tt(),b=it(it({theme:Ve,mode:"light"},C),v),M=(b==null?void 0:b.theme)||Ve,E=Ae.useRef(null),T=()=>{u!=null&&u.onGoBack?u.onGoBack():t&&t()},z=()=>{u!=null&&u.onTitleClick&&u.onTitleClick()},_=(I,S)=>{u!=null&&u.onBreadcrumbClick?u.onBreadcrumbClick(I,S):I.onClick&&I.onClick()},D=(I,S)=>{u!=null&&u.onDockItemClick&&u.onDockItemClick(I,S)},H=()=>{if(!a||a.length===0)return null;const I=Ae.useRef(null),[S,y]=Ae.useState({start:0,end:a.length,showEllipsis:!1}),P=Ae.useCallback(()=>{if(!I.current||a.length<=3){y({start:0,end:a.length,showEllipsis:!1});return}const F=I.current.offsetWidth*.5;let V=Math.floor((F-30)/140);if(V<2&&(V=2),V>=a.length){y({start:0,end:a.length,showEllipsis:!1});return}const B=0,U=Math.min(V-1,a.length);y({start:B,end:U,showEllipsis:U<a.length-1})},[a.length]);if(Ae.useEffect(()=>{P();const F=new ResizeObserver(()=>{P()});return I.current&&F.observe(I.current),()=>{F.disconnect()}},[P]),a.length<=3)return k(no,{children:a.map((F,V)=>se(Ae.Fragment,{children:[k(Fn,{$isLast:V===a.length-1,$isClickable:!!(V<a.length-1||F.onClick),onClick:()=>_(F,V),style:{color:V===a.length-1?M.colors.text:M.colors.textSecondary||M.colors.disabledText},title:F.label,children:F.label}),V<a.length-1&&k(Vn,{children:k(Rn,{size:14})})]},F.id))});const{start:$,end:O,showEllipsis:R}=S;return se(no,{children:[a.slice($,O).map((F,V)=>se(Ae.Fragment,{children:[k(Fn,{$isLast:V===O-$-1&&!R,$isClickable:!!(V<O-$-1||F.onClick),onClick:()=>_(F,$+V),style:{color:V===O-$-1&&!R?M.colors.text:M.colors.textSecondary||M.colors.disabledText},title:F.label,children:F.label}),V<O-$-1&&k(Vn,{children:k(Rn,{size:14})})]},F.id)),R&&se(Xn,{children:[k(Vn,{children:k(Rn,{size:14})}),k(Fn,{$isLast:!1,$isClickable:!1,style:{color:M.colors.textSecondary||M.colors.disabledText,cursor:"default",maxWidth:"auto"},title:`${a.slice(O,-1).map(F=>F.label).join(" > ")}`,children:"..."}),k(Vn,{children:k(Rn,{size:14})}),k(Fn,{$isLast:!0,$isClickable:!!a[a.length-1].onClick,onClick:()=>_(a[a.length-1],a.length-1),style:{color:M.colors.text},title:a[a.length-1].label,children:a[a.length-1].label})]})]})},[G,W]=Ae.useState(!0);return k(mu,{style:{background:M.colors.appBackground,color:M.colors.text,fontFamily:((g=(d=M.fonts)==null?void 0:d.body)==null?void 0:g.family)||"PingFang SC, Microsoft YaHei, Arial, sans-serif"},children:se("div",{style:{height:"100%",display:"flex",width:"100%",gap:12},children:[o&&o.length>0&&k("div",{style:{flex:`0 0 ${G?72:28}px`,transition:"flex-basis .2s ease"},children:k(pc,{items:o,open:G,onOpenChange:W,onItemClick:I=>D({id:String(I.key),label:I.name},0),defaultOpen:!0})}),se("div",{style:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[(n||r||t||a)&&se(vu,{ref:E,children:[t&&k(gu,{onClick:T,style:{color:M.colors.primary,borderRadius:M.space.radius||"6px"},title:"\u8FD4\u56DE",children:k(fu,{size:18})}),H(),n&&k(hu,{onClick:z,style:{color:M.colors.text,fontSize:((h=(m=M.fonts)==null?void 0:m.heading)==null?void 0:h.size)||"16px",fontWeight:((w=(x=M.fonts)==null?void 0:x.heading)==null?void 0:w.weight)||"600"},title:n,children:n}),r&&k(pu,{style:{color:M.colors.textSecondary||M.colors.disabledText,opacity:.7,fontSize:((i=(L=M.fonts)==null?void 0:L.body)==null?void 0:i.size)||"12px"},title:r,children:r})]}),k(bu,{style:{background:M.colors.dashboardBackground||"transparent",border:`1px solid ${M.colors.border}`||void 0,borderRadius:M.space.radius||void 0,boxShadow:M.colors.shadow||void 0},children:e||k(su,{})})]})]})})};ae.div.withConfig({shouldForwardProp:e=>!["backgroundImage","backgroundColor"].includes(e)})`
908
+ position: fixed;
909
+ top: 0;
910
+ left: 0;
911
+ width: 100vw;
912
+ height: 100vh;
913
+ background: ${e=>e.backgroundImage?`url(${e.backgroundImage}) center/cover no-repeat`:e.backgroundColor||"#1a1a1a"};
914
+ display: flex;
915
+ flex-direction: column;
916
+ overflow: hidden;
917
+ z-index: 1;
918
+ `;ae.div`
919
+ height: 48px;
920
+ width: 100%;
921
+ display: flex;
922
+ align-items: center;
923
+ justify-content: center;
924
+ background: transparent;
925
+ z-index: 10;
926
+ flex-shrink: 0;
927
+ `;ae.div`
928
+ flex: 1;
929
+ width: 100%;
930
+ overflow-y: auto;
931
+ overflow-x: hidden;
932
+ position: relative;
933
+ z-index: 2;
934
+ background: transparent;
935
+
936
+ /* 自定义滚动条样式 */
937
+ &::-webkit-scrollbar {
938
+ width: 6px;
939
+ }
940
+
941
+ &::-webkit-scrollbar-track {
942
+ background: rgba(255, 255, 255, 0.1);
943
+ border-radius: 3px;
944
+ }
945
+
946
+ &::-webkit-scrollbar-thumb {
947
+ background: rgba(255, 255, 255, 0.3);
948
+ border-radius: 3px;
949
+ }
950
+
951
+ &::-webkit-scrollbar-thumb:hover {
952
+ background: rgba(255, 255, 255, 0.5);
953
+ }
954
+ `;ae.div`
955
+ height: 80px;
956
+ width: 100%;
957
+ display: flex;
958
+ align-items: flex-end;
959
+ justify-content: center;
960
+ padding: 12px 0;
961
+ background: transparent;
962
+ z-index: 10;
963
+ flex-shrink: 0;
964
+ `;ae.div`
965
+ --header-height: 56px;
966
+ --page-gutter: 16px;
967
+ --sidebar-width: 264px;
968
+ --toc-width: 268px;
969
+ --content-max: 960px;
970
+
971
+ display: flex;
972
+ flex-direction: column;
973
+ width: 100%;
974
+ min-height: 100vh;
975
+ height: 100vh; /* 以视口高度为基准,便于内部独立滚动布局 */
976
+ position: relative;
977
+ `;ae.div`
978
+ position: sticky;
979
+ top: 0;
980
+ z-index: 30;
981
+ width: 100%;
982
+ height: var(--header-height);
983
+ display: flex;
984
+ align-items: center;
985
+ justify-content: space-between;
986
+ padding: 0 16px;
987
+ border-bottom: 1px solid rgba(0,0,0,0.06);
988
+ backdrop-filter: blur(8px);
989
+ `;ae.div`
990
+ display: flex;
991
+ align-items: center;
992
+ gap: 12px;
993
+ min-width: 0;
994
+ `;ae.div`
995
+ display: flex;
996
+ align-items: center;
997
+ gap: 8px;
998
+ `;ae.button`
999
+ display: inline-flex;
1000
+ align-items: center;
1001
+ justify-content: center;
1002
+ width: 32px;
1003
+ height: 32px;
1004
+ border-radius: 8px;
1005
+ background: transparent;
1006
+ border: 1px solid rgba(0,0,0,0.08);
1007
+ cursor: pointer;
1008
+ transition: background .15s ease, border-color .15s ease, transform .1s ease;
1009
+
1010
+ &:hover { background: rgba(0,0,0,0.04); }
1011
+ &:active { transform: translateY(1px); }
1012
+ `;ae.div`
1013
+ display: grid;
1014
+ grid-template-columns: var(--sidebar-width) 1fr var(--toc-width);
1015
+ gap: 16px;
1016
+ width: 100%;
1017
+ padding: 12px 0;
1018
+ box-sizing: border-box;
1019
+ transition: grid-template-columns .25s ease;
1020
+ height: calc(100vh - var(--header-height));
1021
+ min-height: calc(100vh - var(--header-height));
1022
+ overflow: hidden; /* 内部区域各自滚动 */
1023
+
1024
+ @media (max-width: 1280px) {
1025
+ grid-template-columns: var(--sidebar-width) 1fr 0px;
1026
+ }
1027
+
1028
+ @media (max-width: 960px) {
1029
+ grid-template-columns: 0px 1fr 0px;
1030
+ gap: 12px;
1031
+ padding: 12px 12px 20px 12px;
1032
+ }
1033
+ `;ae.aside`
1034
+ position: relative;
1035
+ `;ae.div`
1036
+ height: 100%;
1037
+ overflow: hidden;
1038
+ padding-right: 8px;
1039
+ border-right: 1px solid rgba(0,0,0,0.06);
1040
+ transition: opacity .2s ease, transform .2s ease;
1041
+ opacity: ${e=>e.$collapsed?0:1};
1042
+ transform: translateX(${e=>e.$collapsed?"-6px":"0px"});
1043
+ pointer-events: ${e=>e.$collapsed?"none":"auto"};
1044
+ `;ae.button`
1045
+ position: absolute;
1046
+ top: 6px;
1047
+ right: -10px;
1048
+ width: 10px;
1049
+ height: 72px;
1050
+ border: none;
1051
+ background: rgba(0,0,0,0.06);
1052
+ border-radius: 0 8px 8px 0;
1053
+ cursor: pointer;
1054
+ display: flex;
1055
+ align-items: center;
1056
+ justify-content: center;
1057
+ transition: background .15s ease;
1058
+ &:hover { background: rgba(0,0,0,0.12); }
1059
+ `;ae.div`
1060
+ height: 100%;
1061
+ overflow: auto;
1062
+ padding-right: 8px;
1063
+ `;ae.main`
1064
+ position: relative;
1065
+ min-width: 0;
1066
+ height: 100%;
1067
+ overflow: auto; /* 文档渲染区独立滚动 */
1068
+ `;ae.div`
1069
+ width: 100%;
1070
+ max-width: var(--content-max);
1071
+ margin: 0 auto;
1072
+ background-clip: padding-box;
1073
+ border-radius: 8px;
1074
+ padding: 0px 12px;
1075
+ `;ae.div`
1076
+ height: 100%;
1077
+ transition: opacity .5s ease;
1078
+ opacity: ${e=>e.$opacity};
1079
+ `;ae.aside`
1080
+ position: relative;
1081
+ z-index: 1;
1082
+ `;ae.div`
1083
+ /* 跟随整页滚动,不再单独滚动 */
1084
+ position: static;
1085
+ overflow: visible;
1086
+ padding-left: 8px;
1087
+ border-left: 1px solid rgba(0,0,0,0.06);
1088
+ background: transparent;
1089
+ z-index: 1;
1090
+ `;ae.div`
1091
+ transition: opacity .2s ease, transform .2s ease;
1092
+ opacity: ${e=>e.$collapsed?0:1};
1093
+ transform: translateX(${e=>e.$collapsed?"6px":"0px"});
1094
+ pointer-events: ${e=>e.$collapsed?"none":"auto"};
1095
+ `;ae.button`
1096
+ position: absolute;
1097
+ top: 6px;
1098
+ left: -10px;
1099
+ width: 10px;
1100
+ height: 72px;
1101
+ border: none;
1102
+ background: rgba(0,0,0,0.06);
1103
+ border-radius: 8px 0 0 8px;
1104
+ cursor: pointer;
1105
+ display: flex;
1106
+ align-items: center;
1107
+ justify-content: center;
1108
+ transition: background .15s ease;
1109
+ &:hover { background: rgba(0,0,0,0.12); }
1110
+ `;ae.div`
1111
+ font-size: 12px;
1112
+ opacity: .7;
1113
+ padding: 8px 8px;
1114
+ `;ae.button`
1115
+ width: 100%;
1116
+ display: flex;
1117
+ align-items: center;
1118
+ gap: 8px;
1119
+ padding: 8px 10px;
1120
+ background: transparent;
1121
+ border: none;
1122
+ text-align: left;
1123
+ cursor: pointer;
1124
+ border-radius: 6px;
1125
+ color: inherit;
1126
+ transition: background .15s ease, color .15s ease;
1127
+ font-size: 13px;
1128
+ white-space: nowrap;
1129
+
1130
+ &:hover {
1131
+ background: rgba(0,0,0,0.04);
1132
+ }
1133
+
1134
+ ${e=>e.$active?"background: rgba(0,0,0,0.08); font-weight: 600;":""}
1135
+ `;ae.div`
1136
+ display: flex;
1137
+ align-items: center;
1138
+ gap: 8px;
1139
+ flex-wrap: nowrap;
1140
+ white-space: nowrap;
1141
+ overflow-x: auto;
1142
+ overflow-y: hidden;
1143
+ scrollbar-width: none;
1144
+ &::-webkit-scrollbar { display: none; }
1145
+ `;ae.div`
1146
+ width: 1px;
1147
+ height: 16px;
1148
+ background: currentColor;
1149
+ opacity: .2;
1150
+ `;({...Ve,colors:{...Ve.colors}});({...Ve,colors:{...Ve.colors}});const Ai="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.69727%205.36035C9.24139%205.36035%209.7044%205.43727%2010.0781%205.59961L10.1787%205.64355V6.78418L9.93066%206.64746C9.56044%206.44228%209.15313%206.33892%208.70508%206.33887C8.12836%206.33887%207.66998%206.52918%207.31543%206.90527L7.31445%206.90625C6.96154%207.27886%206.77643%207.78905%206.77637%208.45605C6.77641%209.08819%206.94869%209.57219%207.27637%209.92578L7.4043%2010.0488C7.71343%2010.3185%208.1013%2010.456%208.5791%2010.4561C9.10219%2010.4561%209.54903%2010.3382%209.9248%2010.1084L10.1787%209.95312V11.0381L10.0889%2011.085C9.65012%2011.3158%209.10967%2011.4268%208.47559%2011.4268C7.6423%2011.4268%206.9605%2011.1612%206.44922%2010.6191V10.6182C5.93981%2010.0754%205.69145%209.36307%205.69141%208.49902C5.69147%207.57075%205.97064%206.80719%206.54102%206.22656C7.10964%205.64782%207.83309%205.36042%208.69727%205.36035ZM6.3291%206.75488C6.32678%206.75844%206.32457%206.76206%206.32227%206.76562C6.36901%206.69342%206.41884%206.62326%206.47266%206.55566L6.3291%206.75488ZM8.10645%205.57812C8.01275%205.59511%207.92124%205.61615%207.83203%205.6416C8.0108%205.5906%208.19869%205.55704%208.39551%205.54004L8.10645%205.57812Z'%20fill='%23339C43'/%3e%3c/svg%3e",Hi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33301C11.457%201.33301%2011.6182%201.39584%2011.7412%201.50879L12.6504%202.3457L11.9736%203.08105L11.1602%202.33301H4V13.666H12.667V3.71387L11.9766%203.08398L11.9736%203.08203L12.6504%202.3457L13.4502%203.07617C13.5879%203.20229%2013.6668%203.38063%2013.667%203.56738V14L13.6533%2014.1338C13.5913%2014.4377%2013.3223%2014.666%2013%2014.666H3.66699L3.53223%2014.6523C3.27187%2014.599%203.06687%2014.3942%203.01367%2014.1338L3%2014V2C3.00012%201.67798%203.22857%201.40887%203.53223%201.34668L3.66699%201.33301H11.29ZM10.5%209C10.7761%209%2011%209.22386%2011%209.5C11%209.77614%2010.7761%2010%2010.5%2010H6.5C6.22386%2010%206%209.77614%206%209.5C6%209.22386%206.22386%209%206.5%209H10.5ZM10.5%207C10.7761%207%2011%207.22386%2011%207.5C11%207.77614%2010.7761%208%2010.5%208H6.5C6.22386%208%206%207.77614%206%207.5C6%207.22386%206.22386%207%206.5%207H10.5Z'%20fill='%23426BFF'/%3e%3c/svg%3e",Ni="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.71582%205.33301C6.78793%205.33301%206.85481%205.37254%206.89258%205.43652L7.9541%207.25586L9.00488%205.43848C9.04265%205.3745%209.10953%205.33496%209.18164%205.33496H9.79395C9.83089%205.33515%209.86769%205.34564%209.89941%205.36523C9.93101%205.3848%209.95694%205.41285%209.97461%205.44629C9.99224%205.47972%2010.0011%205.5176%2010%205.55566C9.99877%205.59389%209.9876%205.63179%209.96777%205.66406L8.50293%208.01855L9.94531%2010.3359C10.0071%2010.4354%209.97971%2010.5668%209.88379%2010.6309C9.84945%2010.6522%209.81097%2010.665%209.77148%2010.665H9.12793C9.05762%2010.665%208.99086%2010.6274%208.95312%2010.5635L7.88379%208.76172L6.80664%2010.5654C6.76885%2010.6275%206.70384%2010.667%206.63184%2010.667H6.04004C6.00321%2010.6669%205.96628%2010.6561%205.93457%2010.6367C5.90309%2010.6174%205.87717%2010.5897%205.85938%2010.5566C5.84153%2010.5233%205.83209%2010.4854%205.83301%2010.4473C5.83393%2010.4093%205.84491%2010.3721%205.86426%2010.3398L7.2959%207.97949L5.88379%205.66211C5.82198%205.56081%205.85112%205.42939%205.94727%205.36719C5.97982%205.3442%206.01726%205.33302%206.05664%205.33301H6.71582Z'%20fill='%232F913E'/%3e%3c/svg%3e",Oi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1162%203.07617C13.2543%203.20232%2013.3338%203.3804%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM10%208.5C10.2761%208.5%2010.5%208.72386%2010.5%209C10.5%209.27614%2010.2761%209.5%2010%209.5H6C5.72386%209.5%205.5%209.27614%205.5%209C5.5%208.72386%205.72386%208.5%206%208.5H10ZM9%206C9.27614%206%209.5%206.22386%209.5%206.5C9.5%206.77614%209.27614%207%209%207H6C5.72386%207%205.5%206.77614%205.5%206.5C5.5%206.22386%205.72386%206%206%206H9Z'%20fill='%2370706E'/%3e%3c/svg%3e",Ti="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H8.22957C8.49499%202%208.73512%202.15744%208.84095%202.40085L9.92791%204.90085C10.1193%205.34115%209.79664%205.83333%209.31652%205.83333H2.66667C2.29848%205.83333%202%205.53486%202%205.16667V2.66667Z'%20fill='%23F9B13C'/%3e%3cpath%20d='M3%204.50008C3%204.31599%203.14924%204.16675%203.33333%204.16675H12.6667C12.8508%204.16675%2013%204.31599%2013%204.50008V13.1667C13%2013.3508%2012.8508%2013.5001%2012.6667%2013.5001H3.33333C3.14924%2013.5001%203%2013.3508%203%2013.1667V4.50008Z'%20fill='white'/%3e%3cpath%20d='M2%204.66675H13.3333C13.7015%204.66675%2014%204.96522%2014%205.33341V13.3334C14%2013.7016%2013.7015%2014.0001%2013.3333%2014.0001H2.66667C2.29848%2014.0001%202%2013.7016%202%2013.3334V4.66675Z'%20fill='%23FFCB2E'/%3e%3c/svg%3e",Ri="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.95117%208.80469C8.95117%209.45619%208.83123%209.99047%208.58105%2010.3984L8.46582%2010.5654C8.13575%2010.9898%207.68375%2011.2012%207.12109%2011.2012C6.86476%2011.2012%206.64525%2011.1636%206.4668%2011.083L6.4082%2011.0566V10.0342L6.56641%2010.1494C6.70723%2010.2516%206.88862%2010.3066%207.11719%2010.3066C7.40052%2010.3066%207.60577%2010.1907%207.74609%209.95508C7.89129%209.7111%207.9707%209.33189%207.9707%208.80469V4.84961H8.95117V8.80469Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",Fi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%201C13.5523%201%2014%201.44772%2014%202V13H3.5C3.22386%2013%203%2013.2239%203%2013.5C3%2013.7761%203.22386%2014%203.5%2014H14C14%2014.5523%2013.5523%2015%2013%2015H4C2.89543%2015%202%2014.1046%202%2013V3C2%201.89543%202.89543%201%204%201H13ZM5.5%204C5.22386%204%205%204.22386%205%204.5C5%204.77614%205.22386%205%205.5%205H10.5C10.7761%205%2011%204.77614%2011%204.5C11%204.22386%2010.7761%204%2010.5%204H5.5Z'%20fill='%230956E4'/%3e%3c/svg%3e",Vi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208C1.5%204.41015%204.41015%201.5%208%201.5ZM8%202.42871C4.92298%202.42871%202.42871%204.92298%202.42871%208C2.42871%2011.077%204.92298%2013.5713%208%2013.5713C11.077%2013.5713%2013.5713%2011.077%2013.5713%208C13.5713%204.92298%2011.077%202.42871%208%202.42871ZM6.19434%207.36523C6.2548%207.30503%206.3537%207.30487%206.41406%207.36523L6.68262%207.63477C6.74275%207.69515%206.74275%207.79314%206.68262%207.85352L6.30371%208.23242C5.89985%208.63677%205.89974%209.29201%206.30371%209.69629C6.70813%2010.1005%207.3642%2010.1006%207.76855%209.69629L8.14746%209.31738C8.20788%209.25744%208.30591%209.25726%208.36621%209.31738L8.63574%209.58691C8.69582%209.64722%208.69567%209.74526%208.63574%209.80566L8.25684%2010.1846C7.58294%2010.8585%206.49045%2010.8582%205.81641%2010.1846C5.14239%209.51056%205.14239%208.41815%205.81641%207.74414L6.19434%207.36523ZM8.27441%207.27246C8.33487%207.21231%208.43282%207.21214%208.49316%207.27246L8.7627%207.54199C8.82268%207.60237%208.82273%207.7004%208.7627%207.76074L7.76074%208.76172C7.70035%208.82211%207.60244%208.82201%207.54199%208.76172L7.27246%208.49316C7.21217%208.43285%207.21239%208.33487%207.27246%208.27441L8.27441%207.27246ZM7.74414%205.81543C8.41813%205.14189%209.51068%205.14173%2010.1846%205.81543C10.8584%206.48938%2010.8583%207.58286%2010.1846%208.25684L9.80566%208.63477C9.74528%208.69515%209.64736%208.69505%209.58691%208.63477L9.31738%208.36621C9.25716%208.30593%209.25744%208.20792%209.31738%208.14746L9.69629%207.76855C10.1004%207.36418%2010.1005%206.70805%209.69629%206.30371C9.29201%205.89962%208.6368%205.89978%208.23242%206.30371L7.85352%206.68262C7.79319%206.74294%207.69523%206.74271%207.63477%206.68262L7.36523%206.41309C7.30484%206.35264%207.30481%206.25476%207.36523%206.19434L7.74414%205.81543Z'%20fill='%2339B83F'/%3e%3c/svg%3e",zi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957Z'%20fill='%23675FF0'/%3e%3cpath%20d='M5%206.81818C5.12597%206.81818%205.22541%206.79021%205.30497%206.73427C5.38453%206.67832%205.43757%206.6014%205.46409%206.51049C5.49061%206.41259%205.50387%206.25175%205.50387%206.02098C5.50387%205.79021%205.5105%205.63636%205.51713%205.56643C5.53039%205.44755%205.55691%205.35664%205.60331%205.28671C5.64309%205.21678%205.6895%205.16084%205.74917%205.11888C5.80884%205.07692%205.88177%205.04895%205.97459%205.02098C6.03425%205.00699%206.14033%205%206.27956%205H6.41878V5.32867H6.34586C6.17348%205.32867%206.06077%205.35664%206.00773%205.40559C5.9547%205.45454%205.92155%205.57343%205.92155%205.75525C5.92155%206.11888%205.91492%206.34266%205.89503%206.44056C5.86851%206.58741%205.81547%206.6993%205.74254%206.78322C5.66961%206.86014%205.55691%206.93706%205.41105%207C5.59006%207.06294%205.72265%207.16084%205.80221%207.29371C5.88177%207.42657%205.92155%207.63636%205.92155%207.93706C5.92155%208.2028%205.92818%208.36364%205.92818%208.41958C5.94144%208.51049%205.97459%208.58042%206.02762%208.61539C6.08066%208.65035%206.18674%208.67133%206.33923%208.67133H6.41215V9H6.27293C6.11381%209%205.99448%208.99301%205.92818%208.96503C5.8221%208.93007%205.73591%208.88112%205.66961%208.81119C5.60331%208.74126%205.55691%208.65035%205.53702%208.53846C5.51713%208.42657%205.50387%208.25175%205.50387%208C5.50387%207.74825%205.49061%207.58042%205.46409%207.48252C5.43757%207.39161%205.38453%207.30769%205.30497%207.25874C5.22541%207.2028%205.12597%207.17483%205%207.16783V6.81818ZM10.5956%206.06993H7.22099C7.04199%206.06993%206.90276%205.91608%206.90276%205.73427V5.67133C6.90276%205.48252%207.04862%205.33566%207.22099%205.33566H10.5956C10.7746%205.33566%2010.9138%205.48951%2010.9138%205.67133V5.73427C10.9138%205.91608%2010.768%206.06993%2010.5956%206.06993ZM10.5956%207.3986H7.22099C7.04199%207.3986%206.90276%207.24476%206.90276%207.06294V7C6.90276%206.81119%207.04862%206.66434%207.22099%206.66434H10.5956C10.7746%206.66434%2010.9138%206.81818%2010.9138%207V7.06294C10.9138%207.24476%2010.768%207.3986%2010.5956%207.3986ZM10.5956%208.73427H7.22099C7.04199%208.73427%206.90276%208.58042%206.90276%208.3986V8.33566C6.90276%208.14685%207.04862%208%207.22099%208H10.5956C10.7746%208%2010.9138%208.15385%2010.9138%208.33566V8.3986C10.9138%208.58042%2010.768%208.73427%2010.5956%208.73427Z'%20fill='%23675FF0'/%3e%3cpath%20d='M11.5%2010.1265H10.8525V12H10.3677V10.1265H9.72168V9.73096H11.5V10.1265Z'%20fill='%23675FF0'/%3e%3cpath%20d='M7.55811%2012V9.73096H8.3418C9.14746%209.73096%209.55029%2010.0996%209.55029%2010.8369C9.55029%2011.1875%209.4375%2011.4692%209.21191%2011.6821C8.98633%2011.894%208.69531%2012%208.33887%2012H7.55811ZM8.0415%2010.1265V11.6045H8.30518C8.53467%2011.6045%208.71484%2011.5361%208.8457%2011.3994C8.97656%2011.2627%209.04199%2011.0776%209.04199%2010.8442C9.04199%2010.6187%208.97363%2010.4429%208.83691%2010.3169C8.7002%2010.1899%208.52246%2010.1265%208.30371%2010.1265H8.0415Z'%20fill='%23675FF0'/%3e%3cpath%20d='M4.96094%2010.8955C4.96094%2010.54%205.06445%2010.251%205.27148%2010.0283C5.47949%209.80469%205.75391%209.69287%206.09473%209.69287C6.41895%209.69287%206.67969%209.80078%206.87695%2010.0166C7.0752%2010.2324%207.17432%2010.5098%207.17432%2010.8486C7.17432%2011.2021%207.07129%2011.4893%206.86523%2011.71C6.66016%2011.9297%206.39111%2012.0396%206.05811%2012.0396C5.73291%2012.0396%205.46875%2011.9331%205.26562%2011.7202C5.0625%2011.5063%204.96094%2011.2314%204.96094%2010.8955ZM5.46924%2010.8691C5.46924%2011.0898%205.52246%2011.2705%205.62891%2011.4111C5.73535%2011.5508%205.88135%2011.6206%206.06689%2011.6206C6.25635%2011.6206%206.40381%2011.5537%206.50928%2011.4199C6.61475%2011.2852%206.66748%2011.1045%206.66748%2010.8779C6.66748%2010.6416%206.61621%2010.4551%206.51367%2010.3184C6.41113%2010.1807%206.2666%2010.1118%206.08008%2010.1118C5.89062%2010.1118%205.74121%2010.1821%205.63184%2010.3228C5.52344%2010.4634%205.46924%2010.6455%205.46924%2010.8691Z'%20fill='%23675FF0'/%3e%3c/svg%3e",ji="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM7.71191%205.00098C7.95398%205.01182%208.23799%205.16198%208.30664%205.54688C8.40941%206.03464%208.27759%206.57316%208.17285%207.00488L8.16699%207.03027C8.37835%207.57951%208.66991%207.94773%209.11426%208.21875C10.017%208.10683%2010.5964%208.16863%2010.835%208.40332C10.9994%208.56776%2011.0484%208.87519%2010.9473%209.11914C10.8894%209.25831%2010.7357%209.48926%2010.3457%209.48926C9.95189%209.48921%209.37167%209.31384%208.8623%209.04102C8.40175%209.11875%207.8926%209.29278%207.40137%209.45898C7.2966%209.49512%207.18778%209.5311%207.08301%209.56543C6.3969%2010.7429%205.8824%2010.9998%205.56445%2011C5.48865%2011%205.4233%2010.9837%205.36914%2010.9639C5.24449%2010.9169%205.13813%2010.8189%205.07129%2010.6924C5.01181%2010.5787%204.98629%2010.4528%205.00781%2010.3535C5.1144%209.81502%205.83149%209.3878%206.36621%209.11133C6.65343%208.60533%207.04538%207.75431%207.29102%207.16895C7.09599%206.41389%206.98933%205.82132%207.1084%205.3877C7.17162%205.15099%207.42651%204.98835%207.71191%205.00098ZM6.18555%209.77441C5.99948%209.94427%205.76264%2010.1801%205.6416%2010.4023C5.74457%2010.3228%205.93444%2010.1394%206.18555%209.77441ZM7.73926%207.69629C7.60016%208.05769%207.39944%208.55181%207.15918%208.9873C7.23144%208.95839%207.30596%208.9272%207.38184%208.89648C7.69966%208.76643%208.05529%208.61975%208.44531%208.53125C8.17624%208.31804%207.93249%208.03049%207.73926%207.69629ZM9.73535%208.74707C10.3674%208.99599%2010.5185%208.91259%2010.5352%208.90234L10.5391%208.89648H10.543C10.5536%208.88933%2010.5516%208.88347%2010.5498%208.87988C10.544%208.87053%2010.4509%208.71359%209.73535%208.74707ZM7.72852%205.4834C7.67613%205.54303%207.68883%206.05251%207.77734%206.41211C7.8496%206.16635%207.86152%205.68036%207.76758%205.51953C7.75502%205.4962%207.74284%205.48532%207.72852%205.4834Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",Bi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1777%202.67969C14.4553%202.7361%2014.6644%202.98029%2014.666%203.27441V12.667C14.6659%2012.9891%2014.4376%2013.2583%2014.1338%2013.3203L14%2013.334H2L1.86523%2013.3203C1.56164%2013.2581%201.33312%2012.989%201.33301%2012.667V3.33398C1.33301%203.01196%201.56164%202.74298%201.86523%202.68066L2%202.66699H14.0557L14.1777%202.67969ZM2.33301%2012.334H13.666V3.66699H2.33301V12.334ZM8.78125%207.39355C8.79747%207.40146%208.81204%207.41261%208.82324%207.42676L10.8545%2010.0166C10.915%2010.0939%2010.8601%2010.2078%2010.7607%2010.208H5.28613C5.26386%2010.2081%205.24156%2010.2022%205.22266%2010.1904C5.20374%2010.1786%205.18849%2010.1616%205.17871%2010.1416C5.16897%2010.1216%205.16469%2010.0993%205.16699%2010.0771C5.16933%2010.055%205.17865%2010.0341%205.19238%2010.0166L6.67676%208.12305C6.68788%208.10885%206.70253%208.09775%206.71875%208.08984C6.73488%208.08198%206.75256%208.07818%206.77051%208.07812C6.78858%208.07812%206.807%208.08193%206.82324%208.08984C6.83924%208.09768%206.85322%208.10907%206.86426%208.12305L7.47656%208.90332L8.63379%207.42676C8.64501%207.41261%208.65955%207.40145%208.67578%207.39355C8.69215%207.38564%208.71034%207.38086%208.72852%207.38086C8.74668%207.38087%208.7649%207.38565%208.78125%207.39355ZM6.35547%205.83301C6.51333%205.83301%206.66474%205.89619%206.77637%206.00781C6.888%206.11944%206.95117%206.27084%206.95117%206.42871C6.95111%206.5865%206.88794%206.73803%206.77637%206.84961C6.66476%206.9611%206.51323%207.02344%206.35547%207.02344C6.19768%207.02338%206.04615%206.96118%205.93457%206.84961C5.823%206.73803%205.7608%206.5865%205.76074%206.42871C5.76074%206.27095%205.82308%206.11942%205.93457%206.00781C6.04615%205.89624%206.19768%205.83307%206.35547%205.83301Z'%20fill='%2332A3FF'/%3e%3c/svg%3e",_i="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.1543%205.26758H8.1543C9.30194%205.26778%209.9998%206.03334%2010%207.08105C10%208.14247%209.29247%208.89045%208.15039%208.89062H6.93262V10.7275C6.93262%2010.812%206.86371%2010.8816%206.7793%2010.8818H6.1543C6.06968%2010.8818%206%2010.8122%206%2010.7275V5.41992C6.00002%205.33532%206.06969%205.2666%206.1543%205.2666V5.26758ZM6.93262%206.03906V8.12402H7.68066C8.54028%208.12402%209.0498%207.91372%209.0498%207.0791C9.04962%206.41793%208.66339%206.03914%208.01367%206.03906H6.93262Z'%20fill='%23FA8C16'/%3e%3c/svg%3e",Yi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.73633%201.57642C2.53848%200.774265%203.74473%200.714862%204.87207%201.03052C6.02182%201.35245%207.24885%202.09683%208.3125%203.1604C9.37624%204.22414%2010.1204%205.45195%2010.4424%206.60181C10.758%207.72909%2010.6986%208.93446%209.89648%209.73657C9.09439%2010.5387%207.88901%2010.5981%206.76172%2010.2825C5.61186%209.96051%204.38405%209.21632%203.32031%208.15259C2.25674%207.08894%201.51236%205.86191%201.19043%204.71216C0.874775%203.58481%200.934176%202.37857%201.73633%201.57642Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.76172%205.41479C7.88883%205.09929%209.09442%205.15888%209.89648%205.96069C10.6986%206.76284%2010.758%207.96909%2010.4424%209.09644C10.1204%2010.2462%209.37617%2011.4732%208.3125%2012.5369C7.24882%2013.6005%206.02187%2014.3448%204.87207%2014.6667C3.74472%2014.9824%202.53848%2014.923%201.73633%2014.1208C0.934528%2013.3188%200.874922%2012.1132%201.19043%2010.9861C1.51239%209.83623%202.25659%208.60841%203.32031%207.54468C4.38405%206.48096%205.61186%205.73675%206.76172%205.41479Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.1282%201.03052C12.2553%200.715012%2013.4609%200.774612%2014.263%201.57642C15.0651%202.37857%2015.1246%203.58481%2014.8089%204.71216C14.4869%205.86196%2013.7427%207.08892%2012.679%208.15259C11.6153%209.21627%2010.3884%209.96048%209.23859%2010.2825C8.11124%2010.5981%206.90499%2010.5387%206.10284%209.73657C5.30106%208.9345%205.24144%207.72892%205.55695%206.60181C5.8789%205.45195%206.62311%204.22414%207.68683%203.1604C8.75056%202.09668%209.97838%201.35248%2011.1282%201.03052Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.10284%205.96069C6.90499%205.15855%208.11124%205.09914%209.23859%205.41479C10.3883%205.73673%2011.6154%206.48111%2012.679%207.54468C13.7427%208.60841%2014.4869%209.83623%2014.8089%2010.9861C15.1245%2012.1134%2015.0651%2013.3188%2014.263%2014.1208C13.4609%2014.9229%2012.2555%2014.9823%2011.1282%2014.6667C9.97838%2014.3448%208.75055%2013.6006%207.68683%2012.5369C6.62325%2011.4732%205.87888%2010.2462%205.55695%209.09644C5.24129%207.96909%205.3007%206.76284%206.10284%205.96069Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Wi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM9.91406%205.16699C10.0058%205.16721%2010.0799%205.24128%2010.0801%205.33301V5.9707C10.0801%206.06262%2010.0059%206.13748%209.91406%206.1377H8.64648C8.55457%206.1377%208.47971%206.21185%208.47949%206.30371V10.5469C8.47936%2010.6387%208.40525%2010.7127%208.31348%2010.7129H7.59375C7.50178%2010.7129%207.42689%2010.6388%207.42676%2010.5469V6.30371C7.42654%206.21185%207.35168%206.1377%207.25977%206.1377H6C5.90795%206.1377%205.83301%206.06275%205.83301%205.9707V5.33301C5.83323%205.24115%205.90809%205.16699%206%205.16699H9.91406Z'%20fill='%234089FF'/%3e%3c/svg%3e",Ui="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.9568%201.33276C11.1238%201.33276%2011.2849%201.39651%2011.408%201.50952L12.3171%202.34644L11.6404%203.08179L10.8269%202.33374H3.66675V13.6667H12.3337V3.7146L11.6433%203.08472L11.6404%203.08276L12.3171%202.34644L13.1169%203.0769C13.2546%203.20307%2013.3336%203.38138%2013.3337%203.56812V14.0007L13.3201%2014.1345C13.2578%2014.4382%2012.9888%2014.6667%2012.6667%2014.6667H3.33374L3.19897%2014.6531C2.93875%2014.5998%202.73378%2014.3947%202.68042%2014.1345L2.66675%2014.0007V2.00073C2.66675%201.67864%202.89529%201.40965%203.19897%201.34741L3.33374%201.33276H10.9568ZM6.05542%207.31616C6.12046%207.25114%206.22568%207.25122%206.29077%207.31616L6.58081%207.6062C6.64589%207.67128%206.64588%207.77646%206.58081%207.84155L6.17358%208.24976C5.73807%208.68527%205.73807%209.39139%206.17358%209.8269C6.60912%2010.2622%207.31529%2010.2624%207.75073%209.8269L8.15796%209.4187C8.22305%209.35363%208.32921%209.35362%208.39429%209.4187L8.68433%209.70874C8.74934%209.77383%208.74937%209.88%208.68433%209.94507L8.27612%2010.3523C7.55026%2011.0782%206.37308%2011.0782%205.64722%2010.3523C4.92174%209.62652%204.92177%208.45016%205.64722%207.72437L6.05542%207.31616ZM8.29468%207.21655C8.35977%207.15147%208.46592%207.15147%208.53101%207.21655L8.82104%207.50659C8.88578%207.5716%208.88575%207.67692%208.82104%207.74194L7.74194%208.82104C7.67692%208.88583%207.57163%208.8858%207.50659%208.82104L7.21655%208.53101C7.15147%208.46592%207.15147%208.35977%207.21655%208.29468L8.29468%207.21655ZM7.72339%205.64722C8.44919%204.92141%209.62642%204.92152%2010.3523%205.64722C11.0782%206.37308%2011.0782%207.55026%2010.3523%208.27612L9.94409%208.68433C9.87904%208.74897%209.77371%208.7491%209.70874%208.68433L9.4187%208.39429C9.35361%208.3292%209.35361%208.22305%209.4187%208.15796L9.8269%207.75073C10.2623%207.31533%2010.2621%206.60913%209.8269%206.17358C9.39139%205.73807%208.68527%205.73807%208.24976%206.17358L7.84155%206.58081C7.77647%206.64589%207.67129%206.64588%207.6062%206.58081L7.31616%206.29077C7.25109%206.22568%207.25108%206.1205%207.31616%206.05542L7.72339%205.64722Z'%20fill='%231998FF'/%3e%3c/svg%3e",qi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM5.77832%205.83301C5.87031%205.83301%205.94933%205.8983%205.9707%205.98828L6.72852%209.2998L7.54492%205.98535C7.56627%205.89541%207.64507%205.83309%207.73535%205.83301H8.26465C8.35498%205.83305%208.43373%205.89538%208.45508%205.98535L9.27344%209.30664L10.0254%205.98828C10.0467%205.89837%2010.1259%205.83313%2010.2178%205.83301H10.8027C10.8329%205.83312%2010.8626%205.84093%2010.8896%205.85449C10.9167%205.86808%2010.9406%205.88781%2010.959%205.91211C10.9773%205.93632%2010.9901%205.96425%2010.9961%205.99414C11.0021%206.02417%2011.0008%206.05533%2010.9932%206.08496L9.77148%2010.6846C9.74853%2010.7727%209.66957%2010.8328%209.58105%2010.833H9.05859C8.96987%2010.833%208.89019%2010.7712%208.86719%2010.6846L8%207.40137L7.13281%2010.6846C7.10985%2010.7728%207.03094%2010.8328%206.94238%2010.833H6.41602C6.32739%2010.8329%206.24857%2010.7712%206.22559%2010.6846L5.00684%206.08496C4.99909%206.05533%204.99796%206.0242%205.00391%205.99414C5.00985%205.9641%205.02262%205.93543%205.04102%205.91113C5.05939%205.88697%205.08338%205.86703%205.11035%205.85352C5.13734%205.84008%205.1672%205.83306%205.19727%205.83301H5.77832Z'%20fill='%23426BFF'/%3e%3c/svg%3e",Zi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33008C11.457%201.33008%2011.6182%201.39298%2011.7412%201.50586L12.6504%202.34277L11.9736%203.07812L11.1602%202.33008H4V13.6631H12.667V3.71094L11.9766%203.08105L11.9736%203.0791L12.6504%202.34277L13.4502%203.07324C13.588%203.19942%2013.6669%203.37761%2013.667%203.56445V13.9971L13.6533%2014.1309C13.5912%2014.4347%2013.3222%2014.6631%2013%2014.6631H3.66699L3.53223%2014.6494C3.27204%2014.5959%203.06685%2014.3912%203.01367%2014.1309L3%2013.9971V1.99707C3%201.67508%203.22869%201.40611%203.53223%201.34375L3.66699%201.33008H11.29ZM7.36816%206.39941C7.65187%206.39959%207.84768%206.57468%207.95605%206.93066L7.52734%207.78809L7.31641%207.35938C7.24417%207.22007%207.15618%207.14756%207.04785%207.14746H6.19043C6.04599%207.14751%206.00977%207.21486%206.08203%207.35938L7.04199%209.38867C7.68737%208.10825%208.05967%207.27658%208.21973%206.93066C8.40557%206.5332%208.62233%206.39943%208.90625%206.39941H10.791C11.1471%206.39948%2011.2705%206.57449%2011.1621%206.93066C11.0536%207.287%2010.5013%208.46426%209.50488%2010.457C9.46874%2010.5241%209.41249%2010.5762%209.35059%2010.6123C9.1441%2010.731%208.88077%2010.6635%208.75684%2010.457L8.22461%209.28027L8.65332%208.42285L9.13379%209.43945L10.1504%207.35938C10.2175%207.21997%2010.1866%207.14746%2010.042%207.14746H8.97852L7.47656%2010.3535C7.43013%2010.5031%207.31627%2010.6168%207.17188%2010.6582C6.93438%2010.7253%206.68626%2010.591%206.61914%2010.3535C5.62275%208.28844%205.09083%207.1111%205.01855%206.82715C4.94645%206.54338%205.09114%206.39941%205.44727%206.39941H7.36816Z'%20fill='%23ED8E35'/%3e%3c/svg%3e",Gi="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H13.3333C13.7015%202%2014%202.29848%2014%202.66667V8H2V2.66667Z'%20fill='%234DC6FF'/%3e%3cpath%20d='M2%208H14V13.3333C14%2013.7015%2013.7015%2014%2013.3333%2014H2.66667C2.29848%2014%202%2013.7015%202%2013.3333V8Z'%20fill='%234DCE84'/%3e%3crect%20x='14'%20y='6'%20width='4'%20height='12'%20transform='rotate(90%2014%206)'%20fill='%23FF5F5A'/%3e%3crect%20x='6'%20y='2'%20width='4'%20height='12'%20fill='%23FCC048'/%3e%3crect%20x='5.66667'%20y='5.66667'%20width='4.66667'%20height='4.66667'%20rx='0.666667'%20stroke='white'%20stroke-width='0.666667'/%3e%3c/svg%3e",Cu=Object.assign({});function yu(e,t,n){let r=e;for(let a=0;a<t.length-1;a+=1){const o=t[a];(!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]}r[t[t.length-1]]=n}function xu(e){return e.replace(/^\.\//,"").split("?")[0].replace(/\.svg$/i,"").split("/")}function wu(e,t){const n=Ae.lazy(()=>e().then(a=>({default:a.default||a.ReactComponent}))),r=a=>k(rl,{fallback:null,children:k(n,{...a})});return r.displayName=t,Jn(r)}const Qi={};Object.entries(Cu).forEach(([e,t])=>{const n=xu(e),r=wu(t,`Icon(${n.join("/")})`);yu(Qi,n,r)});const Su=Object.assign({"./rag/csv.svg":Ai,"./rag/document.svg":Hi,"./rag/excel.svg":Ni,"./rag/file.svg":Oi,"./rag/folder.svg":Ti,"./rag/json.svg":Ri,"./rag/knowledgebase.svg":Fi,"./rag/netretrive.svg":Vi,"./rag/odf.svg":zi,"./rag/pdf.svg":ji,"./rag/pic.svg":Bi,"./rag/ppt.svg":_i,"./rag/think.svg":Yi,"./rag/txt.svg":Wi,"./rag/url.svg":Ui,"./rag/word.svg":qi,"./rag/wps.svg":Zi,"./rag/zip.svg":Gi});function ku(e,t,n){let r=e;for(let a=0;a<t.length-1;a+=1){const o=t[a];(!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]}r[t[t.length-1]]=n}function Mu(e){return e.replace(/^\.\//,"").split("?")[0].replace(/\.svg$/i,"").split("/")}const Ki={};Object.entries(Su).forEach(([e,t])=>{const n=Mu(e);ku(Ki,n,t)});function $u(e){const t=e.split("/").filter(Boolean);let n=Qi;for(const r of t){if(!n)return;n=n[r]}return typeof n=="function"?n:void 0}function Iu(e){const t=e.split("/").filter(Boolean);let n=Ki;for(const r of t){if(!n)return;n=n[r]}return typeof n=="string"?n:void 0}const Id=({type:e,size:t,...n})=>{const r=$u(e),a=typeof t<"u"?{width:t,height:t}:{};if(r)return k(r,{...a,...n});const o=Iu(e);return o?k("img",{src:o,alt:"",...a,...n}):null},Lu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.69727%205.36035C9.24139%205.36035%209.7044%205.43727%2010.0781%205.59961L10.1787%205.64355V6.78418L9.93066%206.64746C9.56044%206.44228%209.15313%206.33892%208.70508%206.33887C8.12836%206.33887%207.66998%206.52918%207.31543%206.90527L7.31445%206.90625C6.96154%207.27886%206.77643%207.78905%206.77637%208.45605C6.77641%209.08819%206.94869%209.57219%207.27637%209.92578L7.4043%2010.0488C7.71343%2010.3185%208.1013%2010.456%208.5791%2010.4561C9.10219%2010.4561%209.54903%2010.3382%209.9248%2010.1084L10.1787%209.95312V11.0381L10.0889%2011.085C9.65012%2011.3158%209.10967%2011.4268%208.47559%2011.4268C7.6423%2011.4268%206.9605%2011.1612%206.44922%2010.6191V10.6182C5.93981%2010.0754%205.69145%209.36307%205.69141%208.49902C5.69147%207.57075%205.97064%206.80719%206.54102%206.22656C7.10964%205.64782%207.83309%205.36042%208.69727%205.36035ZM6.3291%206.75488C6.32678%206.75844%206.32457%206.76206%206.32227%206.76562C6.36901%206.69342%206.41884%206.62326%206.47266%206.55566L6.3291%206.75488ZM8.10645%205.57812C8.01275%205.59511%207.92124%205.61615%207.83203%205.6416C8.0108%205.5906%208.19869%205.55704%208.39551%205.54004L8.10645%205.57812Z'%20fill='%23339C43'/%3e%3c/svg%3e",Du=Object.freeze(Object.defineProperty({__proto__:null,default:Lu},Symbol.toStringTag,{value:"Module"})),Eu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33301C11.457%201.33301%2011.6182%201.39584%2011.7412%201.50879L12.6504%202.3457L11.9736%203.08105L11.1602%202.33301H4V13.666H12.667V3.71387L11.9766%203.08398L11.9736%203.08203L12.6504%202.3457L13.4502%203.07617C13.5879%203.20229%2013.6668%203.38063%2013.667%203.56738V14L13.6533%2014.1338C13.5913%2014.4377%2013.3223%2014.666%2013%2014.666H3.66699L3.53223%2014.6523C3.27187%2014.599%203.06687%2014.3942%203.01367%2014.1338L3%2014V2C3.00012%201.67798%203.22857%201.40887%203.53223%201.34668L3.66699%201.33301H11.29ZM10.5%209C10.7761%209%2011%209.22386%2011%209.5C11%209.77614%2010.7761%2010%2010.5%2010H6.5C6.22386%2010%206%209.77614%206%209.5C6%209.22386%206.22386%209%206.5%209H10.5ZM10.5%207C10.7761%207%2011%207.22386%2011%207.5C11%207.77614%2010.7761%208%2010.5%208H6.5C6.22386%208%206%207.77614%206%207.5C6%207.22386%206.22386%207%206.5%207H10.5Z'%20fill='%23426BFF'/%3e%3c/svg%3e",Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Eu},Symbol.toStringTag,{value:"Module"})),Au="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.71582%205.33301C6.78793%205.33301%206.85481%205.37254%206.89258%205.43652L7.9541%207.25586L9.00488%205.43848C9.04265%205.3745%209.10953%205.33496%209.18164%205.33496H9.79395C9.83089%205.33515%209.86769%205.34564%209.89941%205.36523C9.93101%205.3848%209.95694%205.41285%209.97461%205.44629C9.99224%205.47972%2010.0011%205.5176%2010%205.55566C9.99877%205.59389%209.9876%205.63179%209.96777%205.66406L8.50293%208.01855L9.94531%2010.3359C10.0071%2010.4354%209.97971%2010.5668%209.88379%2010.6309C9.84945%2010.6522%209.81097%2010.665%209.77148%2010.665H9.12793C9.05762%2010.665%208.99086%2010.6274%208.95312%2010.5635L7.88379%208.76172L6.80664%2010.5654C6.76885%2010.6275%206.70384%2010.667%206.63184%2010.667H6.04004C6.00321%2010.6669%205.96628%2010.6561%205.93457%2010.6367C5.90309%2010.6174%205.87717%2010.5897%205.85938%2010.5566C5.84153%2010.5233%205.83209%2010.4854%205.83301%2010.4473C5.83393%2010.4093%205.84491%2010.3721%205.86426%2010.3398L7.2959%207.97949L5.88379%205.66211C5.82198%205.56081%205.85112%205.42939%205.94727%205.36719C5.97982%205.3442%206.01726%205.33302%206.05664%205.33301H6.71582Z'%20fill='%232F913E'/%3e%3c/svg%3e",Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Au},Symbol.toStringTag,{value:"Module"})),Nu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1162%203.07617C13.2543%203.20232%2013.3338%203.3804%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM10%208.5C10.2761%208.5%2010.5%208.72386%2010.5%209C10.5%209.27614%2010.2761%209.5%2010%209.5H6C5.72386%209.5%205.5%209.27614%205.5%209C5.5%208.72386%205.72386%208.5%206%208.5H10ZM9%206C9.27614%206%209.5%206.22386%209.5%206.5C9.5%206.77614%209.27614%207%209%207H6C5.72386%207%205.5%206.77614%205.5%206.5C5.5%206.22386%205.72386%206%206%206H9Z'%20fill='%2370706E'/%3e%3c/svg%3e",Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Nu},Symbol.toStringTag,{value:"Module"})),Tu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H8.22957C8.49499%202%208.73512%202.15744%208.84095%202.40085L9.92791%204.90085C10.1193%205.34115%209.79664%205.83333%209.31652%205.83333H2.66667C2.29848%205.83333%202%205.53486%202%205.16667V2.66667Z'%20fill='%23F9B13C'/%3e%3cpath%20d='M3%204.50008C3%204.31599%203.14924%204.16675%203.33333%204.16675H12.6667C12.8508%204.16675%2013%204.31599%2013%204.50008V13.1667C13%2013.3508%2012.8508%2013.5001%2012.6667%2013.5001H3.33333C3.14924%2013.5001%203%2013.3508%203%2013.1667V4.50008Z'%20fill='white'/%3e%3cpath%20d='M2%204.66675H13.3333C13.7015%204.66675%2014%204.96522%2014%205.33341V13.3334C14%2013.7016%2013.7015%2014.0001%2013.3333%2014.0001H2.66667C2.29848%2014.0001%202%2013.7016%202%2013.3334V4.66675Z'%20fill='%23FFCB2E'/%3e%3c/svg%3e",Ru=Object.freeze(Object.defineProperty({__proto__:null,default:Tu},Symbol.toStringTag,{value:"Module"})),Fu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.95117%208.80469C8.95117%209.45619%208.83123%209.99047%208.58105%2010.3984L8.46582%2010.5654C8.13575%2010.9898%207.68375%2011.2012%207.12109%2011.2012C6.86476%2011.2012%206.64525%2011.1636%206.4668%2011.083L6.4082%2011.0566V10.0342L6.56641%2010.1494C6.70723%2010.2516%206.88862%2010.3066%207.11719%2010.3066C7.40052%2010.3066%207.60577%2010.1907%207.74609%209.95508C7.89129%209.7111%207.9707%209.33189%207.9707%208.80469V4.84961H8.95117V8.80469Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",Vu=Object.freeze(Object.defineProperty({__proto__:null,default:Fu},Symbol.toStringTag,{value:"Module"})),zu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%201C13.5523%201%2014%201.44772%2014%202V13H3.5C3.22386%2013%203%2013.2239%203%2013.5C3%2013.7761%203.22386%2014%203.5%2014H14C14%2014.5523%2013.5523%2015%2013%2015H4C2.89543%2015%202%2014.1046%202%2013V3C2%201.89543%202.89543%201%204%201H13ZM5.5%204C5.22386%204%205%204.22386%205%204.5C5%204.77614%205.22386%205%205.5%205H10.5C10.7761%205%2011%204.77614%2011%204.5C11%204.22386%2010.7761%204%2010.5%204H5.5Z'%20fill='%230956E4'/%3e%3c/svg%3e",ju=Object.freeze(Object.defineProperty({__proto__:null,default:zu},Symbol.toStringTag,{value:"Module"})),Bu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208C1.5%204.41015%204.41015%201.5%208%201.5ZM8%202.42871C4.92298%202.42871%202.42871%204.92298%202.42871%208C2.42871%2011.077%204.92298%2013.5713%208%2013.5713C11.077%2013.5713%2013.5713%2011.077%2013.5713%208C13.5713%204.92298%2011.077%202.42871%208%202.42871ZM6.19434%207.36523C6.2548%207.30503%206.3537%207.30487%206.41406%207.36523L6.68262%207.63477C6.74275%207.69515%206.74275%207.79314%206.68262%207.85352L6.30371%208.23242C5.89985%208.63677%205.89974%209.29201%206.30371%209.69629C6.70813%2010.1005%207.3642%2010.1006%207.76855%209.69629L8.14746%209.31738C8.20788%209.25744%208.30591%209.25726%208.36621%209.31738L8.63574%209.58691C8.69582%209.64722%208.69567%209.74526%208.63574%209.80566L8.25684%2010.1846C7.58294%2010.8585%206.49045%2010.8582%205.81641%2010.1846C5.14239%209.51056%205.14239%208.41815%205.81641%207.74414L6.19434%207.36523ZM8.27441%207.27246C8.33487%207.21231%208.43282%207.21214%208.49316%207.27246L8.7627%207.54199C8.82268%207.60237%208.82273%207.7004%208.7627%207.76074L7.76074%208.76172C7.70035%208.82211%207.60244%208.82201%207.54199%208.76172L7.27246%208.49316C7.21217%208.43285%207.21239%208.33487%207.27246%208.27441L8.27441%207.27246ZM7.74414%205.81543C8.41813%205.14189%209.51068%205.14173%2010.1846%205.81543C10.8584%206.48938%2010.8583%207.58286%2010.1846%208.25684L9.80566%208.63477C9.74528%208.69515%209.64736%208.69505%209.58691%208.63477L9.31738%208.36621C9.25716%208.30593%209.25744%208.20792%209.31738%208.14746L9.69629%207.76855C10.1004%207.36418%2010.1005%206.70805%209.69629%206.30371C9.29201%205.89962%208.6368%205.89978%208.23242%206.30371L7.85352%206.68262C7.79319%206.74294%207.69523%206.74271%207.63477%206.68262L7.36523%206.41309C7.30484%206.35264%207.30481%206.25476%207.36523%206.19434L7.74414%205.81543Z'%20fill='%2339B83F'/%3e%3c/svg%3e",_u=Object.freeze(Object.defineProperty({__proto__:null,default:Bu},Symbol.toStringTag,{value:"Module"})),Yu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957Z'%20fill='%23675FF0'/%3e%3cpath%20d='M5%206.81818C5.12597%206.81818%205.22541%206.79021%205.30497%206.73427C5.38453%206.67832%205.43757%206.6014%205.46409%206.51049C5.49061%206.41259%205.50387%206.25175%205.50387%206.02098C5.50387%205.79021%205.5105%205.63636%205.51713%205.56643C5.53039%205.44755%205.55691%205.35664%205.60331%205.28671C5.64309%205.21678%205.6895%205.16084%205.74917%205.11888C5.80884%205.07692%205.88177%205.04895%205.97459%205.02098C6.03425%205.00699%206.14033%205%206.27956%205H6.41878V5.32867H6.34586C6.17348%205.32867%206.06077%205.35664%206.00773%205.40559C5.9547%205.45454%205.92155%205.57343%205.92155%205.75525C5.92155%206.11888%205.91492%206.34266%205.89503%206.44056C5.86851%206.58741%205.81547%206.6993%205.74254%206.78322C5.66961%206.86014%205.55691%206.93706%205.41105%207C5.59006%207.06294%205.72265%207.16084%205.80221%207.29371C5.88177%207.42657%205.92155%207.63636%205.92155%207.93706C5.92155%208.2028%205.92818%208.36364%205.92818%208.41958C5.94144%208.51049%205.97459%208.58042%206.02762%208.61539C6.08066%208.65035%206.18674%208.67133%206.33923%208.67133H6.41215V9H6.27293C6.11381%209%205.99448%208.99301%205.92818%208.96503C5.8221%208.93007%205.73591%208.88112%205.66961%208.81119C5.60331%208.74126%205.55691%208.65035%205.53702%208.53846C5.51713%208.42657%205.50387%208.25175%205.50387%208C5.50387%207.74825%205.49061%207.58042%205.46409%207.48252C5.43757%207.39161%205.38453%207.30769%205.30497%207.25874C5.22541%207.2028%205.12597%207.17483%205%207.16783V6.81818ZM10.5956%206.06993H7.22099C7.04199%206.06993%206.90276%205.91608%206.90276%205.73427V5.67133C6.90276%205.48252%207.04862%205.33566%207.22099%205.33566H10.5956C10.7746%205.33566%2010.9138%205.48951%2010.9138%205.67133V5.73427C10.9138%205.91608%2010.768%206.06993%2010.5956%206.06993ZM10.5956%207.3986H7.22099C7.04199%207.3986%206.90276%207.24476%206.90276%207.06294V7C6.90276%206.81119%207.04862%206.66434%207.22099%206.66434H10.5956C10.7746%206.66434%2010.9138%206.81818%2010.9138%207V7.06294C10.9138%207.24476%2010.768%207.3986%2010.5956%207.3986ZM10.5956%208.73427H7.22099C7.04199%208.73427%206.90276%208.58042%206.90276%208.3986V8.33566C6.90276%208.14685%207.04862%208%207.22099%208H10.5956C10.7746%208%2010.9138%208.15385%2010.9138%208.33566V8.3986C10.9138%208.58042%2010.768%208.73427%2010.5956%208.73427Z'%20fill='%23675FF0'/%3e%3cpath%20d='M11.5%2010.1265H10.8525V12H10.3677V10.1265H9.72168V9.73096H11.5V10.1265Z'%20fill='%23675FF0'/%3e%3cpath%20d='M7.55811%2012V9.73096H8.3418C9.14746%209.73096%209.55029%2010.0996%209.55029%2010.8369C9.55029%2011.1875%209.4375%2011.4692%209.21191%2011.6821C8.98633%2011.894%208.69531%2012%208.33887%2012H7.55811ZM8.0415%2010.1265V11.6045H8.30518C8.53467%2011.6045%208.71484%2011.5361%208.8457%2011.3994C8.97656%2011.2627%209.04199%2011.0776%209.04199%2010.8442C9.04199%2010.6187%208.97363%2010.4429%208.83691%2010.3169C8.7002%2010.1899%208.52246%2010.1265%208.30371%2010.1265H8.0415Z'%20fill='%23675FF0'/%3e%3cpath%20d='M4.96094%2010.8955C4.96094%2010.54%205.06445%2010.251%205.27148%2010.0283C5.47949%209.80469%205.75391%209.69287%206.09473%209.69287C6.41895%209.69287%206.67969%209.80078%206.87695%2010.0166C7.0752%2010.2324%207.17432%2010.5098%207.17432%2010.8486C7.17432%2011.2021%207.07129%2011.4893%206.86523%2011.71C6.66016%2011.9297%206.39111%2012.0396%206.05811%2012.0396C5.73291%2012.0396%205.46875%2011.9331%205.26562%2011.7202C5.0625%2011.5063%204.96094%2011.2314%204.96094%2010.8955ZM5.46924%2010.8691C5.46924%2011.0898%205.52246%2011.2705%205.62891%2011.4111C5.73535%2011.5508%205.88135%2011.6206%206.06689%2011.6206C6.25635%2011.6206%206.40381%2011.5537%206.50928%2011.4199C6.61475%2011.2852%206.66748%2011.1045%206.66748%2010.8779C6.66748%2010.6416%206.61621%2010.4551%206.51367%2010.3184C6.41113%2010.1807%206.2666%2010.1118%206.08008%2010.1118C5.89062%2010.1118%205.74121%2010.1821%205.63184%2010.3228C5.52344%2010.4634%205.46924%2010.6455%205.46924%2010.8691Z'%20fill='%23675FF0'/%3e%3c/svg%3e",Wu=Object.freeze(Object.defineProperty({__proto__:null,default:Yu},Symbol.toStringTag,{value:"Module"})),Uu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM7.71191%205.00098C7.95398%205.01182%208.23799%205.16198%208.30664%205.54688C8.40941%206.03464%208.27759%206.57316%208.17285%207.00488L8.16699%207.03027C8.37835%207.57951%208.66991%207.94773%209.11426%208.21875C10.017%208.10683%2010.5964%208.16863%2010.835%208.40332C10.9994%208.56776%2011.0484%208.87519%2010.9473%209.11914C10.8894%209.25831%2010.7357%209.48926%2010.3457%209.48926C9.95189%209.48921%209.37167%209.31384%208.8623%209.04102C8.40175%209.11875%207.8926%209.29278%207.40137%209.45898C7.2966%209.49512%207.18778%209.5311%207.08301%209.56543C6.3969%2010.7429%205.8824%2010.9998%205.56445%2011C5.48865%2011%205.4233%2010.9837%205.36914%2010.9639C5.24449%2010.9169%205.13813%2010.8189%205.07129%2010.6924C5.01181%2010.5787%204.98629%2010.4528%205.00781%2010.3535C5.1144%209.81502%205.83149%209.3878%206.36621%209.11133C6.65343%208.60533%207.04538%207.75431%207.29102%207.16895C7.09599%206.41389%206.98933%205.82132%207.1084%205.3877C7.17162%205.15099%207.42651%204.98835%207.71191%205.00098ZM6.18555%209.77441C5.99948%209.94427%205.76264%2010.1801%205.6416%2010.4023C5.74457%2010.3228%205.93444%2010.1394%206.18555%209.77441ZM7.73926%207.69629C7.60016%208.05769%207.39944%208.55181%207.15918%208.9873C7.23144%208.95839%207.30596%208.9272%207.38184%208.89648C7.69966%208.76643%208.05529%208.61975%208.44531%208.53125C8.17624%208.31804%207.93249%208.03049%207.73926%207.69629ZM9.73535%208.74707C10.3674%208.99599%2010.5185%208.91259%2010.5352%208.90234L10.5391%208.89648H10.543C10.5536%208.88933%2010.5516%208.88347%2010.5498%208.87988C10.544%208.87053%2010.4509%208.71359%209.73535%208.74707ZM7.72852%205.4834C7.67613%205.54303%207.68883%206.05251%207.77734%206.41211C7.8496%206.16635%207.86152%205.68036%207.76758%205.51953C7.75502%205.4962%207.74284%205.48532%207.72852%205.4834Z'%20fill='%23FF4D50'/%3e%3c/svg%3e",qu=Object.freeze(Object.defineProperty({__proto__:null,default:Uu},Symbol.toStringTag,{value:"Module"})),Zu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1777%202.67969C14.4553%202.7361%2014.6644%202.98029%2014.666%203.27441V12.667C14.6659%2012.9891%2014.4376%2013.2583%2014.1338%2013.3203L14%2013.334H2L1.86523%2013.3203C1.56164%2013.2581%201.33312%2012.989%201.33301%2012.667V3.33398C1.33301%203.01196%201.56164%202.74298%201.86523%202.68066L2%202.66699H14.0557L14.1777%202.67969ZM2.33301%2012.334H13.666V3.66699H2.33301V12.334ZM8.78125%207.39355C8.79747%207.40146%208.81204%207.41261%208.82324%207.42676L10.8545%2010.0166C10.915%2010.0939%2010.8601%2010.2078%2010.7607%2010.208H5.28613C5.26386%2010.2081%205.24156%2010.2022%205.22266%2010.1904C5.20374%2010.1786%205.18849%2010.1616%205.17871%2010.1416C5.16897%2010.1216%205.16469%2010.0993%205.16699%2010.0771C5.16933%2010.055%205.17865%2010.0341%205.19238%2010.0166L6.67676%208.12305C6.68788%208.10885%206.70253%208.09775%206.71875%208.08984C6.73488%208.08198%206.75256%208.07818%206.77051%208.07812C6.78858%208.07812%206.807%208.08193%206.82324%208.08984C6.83924%208.09768%206.85322%208.10907%206.86426%208.12305L7.47656%208.90332L8.63379%207.42676C8.64501%207.41261%208.65955%207.40145%208.67578%207.39355C8.69215%207.38564%208.71034%207.38086%208.72852%207.38086C8.74668%207.38087%208.7649%207.38565%208.78125%207.39355ZM6.35547%205.83301C6.51333%205.83301%206.66474%205.89619%206.77637%206.00781C6.888%206.11944%206.95117%206.27084%206.95117%206.42871C6.95111%206.5865%206.88794%206.73803%206.77637%206.84961C6.66476%206.9611%206.51323%207.02344%206.35547%207.02344C6.19768%207.02338%206.04615%206.96118%205.93457%206.84961C5.823%206.73803%205.7608%206.5865%205.76074%206.42871C5.76074%206.27095%205.82308%206.11942%205.93457%206.00781C6.04615%205.89624%206.19768%205.83307%206.35547%205.83301Z'%20fill='%2332A3FF'/%3e%3c/svg%3e",Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Zu},Symbol.toStringTag,{value:"Module"})),Qu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.1543%205.26758H8.1543C9.30194%205.26778%209.9998%206.03334%2010%207.08105C10%208.14247%209.29247%208.89045%208.15039%208.89062H6.93262V10.7275C6.93262%2010.812%206.86371%2010.8816%206.7793%2010.8818H6.1543C6.06968%2010.8818%206%2010.8122%206%2010.7275V5.41992C6.00002%205.33532%206.06969%205.2666%206.1543%205.2666V5.26758ZM6.93262%206.03906V8.12402H7.68066C8.54028%208.12402%209.0498%207.91372%209.0498%207.0791C9.04962%206.41793%208.66339%206.03914%208.01367%206.03906H6.93262Z'%20fill='%23FA8C16'/%3e%3c/svg%3e",Ku=Object.freeze(Object.defineProperty({__proto__:null,default:Qu},Symbol.toStringTag,{value:"Module"})),Xu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.73633%201.57642C2.53848%200.774265%203.74473%200.714862%204.87207%201.03052C6.02182%201.35245%207.24885%202.09683%208.3125%203.1604C9.37624%204.22414%2010.1204%205.45195%2010.4424%206.60181C10.758%207.72909%2010.6986%208.93446%209.89648%209.73657C9.09439%2010.5387%207.88901%2010.5981%206.76172%2010.2825C5.61186%209.96051%204.38405%209.21632%203.32031%208.15259C2.25674%207.08894%201.51236%205.86191%201.19043%204.71216C0.874775%203.58481%200.934176%202.37857%201.73633%201.57642Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.76172%205.41479C7.88883%205.09929%209.09442%205.15888%209.89648%205.96069C10.6986%206.76284%2010.758%207.96909%2010.4424%209.09644C10.1204%2010.2462%209.37617%2011.4732%208.3125%2012.5369C7.24882%2013.6005%206.02187%2014.3448%204.87207%2014.6667C3.74472%2014.9824%202.53848%2014.923%201.73633%2014.1208C0.934528%2013.3188%200.874922%2012.1132%201.19043%2010.9861C1.51239%209.83623%202.25659%208.60841%203.32031%207.54468C4.38405%206.48096%205.61186%205.73675%206.76172%205.41479Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.1282%201.03052C12.2553%200.715012%2013.4609%200.774612%2014.263%201.57642C15.0651%202.37857%2015.1246%203.58481%2014.8089%204.71216C14.4869%205.86196%2013.7427%207.08892%2012.679%208.15259C11.6153%209.21627%2010.3884%209.96048%209.23859%2010.2825C8.11124%2010.5981%206.90499%2010.5387%206.10284%209.73657C5.30106%208.9345%205.24144%207.72892%205.55695%206.60181C5.8789%205.45195%206.62311%204.22414%207.68683%203.1604C8.75056%202.09668%209.97838%201.35248%2011.1282%201.03052Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.10284%205.96069C6.90499%205.15855%208.11124%205.09914%209.23859%205.41479C10.3883%205.73673%2011.6154%206.48111%2012.679%207.54468C13.7427%208.60841%2014.4869%209.83623%2014.8089%2010.9861C15.1245%2012.1134%2015.0651%2013.3188%2014.263%2014.1208C13.4609%2014.9229%2012.2555%2014.9823%2011.1282%2014.6667C9.97838%2014.3448%208.75055%2013.6006%207.68683%2012.5369C6.62325%2011.4732%205.87888%2010.2462%205.55695%209.09644C5.24129%207.96909%205.3007%206.76284%206.10284%205.96069Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Xu},Symbol.toStringTag,{value:"Module"})),ed="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM9.91406%205.16699C10.0058%205.16721%2010.0799%205.24128%2010.0801%205.33301V5.9707C10.0801%206.06262%2010.0059%206.13748%209.91406%206.1377H8.64648C8.55457%206.1377%208.47971%206.21185%208.47949%206.30371V10.5469C8.47936%2010.6387%208.40525%2010.7127%208.31348%2010.7129H7.59375C7.50178%2010.7129%207.42689%2010.6388%207.42676%2010.5469V6.30371C7.42654%206.21185%207.35168%206.1377%207.25977%206.1377H6C5.90795%206.1377%205.83301%206.06275%205.83301%205.9707V5.33301C5.83323%205.24115%205.90809%205.16699%206%205.16699H9.91406Z'%20fill='%234089FF'/%3e%3c/svg%3e",td=Object.freeze(Object.defineProperty({__proto__:null,default:ed},Symbol.toStringTag,{value:"Module"})),nd="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.9568%201.33276C11.1238%201.33276%2011.2849%201.39651%2011.408%201.50952L12.3171%202.34644L11.6404%203.08179L10.8269%202.33374H3.66675V13.6667H12.3337V3.7146L11.6433%203.08472L11.6404%203.08276L12.3171%202.34644L13.1169%203.0769C13.2546%203.20307%2013.3336%203.38138%2013.3337%203.56812V14.0007L13.3201%2014.1345C13.2578%2014.4382%2012.9888%2014.6667%2012.6667%2014.6667H3.33374L3.19897%2014.6531C2.93875%2014.5998%202.73378%2014.3947%202.68042%2014.1345L2.66675%2014.0007V2.00073C2.66675%201.67864%202.89529%201.40965%203.19897%201.34741L3.33374%201.33276H10.9568ZM6.05542%207.31616C6.12046%207.25114%206.22568%207.25122%206.29077%207.31616L6.58081%207.6062C6.64589%207.67128%206.64588%207.77646%206.58081%207.84155L6.17358%208.24976C5.73807%208.68527%205.73807%209.39139%206.17358%209.8269C6.60912%2010.2622%207.31529%2010.2624%207.75073%209.8269L8.15796%209.4187C8.22305%209.35363%208.32921%209.35362%208.39429%209.4187L8.68433%209.70874C8.74934%209.77383%208.74937%209.88%208.68433%209.94507L8.27612%2010.3523C7.55026%2011.0782%206.37308%2011.0782%205.64722%2010.3523C4.92174%209.62652%204.92177%208.45016%205.64722%207.72437L6.05542%207.31616ZM8.29468%207.21655C8.35977%207.15147%208.46592%207.15147%208.53101%207.21655L8.82104%207.50659C8.88578%207.5716%208.88575%207.67692%208.82104%207.74194L7.74194%208.82104C7.67692%208.88583%207.57163%208.8858%207.50659%208.82104L7.21655%208.53101C7.15147%208.46592%207.15147%208.35977%207.21655%208.29468L8.29468%207.21655ZM7.72339%205.64722C8.44919%204.92141%209.62642%204.92152%2010.3523%205.64722C11.0782%206.37308%2011.0782%207.55026%2010.3523%208.27612L9.94409%208.68433C9.87904%208.74897%209.77371%208.7491%209.70874%208.68433L9.4187%208.39429C9.35361%208.3292%209.35361%208.22305%209.4187%208.15796L9.8269%207.75073C10.2623%207.31533%2010.2621%206.60913%209.8269%206.17358C9.39139%205.73807%208.68527%205.73807%208.24976%206.17358L7.84155%206.58081C7.77647%206.64589%207.67129%206.64588%207.6062%206.58081L7.31616%206.29077C7.25109%206.22568%207.25108%206.1205%207.31616%206.05542L7.72339%205.64722Z'%20fill='%231998FF'/%3e%3c/svg%3e",rd=Object.freeze(Object.defineProperty({__proto__:null,default:nd},Symbol.toStringTag,{value:"Module"})),ad="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM5.77832%205.83301C5.87031%205.83301%205.94933%205.8983%205.9707%205.98828L6.72852%209.2998L7.54492%205.98535C7.56627%205.89541%207.64507%205.83309%207.73535%205.83301H8.26465C8.35498%205.83305%208.43373%205.89538%208.45508%205.98535L9.27344%209.30664L10.0254%205.98828C10.0467%205.89837%2010.1259%205.83313%2010.2178%205.83301H10.8027C10.8329%205.83312%2010.8626%205.84093%2010.8896%205.85449C10.9167%205.86808%2010.9406%205.88781%2010.959%205.91211C10.9773%205.93632%2010.9901%205.96425%2010.9961%205.99414C11.0021%206.02417%2011.0008%206.05533%2010.9932%206.08496L9.77148%2010.6846C9.74853%2010.7727%209.66957%2010.8328%209.58105%2010.833H9.05859C8.96987%2010.833%208.89019%2010.7712%208.86719%2010.6846L8%207.40137L7.13281%2010.6846C7.10985%2010.7728%207.03094%2010.8328%206.94238%2010.833H6.41602C6.32739%2010.8329%206.24857%2010.7712%206.22559%2010.6846L5.00684%206.08496C4.99909%206.05533%204.99796%206.0242%205.00391%205.99414C5.00985%205.9641%205.02262%205.93543%205.04102%205.91113C5.05939%205.88697%205.08338%205.86703%205.11035%205.85352C5.13734%205.84008%205.1672%205.83306%205.19727%205.83301H5.77832Z'%20fill='%23426BFF'/%3e%3c/svg%3e",od=Object.freeze(Object.defineProperty({__proto__:null,default:ad},Symbol.toStringTag,{value:"Module"})),id="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33008C11.457%201.33008%2011.6182%201.39298%2011.7412%201.50586L12.6504%202.34277L11.9736%203.07812L11.1602%202.33008H4V13.6631H12.667V3.71094L11.9766%203.08105L11.9736%203.0791L12.6504%202.34277L13.4502%203.07324C13.588%203.19942%2013.6669%203.37761%2013.667%203.56445V13.9971L13.6533%2014.1309C13.5912%2014.4347%2013.3222%2014.6631%2013%2014.6631H3.66699L3.53223%2014.6494C3.27204%2014.5959%203.06685%2014.3912%203.01367%2014.1309L3%2013.9971V1.99707C3%201.67508%203.22869%201.40611%203.53223%201.34375L3.66699%201.33008H11.29ZM7.36816%206.39941C7.65187%206.39959%207.84768%206.57468%207.95605%206.93066L7.52734%207.78809L7.31641%207.35938C7.24417%207.22007%207.15618%207.14756%207.04785%207.14746H6.19043C6.04599%207.14751%206.00977%207.21486%206.08203%207.35938L7.04199%209.38867C7.68737%208.10825%208.05967%207.27658%208.21973%206.93066C8.40557%206.5332%208.62233%206.39943%208.90625%206.39941H10.791C11.1471%206.39948%2011.2705%206.57449%2011.1621%206.93066C11.0536%207.287%2010.5013%208.46426%209.50488%2010.457C9.46874%2010.5241%209.41249%2010.5762%209.35059%2010.6123C9.1441%2010.731%208.88077%2010.6635%208.75684%2010.457L8.22461%209.28027L8.65332%208.42285L9.13379%209.43945L10.1504%207.35938C10.2175%207.21997%2010.1866%207.14746%2010.042%207.14746H8.97852L7.47656%2010.3535C7.43013%2010.5031%207.31627%2010.6168%207.17188%2010.6582C6.93438%2010.7253%206.68626%2010.591%206.61914%2010.3535C5.62275%208.28844%205.09083%207.1111%205.01855%206.82715C4.94645%206.54338%205.09114%206.39941%205.44727%206.39941H7.36816Z'%20fill='%23ED8E35'/%3e%3c/svg%3e",ld=Object.freeze(Object.defineProperty({__proto__:null,default:id},Symbol.toStringTag,{value:"Module"})),sd="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H13.3333C13.7015%202%2014%202.29848%2014%202.66667V8H2V2.66667Z'%20fill='%234DC6FF'/%3e%3cpath%20d='M2%208H14V13.3333C14%2013.7015%2013.7015%2014%2013.3333%2014H2.66667C2.29848%2014%202%2013.7015%202%2013.3333V8Z'%20fill='%234DCE84'/%3e%3crect%20x='14'%20y='6'%20width='4'%20height='12'%20transform='rotate(90%2014%206)'%20fill='%23FF5F5A'/%3e%3crect%20x='6'%20y='2'%20width='4'%20height='12'%20fill='%23FCC048'/%3e%3crect%20x='5.66667'%20y='5.66667'%20width='4.66667'%20height='4.66667'%20rx='0.666667'%20stroke='white'%20stroke-width='0.666667'/%3e%3c/svg%3e",cd=Object.freeze(Object.defineProperty({__proto__:null,default:sd},Symbol.toStringTag,{value:"Module"})),ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAV9SURBVHgBvVZfb1VFEJ/ZPS2l9cpFQypSEEMhUmKiYjQBoxDjm8ZoQuKjTyZ+AV9MrOAH8MlHE99rRKOvPgCSoAkalbQx1mBLLV4vpX9u2t6es7vjzOyevZdg5Y2b7N09c3Zn5jfzm9kDcJ9/uN2LZy6c/RAMfoCASFlKcoKAREb8H0Us/G89RH2v9OHc9gYvnQusDPnHU1Ajaky9jAbjGsQhijPV+6IjaVYdcTuY7QzyaT4ouyijU5k8q5hEC1JaK2KFo/ti6Kg+GWrnoID/+yUDmM9TDUxDG50Ssf5jL+SEtQGq98E9ECZDd6IGjWVUlgxjTlKMxl1nkvG+FMhWejtQ+HgzVM1Vt0n/dNfwRneZ/u6u4HK1Dl1f8ZZwV75Xqk1YDyX8tDan2iJirJVjzkZKv0jrkE7yQ5ONggsBtkJFnXIDV7bWYbnswLovMUQnE4mSKn7eMzAiijKhqAaCRIk06YAyUA2K+GDexUh88HwwkOO5Cg6dcxAghiYRNBOVCorhTXRSttZ5jZkVZmGkGmWDyWHCwAgDk8o5z4YqKitHlavQM/raWEKpFipTwe3OCiXMiD18cVYKZw71GUw8kpA0B4bhUGOUxPhiZwlLX8JDQw/S0V378NbmKsysLmTdzjr6q3UTEqJM2x71YkhrapkzZ87kN6m+YKPqwvMPH8K3Dp7AHWDB+0BvjD2L7xx+GTrdDUFPnsPsXQUyF6yzQMOzASszD8syC7JGKgySlZnlZmpqKuJlgYzABtfLLZi5vQA7i0E4vfcYPNHYiy8+MgEXFq/B9U6LwAckz1kNknLCAUyK1Sgb0rUFMTTAT1FuUR1IISXNX2osHEv4sf0HHGjsgVfGnoIju/ZBm0P5+exl4GRq1IwxylIpZKNpjQyJvYawl03IsyxNMthrj0IOPtKttuDb+Z9huNgBR3ePwdTv38GtzTVSbYxKB0UFBcRw9oWOYphl3RsSZjMxMVFTVLwUpKBM9R72jjRz8o/tPgDkHBsKrBplsHJDMhfGyICCDIfXinFUGePnZ7QxvyhhNtPT01TnUPKh2LksmoPDcOLRCbg0/wtMt+fgpf1PwrHmfkAuF84hyYye1y6gGLIcxQFjhSg5Z2JEUEUyJdIcP3481yCm6jD88Prhkyo/f+0ifPL9F+rUu0+/BlyUXHwVUOl47blgvTLTMqKovGYsZCNMquiEdJpGo5GLRq8tdn589z4YGRyCK3PXoL22RJtlF7+ZvgyvTpyEN4+8AOdnLiKzhkPMEbYVrP45D3UtZyXx4r7j+hWyFZ1OJ3ca7jBSF/Db0hx89esFuL60KCiQ80mfXvkSPvvha2QkYG0BwTA6g4IY2SPlpehlMKJD25sYDdB3pbLJ4urVq7JYYWkzukHabYQ0xIO9AMmTvhMDhlQkiqUU2uUSaalAuhQ8xXaVvj8wrrG/tQGjfG9oeOh9fvGYZaWDpoAGk6a58wHpMjAyMKTMNZaTzmetEWoYcOTpRmsR0VGqvxxZzLdwbpqxt9e3vh0dHS3Ksiz8iLfh8WE7ePRgS4mkpR0PxOqm3AkZZfIbIzyT+mhKXuh94UB6odpgfHwcWq0WFUXh7aD1uMGcCHyefTR8ynBk5ZnvK25rJCGUZ+46rMHJHGU6BK2TNMg5VlBJCcm7gLJX3Z+dnSU26tvtNrOo8J25m1tCdzEkSrjuJI9g2Sgb4YGqUHpqMqQzK48Gs+HsAGGVnJJwQq/NxW+cMcA9p5/bkBBJ7vRa096AiXlBc8j0SV0R8ydAok6ug97HaYyp1LicksF4wJ06dcrBAnhG8REqKlQE0kmUjYy2Ro0+hlU7T5LXSKFGKmdiiIkcnQXoK9nJyUkjow9tP/I8+vboOcqEvPfvX+6cfN20TwR9AAAAAElFTkSuQmCC",dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVNSURBVHgBvVZLbxxFEK7qmXHWiR1siwNIFnmAhDAIlERw9gFx4J57jty5IIRk5Q8AF/4Cl/wJCyRuFhJInALhsQRC/Iqza292Zrr46tHrjSVzZLS93T3TXY+vvqpuov/54fM+fPTV9A5R9TkWrAoJ6c93sDAJC7GcrhYugiSEytzE5/wAW+8mOvdJWyR5lVyZa+TnlHgTUZEiGGZdJ/Yj//Pe5/lazvJlfa4+kavmhZg34U8Oz+zHc2vdbVg0c42jdy/tH69W/sNDtTuzmsfmhRtv5uogRLvXsUby6XsJu9j2cJmfq1CyzM9ctm0PkY5TGBOj4ljRSYazGxvI+GKRO5D/xbSllfGE5GAkvPuEZPco8/iEaNpDf36eYCp9NCF61hHdf2i6Qrmb5dgXQ3lmQIkhCEIr6lSXidqOZTzpeXQi9GQMoa2bp+jynAs6v7xoH4w4M6/CHTcCPy6cI1OoIq66JbpXuIfSHvzozQDhtg8a+KaiWKSAFFg6n4071jMb3wrxzKCi0B54yEsDptUlKOqFH+6RqLdtJ5yDAFzCED5NO6G9IycTG03tG4cNbEQLoOWsQjW5Sk6otWWmFoFDXHnaRY7RLBRcAtP3LMNd85yfpwwXoRxstjf17du3TZF6gMSko3Gmtmf66XeRHtYbvJJEey4CFKrs1QXQU50iuFywDpQN7TSju+pM9+7dm5miz6TN9NdeT+OTzHDQsyBn/uCGlxmosTjrOMe4qaG0ZrG+0pZinGShJm4qogZ9jb7e2NhIGtweMeuyW5bxN7hgrDDDN9+u6M0rjHgRf/sjEE1aWMx8TsjkKkF1qk4pLMKzSJfyEN8sLQClbjRaaIBeWq3ojSsJZOjk2suJ37nu9eHGqwzPRb7/JXsNgwyEnNQbl5fmCp7XmFksw4A6sDWSwVVAkPjFy4k0z9+/2fDiwlzlx/Pu68R/7DHtPQ32scOoMBHDEK5kPi+NXBJFLojT5JynIAWSXaAgUSkAXa/eE80Xf32Ojom+3u5RgZhWLhF990MLwYkM3yK/GOl5IjPS3Lp1yxfB3sUL+qZQ6HRP1N1ZW75I9OF7iSZwZYoXhSh10jE8wLyxdyCSjgthtC0vL4unhdDJM5GDceZHhz09PMj0z5HQ0+MsJ62wZwOaCU6oPhUdI0cv9om+2cf+EiYPj0MYZJlDR+rhcKigI58yHT/LfDhu6dFhpl8f9zTcy7Q/6vmkjZNAI1RVsLYhkFIwpgnYPZmqBo1f8srpRScALSeHBZPr+/cX1KBDseINxSigLYLYou+0Za+nookPSuLgoJ4zVaAJdNLfRyw1GJZPi8nsQsLlDGX31tJiY4No/2D0yeDi4qfY8AocoEHDtDRIdBmxUrYudlAEIxJIoTLrJpHyQ4vAn487TlkPVgluBLBW4kt6zOxgBmmaneFwYbl+azB4Ya0ZpaVmIV2qF29+9jPY6/nq9ordnwwYVQyNCWyAn5QaZymnucvT7Nzlsl9KHq431/PweNSmapCrBeq7BYSHKiCYgtUeP8kclT9Kda5EEzDqBUc+u54o2XbrsNPDa2+9s7MDQF7L6+uTdnhcy9pot9+Xjtf6ZDGbFYwcSg2p5PPk156gcOTc/NWkpGI5pcLDzc31fnt7G9+Gsm/L1vGhOQQaK3qCGPtIJSc/EoNAqowC3tDjmEfyc7mu2W1PlacHCRZnKFOSoa5Qt7m5idNv2IF2H2Pdb0gCi16FspsyQM7gp1Q6VqZSjeOngrwKErQZgZBiPsb5qnXavvEBytbd4rnRdmtrK2kjv82leJ/Otrk17GyQc2/wZ59/AcalYkfFCITdAAAAAElFTkSuQmCC",fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVbSURBVHgBvVbLblxFED3V9854bEfEeeBEJkROogjhSCDFC7Zs2LMJ66z4AhaIjZUfgB2ssgYpC8QfZEeQiJBATAIisUGJE5yH7Tjj8X10F1Xd1deTSAZWGann9vSd7lNV51RVA6/4Qwe9eHb1q8vk6HMwjuhv5vgN5xzLh+KP/zrH9oBIxyp5XDkQ8PnVL1flv4vpNOIAFnwyXCZdU5gILuuYfE5iGp59tsqDAMmHRVIAPVx2uMC6kWwt2YHOtbQeFIzzSnIOHA2O5wBzBwMG3RgUQ+1MRrJOOJo9YYyFWM3K68hoKQiByYDxL4De7OcUEk54McDp4OQdmzGIjkvYxUye2GPTiNgZznxZvr5A08yhGjPv7BC2tzk8e0bYGwNtK1jhJW5k/94euG3BD9bZFs2KzOlLHMo8e7gib+bkUMDLaD37vTFhPAaPnoObmpI+Ep/I+hMjaDAtfPsU2hQGYzCGVr8py1m3lha3RVuK8WYJp3DIdP48uTfehP/xB/i1u0miFJ2LhMWDQpD/ynDO3E5y4cR/JC9xGvnoAHOYSL0M3oN9S+Wx4wgbG8CRYwi/3VKCOLBRlzOx14Pf2rRVJTjqxdQ6AWcvXgDUiRIOFUzbsHBKNDeHsL2lYY071STLtXi4a/u8u7GeEgP7XBlgNi1JTWbu0qVLLwpBmZAQhbZRy0H9PtpHD+GbGr6tEYRP8Z5Z3nMjQ6IRjDrOjmQns4CSduLr8tq1axYM0lIim4McGAHJjXZSXCRsCgBXxDwLpsBYgdo2VRhYEiLjmc5cTAjOIXXZbw2TJbCqD0pWefoMtev30H/nItzR47LmRR+aHpT0Z2VMGNc6F2udjmBJykm6KZMtGTOH2UqVacQvT50Gzcxi9O03GFx8DzMffkTN2h/GBlG7dgfN2l3LApf42a9r5lIWTKaWyC0tLWUCk88W8d6Zc2j+WkX/rSX0FHxqSuYX0Fs8B/SnMHj/g0xNdEy/vMZYabF6mHh0MWrqtSKUw+Ewpyorf9Qr5dCzAjBAeXIBKArsfn8d/tHfKOZPYurtd8WYs6hu/QLvGxVQKliq2FS/ctpkPjvxqJDL5eXlzkMVRSFc6eYw2sH2d1+jfSJ5WFUc4/HwHo9/vilxcUlM+vSDeHBhVazrf1bBmZI1ynhALm2aCjKchCoXvt2fbsDvSllra1FiRVnzTpM/isDFc4q6ws7Gr9G79A9rRlkbmGBV3pTj8dgSRfBDUlJ15zZqSeaYi5L8UgCsBzIpF6RgUQMO1NbUShF3ia1c9KjzzoqANTkqMRzqqy2pLnPt8y20Tx9Loj8QMOEmpBEkHbTkWStQWHNF8vXxBnMTdMWqTcjSs/LHXYeKiX9BVDp6+vTT6Znpz+Tk09FIKcSFiIZnDsV8pEEdi3THjXiWCrfn3fv3ietghuz3Be6yVDeF/U4ladFfLp/05o8enl4Y9acHZZjqzQS33NDtmORWf50y47p2HrXhjDOHNC+cGhJMN9bQ9oUa5+UFs2lvd8RuULRNqMj5vguNT+0oNSGEeLuw61pXqLW4cO4PEla2/3Pu7d1FhNMNA+Wj4TC8fupU6M3O1huHGf09ucxhU94cQlSiAVpAKDdDuzCkQmlXOGf1xPrOxLb9C2N5XSYfnzjRrq+vE540tWQhtl7zLsyGbTngsBQDFFaw7dwkIOMz3ZQSAJunE0BmGMhiu+pWVlbC5s2b4cHCQnNj/nE1PT9f/R42KxHnJ1T7Pwtpi6g8ObnWQNRIIhBqZMSnnN+KqhrPQX6LWqHPUMm8TiOoglVUTdiUcQWcm6k8pTcWOkwDuZO4l4cYOfk+U/u/Pv8AUhuD27A+V7IAAAAASUVORK5CYII=",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfnSURBVHgB7VhdbFxHFT5n5t7d63XWJnYc167Jj5u2wklDGlciVCJsKUKRAuoLFvAQflRQUQNURZWQ4KHNC1KQihp4QFRFiEgIlaiVEBWPlYUoVUvskASHiqaNg62k+bE39np/7r0zczgzd3e9dt24uwkv1R5rfOfOvXfm+86cv1mAtrSlLW1pS1va0paWBaF1afyWap33vvfIfZJKnwLyR0FSb+/WXT76pRmNdNLo1L9STz43CbdRsJnn1NB/puHZg4e+0DHSCY8GKA8ZjB8gfoL8MqGAzXcNA6KsT0cCzyiEY6/NnT3+0JFxBbcouN740w39navfHwPYd8fDD3ao1DHW8P0ImkEb93mdwDATEAKW6SdTkPDfQYNfxief+yfcZgK1MWTwcI6vI7kcj41Dju/Hr4KAnSPuyWO9B75FwvxcAGUIE9AWqJuAyGob+rfvABCYzIrucX0BploBKX8of/DLX8FtIuDurdZrwOdnZ+WNTMGrKIOpSIvaiz/aP/rtnjQ8aywMcOp2jXkwQ0uC//PbA8N3g+ErCh6zz1ctaIkblN/xnvjFC3CbCDjN53I58TuY9gZ3fL770OHDn2AzCKIoEqK8kElfmb47/faZHwsyG4isSjWgIat0VrZ2k4TzefAqRRjYvhVQsg8Iw5QQ1tp0AlHUOn3Af+rZv8EtEKhr39r61NiIfG3icsfxV089PLB16zZjDEIcynjm/BZz4a39VJi7V2uTMloxeLZ9wztBtm+ANO8LGci/OQ5DO+4CKTy3AwI/iIB1bjEpgvAz+NjzJWhCROONAz8G2Mems/j6ogw85bONZhgObwD/LxcCfe3KkCot3qGU9kmxtpViwDE3DiixBsMNeEzwX+SIWMew5IzbobW1yOSM2RtHmUehSakRwPrcJwD+UxjHrn6NJgo8o5TdfwKLby6fVYvXh0jIbggCpCAAzZEGDQM2muzVNsOEtIrBbooxycy0bsQm8JT6OrRIgGrT9+UAN5ZHsNhrUFN9WLP5GFq41o1LC73ZA19JdX3xG9D9yDfhY2PfBbFnP1AUIcUMOo74bcMaoWRSShzVESDhgqnBhgUbCCCoB8JjT+2CFgg0TJdzAX971IvpwO5uZMNMFJfLQItzXapczlpTXnz1Fci/8FMo/PXP0Ln700B9g2xGOgHPO4BsUmw0kCS1xPbJsamF2dVQ0MGRUNwHLRBw051zs4zDhqUIl7o0pilARWhjZ2jCElGxkIGokkoSleJKwUD89jnnvNDZxQRY+yoCo0Jw/lEFRjW0VUNFukkGjYNRaIFAPeNm70mum8Aqk9gSFOuVVRrHOqoseXGlLKxTcuyG0E9Dau8+BiQhunSBuYVsaRWI+RqFJdBW24YSwCaJUFj16Q9qHKl6oQnxap0jrMc/8joTEwCprMJilZBSRkuQYbkcqahY1NFS0YX+roe+xEnrIET5G/Dey7+B8MK7YHkmYZWRBBHk52/A1OQkBEKC+6i6F/WiotqhhkSNJvChCfFW3HFtM8o4CtsA3pg12GFfwFiB1qiEKcdKlSrlio0tMPPib6Fy7u8uZLrY70IOh1HWNCjWOvsCKG420yblkQMuquaz7OANRFwrzkATstKJTyQ309MAGZ+XynDoNMjGLkP0PN4Ub96YuGwRCQ6TIorARh6KYqI46XPwZx+osPnFDnyCrOq8BMs70OgW1WYLDc4bJ6EFAitiQn+HR+VFSVEFSbDyeSgKunsKXpC+xEvkdaFA2tp4rFwC44bWaY0No+zEdgyjuK6XhiyzjnBCE6mz0IR4qwcK2UYyZdBCOwIy5UfYvfG/nhdc/PfPfrLFD8sZDhkubFq7J6NcCQH2deu4ouaZrCN28pWxE9cErxHP7H3p5CloQlaUElPVFZYupqiUnyctORmHoSPgbegs+4P3zIqg46yvy9c5axlnPsq2yPmCbXYn7A4YDqm1KjpJWtWq9WZizDFoUsTqgfFxcIlscNgzMvbU+dNTJYhLzro7hu6c97LZKTJiOg6VotDafcjArekkTdtIxGMCjauHkgVMdfa1izlw1PD8n/Ibj0OTUj+8WN08U61E86OjIpWdk68XRPpSYWHD58a+NrCwWPEkxbLTUKq/cGVkKF46iqQ7XdGfOB9IexawDmuM2wGfE10ak/PMGrqqAnerV3w/tW/Xi2+ehhYJ1PpocwGbEg6OAl4aGPArlzv8q6aUwpLvi7QRNrn53A4O93+1B81Ri2v5JEbuGCltY/CWkO2/f6ll8CLh9vgnXzrV0qlMrh6wh0XeBXj3Xr7ObqHunsh0dvXoXl/EPYRx50YR3dfphfMlf3Kgi64FUuz3kYMsI/FY1Z4DzZWlO5Mlu5Ngfz8B5lZk1z285+XTz0OLctMj5eM5wGwB8OrmHU5Rb92oiKEhTrJlXf/uTuzbzch/zwXbcK1ormnWxvXqSbMhklIyLnASQnxizysTTZ/CGkWuRSDH1z6+/mUaIM87Qfl5WCzOU//SEMHmNM2GkjZRiq6VBJyX+nIm9H6d9uVF/nqbBOx3SQmXCdQmtiW2EfQPrrCOzmyS3//sHybegVuUm/0qUS/waj+nWN9wP01UxXbHq1eo9g9m99zvS72TrWrUKP1x9oNYo7wuJU3w2fiN3ScmmkpUrRBYMU7Vm6dh3SNVXY4sf1r/HtZNAq3JhwX1ocGvkv8L6La0pS1taUtbPjLyPy268QDdSiqgAAAAAElFTkSuQmCC",vd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATKSURBVHgBvVZLbxxFEK7qmXViW7acYA6WIsHBUiRLnCzuBq5cfedXcEHCPC7cOPET4JYfgbghTAQHC4EvCBwrD7/iXXsz092VevXMrGUnOWWk3pme6a6vvqqvqhfgLV9404ePfzz6KgN+GRCRiAY7kICIf4D4k73jObwWSczkb25c+NFPJ1kMidFMahEVzAEE0D3GGSdeQUKucOMXNzDDTt75XAx3xjswoQHXsns9YPF+cC+sZoz43dYQYMAZSN0zCPkrAa9zoAMfMJ1x4AanBynQzZ9xnr6/jLAyboieTBI+Gmd6zPfnU4IpZzPnWWEI3vOG4KIF+ONZIqDeXsnpdQ7Uft/h9SuyJ2aAhgEmLzKDZTjhcdkSJjAjnKc+tDxfnQ9FpTTwxtLpTqA7KA+1e/W+82flZsw5q1ooE6SUMTGBDIbUKRJVkWCBFGuhxNkE5KDlndqGHtCuTKqyHiiTjsjPto1EF+qxc0ps4WLMcbe5lqYuUUoFvEAOANGtcS4lYXBvuablOcBxG6CN7IBr5HgS4Z+jBsq+NAI6fnomZJDUyjC2AD0hQ6i3t7cByiKlx6DM8P67I3xn8TZcvf5+8gL++mVqomBTKXEoc+7k6BS7UFiJlrBbdGoOc8sYdMFqORq3+OisgYOTBp5NIt27M4effnAHHjw8oYcHF+rYySR78SHdXajwwe/HpSbVCQmSMbNUK/6VkEpqrYuQMW2bCOfjKTbz5t/ltMHTs0ugEHhJRRCC5lzZ5IRB3mcoTJ0vWUYH5VoAxTdTH+9imfKIUKVIyMZkYUg8z5ESb1HXlYbRCaSCA0ukdzsglxiUUtF99cbGhs9dxhKCnLggI4TYMtDIosXvQttgqthk0KOCkdDzXihk9juIK4heMKiRE2DzpN7b2/N0lO5QjGQNVakjrhFWCDOnhCmwUUxiGygilI5dsSfUdRgqpWFtXb1ArDc3NzvG/l33iFJTTGzfQirNIMbEcBFzhRorwopozmtOmOVSclA6nYoGrQ/wmwz10tJSJ1s9a3mTGOd0QW4j5JTtK99T02KsghBHSw6DzxGc/fuYbVfFBuTuaPQm0Zck1efn5yUE0tfsOZMykpb2658H8PNv/xNnFBLWmGJEqiRbQZOXYsA0nYImlN+pbrQIgpVEd0CiiWZ3d1dmpzxWuvNUQ2gNgDucMJWMQQ7MHBKIX9xxdfHT4wvi3mddJthhaHVo3LzQurarpwWz/HxhYfELfvtezT+36gCLtypYnh9BbkZwe8TtTfwNNbTIW6pac9Qmov8Ojhg9qk3u++CNxsgNjsDS09FBKx96IN9fXcXTD787q1iCtfoup0XFgkGMWUIb/OBAOyXUZgAp/uyc0LREs4AZleH6+jrs7+/T2toap47dZGWKMpIcSh4cDiVGCpoR8nBqyeuz5Y7PFehThl78vYAK3cJO3WRQPDw8hLuf/DCpgme0dBUJmwfGXA/OUubhyknhM8K+2/CknPjZw5kFTPlLaVB/pnrdaseQErH/pCIiyZuEOBljz1NXj11PNcQg57oDJimsra0tuSfMzbeRu4uWh3YcNp5abrFROlA3RMrcHHjwnxsfvA7IBxcv2rMcqunrIX/c2dkJMpxtr4YrY7DG5P4m/7z9egkURHiCa3UU2QAAAABJRU5ErkJggg==",gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVZSURBVHgBvVbNbhxFEK7qmdm1ndhZm40D5M9STCL5BFiIq+EJuPiAxIGn4IKE+XkAngIE8gPkCDxAIKDIUsBEjmMR23H8u/aud7urqKrumd1FdsIpu+rtmZ7p+urnq68X4BV/8LwHH373/EsC/MIhIjMP7EAGZvkBlkdxTe7hpUhqhr4+98UPvt8jNaRGic0iGlgCUMDkMQ458YIg9OPOfZIMDEWna+leDVfGKzANA86M7uWApfcDcxnVkJE0x3cY0OEQpO0ZSPkLAc9yoAIfiHTIgXOcHiiBbf5U6vRt20Oj1WXePg74T4t4S+bDDkNHqkk0TAzFO+wynPQAft8JDNy3V9b0LAfyNC/J+w3d4wmgKwDHpyRgBHsy2j3GANGI1KmfWrlvjrqSpTzgTSxncgKTg3qRJ69mUvzCXEIiMrYwMYRAGCQAgohUMRKNkRATqdZcmedIoARarplt6APGD7GxrA9EbMPLddzGygvzOMUUxMJJS/Ie76017RULqQQvIQcA9T4XJy/UUJgkEQmQ9wHuTGWYYQ6/PT3ldo+Mc+/fGMHdE8K/dk4hFMC7zw40GGSzMpjblDeACtEtLi6aMxp5ngFMjWUwmkmzS1oFFD555xJ8/PYE3GpkEHoB3rzoUNfeu1qDIA5JBiQzOgROhwZGEO/VMKn3OlizA255eblKgg/Rt4kRByRpvHEpckoju/1aYQ5cHc/spfsbJ3IvZfYeXQSJqUve2zUhOyUaa+yskgX53Nyc9qLUirEj9BwpnKTVmedzr0vqjr1Qn2D2ch2p5+HqRHTiz81TZqkzkBSAAjqnc9V4qf04BjPQri5yhVH1sic90ekGGB/JQOt3bbKAJ7un8HCzDdcna1DPkW9fqdt9q91DATSCOY4pNIT0tUhjGuM3goDr3ryJxkphqGSI2xJlITW81ihgeryA++stuPf3kXn31lSO1yfrsP78NBqjmD9ITBRDmGhuDaExOa2W9pS2ifJk9e5djg0oGQoB9zoeJi8WMDs9aiAPN1q81+pZPj56t2lrvz464tCV2im55JGjaD2TXuRKYbhsjSjrbMcZag2T7KqDIKkKSh68dWUUNnY6sL1zjMc95pWNI5y5fMFMPXh8IMYVQSjhXdyt9KCy5aBUOtMHjDpglM2np6cpiYwxtedFP0Ugp8ZrAtjWWjJ1Az5YO4S5a+Owsn4E1JWwMqcsRO46OHi8JbuzqvOpOhqTSPRbkvPt7W091AFL2ZXHv/yxBY82TwxQmInSIvzDT+vw48/rxsbcwBxjpu3j0bc72tJixLEJgCmA4xgZQ7/xAfOVlRV9dV9QG5omTZAzt8jyIlQU/ZJQtLlNsShGozmStWd7Xorvo8o4V7ZiWbxS6CvZzefn57nVan1W1Mc+zzO8WRN9G6vnMDFWwOSFYHQfqwVQUXApDUWWgdhWAeGNp/ty4c2m6D5g4oMFN3AElpqOScCzZvNOrTsyU4SiXtBEIx97Y+EJKb0xHRJKgJiuUoftgIg/cWi6KcWEUb95GJDQZGN2dhZWV/dpamrf48UmB96U1HvEakfU9xAiE2xBLyiTNwJaflH7OkC/ZHa0IAwQCFJ0vLq6yjMzM2Ft7QibLueDlg+Npre0WUeVwBj1uGSYCGhSLe1tN3RSlOdV+h/HZW+WJz6tra3p7Hd2dJqXDg4qGEYSVHm2A9WxPBD+METttONRn8scIIocV62AfeDyzNVuNcklOaaCAi4sLAgD7nlH3W8oeDt6ZEZVBQ491DURayhnea4SJUP+3KRBMjgNCF2M115P9a+gahIZS0tLTkfFgrju/jsG3ol0/z//vNPnXykvrFYTHUlOAAAAAElFTkSuQmCC",hd=Object.assign({}),pd=Object.assign({}),bd=Object.assign({"./rag/csv.svg":Du,"./rag/document.svg":Pu,"./rag/excel.svg":Hu,"./rag/file.svg":Ou,"./rag/folder.svg":Ru,"./rag/json.svg":Vu,"./rag/knowledgebase.svg":ju,"./rag/netretrive.svg":_u,"./rag/odf.svg":Wu,"./rag/pdf.svg":qu,"./rag/pic.svg":Gu,"./rag/ppt.svg":Ku,"./rag/think.svg":Ju,"./rag/txt.svg":td,"./rag/url.svg":rd,"./rag/word.svg":od,"./rag/wps.svg":ld,"./rag/zip.svg":cd}),Cd=Object.assign({"./assets/img/excel.png":ud,"./assets/img/img.png":dd,"./assets/img/pdf.png":fd,"./assets/img/ppt.png":md,"./assets/img/txt.png":vd,"./assets/img/word.png":gd}),yd=Object.assign({"./rag/csv.svg":Ai,"./rag/document.svg":Hi,"./rag/excel.svg":Ni,"./rag/file.svg":Oi,"./rag/folder.svg":Ti,"./rag/json.svg":Ri,"./rag/knowledgebase.svg":Fi,"./rag/netretrive.svg":Vi,"./rag/odf.svg":zi,"./rag/pdf.svg":ji,"./rag/pic.svg":Bi,"./rag/ppt.svg":_i,"./rag/think.svg":Yi,"./rag/txt.svg":Wi,"./rag/url.svg":Ui,"./rag/word.svg":qi,"./rag/wps.svg":Zi,"./rag/zip.svg":Gi});function Xi(e,t,n){let r=e;for(let a=0;a<t.length-1;a+=1){const o=t[a];(!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]}r[t[t.length-1]]=n}function Ca(e,t){return e.replace(/^\.\//,"").split("?")[0].replace(new RegExp(`\\.${t}$`,"i"),"").split("/")}const Kn={};function ya(e){Object.entries(e).forEach(([t,n])=>{let r;const a=n;if(a&&typeof a.ReactComponent=="function")r=a.ReactComponent;else if(a&&typeof a.default=="function")r=a.default;else return;const o=Jn(r),s=Ca(t,"svg");o.displayName=`Icon(${s.join("/")})`,Xi(Kn,s,o)})}ya(hd);ya(pd);ya(bd);Object.entries(Cd).forEach(([e,t])=>{const n=Jn(a=>k("img",{src:t,alt:"",...a})),r=Ca(e,"png");n.displayName=`IconImg(${r.join("/")})`,Xi(Kn,r,n)});Object.entries(yd).forEach(([e,t])=>{const n=Ca(e,"svg");let r=Kn;for(let s=0;s<n.length;s+=1){const c=n[s];r[c]||(r[c]={}),r=r[c]}if(typeof r=="function")return;const a=Jn(s=>k("img",{src:t,alt:"",...s}));a.displayName=`IconSvgUrl(${n.join("/")})`;let o=Kn;for(let s=0;s<n.length-1;s+=1){const c=n[s];(!o[c]||typeof o[c]!="object")&&(o[c]={}),o=o[c]}o[n[n.length-1]]=a});export{Ii as B,fc as C,St as D,au as E,Ht as F,Id as I,tn as J,Sn as R,ai as T,vc as U,Mi as a,Ya as b,ft as d,Md as i,Rs as l,$d as m,Ts as s};