antd-mobile 5.38.1 → 5.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/2x/README.md +8 -1
  2. package/2x/bundle/antd-mobile.cjs.development.js +2518 -1737
  3. package/2x/bundle/antd-mobile.cjs.js +7 -7
  4. package/2x/bundle/antd-mobile.es.development.js +1564 -783
  5. package/2x/bundle/antd-mobile.es.js +7316 -6670
  6. package/2x/bundle/antd-mobile.umd.development.js +2517 -1736
  7. package/2x/bundle/antd-mobile.umd.js +7 -7
  8. package/2x/bundle/style.css +23 -6
  9. package/2x/cjs/components/button/button.d.ts +2 -2
  10. package/2x/cjs/components/button/button.js +1 -0
  11. package/2x/cjs/components/calendar-picker/calendar-picker.d.ts +9 -9
  12. package/2x/cjs/components/calendar-picker-view/calendar-picker-view.d.ts +5 -4
  13. package/2x/cjs/components/calendar-picker-view/calendar-picker-view.js +21 -11
  14. package/2x/cjs/components/date-picker/date-picker-date-utils.d.ts +1 -1
  15. package/2x/cjs/components/date-picker/date-picker-date-utils.js +23 -8
  16. package/2x/cjs/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
  17. package/2x/cjs/components/date-picker/date-picker-quarter-utils.js +7 -2
  18. package/2x/cjs/components/date-picker/date-picker-week-utils.d.ts +3 -1
  19. package/2x/cjs/components/date-picker/date-picker-week-utils.js +12 -5
  20. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +5 -3
  21. package/2x/cjs/components/date-picker-view/date-picker-view.js +3 -3
  22. package/2x/cjs/components/date-picker-view/useRenderLabel.js +2 -2
  23. package/2x/cjs/components/ellipsis/useMeasure.js +7 -3
  24. package/2x/cjs/components/floating-panel/floating-panel.css +16 -2
  25. package/2x/cjs/components/floating-panel/floating-panel.d.ts +3 -1
  26. package/2x/cjs/components/floating-panel/floating-panel.js +43 -30
  27. package/2x/cjs/components/image-uploader/image-uploader.d.ts +3 -3
  28. package/2x/cjs/components/image-uploader/image-uploader.js +11 -11
  29. package/2x/cjs/components/image-viewer/image-viewer.d.ts +13 -4
  30. package/2x/cjs/components/image-viewer/image-viewer.js +8 -6
  31. package/2x/cjs/components/image-viewer/index.d.ts +4 -1
  32. package/2x/cjs/components/image-viewer/slide.d.ts +5 -1
  33. package/2x/cjs/components/image-viewer/slide.js +10 -5
  34. package/2x/cjs/components/image-viewer/slides.d.ts +4 -1
  35. package/2x/cjs/components/image-viewer/slides.js +14 -12
  36. package/2x/cjs/components/number-keyboard/number-keyboard.d.ts +1 -1
  37. package/2x/cjs/components/passcode-input/passcode-input.d.ts +7 -5
  38. package/2x/cjs/components/passcode-input/passcode-input.js +7 -6
  39. package/2x/cjs/components/popover/popover.d.ts +2 -2
  40. package/2x/cjs/components/popover/popover.js +11 -11
  41. package/2x/cjs/components/popover/wrapper.d.ts +6 -9
  42. package/2x/cjs/components/popover/wrapper.js +32 -6
  43. package/2x/cjs/components/space/space.css +4 -4
  44. package/2x/cjs/components/swipe-action/swipe-action.d.ts +3 -1
  45. package/2x/cjs/components/swipe-action/swipe-action.js +25 -23
  46. package/2x/cjs/components/virtual-input/virtual-input.css +3 -0
  47. package/2x/cjs/components/virtual-input/virtual-input.js +34 -5
  48. package/2x/cjs/index.d.ts +1 -0
  49. package/2x/cjs/index.js +7 -0
  50. package/2x/cjs/locales/ar-SA.d.ts +1 -0
  51. package/2x/cjs/locales/ar-SA.js +1 -0
  52. package/2x/cjs/locales/base.d.ts +1 -0
  53. package/2x/cjs/locales/base.js +1 -0
  54. package/2x/cjs/locales/cnr-ME.d.ts +1 -0
  55. package/2x/cjs/locales/cnr-ME.js +1 -0
  56. package/2x/cjs/locales/da-DK.d.ts +1 -0
  57. package/2x/cjs/locales/de-DE.d.ts +1 -0
  58. package/2x/cjs/locales/de-DE.js +1 -0
  59. package/2x/cjs/locales/en-US.d.ts +1 -0
  60. package/2x/cjs/locales/es-ES.d.ts +1 -0
  61. package/2x/cjs/locales/fa-IR.d.ts +1 -0
  62. package/2x/cjs/locales/fr-FR.d.ts +1 -0
  63. package/2x/cjs/locales/hr-HR.d.ts +1 -0
  64. package/2x/cjs/locales/hr-HR.js +1 -0
  65. package/2x/cjs/locales/hu-HU.d.ts +1 -0
  66. package/2x/cjs/locales/id-ID.d.ts +1 -0
  67. package/2x/cjs/locales/in-ID.d.ts +1 -0
  68. package/2x/cjs/locales/in-ID.js +1 -0
  69. package/2x/cjs/locales/it-IT.d.ts +1 -0
  70. package/2x/cjs/locales/ja-JP.d.ts +1 -0
  71. package/2x/cjs/locales/kk-KZ.d.ts +1 -0
  72. package/2x/cjs/locales/ko-KR.d.ts +1 -0
  73. package/2x/cjs/locales/ms-MY.d.ts +1 -0
  74. package/2x/cjs/locales/ms-MY.js +1 -0
  75. package/2x/cjs/locales/nb-NO.d.ts +1 -0
  76. package/2x/cjs/locales/nl-NL.d.ts +1 -0
  77. package/2x/cjs/locales/pt-BR.d.ts +1 -0
  78. package/2x/cjs/locales/ru-RU.d.ts +1 -0
  79. package/2x/cjs/locales/ru-RU.js +8 -2
  80. package/2x/cjs/locales/sr-RS.d.ts +1 -0
  81. package/2x/cjs/locales/sr-RS.js +1 -0
  82. package/2x/cjs/locales/th-TH.d.ts +1 -0
  83. package/2x/cjs/locales/th-TH.js +1 -0
  84. package/2x/cjs/locales/tr-TR.d.ts +1 -0
  85. package/2x/cjs/locales/vi-VN.d.ts +1 -0
  86. package/2x/cjs/locales/vi-VN.js +1 -0
  87. package/2x/cjs/locales/zh-CN.js +1 -0
  88. package/2x/cjs/locales/zh-HK.d.ts +1 -0
  89. package/2x/cjs/locales/zh-TW.d.ts +1 -0
  90. package/2x/cjs/utils/render-to-body.d.ts +1 -1
  91. package/2x/cjs/utils/render-to-body.js +2 -9
  92. package/2x/cjs/utils/render.d.ts +1 -9
  93. package/2x/cjs/utils/render.js +10 -68
  94. package/2x/cjs/utils/unstable-render.d.ts +9 -0
  95. package/2x/cjs/utils/unstable-render.js +37 -0
  96. package/2x/es/components/button/button.d.ts +2 -2
  97. package/2x/es/components/button/button.js +1 -0
  98. package/2x/es/components/calendar-picker/calendar-picker.d.ts +9 -9
  99. package/2x/es/components/calendar-picker-view/calendar-picker-view.d.ts +5 -4
  100. package/2x/es/components/calendar-picker-view/calendar-picker-view.js +21 -11
  101. package/2x/es/components/date-picker/date-picker-date-utils.d.ts +1 -1
  102. package/2x/es/components/date-picker/date-picker-date-utils.js +23 -8
  103. package/2x/es/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
  104. package/2x/es/components/date-picker/date-picker-quarter-utils.js +7 -2
  105. package/2x/es/components/date-picker/date-picker-week-utils.d.ts +3 -1
  106. package/2x/es/components/date-picker/date-picker-week-utils.js +12 -5
  107. package/2x/es/components/date-picker-view/date-picker-view.d.ts +5 -3
  108. package/2x/es/components/date-picker-view/date-picker-view.js +4 -4
  109. package/2x/es/components/date-picker-view/useRenderLabel.js +2 -2
  110. package/2x/es/components/ellipsis/useMeasure.js +7 -3
  111. package/2x/es/components/floating-panel/floating-panel.css +16 -2
  112. package/2x/es/components/floating-panel/floating-panel.d.ts +3 -1
  113. package/2x/es/components/floating-panel/floating-panel.js +31 -19
  114. package/2x/es/components/image-uploader/image-uploader.d.ts +3 -3
  115. package/2x/es/components/image-uploader/image-uploader.js +11 -11
  116. package/2x/es/components/image-viewer/image-viewer.d.ts +13 -4
  117. package/2x/es/components/image-viewer/image-viewer.js +8 -6
  118. package/2x/es/components/image-viewer/index.d.ts +4 -1
  119. package/2x/es/components/image-viewer/slide.d.ts +5 -1
  120. package/2x/es/components/image-viewer/slide.js +11 -6
  121. package/2x/es/components/image-viewer/slides.d.ts +4 -1
  122. package/2x/es/components/image-viewer/slides.js +6 -4
  123. package/2x/es/components/number-keyboard/number-keyboard.d.ts +1 -1
  124. package/2x/es/components/passcode-input/passcode-input.d.ts +7 -5
  125. package/2x/es/components/passcode-input/passcode-input.js +6 -5
  126. package/2x/es/components/popover/popover.d.ts +2 -2
  127. package/2x/es/components/popover/popover.js +10 -10
  128. package/2x/es/components/popover/wrapper.d.ts +6 -9
  129. package/2x/es/components/popover/wrapper.js +30 -5
  130. package/2x/es/components/space/space.css +4 -4
  131. package/2x/es/components/swipe-action/swipe-action.d.ts +3 -1
  132. package/2x/es/components/swipe-action/swipe-action.js +9 -7
  133. package/2x/es/components/virtual-input/virtual-input.css +3 -0
  134. package/2x/es/components/virtual-input/virtual-input.js +34 -5
  135. package/2x/es/index.d.ts +1 -0
  136. package/2x/es/index.js +3 -1
  137. package/2x/es/locales/ar-SA.d.ts +1 -0
  138. package/2x/es/locales/ar-SA.js +1 -0
  139. package/2x/es/locales/base.d.ts +1 -0
  140. package/2x/es/locales/base.js +1 -0
  141. package/2x/es/locales/cnr-ME.d.ts +1 -0
  142. package/2x/es/locales/cnr-ME.js +1 -0
  143. package/2x/es/locales/da-DK.d.ts +1 -0
  144. package/2x/es/locales/de-DE.d.ts +1 -0
  145. package/2x/es/locales/de-DE.js +1 -0
  146. package/2x/es/locales/en-US.d.ts +1 -0
  147. package/2x/es/locales/es-ES.d.ts +1 -0
  148. package/2x/es/locales/fa-IR.d.ts +1 -0
  149. package/2x/es/locales/fr-FR.d.ts +1 -0
  150. package/2x/es/locales/hr-HR.d.ts +1 -0
  151. package/2x/es/locales/hr-HR.js +1 -0
  152. package/2x/es/locales/hu-HU.d.ts +1 -0
  153. package/2x/es/locales/id-ID.d.ts +1 -0
  154. package/2x/es/locales/in-ID.d.ts +1 -0
  155. package/2x/es/locales/in-ID.js +1 -0
  156. package/2x/es/locales/it-IT.d.ts +1 -0
  157. package/2x/es/locales/ja-JP.d.ts +1 -0
  158. package/2x/es/locales/kk-KZ.d.ts +1 -0
  159. package/2x/es/locales/ko-KR.d.ts +1 -0
  160. package/2x/es/locales/ms-MY.d.ts +1 -0
  161. package/2x/es/locales/ms-MY.js +1 -0
  162. package/2x/es/locales/nb-NO.d.ts +1 -0
  163. package/2x/es/locales/nl-NL.d.ts +1 -0
  164. package/2x/es/locales/pt-BR.d.ts +1 -0
  165. package/2x/es/locales/ru-RU.d.ts +1 -0
  166. package/2x/es/locales/ru-RU.js +8 -2
  167. package/2x/es/locales/sr-RS.d.ts +1 -0
  168. package/2x/es/locales/sr-RS.js +1 -0
  169. package/2x/es/locales/th-TH.d.ts +1 -0
  170. package/2x/es/locales/th-TH.js +1 -0
  171. package/2x/es/locales/tr-TR.d.ts +1 -0
  172. package/2x/es/locales/vi-VN.d.ts +1 -0
  173. package/2x/es/locales/vi-VN.js +1 -0
  174. package/2x/es/locales/zh-CN.js +1 -0
  175. package/2x/es/locales/zh-HK.d.ts +1 -0
  176. package/2x/es/locales/zh-TW.d.ts +1 -0
  177. package/2x/es/utils/render-to-body.d.ts +1 -1
  178. package/2x/es/utils/render-to-body.js +2 -9
  179. package/2x/es/utils/render.d.ts +1 -9
  180. package/2x/es/utils/render.js +1 -65
  181. package/2x/es/utils/unstable-render.d.ts +9 -0
  182. package/2x/es/utils/unstable-render.js +28 -0
  183. package/2x/package.json +2 -2
  184. package/README.md +8 -1
  185. package/bundle/antd-mobile.cjs.development.js +2518 -1737
  186. package/bundle/antd-mobile.cjs.js +7 -7
  187. package/bundle/antd-mobile.compatible.umd.js +1 -1
  188. package/bundle/antd-mobile.es.development.js +1564 -783
  189. package/bundle/antd-mobile.es.js +7316 -6670
  190. package/bundle/antd-mobile.umd.development.js +2517 -1736
  191. package/bundle/antd-mobile.umd.js +7 -7
  192. package/bundle/style.css +1 -1
  193. package/cjs/components/button/button.d.ts +2 -2
  194. package/cjs/components/button/button.js +1 -0
  195. package/cjs/components/calendar-picker/calendar-picker.d.ts +9 -9
  196. package/cjs/components/calendar-picker-view/calendar-picker-view.d.ts +5 -4
  197. package/cjs/components/calendar-picker-view/calendar-picker-view.js +21 -11
  198. package/cjs/components/date-picker/date-picker-date-utils.d.ts +1 -1
  199. package/cjs/components/date-picker/date-picker-date-utils.js +23 -8
  200. package/cjs/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
  201. package/cjs/components/date-picker/date-picker-quarter-utils.js +7 -2
  202. package/cjs/components/date-picker/date-picker-week-utils.d.ts +3 -1
  203. package/cjs/components/date-picker/date-picker-week-utils.js +12 -5
  204. package/cjs/components/date-picker-view/date-picker-view.d.ts +5 -3
  205. package/cjs/components/date-picker-view/date-picker-view.js +3 -3
  206. package/cjs/components/date-picker-view/useRenderLabel.js +2 -2
  207. package/cjs/components/ellipsis/useMeasure.js +7 -3
  208. package/cjs/components/floating-panel/floating-panel.css +12 -2
  209. package/cjs/components/floating-panel/floating-panel.d.ts +3 -1
  210. package/cjs/components/floating-panel/floating-panel.js +43 -30
  211. package/cjs/components/image-uploader/image-uploader.d.ts +3 -3
  212. package/cjs/components/image-uploader/image-uploader.js +11 -11
  213. package/cjs/components/image-viewer/image-viewer.d.ts +13 -4
  214. package/cjs/components/image-viewer/image-viewer.js +8 -6
  215. package/cjs/components/image-viewer/index.d.ts +4 -1
  216. package/cjs/components/image-viewer/slide.d.ts +5 -1
  217. package/cjs/components/image-viewer/slide.js +10 -5
  218. package/cjs/components/image-viewer/slides.d.ts +4 -1
  219. package/cjs/components/image-viewer/slides.js +14 -12
  220. package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -1
  221. package/cjs/components/passcode-input/passcode-input.d.ts +7 -5
  222. package/cjs/components/passcode-input/passcode-input.js +7 -6
  223. package/cjs/components/popover/popover.d.ts +2 -2
  224. package/cjs/components/popover/popover.js +11 -11
  225. package/cjs/components/popover/wrapper.d.ts +6 -9
  226. package/cjs/components/popover/wrapper.js +32 -6
  227. package/cjs/components/space/space.css +3 -3
  228. package/cjs/components/swipe-action/swipe-action.d.ts +3 -1
  229. package/cjs/components/swipe-action/swipe-action.js +25 -23
  230. package/cjs/components/virtual-input/virtual-input.css +3 -0
  231. package/cjs/components/virtual-input/virtual-input.js +34 -5
  232. package/cjs/index.d.ts +1 -0
  233. package/cjs/index.js +7 -0
  234. package/cjs/locales/ar-SA.d.ts +1 -0
  235. package/cjs/locales/ar-SA.js +1 -0
  236. package/cjs/locales/base.d.ts +1 -0
  237. package/cjs/locales/base.js +1 -0
  238. package/cjs/locales/cnr-ME.d.ts +1 -0
  239. package/cjs/locales/cnr-ME.js +1 -0
  240. package/cjs/locales/da-DK.d.ts +1 -0
  241. package/cjs/locales/de-DE.d.ts +1 -0
  242. package/cjs/locales/de-DE.js +1 -0
  243. package/cjs/locales/en-US.d.ts +1 -0
  244. package/cjs/locales/es-ES.d.ts +1 -0
  245. package/cjs/locales/fa-IR.d.ts +1 -0
  246. package/cjs/locales/fr-FR.d.ts +1 -0
  247. package/cjs/locales/hr-HR.d.ts +1 -0
  248. package/cjs/locales/hr-HR.js +1 -0
  249. package/cjs/locales/hu-HU.d.ts +1 -0
  250. package/cjs/locales/id-ID.d.ts +1 -0
  251. package/cjs/locales/in-ID.d.ts +1 -0
  252. package/cjs/locales/in-ID.js +1 -0
  253. package/cjs/locales/it-IT.d.ts +1 -0
  254. package/cjs/locales/ja-JP.d.ts +1 -0
  255. package/cjs/locales/kk-KZ.d.ts +1 -0
  256. package/cjs/locales/ko-KR.d.ts +1 -0
  257. package/cjs/locales/ms-MY.d.ts +1 -0
  258. package/cjs/locales/ms-MY.js +1 -0
  259. package/cjs/locales/nb-NO.d.ts +1 -0
  260. package/cjs/locales/nl-NL.d.ts +1 -0
  261. package/cjs/locales/pt-BR.d.ts +1 -0
  262. package/cjs/locales/ru-RU.d.ts +1 -0
  263. package/cjs/locales/ru-RU.js +8 -2
  264. package/cjs/locales/sr-RS.d.ts +1 -0
  265. package/cjs/locales/sr-RS.js +1 -0
  266. package/cjs/locales/th-TH.d.ts +1 -0
  267. package/cjs/locales/th-TH.js +1 -0
  268. package/cjs/locales/tr-TR.d.ts +1 -0
  269. package/cjs/locales/vi-VN.d.ts +1 -0
  270. package/cjs/locales/vi-VN.js +1 -0
  271. package/cjs/locales/zh-CN.js +1 -0
  272. package/cjs/locales/zh-HK.d.ts +1 -0
  273. package/cjs/locales/zh-TW.d.ts +1 -0
  274. package/cjs/utils/render-to-body.d.ts +1 -1
  275. package/cjs/utils/render-to-body.js +2 -9
  276. package/cjs/utils/render.d.ts +1 -9
  277. package/cjs/utils/render.js +10 -68
  278. package/cjs/utils/unstable-render.d.ts +9 -0
  279. package/cjs/utils/unstable-render.js +37 -0
  280. package/es/components/button/button.d.ts +2 -2
  281. package/es/components/button/button.js +1 -0
  282. package/es/components/calendar-picker/calendar-picker.d.ts +9 -9
  283. package/es/components/calendar-picker-view/calendar-picker-view.d.ts +5 -4
  284. package/es/components/calendar-picker-view/calendar-picker-view.js +21 -11
  285. package/es/components/date-picker/date-picker-date-utils.d.ts +1 -1
  286. package/es/components/date-picker/date-picker-date-utils.js +23 -8
  287. package/es/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
  288. package/es/components/date-picker/date-picker-quarter-utils.js +7 -2
  289. package/es/components/date-picker/date-picker-week-utils.d.ts +3 -1
  290. package/es/components/date-picker/date-picker-week-utils.js +12 -5
  291. package/es/components/date-picker-view/date-picker-view.d.ts +5 -3
  292. package/es/components/date-picker-view/date-picker-view.js +4 -4
  293. package/es/components/date-picker-view/useRenderLabel.js +2 -2
  294. package/es/components/ellipsis/useMeasure.js +7 -3
  295. package/es/components/floating-panel/floating-panel.css +12 -2
  296. package/es/components/floating-panel/floating-panel.d.ts +3 -1
  297. package/es/components/floating-panel/floating-panel.js +31 -19
  298. package/es/components/image-uploader/image-uploader.d.ts +3 -3
  299. package/es/components/image-uploader/image-uploader.js +11 -11
  300. package/es/components/image-viewer/image-viewer.d.ts +13 -4
  301. package/es/components/image-viewer/image-viewer.js +8 -6
  302. package/es/components/image-viewer/index.d.ts +4 -1
  303. package/es/components/image-viewer/slide.d.ts +5 -1
  304. package/es/components/image-viewer/slide.js +11 -6
  305. package/es/components/image-viewer/slides.d.ts +4 -1
  306. package/es/components/image-viewer/slides.js +6 -4
  307. package/es/components/number-keyboard/number-keyboard.d.ts +1 -1
  308. package/es/components/passcode-input/passcode-input.d.ts +7 -5
  309. package/es/components/passcode-input/passcode-input.js +6 -5
  310. package/es/components/popover/popover.d.ts +2 -2
  311. package/es/components/popover/popover.js +10 -10
  312. package/es/components/popover/wrapper.d.ts +6 -9
  313. package/es/components/popover/wrapper.js +30 -5
  314. package/es/components/space/space.css +3 -3
  315. package/es/components/swipe-action/swipe-action.d.ts +3 -1
  316. package/es/components/swipe-action/swipe-action.js +9 -7
  317. package/es/components/virtual-input/virtual-input.css +3 -0
  318. package/es/components/virtual-input/virtual-input.js +34 -5
  319. package/es/index.d.ts +1 -0
  320. package/es/index.js +3 -1
  321. package/es/locales/ar-SA.d.ts +1 -0
  322. package/es/locales/ar-SA.js +1 -0
  323. package/es/locales/base.d.ts +1 -0
  324. package/es/locales/base.js +1 -0
  325. package/es/locales/cnr-ME.d.ts +1 -0
  326. package/es/locales/cnr-ME.js +1 -0
  327. package/es/locales/da-DK.d.ts +1 -0
  328. package/es/locales/de-DE.d.ts +1 -0
  329. package/es/locales/de-DE.js +1 -0
  330. package/es/locales/en-US.d.ts +1 -0
  331. package/es/locales/es-ES.d.ts +1 -0
  332. package/es/locales/fa-IR.d.ts +1 -0
  333. package/es/locales/fr-FR.d.ts +1 -0
  334. package/es/locales/hr-HR.d.ts +1 -0
  335. package/es/locales/hr-HR.js +1 -0
  336. package/es/locales/hu-HU.d.ts +1 -0
  337. package/es/locales/id-ID.d.ts +1 -0
  338. package/es/locales/in-ID.d.ts +1 -0
  339. package/es/locales/in-ID.js +1 -0
  340. package/es/locales/it-IT.d.ts +1 -0
  341. package/es/locales/ja-JP.d.ts +1 -0
  342. package/es/locales/kk-KZ.d.ts +1 -0
  343. package/es/locales/ko-KR.d.ts +1 -0
  344. package/es/locales/ms-MY.d.ts +1 -0
  345. package/es/locales/ms-MY.js +1 -0
  346. package/es/locales/nb-NO.d.ts +1 -0
  347. package/es/locales/nl-NL.d.ts +1 -0
  348. package/es/locales/pt-BR.d.ts +1 -0
  349. package/es/locales/ru-RU.d.ts +1 -0
  350. package/es/locales/ru-RU.js +8 -2
  351. package/es/locales/sr-RS.d.ts +1 -0
  352. package/es/locales/sr-RS.js +1 -0
  353. package/es/locales/th-TH.d.ts +1 -0
  354. package/es/locales/th-TH.js +1 -0
  355. package/es/locales/tr-TR.d.ts +1 -0
  356. package/es/locales/vi-VN.d.ts +1 -0
  357. package/es/locales/vi-VN.js +1 -0
  358. package/es/locales/zh-CN.js +1 -0
  359. package/es/locales/zh-HK.d.ts +1 -0
  360. package/es/locales/zh-TW.d.ts +1 -0
  361. package/es/utils/render-to-body.d.ts +1 -1
  362. package/es/utils/render-to-body.js +2 -9
  363. package/es/utils/render.d.ts +1 -9
  364. package/es/utils/render.js +1 -65
  365. package/es/utils/unstable-render.d.ts +9 -0
  366. package/es/utils/unstable-render.js +28 -0
  367. package/package.json +2 -2
  368. package/umd/antd-mobile.js +1 -1
@@ -1,7 +1,7 @@
1
- import * as React$1 from "react";
2
- import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect as useLayoutEffect$1, forwardRef, useImperativeHandle, memo, isValidElement, createContext, cloneElement } from "react";
3
- import * as ReactDOM from "react-dom";
4
- import ReactDOM__default, { unstable_batchedUpdates, createPortal, findDOMNode as findDOMNode$1 } from "react-dom";
1
+ import * as React$2 from "react";
2
+ import React__default, { useContext, useRef, useMemo as useMemo$2, useEffect, useState, useCallback, useLayoutEffect as useLayoutEffect$1, forwardRef, useImperativeHandle, memo, version as version$1, isValidElement, createContext, cloneElement } from "react";
3
+ import * as ReactDOM$1 from "react-dom";
4
+ import ReactDOM__default, { unstable_batchedUpdates, createPortal } from "react-dom";
5
5
  const canUseDom$1 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
6
6
  if (canUseDom$1) {
7
7
  document.addEventListener("touchstart", () => {
@@ -198,6 +198,7 @@ const zhCN = {
198
198
  confirm: "确认",
199
199
  start: "开始",
200
200
  end: "结束",
201
+ startAndEnd: "开始/结束",
201
202
  today: "今日",
202
203
  markItems: ["一", "二", "三", "四", "五", "六", "日"],
203
204
  yearAndMonth: "${year}年${month}月"
@@ -484,7 +485,7 @@ function useMemoizedFn(fn) {
484
485
  }
485
486
  }
486
487
  var fnRef = useRef(fn);
487
- fnRef.current = useMemo(function() {
488
+ fnRef.current = useMemo$2(function() {
488
489
  return fn;
489
490
  }, [fn]);
490
491
  var memoizedFn = useRef();
@@ -510,9 +511,9 @@ function depsAreSame(oldDeps, deps) {
510
511
  return true;
511
512
  }
512
513
  function useLatest(value) {
513
- var ref = useRef(value);
514
- ref.current = value;
515
- return ref;
514
+ var ref2 = useRef(value);
515
+ ref2.current = value;
516
+ return ref2;
516
517
  }
517
518
  var useUnmount = function(fn) {
518
519
  if (isDev$1) {
@@ -1169,7 +1170,7 @@ function useDebounceFn(fn, options) {
1169
1170
  }
1170
1171
  var fnRef = useLatest(fn);
1171
1172
  var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
1172
- var debounced = useMemo(function() {
1173
+ var debounced = useMemo$2(function() {
1173
1174
  return debounce$2(function() {
1174
1175
  var args = [];
1175
1176
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -1824,16 +1825,16 @@ function useLockFn(fn) {
1824
1825
  }, [fn]);
1825
1826
  }
1826
1827
  function useRafState(initialState) {
1827
- var ref = useRef(0);
1828
+ var ref2 = useRef(0);
1828
1829
  var _a = __read(useState(initialState), 2), state = _a[0], setState = _a[1];
1829
1830
  var setRafState = useCallback(function(value) {
1830
- cancelAnimationFrame(ref.current);
1831
- ref.current = requestAnimationFrame(function() {
1831
+ cancelAnimationFrame(ref2.current);
1832
+ ref2.current = requestAnimationFrame(function() {
1832
1833
  setState(value);
1833
1834
  });
1834
1835
  }, []);
1835
1836
  useUnmount$1(function() {
1836
- cancelAnimationFrame(ref.current);
1837
+ cancelAnimationFrame(ref2.current);
1837
1838
  });
1838
1839
  return [state, setRafState];
1839
1840
  }
@@ -2382,7 +2383,7 @@ function useThrottleFn(fn, options) {
2382
2383
  }
2383
2384
  var fnRef = useLatest(fn);
2384
2385
  var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
2385
- var throttled = useMemo(function() {
2386
+ var throttled = useMemo$2(function() {
2386
2387
  return throttle$2(function() {
2387
2388
  var args = [];
2388
2389
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -3716,7 +3717,7 @@ const withAnimated = (Component, host2) => {
3716
3717
  const hasInstance = !is.fun(Component) || Component.prototype && Component.prototype.isReactComponent;
3717
3718
  return forwardRef((givenProps, givenRef) => {
3718
3719
  const instanceRef = useRef(null);
3719
- const ref = hasInstance && useCallback((value) => {
3720
+ const ref2 = hasInstance && useCallback((value) => {
3720
3721
  instanceRef.current = updateRef(givenRef, value);
3721
3722
  }, [givenRef]);
3722
3723
  const [props, deps] = getAnimatedState(givenProps, host2);
@@ -3749,8 +3750,8 @@ const withAnimated = (Component, host2) => {
3749
3750
  each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
3750
3751
  });
3751
3752
  const usedProps = host2.getComponentProps(props.getValue());
3752
- return React$1.createElement(Component, _extends$3({}, usedProps, {
3753
- ref
3753
+ return React$2.createElement(Component, _extends$3({}, usedProps, {
3754
+ ref: ref2
3754
3755
  }));
3755
3756
  });
3756
3757
  };
@@ -3776,12 +3777,12 @@ function getAnimatedState(props, host2) {
3776
3777
  TreeContext.dependencies = null;
3777
3778
  return [props, dependencies];
3778
3779
  }
3779
- function updateRef(ref, value) {
3780
- if (ref) {
3781
- if (is.fun(ref))
3782
- ref(value);
3780
+ function updateRef(ref2, value) {
3781
+ if (ref2) {
3782
+ if (is.fun(ref2))
3783
+ ref2(value);
3783
3784
  else
3784
- ref.current = value;
3785
+ ref2.current = value;
3785
3786
  }
3786
3787
  return value;
3787
3788
  }
@@ -3927,17 +3928,17 @@ function hasProps(props) {
3927
3928
  function isAsyncTo(to2) {
3928
3929
  return is.fun(to2) || is.arr(to2) && is.obj(to2[0]);
3929
3930
  }
3930
- function detachRefs(ctrl, ref) {
3931
+ function detachRefs(ctrl, ref2) {
3931
3932
  var _ctrl$ref;
3932
3933
  (_ctrl$ref = ctrl.ref) == null ? void 0 : _ctrl$ref.delete(ctrl);
3933
- ref == null ? void 0 : ref.delete(ctrl);
3934
+ ref2 == null ? void 0 : ref2.delete(ctrl);
3934
3935
  }
3935
- function replaceRef(ctrl, ref) {
3936
- if (ref && ctrl.ref !== ref) {
3936
+ function replaceRef(ctrl, ref2) {
3937
+ if (ref2 && ctrl.ref !== ref2) {
3937
3938
  var _ctrl$ref2;
3938
3939
  (_ctrl$ref2 = ctrl.ref) == null ? void 0 : _ctrl$ref2.delete(ctrl);
3939
- ref.add(ctrl);
3940
- ctrl.ref = ref;
3940
+ ref2.add(ctrl);
3941
+ ctrl.ref = ref2;
3941
3942
  }
3942
3943
  }
3943
3944
  const config$1 = {
@@ -5289,7 +5290,7 @@ const SpringContext = (_ref) => {
5289
5290
  const {
5290
5291
  Provider
5291
5292
  } = ctx;
5292
- return React$1.createElement(Provider, {
5293
+ return React$2.createElement(Provider, {
5293
5294
  value: props
5294
5295
  }, children);
5295
5296
  };
@@ -5297,7 +5298,7 @@ const ctx = makeContext(SpringContext, {});
5297
5298
  SpringContext.Provider = ctx.Provider;
5298
5299
  SpringContext.Consumer = ctx.Consumer;
5299
5300
  function makeContext(target, init) {
5300
- Object.assign(target, React$1.createContext(init));
5301
+ Object.assign(target, React$2.createContext(init));
5301
5302
  target.Provider._context = target;
5302
5303
  target.Consumer._context = target;
5303
5304
  return target;
@@ -5373,10 +5374,10 @@ function useSprings(length, props, deps) {
5373
5374
  const propsFn = is.fun(props) && props;
5374
5375
  if (propsFn && !deps)
5375
5376
  deps = [];
5376
- const ref = useMemo(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
5377
+ const ref2 = useMemo$2(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
5377
5378
  const layoutId = useRef(0);
5378
5379
  const forceUpdate = useForceUpdate();
5379
- const state = useMemo(() => ({
5380
+ const state = useMemo$2(() => ({
5380
5381
  ctrls: [],
5381
5382
  queue: [],
5382
5383
  flush(ctrl, updates2) {
@@ -5394,15 +5395,15 @@ function useSprings(length, props, deps) {
5394
5395
  const ctrls = useRef([...state.ctrls]);
5395
5396
  const updates = [];
5396
5397
  const prevLength = usePrev(length) || 0;
5397
- useMemo(() => {
5398
+ useMemo$2(() => {
5398
5399
  each(ctrls.current.slice(length, prevLength), (ctrl) => {
5399
- detachRefs(ctrl, ref);
5400
+ detachRefs(ctrl, ref2);
5400
5401
  ctrl.stop(true);
5401
5402
  });
5402
5403
  ctrls.current.length = length;
5403
5404
  declareUpdates(prevLength, length);
5404
5405
  }, [length]);
5405
- useMemo(() => {
5406
+ useMemo$2(() => {
5406
5407
  declareUpdates(0, Math.min(prevLength, length));
5407
5408
  }, deps);
5408
5409
  function declareUpdates(startIndex, endIndex) {
@@ -5429,7 +5430,7 @@ function useSprings(length, props, deps) {
5429
5430
  each(queue, (cb) => cb());
5430
5431
  }
5431
5432
  each(ctrls.current, (ctrl, i2) => {
5432
- ref == null ? void 0 : ref.add(ctrl);
5433
+ ref2 == null ? void 0 : ref2.add(ctrl);
5433
5434
  if (hasContext) {
5434
5435
  ctrl.start({
5435
5436
  default: context
@@ -5450,12 +5451,12 @@ function useSprings(length, props, deps) {
5450
5451
  each(state.ctrls, (ctrl) => ctrl.stop(true));
5451
5452
  });
5452
5453
  const values = springs.map((x) => _extends$2({}, x));
5453
- return ref ? [values, ref] : values;
5454
+ return ref2 ? [values, ref2] : values;
5454
5455
  }
5455
5456
  function useSpring(props, deps) {
5456
5457
  const isFn = is.fun(props);
5457
- const [[values], ref] = useSprings(1, isFn ? props : [props], isFn ? deps || [] : deps);
5458
- return isFn || arguments.length == 2 ? [values, ref] : values;
5458
+ const [[values], ref2] = useSprings(1, isFn ? props : [props], isFn ? deps || [] : deps);
5459
+ return isFn || arguments.length == 2 ? [values, ref2] : values;
5459
5460
  }
5460
5461
  let TransitionPhase;
5461
5462
  (function(TransitionPhase2) {
@@ -5845,9 +5846,9 @@ const Mask = (p) => {
5845
5846
  const {
5846
5847
  locale
5847
5848
  } = useConfig();
5848
- const ref = useRef(null);
5849
- useLockScroll(ref, props.visible && props.disableBodyScroll);
5850
- const background = useMemo(() => {
5849
+ const ref2 = useRef(null);
5850
+ useLockScroll(ref2, props.visible && props.disableBodyScroll);
5851
+ const background = useMemo$2(() => {
5851
5852
  var _a;
5852
5853
  const opacity2 = (_a = opacityRecord[props.opacity]) !== null && _a !== void 0 ? _a : props.opacity;
5853
5854
  const rgb2 = colorRecord$4[props.color];
@@ -5883,7 +5884,7 @@ const Mask = (p) => {
5883
5884
  });
5884
5885
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement(animated.div, {
5885
5886
  className: classPrefix$1q,
5886
- ref,
5887
+ ref: ref2,
5887
5888
  "aria-hidden": true,
5888
5889
  style: Object.assign(Object.assign({}, props.style), {
5889
5890
  background,
@@ -5911,7 +5912,7 @@ const Mask = (p) => {
5911
5912
  }, renderToContainer(props.getContainer, node));
5912
5913
  };
5913
5914
  function AddOutline(props) {
5914
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
5915
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
5915
5916
  width: "1em",
5916
5917
  height: "1em",
5917
5918
  viewBox: "0 0 48 48",
@@ -5922,15 +5923,15 @@ function AddOutline(props) {
5922
5923
  verticalAlign: "-0.125em"
5923
5924
  }, props.style),
5924
5925
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
5925
- }), /* @__PURE__ */ React$1.createElement("g", {
5926
+ }), /* @__PURE__ */ React$2.createElement("g", {
5926
5927
  id: "AddOutline-AddOutline",
5927
5928
  stroke: "none",
5928
5929
  strokeWidth: 1,
5929
5930
  fill: "none",
5930
5931
  fillRule: "evenodd"
5931
- }, /* @__PURE__ */ React$1.createElement("g", {
5932
+ }, /* @__PURE__ */ React$2.createElement("g", {
5932
5933
  id: "AddOutline-add"
5933
- }, /* @__PURE__ */ React$1.createElement("rect", {
5934
+ }, /* @__PURE__ */ React$2.createElement("rect", {
5934
5935
  id: "AddOutline-矩形",
5935
5936
  fill: "#FFFFFF",
5936
5937
  opacity: 0,
@@ -5938,7 +5939,7 @@ function AddOutline(props) {
5938
5939
  y: 0,
5939
5940
  width: 48,
5940
5941
  height: 48
5941
- }), /* @__PURE__ */ React$1.createElement("path", {
5942
+ }), /* @__PURE__ */ React$2.createElement("path", {
5942
5943
  d: "M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",
5943
5944
  id: "AddOutline-路径",
5944
5945
  fill: "currentColor",
@@ -5946,7 +5947,7 @@ function AddOutline(props) {
5946
5947
  }))));
5947
5948
  }
5948
5949
  function CheckCircleFill(props) {
5949
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
5950
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
5950
5951
  width: "1em",
5951
5952
  height: "1em",
5952
5953
  viewBox: "0 0 48 48",
@@ -5957,15 +5958,15 @@ function CheckCircleFill(props) {
5957
5958
  verticalAlign: "-0.125em"
5958
5959
  }, props.style),
5959
5960
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
5960
- }), /* @__PURE__ */ React$1.createElement("g", {
5961
+ }), /* @__PURE__ */ React$2.createElement("g", {
5961
5962
  id: "CheckCircleFill-CheckCircleFill",
5962
5963
  stroke: "none",
5963
5964
  strokeWidth: 1,
5964
5965
  fill: "none",
5965
5966
  fillRule: "evenodd"
5966
- }, /* @__PURE__ */ React$1.createElement("g", {
5967
+ }, /* @__PURE__ */ React$2.createElement("g", {
5967
5968
  id: "CheckCircleFill-编组"
5968
- }, /* @__PURE__ */ React$1.createElement("rect", {
5969
+ }, /* @__PURE__ */ React$2.createElement("rect", {
5969
5970
  id: "CheckCircleFill-矩形",
5970
5971
  fill: "#FFFFFF",
5971
5972
  opacity: 0,
@@ -5973,7 +5974,7 @@ function CheckCircleFill(props) {
5973
5974
  y: 0,
5974
5975
  width: 48,
5975
5976
  height: 48
5976
- }), /* @__PURE__ */ React$1.createElement("path", {
5977
+ }), /* @__PURE__ */ React$2.createElement("path", {
5977
5978
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M35.8202936,17 L32.7086692,17 C32.6025922,17 32.500859,17.0421352 32.4258461,17.1171378 L32.4258461,17.1171378 L21.3922352,28.1492247 L16.3591562,23.1163755 C16.2841422,23.0413649 16.1824034,22.9992247 16.0763199,22.9992247 L16.0763199,22.9992247 L12.9653996,22.9992247 C12.859342,22.9992247 12.7576259,23.0413445 12.6826161,23.1163228 C12.5263737,23.2724998 12.5263207,23.5257658 12.6824977,23.6820082 C12.8583452,23.8579294 13.0341927,24.0338505 13.2100402,24.2097716 C13.2577488,24.2575002 13.3065097,24.3063074 13.3562592,24.3561283 L13.6661084,24.6666997 C14.3074913,25.3100963 15.0728595,26.0807873 15.8520136,26.8666654 L16.4372421,27.4571699 C18.2552812,29.2922548 19.9983838,31.0574343 20.2666114,31.3285298 L20.301004,31.3632341 C20.8867904,31.9490205 21.8365379,31.9490205 22.4223243,31.3632341 L22.4223243,31.3632341 L36.1031319,17.6828471 C36.1781492,17.6078322 36.2202936,17.5060887 36.2202936,17.4 C36.2202936,17.1790861 36.0412075,17 35.8202936,17 L35.8202936,17 Z",
5978
5979
  id: "CheckCircleFill-形状结合",
5979
5980
  fill: "currentColor",
@@ -5981,7 +5982,7 @@ function CheckCircleFill(props) {
5981
5982
  }))));
5982
5983
  }
5983
5984
  function CheckOutline(props) {
5984
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
5985
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
5985
5986
  width: "1em",
5986
5987
  height: "1em",
5987
5988
  viewBox: "0 0 48 48",
@@ -5992,15 +5993,15 @@ function CheckOutline(props) {
5992
5993
  verticalAlign: "-0.125em"
5993
5994
  }, props.style),
5994
5995
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
5995
- }), /* @__PURE__ */ React$1.createElement("g", {
5996
+ }), /* @__PURE__ */ React$2.createElement("g", {
5996
5997
  id: "CheckOutline-CheckOutline",
5997
5998
  stroke: "none",
5998
5999
  strokeWidth: 1,
5999
6000
  fill: "none",
6000
6001
  fillRule: "evenodd"
6001
- }, /* @__PURE__ */ React$1.createElement("g", {
6002
+ }, /* @__PURE__ */ React$2.createElement("g", {
6002
6003
  id: "CheckOutline-编组"
6003
- }, /* @__PURE__ */ React$1.createElement("rect", {
6004
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6004
6005
  id: "CheckOutline-矩形",
6005
6006
  fill: "#FFFFFF",
6006
6007
  opacity: 0,
@@ -6008,7 +6009,7 @@ function CheckOutline(props) {
6008
6009
  y: 0,
6009
6010
  width: 48,
6010
6011
  height: 48
6011
- }), /* @__PURE__ */ React$1.createElement("path", {
6012
+ }), /* @__PURE__ */ React$2.createElement("path", {
6012
6013
  d: "M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",
6013
6014
  id: "CheckOutline-路径",
6014
6015
  fill: "currentColor",
@@ -6016,7 +6017,7 @@ function CheckOutline(props) {
6016
6017
  }))));
6017
6018
  }
6018
6019
  function ClockCircleFill(props) {
6019
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6020
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6020
6021
  width: "1em",
6021
6022
  height: "1em",
6022
6023
  viewBox: "0 0 48 48",
@@ -6027,15 +6028,15 @@ function ClockCircleFill(props) {
6027
6028
  verticalAlign: "-0.125em"
6028
6029
  }, props.style),
6029
6030
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6030
- }), /* @__PURE__ */ React$1.createElement("g", {
6031
+ }), /* @__PURE__ */ React$2.createElement("g", {
6031
6032
  id: "ClockCircleFill-ClockCircleFill",
6032
6033
  stroke: "none",
6033
6034
  strokeWidth: 1,
6034
6035
  fill: "none",
6035
6036
  fillRule: "evenodd"
6036
- }, /* @__PURE__ */ React$1.createElement("g", {
6037
+ }, /* @__PURE__ */ React$2.createElement("g", {
6037
6038
  id: "ClockCircleFill-编组"
6038
- }, /* @__PURE__ */ React$1.createElement("rect", {
6039
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6039
6040
  id: "ClockCircleFill-矩形",
6040
6041
  fill: "#FFFFFF",
6041
6042
  opacity: 0,
@@ -6043,7 +6044,7 @@ function ClockCircleFill(props) {
6043
6044
  y: 0,
6044
6045
  width: 48,
6045
6046
  height: 48
6046
- }), /* @__PURE__ */ React$1.createElement("path", {
6047
+ }), /* @__PURE__ */ React$2.createElement("path", {
6047
6048
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24.6,14 L22.4,14 C22.1790861,14 22,14.1790861 22,14.4 L22,14.4 L22,23.1715729 L22.0065089,23.3850222 C22.0584325,24.2354066 22.4192395,25.0405598 23.0251263,25.6464466 L23.0251263,25.6464466 L31.1564971,33.7778175 C31.3127068,33.9340272 31.5659728,33.9340272 31.7221825,33.7778175 L31.7221825,33.7778175 L33.2778175,32.2221825 C33.4340272,32.0659728 33.4340272,31.8127068 33.2778175,31.6564971 L33.2778175,31.6564971 L25.1464466,23.5251263 L25.0952092,23.4650801 C25.0337142,23.38027 25,23.2776595 25,23.1715729 L25,23.1715729 L25,14.4 C25,14.1790861 24.8209139,14 24.6,14 L24.6,14 Z",
6048
6049
  id: "ClockCircleFill-形状结合",
6049
6050
  fill: "currentColor",
@@ -6051,7 +6052,7 @@ function ClockCircleFill(props) {
6051
6052
  }))));
6052
6053
  }
6053
6054
  function CloseCircleFill(props) {
6054
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6055
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6055
6056
  width: "1em",
6056
6057
  height: "1em",
6057
6058
  viewBox: "0 0 48 48",
@@ -6062,15 +6063,15 @@ function CloseCircleFill(props) {
6062
6063
  verticalAlign: "-0.125em"
6063
6064
  }, props.style),
6064
6065
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6065
- }), /* @__PURE__ */ React$1.createElement("g", {
6066
+ }), /* @__PURE__ */ React$2.createElement("g", {
6066
6067
  id: "CloseCircleFill-CloseCircleFill",
6067
6068
  stroke: "none",
6068
6069
  strokeWidth: 1,
6069
6070
  fill: "none",
6070
6071
  fillRule: "evenodd"
6071
- }, /* @__PURE__ */ React$1.createElement("g", {
6072
+ }, /* @__PURE__ */ React$2.createElement("g", {
6072
6073
  id: "CloseCircleFill-编组"
6073
- }, /* @__PURE__ */ React$1.createElement("rect", {
6074
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6074
6075
  id: "CloseCircleFill-矩形",
6075
6076
  fill: "#FFFFFF",
6076
6077
  opacity: 0,
@@ -6078,7 +6079,7 @@ function CloseCircleFill(props) {
6078
6079
  y: 0,
6079
6080
  width: 48,
6080
6081
  height: 48
6081
- }), /* @__PURE__ */ React$1.createElement("path", {
6082
+ }), /* @__PURE__ */ React$2.createElement("path", {
6082
6083
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",
6083
6084
  id: "CloseCircleFill-形状结合",
6084
6085
  fill: "currentColor",
@@ -6086,7 +6087,7 @@ function CloseCircleFill(props) {
6086
6087
  }))));
6087
6088
  }
6088
6089
  function CloseOutline(props) {
6089
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6090
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6090
6091
  width: "1em",
6091
6092
  height: "1em",
6092
6093
  viewBox: "0 0 48 48",
@@ -6097,15 +6098,15 @@ function CloseOutline(props) {
6097
6098
  verticalAlign: "-0.125em"
6098
6099
  }, props.style),
6099
6100
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6100
- }), /* @__PURE__ */ React$1.createElement("g", {
6101
+ }), /* @__PURE__ */ React$2.createElement("g", {
6101
6102
  id: "CloseOutline-CloseOutline",
6102
6103
  stroke: "none",
6103
6104
  strokeWidth: 1,
6104
6105
  fill: "none",
6105
6106
  fillRule: "evenodd"
6106
- }, /* @__PURE__ */ React$1.createElement("g", {
6107
+ }, /* @__PURE__ */ React$2.createElement("g", {
6107
6108
  id: "CloseOutline-编组"
6108
- }, /* @__PURE__ */ React$1.createElement("rect", {
6109
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6109
6110
  id: "CloseOutline-矩形",
6110
6111
  fill: "#FFFFFF",
6111
6112
  opacity: 0,
@@ -6113,7 +6114,7 @@ function CloseOutline(props) {
6113
6114
  y: 0,
6114
6115
  width: 48,
6115
6116
  height: 48
6116
- }), /* @__PURE__ */ React$1.createElement("path", {
6117
+ }), /* @__PURE__ */ React$2.createElement("path", {
6117
6118
  d: "M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",
6118
6119
  id: "CloseOutline-路径",
6119
6120
  fill: "currentColor",
@@ -6121,7 +6122,7 @@ function CloseOutline(props) {
6121
6122
  }))));
6122
6123
  }
6123
6124
  function DownFill(props) {
6124
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6125
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6125
6126
  width: "1em",
6126
6127
  height: "1em",
6127
6128
  viewBox: "0 0 48 48",
@@ -6132,15 +6133,15 @@ function DownFill(props) {
6132
6133
  verticalAlign: "-0.125em"
6133
6134
  }, props.style),
6134
6135
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6135
- }), /* @__PURE__ */ React$1.createElement("g", {
6136
+ }), /* @__PURE__ */ React$2.createElement("g", {
6136
6137
  id: "DownFill-DownFill",
6137
6138
  stroke: "none",
6138
6139
  strokeWidth: 1,
6139
6140
  fill: "none",
6140
6141
  fillRule: "evenodd"
6141
- }, /* @__PURE__ */ React$1.createElement("g", {
6142
+ }, /* @__PURE__ */ React$2.createElement("g", {
6142
6143
  id: "DownFill-编组"
6143
- }, /* @__PURE__ */ React$1.createElement("rect", {
6144
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6144
6145
  id: "DownFill-矩形",
6145
6146
  fill: "#FFFFFF",
6146
6147
  opacity: 0,
@@ -6148,7 +6149,7 @@ function DownFill(props) {
6148
6149
  y: 0,
6149
6150
  width: 48,
6150
6151
  height: 48
6151
- }), /* @__PURE__ */ React$1.createElement("path", {
6152
+ }), /* @__PURE__ */ React$2.createElement("path", {
6152
6153
  d: "M40.6640052,13 L7.34128264,13 C6.57572302,13 5.83336217,13.2619065 5.23947349,13.7351762 C3.80578911,14.8838891 3.58308085,16.9699517 4.74301968,18.3897608 L21.404381,38.7725222 C21.5528531,38.9517214 21.7152446,39.1171361 21.9008348,39.2641713 C23.3345192,40.4128842 25.4363283,40.1923313 26.6009069,38.7725222 L43.2576284,18.3897608 C43.740163,17.8016198 44,17.0664436 44,16.3082931 C44.004629,14.4795422 42.505988,13 40.6640052,13 Z",
6153
6154
  id: "DownFill-路径",
6154
6155
  fill: "currentColor",
@@ -6156,7 +6157,7 @@ function DownFill(props) {
6156
6157
  }))));
6157
6158
  }
6158
6159
  function DownOutline(props) {
6159
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6160
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6160
6161
  width: "1em",
6161
6162
  height: "1em",
6162
6163
  viewBox: "0 0 48 48",
@@ -6167,13 +6168,13 @@ function DownOutline(props) {
6167
6168
  verticalAlign: "-0.125em"
6168
6169
  }, props.style),
6169
6170
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6170
- }), /* @__PURE__ */ React$1.createElement("g", {
6171
+ }), /* @__PURE__ */ React$2.createElement("g", {
6171
6172
  id: "DownOutline-DownOutline",
6172
6173
  stroke: "none",
6173
6174
  strokeWidth: 1,
6174
6175
  fill: "none",
6175
6176
  fillRule: "evenodd"
6176
- }, /* @__PURE__ */ React$1.createElement("g", null, /* @__PURE__ */ React$1.createElement("rect", {
6177
+ }, /* @__PURE__ */ React$2.createElement("g", null, /* @__PURE__ */ React$2.createElement("rect", {
6177
6178
  id: "DownOutline-矩形",
6178
6179
  fill: "#FFFFFF",
6179
6180
  opacity: 0,
@@ -6181,7 +6182,7 @@ function DownOutline(props) {
6181
6182
  y: 0,
6182
6183
  width: 48,
6183
6184
  height: 48
6184
- }), /* @__PURE__ */ React$1.createElement("path", {
6185
+ }), /* @__PURE__ */ React$2.createElement("path", {
6185
6186
  d: "M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",
6186
6187
  id: "DownOutline-down",
6187
6188
  fill: "currentColor",
@@ -6189,7 +6190,7 @@ function DownOutline(props) {
6189
6190
  }))));
6190
6191
  }
6191
6192
  function ExclamationCircleFill(props) {
6192
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6193
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6193
6194
  width: "1em",
6194
6195
  height: "1em",
6195
6196
  viewBox: "0 0 48 48",
@@ -6200,13 +6201,13 @@ function ExclamationCircleFill(props) {
6200
6201
  verticalAlign: "-0.125em"
6201
6202
  }, props.style),
6202
6203
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6203
- }), /* @__PURE__ */ React$1.createElement("g", {
6204
+ }), /* @__PURE__ */ React$2.createElement("g", {
6204
6205
  id: "ExclamationCircleFill-ExclamationCircleFill",
6205
6206
  stroke: "none",
6206
6207
  strokeWidth: 1,
6207
6208
  fill: "none",
6208
6209
  fillRule: "evenodd"
6209
- }, /* @__PURE__ */ React$1.createElement("g", null, /* @__PURE__ */ React$1.createElement("rect", {
6210
+ }, /* @__PURE__ */ React$2.createElement("g", null, /* @__PURE__ */ React$2.createElement("rect", {
6210
6211
  id: "ExclamationCircleFill-矩形",
6211
6212
  fill: "#D76060",
6212
6213
  opacity: 0,
@@ -6214,7 +6215,7 @@ function ExclamationCircleFill(props) {
6214
6215
  y: 0,
6215
6216
  width: 48,
6216
6217
  height: 48
6217
- }), /* @__PURE__ */ React$1.createElement("path", {
6218
+ }), /* @__PURE__ */ React$2.createElement("path", {
6218
6219
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.1,31 L22.9,31 C22.6790861,31 22.5,31.1790861 22.5,31.4 L22.5,31.4 L22.5,33.6 C22.5,33.8209139 22.6790861,34 22.9,34 L22.9,34 L25.1,34 C25.3209139,34 25.5,33.8209139 25.5,33.6 L25.5,33.6 L25.5,31.4 C25.5,31.1790861 25.3209139,31 25.1,31 L25.1,31 Z M25.1,14 L22.9,14 C22.6790861,14 22.5,14.1790861 22.5,14.4 L22.5,14.4 L22.5,27.6 C22.5,27.8209139 22.6790861,28 22.9,28 L22.9,28 L25.1,28 C25.3209139,28 25.5,27.8209139 25.5,27.6 L25.5,27.6 L25.5,14.4 C25.5,14.1790861 25.3209139,14 25.1,14 L25.1,14 Z",
6219
6220
  id: "ExclamationCircleFill-形状结合",
6220
6221
  fill: "currentColor",
@@ -6222,7 +6223,7 @@ function ExclamationCircleFill(props) {
6222
6223
  }))));
6223
6224
  }
6224
6225
  function InformationCircleFill(props) {
6225
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6226
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6226
6227
  width: "1em",
6227
6228
  height: "1em",
6228
6229
  viewBox: "0 0 48 48",
@@ -6233,15 +6234,15 @@ function InformationCircleFill(props) {
6233
6234
  verticalAlign: "-0.125em"
6234
6235
  }, props.style),
6235
6236
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6236
- }), /* @__PURE__ */ React$1.createElement("g", {
6237
+ }), /* @__PURE__ */ React$2.createElement("g", {
6237
6238
  id: "InformationCircleFill-InformationCircleFill",
6238
6239
  stroke: "none",
6239
6240
  strokeWidth: 1,
6240
6241
  fill: "none",
6241
6242
  fillRule: "evenodd"
6242
- }, /* @__PURE__ */ React$1.createElement("g", {
6243
+ }, /* @__PURE__ */ React$2.createElement("g", {
6243
6244
  id: "InformationCircleFill-编组"
6244
- }, /* @__PURE__ */ React$1.createElement("rect", {
6245
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6245
6246
  id: "InformationCircleFill-矩形",
6246
6247
  fill: "#FFFFFF",
6247
6248
  opacity: 0,
@@ -6249,7 +6250,7 @@ function InformationCircleFill(props) {
6249
6250
  y: 0,
6250
6251
  width: 48,
6251
6252
  height: 48
6252
- }), /* @__PURE__ */ React$1.createElement("path", {
6253
+ }), /* @__PURE__ */ React$2.createElement("path", {
6253
6254
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.6,20 L21.4,20 C21.1790861,20 21,20.1790861 21,20.4 L21,20.4 L21,22.6 C21,22.8209139 21.1790861,23 21.4,23 L21.4,23 L22.6,23 C22.8209139,23 23,23.1790861 23,23.4 L23,23.4 L23,34.6 C23,34.8209139 23.1790861,35 23.4,35 L23.4,35 L25.6,35 C25.8209139,35 26,34.8209139 26,34.6 L26,34.6 L26,20.4 C26,20.1790861 25.8209139,20 25.6,20 L25.6,20 Z M25.6,14 L23.4,14 C23.1790861,14 23,14.1790861 23,14.4 L23,14.4 L23,16.6 C23,16.8209139 23.1790861,17 23.4,17 L23.4,17 L25.6,17 C25.8209139,17 26,16.8209139 26,16.6 L26,16.6 L26,14.4 C26,14.1790861 25.8209139,14 25.6,14 L25.6,14 Z",
6254
6255
  id: "InformationCircleFill-形状结合",
6255
6256
  fill: "currentColor",
@@ -6257,7 +6258,7 @@ function InformationCircleFill(props) {
6257
6258
  }))));
6258
6259
  }
6259
6260
  function LeftOutline(props) {
6260
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6261
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6261
6262
  width: "1em",
6262
6263
  height: "1em",
6263
6264
  viewBox: "0 0 48 48",
@@ -6268,15 +6269,15 @@ function LeftOutline(props) {
6268
6269
  verticalAlign: "-0.125em"
6269
6270
  }, props.style),
6270
6271
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6271
- }), /* @__PURE__ */ React$1.createElement("g", {
6272
+ }), /* @__PURE__ */ React$2.createElement("g", {
6272
6273
  id: "LeftOutline-LeftOutline",
6273
6274
  stroke: "none",
6274
6275
  strokeWidth: 1,
6275
6276
  fill: "none",
6276
6277
  fillRule: "evenodd"
6277
- }, /* @__PURE__ */ React$1.createElement("g", {
6278
+ }, /* @__PURE__ */ React$2.createElement("g", {
6278
6279
  id: "LeftOutline-编组"
6279
- }, /* @__PURE__ */ React$1.createElement("rect", {
6280
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6280
6281
  id: "LeftOutline-矩形",
6281
6282
  fill: "#FFFFFF",
6282
6283
  opacity: 0,
@@ -6284,7 +6285,7 @@ function LeftOutline(props) {
6284
6285
  y: 0,
6285
6286
  width: 48,
6286
6287
  height: 48
6287
- }), /* @__PURE__ */ React$1.createElement("path", {
6288
+ }), /* @__PURE__ */ React$2.createElement("path", {
6288
6289
  d: "M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",
6289
6290
  id: "LeftOutline-路径",
6290
6291
  fill: "currentColor",
@@ -6292,7 +6293,7 @@ function LeftOutline(props) {
6292
6293
  }))));
6293
6294
  }
6294
6295
  function MinusOutline(props) {
6295
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6296
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6296
6297
  width: "1em",
6297
6298
  height: "1em",
6298
6299
  viewBox: "0 0 48 48",
@@ -6303,15 +6304,15 @@ function MinusOutline(props) {
6303
6304
  verticalAlign: "-0.125em"
6304
6305
  }, props.style),
6305
6306
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6306
- }), /* @__PURE__ */ React$1.createElement("g", {
6307
+ }), /* @__PURE__ */ React$2.createElement("g", {
6307
6308
  id: "MinusOutline-MinusOutline",
6308
6309
  stroke: "none",
6309
6310
  strokeWidth: 1,
6310
6311
  fill: "none",
6311
6312
  fillRule: "evenodd"
6312
- }, /* @__PURE__ */ React$1.createElement("g", {
6313
+ }, /* @__PURE__ */ React$2.createElement("g", {
6313
6314
  id: "MinusOutline-add"
6314
- }, /* @__PURE__ */ React$1.createElement("rect", {
6315
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6315
6316
  id: "MinusOutline-矩形",
6316
6317
  fill: "#FFFFFF",
6317
6318
  opacity: 0,
@@ -6319,7 +6320,7 @@ function MinusOutline(props) {
6319
6320
  y: 0,
6320
6321
  width: 48,
6321
6322
  height: 48
6322
- }), /* @__PURE__ */ React$1.createElement("path", {
6323
+ }), /* @__PURE__ */ React$2.createElement("path", {
6323
6324
  d: "M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",
6324
6325
  id: "MinusOutline-路径",
6325
6326
  fill: "currentColor",
@@ -6327,7 +6328,7 @@ function MinusOutline(props) {
6327
6328
  }))));
6328
6329
  }
6329
6330
  function QuestionCircleOutline(props) {
6330
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6331
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6331
6332
  width: "1em",
6332
6333
  height: "1em",
6333
6334
  viewBox: "0 0 48 48",
@@ -6338,15 +6339,15 @@ function QuestionCircleOutline(props) {
6338
6339
  verticalAlign: "-0.125em"
6339
6340
  }, props.style),
6340
6341
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6341
- }), /* @__PURE__ */ React$1.createElement("g", {
6342
+ }), /* @__PURE__ */ React$2.createElement("g", {
6342
6343
  id: "QuestionCircleOutline-QuestionCircleOutline",
6343
6344
  stroke: "none",
6344
6345
  strokeWidth: 1,
6345
6346
  fill: "none",
6346
6347
  fillRule: "evenodd"
6347
- }, /* @__PURE__ */ React$1.createElement("g", {
6348
+ }, /* @__PURE__ */ React$2.createElement("g", {
6348
6349
  id: "QuestionCircleOutline-编组"
6349
- }, /* @__PURE__ */ React$1.createElement("rect", {
6350
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6350
6351
  id: "QuestionCircleOutline-矩形",
6351
6352
  fill: "#FFFFFF",
6352
6353
  opacity: 0,
@@ -6354,7 +6355,7 @@ function QuestionCircleOutline(props) {
6354
6355
  y: 0,
6355
6356
  width: 48,
6356
6357
  height: 48
6357
- }), /* @__PURE__ */ React$1.createElement("path", {
6358
+ }), /* @__PURE__ */ React$2.createElement("path", {
6358
6359
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24,5 C13.5065898,5 5,13.5065898 5,24 C5,34.4934102 13.5065898,43 24,43 C34.4934102,43 43,34.4934102 43,24 C43,13.5065898 34.4934102,5 24,5 Z M26,32.4 L26,34.6 C26,34.8209139 25.8209139,35 25.6,35 L23.4,35 C23.1790861,35 23,34.8209139 23,34.6 L23,32.4 C23,32.1790861 23.1790861,32 23.4,32 L25.6,32 C25.8209139,32 26,32.1790861 26,32.4 Z M24,12 C27.8659932,12 31,15.1340068 31,19 C31,22.1706393 28.8919961,24.8489278 26.0010432,25.7098107 L26.0001268,28.6 C25.9999299,28.8208643 25.8208644,28.9998731 25.6,29 L23.4,29 C23.1790861,29 23,28.8209139 23,28.6 L23,23.4 C23,23.1790861 23.1790861,23 23.4,23 L24,23 L24,23 C26.209139,23 28,21.209139 28,19 C28,16.790861 26.209139,15 24,15 C21.790861,15 20,16.790861 20,19 L17,19 C17,15.1340068 20.1340068,12 24,12 Z",
6359
6360
  id: "QuestionCircleOutline-形状",
6360
6361
  fill: "currentColor",
@@ -6362,7 +6363,7 @@ function QuestionCircleOutline(props) {
6362
6363
  }))));
6363
6364
  }
6364
6365
  function RightOutline(props) {
6365
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6366
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6366
6367
  width: "1em",
6367
6368
  height: "1em",
6368
6369
  viewBox: "0 0 48 48",
@@ -6373,15 +6374,15 @@ function RightOutline(props) {
6373
6374
  verticalAlign: "-0.125em"
6374
6375
  }, props.style),
6375
6376
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6376
- }), /* @__PURE__ */ React$1.createElement("g", {
6377
+ }), /* @__PURE__ */ React$2.createElement("g", {
6377
6378
  id: "RightOutline-RightOutline",
6378
6379
  stroke: "none",
6379
6380
  strokeWidth: 1,
6380
6381
  fill: "none",
6381
6382
  fillRule: "evenodd"
6382
- }, /* @__PURE__ */ React$1.createElement("g", {
6383
+ }, /* @__PURE__ */ React$2.createElement("g", {
6383
6384
  id: "RightOutline-RightOutlined"
6384
- }, /* @__PURE__ */ React$1.createElement("rect", {
6385
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6385
6386
  id: "RightOutline-矩形",
6386
6387
  fill: "#FFFFFF",
6387
6388
  opacity: 0,
@@ -6389,7 +6390,7 @@ function RightOutline(props) {
6389
6390
  y: 0,
6390
6391
  width: 48,
6391
6392
  height: 48
6392
- }), /* @__PURE__ */ React$1.createElement("path", {
6393
+ }), /* @__PURE__ */ React$2.createElement("path", {
6393
6394
  d: "M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",
6394
6395
  id: "RightOutline-right",
6395
6396
  fill: "currentColor",
@@ -6397,7 +6398,7 @@ function RightOutline(props) {
6397
6398
  }))));
6398
6399
  }
6399
6400
  function SearchOutline(props) {
6400
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6401
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6401
6402
  width: "1em",
6402
6403
  height: "1em",
6403
6404
  viewBox: "0 0 48 48",
@@ -6408,15 +6409,15 @@ function SearchOutline(props) {
6408
6409
  verticalAlign: "-0.125em"
6409
6410
  }, props.style),
6410
6411
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6411
- }), /* @__PURE__ */ React$1.createElement("g", {
6412
+ }), /* @__PURE__ */ React$2.createElement("g", {
6412
6413
  id: "SearchOutline-SearchOutline",
6413
6414
  stroke: "none",
6414
6415
  strokeWidth: 1,
6415
6416
  fill: "none",
6416
6417
  fillRule: "evenodd"
6417
- }, /* @__PURE__ */ React$1.createElement("g", {
6418
+ }, /* @__PURE__ */ React$2.createElement("g", {
6418
6419
  id: "SearchOutline-编组"
6419
- }, /* @__PURE__ */ React$1.createElement("rect", {
6420
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6420
6421
  id: "SearchOutline-矩形",
6421
6422
  fill: "#FFFFFF",
6422
6423
  opacity: 0,
@@ -6424,7 +6425,7 @@ function SearchOutline(props) {
6424
6425
  y: 0,
6425
6426
  width: 48,
6426
6427
  height: 48
6427
- }), /* @__PURE__ */ React$1.createElement("path", {
6428
+ }), /* @__PURE__ */ React$2.createElement("path", {
6428
6429
  d: "M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",
6429
6430
  id: "SearchOutline-形状",
6430
6431
  fill: "currentColor",
@@ -6432,7 +6433,7 @@ function SearchOutline(props) {
6432
6433
  }))));
6433
6434
  }
6434
6435
  function SoundOutline(props) {
6435
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6436
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6436
6437
  width: "1em",
6437
6438
  height: "1em",
6438
6439
  viewBox: "0 0 48 48",
@@ -6443,15 +6444,15 @@ function SoundOutline(props) {
6443
6444
  verticalAlign: "-0.125em"
6444
6445
  }, props.style),
6445
6446
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6446
- }), /* @__PURE__ */ React$1.createElement("g", {
6447
+ }), /* @__PURE__ */ React$2.createElement("g", {
6447
6448
  id: "SoundOutline-SoundOutline",
6448
6449
  stroke: "none",
6449
6450
  strokeWidth: 1,
6450
6451
  fill: "none",
6451
6452
  fillRule: "evenodd"
6452
- }, /* @__PURE__ */ React$1.createElement("g", {
6453
+ }, /* @__PURE__ */ React$2.createElement("g", {
6453
6454
  id: "SoundOutline-编组"
6454
- }, /* @__PURE__ */ React$1.createElement("rect", {
6455
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6455
6456
  id: "SoundOutline-矩形",
6456
6457
  fill: "#FFFFFF",
6457
6458
  opacity: 0,
@@ -6459,7 +6460,7 @@ function SoundOutline(props) {
6459
6460
  y: 0,
6460
6461
  width: 48,
6461
6462
  height: 48
6462
- }), /* @__PURE__ */ React$1.createElement("path", {
6463
+ }), /* @__PURE__ */ React$2.createElement("path", {
6463
6464
  d: "M28.267333,7.42364522 C28.6217345,7.94869119 28.8108515,8.56559899 28.8108515,9.19662571 L28.8108515,38.803714 C28.8108515,40.568974 27.3619563,42 25.5746535,42 C24.9357472,42 24.311136,41.8132153 23.7795338,41.4631847 L13.5176584,34.7058449 L8.3149307,34.706256 C5.93186028,34.706256 4,32.7982213 4,30.4445413 L4,17.6593971 C4,15.3057171 5.93186028,13.3976824 8.3149307,13.3976824 L13.3601634,13.3972713 L23.7795338,6.53715498 C25.2666597,5.55796489 27.2759158,5.95486009 28.267333,7.42364522 Z M40.4649231,8.99868666 C40.5511218,9.17742383 40.619996,9.32223121 40.6715457,9.43310881 C42.8085201,14.0295034 44,19.1437027 44,24.532755 C44,29.7837404 42.8687892,34.7737758 40.8339269,39.2781083 C40.7469512,39.4706362 40.6237802,39.7330988 40.4644141,40.0654961 C40.3689469,40.2647533 40.1300031,40.3488277 39.9307715,40.2533072 C39.9306414,40.2532448 39.9305113,40.2531824 39.9303812,40.2531198 C39.6706542,40.1282492 39.4751102,40.0342363 39.3437492,39.9710811 C38.9410401,39.777468 38.6130663,39.619786 38.3598279,39.498035 C38.2070716,39.4245934 38.0007263,39.3253875 37.740792,39.2004172 C37.5419104,39.104853 37.4580092,38.8662856 37.5532468,38.6672473 C37.7034937,38.3532445 37.8197479,38.104744 37.9020095,37.9217457 C39.7416376,33.8293278 40.763802,29.2989389 40.763802,24.532755 C40.763802,19.6931433 39.7099001,15.0966478 37.8164042,10.9549334 C37.7526807,10.8155487 37.6652043,10.6300308 37.5539748,10.3983796 C37.4585265,10.1993116 37.5423279,9.96050973 37.7412949,9.8648511 C37.9298799,9.7741839 38.0818373,9.70112639 38.1971671,9.64567856 C38.5403397,9.48068928 39.0100918,9.2548436 39.6064234,8.9681415 C39.6867211,8.9295363 39.7949893,8.87748349 39.9312282,8.81198307 C40.1301627,8.71623553 40.3690201,8.79982709 40.4649231,8.99868666 Z M24.954689,9.60481048 L14.4401642,16.5275765 C14.3748695,16.5705665 14.2984086,16.5934809 14.2202323,16.5934873 L8.3149307,16.5939685 L8.3149307,16.5939685 C7.76171792,16.5939685 7.30576856,17.0052668 7.24345545,17.5351457 L7.23619803,17.6593971 L7.23619803,30.4445413 C7.23619803,30.9909313 7.65263219,31.4412574 8.18892037,31.502802 L8.31467178,31.50997 L14.3775506,31.5094909 C14.4557573,31.5094847 14.5322502,31.5324045 14.5975676,31.5754153 L24.9546682,38.39546 C25.139173,38.5169545 25.3872345,38.4658746 25.508729,38.2813698 C25.5517339,38.2160614 25.5746535,38.1395804 25.5746535,38.0613845 L25.5746535,9.93889975 C25.5746535,9.71798585 25.3955674,9.53889975 25.1746535,9.53889975 C25.0964661,9.53889975 25.019993,9.56181436 24.954689,9.60481048 Z M34.6436115,11.798648 C34.7547335,12.030794 34.8419854,12.2167889 34.9053671,12.3566328 C36.590502,16.0746763 37.5276039,20.1956294 37.5276039,24.532755 C37.5276039,28.7641394 36.635639,32.7897635 35.0272837,36.4362183 C34.9380427,36.6385449 34.8101552,36.9146706 34.6436211,37.2645952 C34.5486602,37.4640326 34.3100191,37.5487723 34.1105639,37.4538487 C34.1101091,37.4536323 34.1096547,37.453415 34.1092007,37.4531968 C33.9190573,37.3618222 33.7721424,37.2912213 33.6684561,37.2413942 C33.186467,37.0097713 32.80073,36.824403 32.5112451,36.6852892 C32.3647538,36.6148919 32.1675294,36.5201144 31.9195719,36.4009569 C31.7210538,36.3055358 31.6370188,36.067582 31.7316042,35.8686644 C31.8690322,35.5796464 31.9753727,35.3500122 32.0506255,35.1797617 C33.4919206,31.9190071 34.2914059,28.3180945 34.2914059,24.532755 C34.2914059,20.6930477 33.46879,17.0431031 31.9881259,13.7454591 C31.9261905,13.6075203 31.840749,13.424362 31.7318014,13.1959842 C31.636885,12.9969991 31.7208632,12.7587263 31.919573,12.6632348 C32.0929373,12.5799233 32.2332164,12.5125112 32.3404102,12.4609985 C32.6888449,12.2935556 33.1655706,12.0644616 33.7705875,11.7737163 C33.8540198,11.7336223 33.9670458,11.6793068 34.1096655,11.6107699 C34.3087736,11.5152168 34.5476881,11.5990382 34.6433466,11.7980956 C34.643435,11.7982797 34.6435233,11.7984638 34.6436115,11.798648 Z",
6464
6465
  id: "SoundOutline-形状",
6465
6466
  fill: "currentColor",
@@ -6467,7 +6468,7 @@ function SoundOutline(props) {
6467
6468
  }))));
6468
6469
  }
6469
6470
  function TextDeletionOutline(props) {
6470
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
6471
+ return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
6471
6472
  width: "1em",
6472
6473
  height: "1em",
6473
6474
  viewBox: "0 0 48 48",
@@ -6478,15 +6479,15 @@ function TextDeletionOutline(props) {
6478
6479
  verticalAlign: "-0.125em"
6479
6480
  }, props.style),
6480
6481
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
6481
- }), /* @__PURE__ */ React$1.createElement("g", {
6482
+ }), /* @__PURE__ */ React$2.createElement("g", {
6482
6483
  id: "TextDeletionOutline-TextDeletionOutline",
6483
6484
  stroke: "none",
6484
6485
  strokeWidth: 1,
6485
6486
  fill: "none",
6486
6487
  fillRule: "evenodd"
6487
- }, /* @__PURE__ */ React$1.createElement("g", {
6488
+ }, /* @__PURE__ */ React$2.createElement("g", {
6488
6489
  id: "TextDeletionOutline-编组"
6489
- }, /* @__PURE__ */ React$1.createElement("rect", {
6490
+ }, /* @__PURE__ */ React$2.createElement("rect", {
6490
6491
  id: "TextDeletionOutline-矩形",
6491
6492
  fill: "#FFFFFF",
6492
6493
  opacity: 0,
@@ -6494,7 +6495,7 @@ function TextDeletionOutline(props) {
6494
6495
  y: 0,
6495
6496
  width: 48,
6496
6497
  height: 48
6497
- }), /* @__PURE__ */ React$1.createElement("path", {
6498
+ }), /* @__PURE__ */ React$2.createElement("path", {
6498
6499
  d: "M38.5492302,6 C41.5596051,6 44,8.46240906 44,11.499981 L44,35.5 C44,38.5375742 41.5596051,41.000013 38.54923,41.000013 L17.3058462,41.000013 C14.6665152,41.000013 12.2347138,39.555982 10.9529738,37.2279238 L4.91451284,27.0612608 C3.6951623,24.8464932 3.6951623,22.1535354 4.91451335,19.9387516 L10.9529743,9.77208856 C12.234697,7.44403098 14.6665154,6 17.3058464,6 L38.5492302,6 Z M38.5492273,8.74994707 L17.3058465,8.74994707 C15.7329163,8.74994707 14.2719651,9.57120176 13.4439762,10.9206455 L13.3349608,11.1076457 L7.29739408,21.2743087 C6.57566975,22.5850072 6.53495505,24.1690434 7.18837846,25.5157286 L7.29739386,25.7265623 L13.3349605,35.8932253 C14.0992225,37.2803788 15.5202936,38.1698544 17.0914483,38.2444783 L17.3058454,38.2499783 L38.5492292,38.2499783 C39.9923716,38.2499783 41.1854088,37.114979 41.2700704,35.6613101 L41.2746127,35.4999769 L41.2746127,11.4999513 C41.2746127,10.0436198 40.1496291,8.83987037 38.7089651,8.75452144 L38.5492273,8.74994707 Z M22.3492842,17 C22.4547968,17 22.556036,17.0416892 22.6309531,17.1159883 L26.757,21.208 L30.8830469,17.1159883 C30.957964,17.0416892 31.0592032,17 31.1647158,17 L34.2719196,17 C34.4928335,17 34.6719196,17.1790861 34.6719196,17.4 C34.6719196,17.5067321 34.6292639,17.6090378 34.5534423,17.6841566 L28.879,23.306 L34.8245071,29.1968543 C34.9814364,29.3523411 34.9826059,29.6056044 34.8271191,29.7625337 C34.7520011,29.8383486 34.6497001,29.881 34.5429734,29.881 L31.4366959,29.881 C31.331195,29.881 31.2299662,29.8393201 31.1550512,29.7650357 L26.758,25.405 L22.3599432,29.7650669 C22.2850309,29.8393322 22.1838155,29.881 22.07833,29.881 L18.9720266,29.881 C18.7511127,29.881 18.5720266,29.7019139 18.5720266,29.481 C18.5720266,29.3742733 18.614678,29.2719723 18.6904929,29.1968543 L24.636,23.306 L18.9624269,17.6841345 C18.8055037,17.5286415 18.8043444,17.2753782 18.9598374,17.118455 C19.0349545,17.042647 19.1372506,17 19.2439719,17 L22.3492842,17 Z",
6499
6500
  id: "TextDeletionOutline-形状结合",
6500
6501
  fill: "currentColor",
@@ -6602,7 +6603,7 @@ function ownKeys$1(e2, r) {
6602
6603
  }
6603
6604
  return t;
6604
6605
  }
6605
- function _objectSpread2$1(e2) {
6606
+ function _objectSpread2$2(e2) {
6606
6607
  for (var r = 1; r < arguments.length; r++) {
6607
6608
  var t = null != arguments[r] ? arguments[r] : {};
6608
6609
  r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
@@ -6982,7 +6983,7 @@ class Engine {
6982
6983
  this.clean();
6983
6984
  if ((state._blocked || !state.intentional) && !state._force && !config2.triggerAllEvents)
6984
6985
  return;
6985
- const memo2 = this.handler(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, shared), state), {}, {
6986
+ const memo2 = this.handler(_objectSpread2$2(_objectSpread2$2(_objectSpread2$2({}, shared), state), {}, {
6986
6987
  [this.aliasKey]: state.values
6987
6988
  }));
6988
6989
  if (memo2 !== void 0)
@@ -7052,7 +7053,7 @@ const commonConfigResolver = {
7052
7053
  return value;
7053
7054
  },
7054
7055
  eventOptions(value, _k, config2) {
7055
- return _objectSpread2$1(_objectSpread2$1({}, config2.shared.eventOptions), value);
7056
+ return _objectSpread2$2(_objectSpread2$2({}, config2.shared.eventOptions), value);
7056
7057
  },
7057
7058
  preventDefault(value = false) {
7058
7059
  return value;
@@ -7117,7 +7118,7 @@ const commonConfigResolver = {
7117
7118
  });
7118
7119
  }
7119
7120
  const DEFAULT_AXIS_THRESHOLD = 0;
7120
- const coordinatesConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
7121
+ const coordinatesConfigResolver = _objectSpread2$2(_objectSpread2$2({}, commonConfigResolver), {}, {
7121
7122
  axis(_v, _k, {
7122
7123
  axis
7123
7124
  }) {
@@ -7471,7 +7472,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
7471
7472
  touch: 0,
7472
7473
  pen: 8
7473
7474
  };
7474
- const dragConfigResolver = _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
7475
+ const dragConfigResolver = _objectSpread2$2(_objectSpread2$2({}, coordinatesConfigResolver), {}, {
7475
7476
  device(_v, _k, {
7476
7477
  pointer: {
7477
7478
  touch = false,
@@ -7543,7 +7544,7 @@ const dragConfigResolver = _objectSpread2$1(_objectSpread2$1({}, coordinatesConf
7543
7544
  axisThreshold(value) {
7544
7545
  if (!value)
7545
7546
  return DEFAULT_DRAG_AXIS_THRESHOLD;
7546
- return _objectSpread2$1(_objectSpread2$1({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
7547
+ return _objectSpread2$2(_objectSpread2$2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
7547
7548
  },
7548
7549
  keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
7549
7550
  return value;
@@ -7864,7 +7865,7 @@ This message will only appear in development mode.`);
7864
7865
  }
7865
7866
  }
7866
7867
  }
7867
- const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
7868
+ const pinchConfigResolver = _objectSpread2$2(_objectSpread2$2({}, commonConfigResolver), {}, {
7868
7869
  device(_v, _k, {
7869
7870
  shared,
7870
7871
  pointer: {
@@ -7919,7 +7920,7 @@ const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigRe
7919
7920
  return value;
7920
7921
  }
7921
7922
  });
7922
- _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
7923
+ _objectSpread2$2(_objectSpread2$2({}, coordinatesConfigResolver), {}, {
7923
7924
  mouseOnly: (value = true) => value
7924
7925
  });
7925
7926
  class WheelEngine extends CoordinatesEngine {
@@ -7953,7 +7954,7 @@ class WheelEngine extends CoordinatesEngine {
7953
7954
  }
7954
7955
  }
7955
7956
  const wheelConfigResolver = coordinatesConfigResolver;
7956
- _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
7957
+ _objectSpread2$2(_objectSpread2$2({}, coordinatesConfigResolver), {}, {
7957
7958
  mouseOnly: (value = true) => value
7958
7959
  });
7959
7960
  const EngineMap = /* @__PURE__ */ new Map();
@@ -8075,14 +8076,14 @@ function parse(newConfig, gestureKey, _config = {}) {
8075
8076
  }, sharedConfigResolver);
8076
8077
  if (gestureKey) {
8077
8078
  const resolver = ConfigResolverMap.get(gestureKey);
8078
- _config[gestureKey] = resolveWith(_objectSpread2$1({
8079
+ _config[gestureKey] = resolveWith(_objectSpread2$2({
8079
8080
  shared: _config.shared
8080
8081
  }, rest), resolver);
8081
8082
  } else {
8082
8083
  for (const key in rest) {
8083
8084
  const resolver = ConfigResolverMap.get(key);
8084
8085
  if (resolver) {
8085
- _config[key] = resolveWith(_objectSpread2$1({
8086
+ _config[key] = resolveWith(_objectSpread2$2({
8086
8087
  shared: _config.shared
8087
8088
  }, rest[key]), resolver);
8088
8089
  } else {
@@ -8107,7 +8108,7 @@ class EventStore {
8107
8108
  const listeners = this._listeners;
8108
8109
  const type4 = toDomEventType(device, action);
8109
8110
  const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {};
8110
- const eventOptions = _objectSpread2$1(_objectSpread2$1({}, _options), options);
8111
+ const eventOptions = _objectSpread2$2(_objectSpread2$2({}, _options), options);
8111
8112
  element.addEventListener(type4, handler, eventOptions);
8112
8113
  const remove = () => {
8113
8114
  element.removeEventListener(type4, handler, eventOptions);
@@ -8210,7 +8211,7 @@ class Controller2 {
8210
8211
  }
8211
8212
  const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target);
8212
8213
  for (const eventKey in this.nativeHandlers) {
8213
- nativeBindFunction(eventKey, "", (event) => this.nativeHandlers[eventKey](_objectSpread2$1(_objectSpread2$1({}, this.state.shared), {}, {
8214
+ nativeBindFunction(eventKey, "", (event) => this.nativeHandlers[eventKey](_objectSpread2$2(_objectSpread2$2({}, this.state.shared), {}, {
8214
8215
  event,
8215
8216
  args
8216
8217
  })), void 0, true);
@@ -8368,8 +8369,8 @@ const Popup = (p) => {
8368
8369
  const props = mergeProps(defaultProps$13, componentConfig, p);
8369
8370
  const bodyCls = classNames(`${classPrefix$1p}-body`, props.bodyClassName, `${classPrefix$1p}-body-position-${props.position}`);
8370
8371
  const [active, setActive] = useState(props.visible);
8371
- const ref = useRef(null);
8372
- useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
8372
+ const ref2 = useRef(null);
8373
+ useLockScroll(ref2, props.disableBodyScroll && active ? "strict" : false);
8373
8374
  useIsomorphicLayoutEffect$3(() => {
8374
8375
  if (props.visible) {
8375
8376
  setActive(true);
@@ -8454,7 +8455,7 @@ const Popup = (p) => {
8454
8455
  return "none";
8455
8456
  })
8456
8457
  }),
8457
- ref
8458
+ ref: ref2
8458
8459
  }, props.showCloseButton && React__default.createElement("a", {
8459
8460
  className: classNames(`${classPrefix$1p}-close-icon`, "adm-plain-anchor"),
8460
8461
  onClick: () => {
@@ -8476,78 +8477,691 @@ const SafeArea = (props) => {
8476
8477
  className: classNames(classPrefix$1o, `${classPrefix$1o}-position-${props.position}`)
8477
8478
  }));
8478
8479
  };
8479
- const fullClone = Object.assign({}, ReactDOM);
8480
- const {
8481
- version,
8482
- render: reactRender,
8483
- unmountComponentAtNode
8484
- } = fullClone;
8485
- let createRoot;
8480
+ var warning$3 = {};
8481
+ Object.defineProperty(warning$3, "__esModule", {
8482
+ value: true
8483
+ });
8484
+ warning$3.call = call$1;
8485
+ var default_1$1 = warning$3.default = void 0;
8486
+ warning$3.note = note$1;
8487
+ warning$3.noteOnce = noteOnce$1;
8488
+ warning$3.preMessage = void 0;
8489
+ warning$3.resetWarned = resetWarned$1;
8490
+ warning$3.warning = warning$2;
8491
+ warning$3.warningOnce = warningOnce$1;
8492
+ var warned$1 = {};
8493
+ var preWarningFns$1 = [];
8494
+ var preMessage$1 = warning$3.preMessage = function preMessage2(fn) {
8495
+ preWarningFns$1.push(fn);
8496
+ };
8497
+ function warning$2(valid, message) {
8498
+ if (!valid && console !== void 0) {
8499
+ var finalMessage = preWarningFns$1.reduce(function(msg, preMessageFn) {
8500
+ return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
8501
+ }, message);
8502
+ if (finalMessage) {
8503
+ console.error("Warning: ".concat(finalMessage));
8504
+ }
8505
+ }
8506
+ }
8507
+ function note$1(valid, message) {
8508
+ if (!valid && console !== void 0) {
8509
+ var finalMessage = preWarningFns$1.reduce(function(msg, preMessageFn) {
8510
+ return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "note");
8511
+ }, message);
8512
+ if (finalMessage) {
8513
+ console.warn("Note: ".concat(finalMessage));
8514
+ }
8515
+ }
8516
+ }
8517
+ function resetWarned$1() {
8518
+ warned$1 = {};
8519
+ }
8520
+ function call$1(method4, valid, message) {
8521
+ if (!valid && !warned$1[message]) {
8522
+ method4(false, message);
8523
+ warned$1[message] = true;
8524
+ }
8525
+ }
8526
+ function warningOnce$1(valid, message) {
8527
+ call$1(warning$2, valid, message);
8528
+ }
8529
+ function noteOnce$1(valid, message) {
8530
+ call$1(note$1, valid, message);
8531
+ }
8532
+ warningOnce$1.preMessage = preMessage$1;
8533
+ warningOnce$1.resetWarned = resetWarned$1;
8534
+ warningOnce$1.noteOnce = noteOnce$1;
8535
+ default_1$1 = warning$3.default = warningOnce$1;
8536
+ var render$1 = {};
8537
+ var interopRequireWildcard = { exports: {} };
8538
+ var _typeof$1 = { exports: {} };
8539
+ (function(module) {
8540
+ function _typeof3(o) {
8541
+ "@babel/helpers - typeof";
8542
+ return module.exports = _typeof3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
8543
+ return typeof o2;
8544
+ } : function(o2) {
8545
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
8546
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof3(o);
8547
+ }
8548
+ module.exports = _typeof3, module.exports.__esModule = true, module.exports["default"] = module.exports;
8549
+ })(_typeof$1);
8550
+ var _typeofExports = _typeof$1.exports;
8551
+ (function(module) {
8552
+ var _typeof3 = _typeofExports["default"];
8553
+ function _getRequireWildcardCache(nodeInterop) {
8554
+ if (typeof WeakMap !== "function")
8555
+ return null;
8556
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
8557
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
8558
+ return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
8559
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
8560
+ })(nodeInterop);
8561
+ }
8562
+ function _interopRequireWildcard2(obj, nodeInterop) {
8563
+ if (!nodeInterop && obj && obj.__esModule) {
8564
+ return obj;
8565
+ }
8566
+ if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") {
8567
+ return {
8568
+ "default": obj
8569
+ };
8570
+ }
8571
+ var cache = _getRequireWildcardCache(nodeInterop);
8572
+ if (cache && cache.has(obj)) {
8573
+ return cache.get(obj);
8574
+ }
8575
+ var newObj = {};
8576
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
8577
+ for (var key in obj) {
8578
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
8579
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
8580
+ if (desc && (desc.get || desc.set)) {
8581
+ Object.defineProperty(newObj, key, desc);
8582
+ } else {
8583
+ newObj[key] = obj[key];
8584
+ }
8585
+ }
8586
+ }
8587
+ newObj["default"] = obj;
8588
+ if (cache) {
8589
+ cache.set(obj, newObj);
8590
+ }
8591
+ return newObj;
8592
+ }
8593
+ module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
8594
+ })(interopRequireWildcard);
8595
+ var interopRequireWildcardExports = interopRequireWildcard.exports;
8596
+ var interopRequireDefault = { exports: {} };
8597
+ (function(module) {
8598
+ function _interopRequireDefault2(obj) {
8599
+ return obj && obj.__esModule ? obj : {
8600
+ "default": obj
8601
+ };
8602
+ }
8603
+ module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
8604
+ })(interopRequireDefault);
8605
+ var interopRequireDefaultExports = interopRequireDefault.exports;
8606
+ var regeneratorRuntime = { exports: {} };
8607
+ (function(module) {
8608
+ var _typeof3 = _typeofExports["default"];
8609
+ function _regeneratorRuntime3() {
8610
+ module.exports = _regeneratorRuntime3 = function _regeneratorRuntime4() {
8611
+ return e2;
8612
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
8613
+ var t, e2 = {}, r = Object.prototype, n2 = r.hasOwnProperty, o = Object.defineProperty || function(t2, e3, r2) {
8614
+ t2[e3] = r2.value;
8615
+ }, i2 = "function" == typeof Symbol ? Symbol : {}, a = i2.iterator || "@@iterator", c = i2.asyncIterator || "@@asyncIterator", u = i2.toStringTag || "@@toStringTag";
8616
+ function define(t2, e3, r2) {
8617
+ return Object.defineProperty(t2, e3, {
8618
+ value: r2,
8619
+ enumerable: true,
8620
+ configurable: true,
8621
+ writable: true
8622
+ }), t2[e3];
8623
+ }
8624
+ try {
8625
+ define({}, "");
8626
+ } catch (t2) {
8627
+ define = function define2(t3, e3, r2) {
8628
+ return t3[e3] = r2;
8629
+ };
8630
+ }
8631
+ function wrap(t2, e3, r2, n3) {
8632
+ var i3 = e3 && e3.prototype instanceof Generator ? e3 : Generator, a2 = Object.create(i3.prototype), c6 = new Context2(n3 || []);
8633
+ return o(a2, "_invoke", {
8634
+ value: makeInvokeMethod(t2, r2, c6)
8635
+ }), a2;
8636
+ }
8637
+ function tryCatch(t2, e3, r2) {
8638
+ try {
8639
+ return {
8640
+ type: "normal",
8641
+ arg: t2.call(e3, r2)
8642
+ };
8643
+ } catch (t3) {
8644
+ return {
8645
+ type: "throw",
8646
+ arg: t3
8647
+ };
8648
+ }
8649
+ }
8650
+ e2.wrap = wrap;
8651
+ var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
8652
+ function Generator() {
8653
+ }
8654
+ function GeneratorFunction() {
8655
+ }
8656
+ function GeneratorFunctionPrototype() {
8657
+ }
8658
+ var p = {};
8659
+ define(p, a, function() {
8660
+ return this;
8661
+ });
8662
+ var d = Object.getPrototypeOf, v = d && d(d(values([])));
8663
+ v && v !== r && n2.call(v, a) && (p = v);
8664
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
8665
+ function defineIteratorMethods(t2) {
8666
+ ["next", "throw", "return"].forEach(function(e3) {
8667
+ define(t2, e3, function(t3) {
8668
+ return this._invoke(e3, t3);
8669
+ });
8670
+ });
8671
+ }
8672
+ function AsyncIterator(t2, e3) {
8673
+ function invoke(r3, o2, i3, a2) {
8674
+ var c6 = tryCatch(t2[r3], t2, o2);
8675
+ if ("throw" !== c6.type) {
8676
+ var u2 = c6.arg, h2 = u2.value;
8677
+ return h2 && "object" == _typeof3(h2) && n2.call(h2, "__await") ? e3.resolve(h2.__await).then(function(t3) {
8678
+ invoke("next", t3, i3, a2);
8679
+ }, function(t3) {
8680
+ invoke("throw", t3, i3, a2);
8681
+ }) : e3.resolve(h2).then(function(t3) {
8682
+ u2.value = t3, i3(u2);
8683
+ }, function(t3) {
8684
+ return invoke("throw", t3, i3, a2);
8685
+ });
8686
+ }
8687
+ a2(c6.arg);
8688
+ }
8689
+ var r2;
8690
+ o(this, "_invoke", {
8691
+ value: function value(t3, n3) {
8692
+ function callInvokeWithMethodAndArg() {
8693
+ return new e3(function(e4, r3) {
8694
+ invoke(t3, n3, e4, r3);
8695
+ });
8696
+ }
8697
+ return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
8698
+ }
8699
+ });
8700
+ }
8701
+ function makeInvokeMethod(e3, r2, n3) {
8702
+ var o2 = h;
8703
+ return function(i3, a2) {
8704
+ if (o2 === f)
8705
+ throw new Error("Generator is already running");
8706
+ if (o2 === s) {
8707
+ if ("throw" === i3)
8708
+ throw a2;
8709
+ return {
8710
+ value: t,
8711
+ done: true
8712
+ };
8713
+ }
8714
+ for (n3.method = i3, n3.arg = a2; ; ) {
8715
+ var c6 = n3.delegate;
8716
+ if (c6) {
8717
+ var u2 = maybeInvokeDelegate(c6, n3);
8718
+ if (u2) {
8719
+ if (u2 === y)
8720
+ continue;
8721
+ return u2;
8722
+ }
8723
+ }
8724
+ if ("next" === n3.method)
8725
+ n3.sent = n3._sent = n3.arg;
8726
+ else if ("throw" === n3.method) {
8727
+ if (o2 === h)
8728
+ throw o2 = s, n3.arg;
8729
+ n3.dispatchException(n3.arg);
8730
+ } else
8731
+ "return" === n3.method && n3.abrupt("return", n3.arg);
8732
+ o2 = f;
8733
+ var p2 = tryCatch(e3, r2, n3);
8734
+ if ("normal" === p2.type) {
8735
+ if (o2 = n3.done ? s : l, p2.arg === y)
8736
+ continue;
8737
+ return {
8738
+ value: p2.arg,
8739
+ done: n3.done
8740
+ };
8741
+ }
8742
+ "throw" === p2.type && (o2 = s, n3.method = "throw", n3.arg = p2.arg);
8743
+ }
8744
+ };
8745
+ }
8746
+ function maybeInvokeDelegate(e3, r2) {
8747
+ var n3 = r2.method, o2 = e3.iterator[n3];
8748
+ if (o2 === t)
8749
+ return r2.delegate = null, "throw" === n3 && e3.iterator["return"] && (r2.method = "return", r2.arg = t, maybeInvokeDelegate(e3, r2), "throw" === r2.method) || "return" !== n3 && (r2.method = "throw", r2.arg = new TypeError("The iterator does not provide a '" + n3 + "' method")), y;
8750
+ var i3 = tryCatch(o2, e3.iterator, r2.arg);
8751
+ if ("throw" === i3.type)
8752
+ return r2.method = "throw", r2.arg = i3.arg, r2.delegate = null, y;
8753
+ var a2 = i3.arg;
8754
+ return a2 ? a2.done ? (r2[e3.resultName] = a2.value, r2.next = e3.nextLoc, "return" !== r2.method && (r2.method = "next", r2.arg = t), r2.delegate = null, y) : a2 : (r2.method = "throw", r2.arg = new TypeError("iterator result is not an object"), r2.delegate = null, y);
8755
+ }
8756
+ function pushTryEntry(t2) {
8757
+ var e3 = {
8758
+ tryLoc: t2[0]
8759
+ };
8760
+ 1 in t2 && (e3.catchLoc = t2[1]), 2 in t2 && (e3.finallyLoc = t2[2], e3.afterLoc = t2[3]), this.tryEntries.push(e3);
8761
+ }
8762
+ function resetTryEntry(t2) {
8763
+ var e3 = t2.completion || {};
8764
+ e3.type = "normal", delete e3.arg, t2.completion = e3;
8765
+ }
8766
+ function Context2(t2) {
8767
+ this.tryEntries = [{
8768
+ tryLoc: "root"
8769
+ }], t2.forEach(pushTryEntry, this), this.reset(true);
8770
+ }
8771
+ function values(e3) {
8772
+ if (e3 || "" === e3) {
8773
+ var r2 = e3[a];
8774
+ if (r2)
8775
+ return r2.call(e3);
8776
+ if ("function" == typeof e3.next)
8777
+ return e3;
8778
+ if (!isNaN(e3.length)) {
8779
+ var o2 = -1, i3 = function next() {
8780
+ for (; ++o2 < e3.length; )
8781
+ if (n2.call(e3, o2))
8782
+ return next.value = e3[o2], next.done = false, next;
8783
+ return next.value = t, next.done = true, next;
8784
+ };
8785
+ return i3.next = i3;
8786
+ }
8787
+ }
8788
+ throw new TypeError(_typeof3(e3) + " is not iterable");
8789
+ }
8790
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
8791
+ value: GeneratorFunctionPrototype,
8792
+ configurable: true
8793
+ }), o(GeneratorFunctionPrototype, "constructor", {
8794
+ value: GeneratorFunction,
8795
+ configurable: true
8796
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e2.isGeneratorFunction = function(t2) {
8797
+ var e3 = "function" == typeof t2 && t2.constructor;
8798
+ return !!e3 && (e3 === GeneratorFunction || "GeneratorFunction" === (e3.displayName || e3.name));
8799
+ }, e2.mark = function(t2) {
8800
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, define(t2, u, "GeneratorFunction")), t2.prototype = Object.create(g), t2;
8801
+ }, e2.awrap = function(t2) {
8802
+ return {
8803
+ __await: t2
8804
+ };
8805
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function() {
8806
+ return this;
8807
+ }), e2.AsyncIterator = AsyncIterator, e2.async = function(t2, r2, n3, o2, i3) {
8808
+ void 0 === i3 && (i3 = Promise);
8809
+ var a2 = new AsyncIterator(wrap(t2, r2, n3, o2), i3);
8810
+ return e2.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
8811
+ return t3.done ? t3.value : a2.next();
8812
+ });
8813
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function() {
8814
+ return this;
8815
+ }), define(g, "toString", function() {
8816
+ return "[object Generator]";
8817
+ }), e2.keys = function(t2) {
8818
+ var e3 = Object(t2), r2 = [];
8819
+ for (var n3 in e3)
8820
+ r2.push(n3);
8821
+ return r2.reverse(), function next() {
8822
+ for (; r2.length; ) {
8823
+ var t3 = r2.pop();
8824
+ if (t3 in e3)
8825
+ return next.value = t3, next.done = false, next;
8826
+ }
8827
+ return next.done = true, next;
8828
+ };
8829
+ }, e2.values = values, Context2.prototype = {
8830
+ constructor: Context2,
8831
+ reset: function reset(e3) {
8832
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e3)
8833
+ for (var r2 in this)
8834
+ "t" === r2.charAt(0) && n2.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
8835
+ },
8836
+ stop: function stop2() {
8837
+ this.done = true;
8838
+ var t2 = this.tryEntries[0].completion;
8839
+ if ("throw" === t2.type)
8840
+ throw t2.arg;
8841
+ return this.rval;
8842
+ },
8843
+ dispatchException: function dispatchException(e3) {
8844
+ if (this.done)
8845
+ throw e3;
8846
+ var r2 = this;
8847
+ function handle(n3, o3) {
8848
+ return a2.type = "throw", a2.arg = e3, r2.next = n3, o3 && (r2.method = "next", r2.arg = t), !!o3;
8849
+ }
8850
+ for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) {
8851
+ var i3 = this.tryEntries[o2], a2 = i3.completion;
8852
+ if ("root" === i3.tryLoc)
8853
+ return handle("end");
8854
+ if (i3.tryLoc <= this.prev) {
8855
+ var c6 = n2.call(i3, "catchLoc"), u2 = n2.call(i3, "finallyLoc");
8856
+ if (c6 && u2) {
8857
+ if (this.prev < i3.catchLoc)
8858
+ return handle(i3.catchLoc, true);
8859
+ if (this.prev < i3.finallyLoc)
8860
+ return handle(i3.finallyLoc);
8861
+ } else if (c6) {
8862
+ if (this.prev < i3.catchLoc)
8863
+ return handle(i3.catchLoc, true);
8864
+ } else {
8865
+ if (!u2)
8866
+ throw new Error("try statement without catch or finally");
8867
+ if (this.prev < i3.finallyLoc)
8868
+ return handle(i3.finallyLoc);
8869
+ }
8870
+ }
8871
+ }
8872
+ },
8873
+ abrupt: function abrupt(t2, e3) {
8874
+ for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
8875
+ var o2 = this.tryEntries[r2];
8876
+ if (o2.tryLoc <= this.prev && n2.call(o2, "finallyLoc") && this.prev < o2.finallyLoc) {
8877
+ var i3 = o2;
8878
+ break;
8879
+ }
8880
+ }
8881
+ i3 && ("break" === t2 || "continue" === t2) && i3.tryLoc <= e3 && e3 <= i3.finallyLoc && (i3 = null);
8882
+ var a2 = i3 ? i3.completion : {};
8883
+ return a2.type = t2, a2.arg = e3, i3 ? (this.method = "next", this.next = i3.finallyLoc, y) : this.complete(a2);
8884
+ },
8885
+ complete: function complete(t2, e3) {
8886
+ if ("throw" === t2.type)
8887
+ throw t2.arg;
8888
+ return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && e3 && (this.next = e3), y;
8889
+ },
8890
+ finish: function finish(t2) {
8891
+ for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
8892
+ var r2 = this.tryEntries[e3];
8893
+ if (r2.finallyLoc === t2)
8894
+ return this.complete(r2.completion, r2.afterLoc), resetTryEntry(r2), y;
8895
+ }
8896
+ },
8897
+ "catch": function _catch(t2) {
8898
+ for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
8899
+ var r2 = this.tryEntries[e3];
8900
+ if (r2.tryLoc === t2) {
8901
+ var n3 = r2.completion;
8902
+ if ("throw" === n3.type) {
8903
+ var o2 = n3.arg;
8904
+ resetTryEntry(r2);
8905
+ }
8906
+ return o2;
8907
+ }
8908
+ }
8909
+ throw new Error("illegal catch attempt");
8910
+ },
8911
+ delegateYield: function delegateYield(e3, r2, n3) {
8912
+ return this.delegate = {
8913
+ iterator: values(e3),
8914
+ resultName: r2,
8915
+ nextLoc: n3
8916
+ }, "next" === this.method && (this.arg = t), y;
8917
+ }
8918
+ }, e2;
8919
+ }
8920
+ module.exports = _regeneratorRuntime3, module.exports.__esModule = true, module.exports["default"] = module.exports;
8921
+ })(regeneratorRuntime);
8922
+ var regeneratorRuntimeExports = regeneratorRuntime.exports;
8923
+ var asyncToGenerator = { exports: {} };
8924
+ (function(module) {
8925
+ function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
8926
+ try {
8927
+ var info = gen[key](arg);
8928
+ var value = info.value;
8929
+ } catch (error) {
8930
+ reject(error);
8931
+ return;
8932
+ }
8933
+ if (info.done) {
8934
+ resolve(value);
8935
+ } else {
8936
+ Promise.resolve(value).then(_next, _throw);
8937
+ }
8938
+ }
8939
+ function _asyncToGenerator3(fn) {
8940
+ return function() {
8941
+ var self2 = this, args = arguments;
8942
+ return new Promise(function(resolve, reject) {
8943
+ var gen = fn.apply(self2, args);
8944
+ function _next(value) {
8945
+ asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "next", value);
8946
+ }
8947
+ function _throw(err) {
8948
+ asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "throw", err);
8949
+ }
8950
+ _next(void 0);
8951
+ });
8952
+ };
8953
+ }
8954
+ module.exports = _asyncToGenerator3, module.exports.__esModule = true, module.exports["default"] = module.exports;
8955
+ })(asyncToGenerator);
8956
+ var asyncToGeneratorExports = asyncToGenerator.exports;
8957
+ var objectSpread2 = { exports: {} };
8958
+ var defineProperty = { exports: {} };
8959
+ var toPropertyKey = { exports: {} };
8960
+ var toPrimitive = { exports: {} };
8961
+ (function(module) {
8962
+ var _typeof3 = _typeofExports["default"];
8963
+ function _toPrimitive2(input, hint) {
8964
+ if (_typeof3(input) !== "object" || input === null)
8965
+ return input;
8966
+ var prim = input[Symbol.toPrimitive];
8967
+ if (prim !== void 0) {
8968
+ var res = prim.call(input, hint || "default");
8969
+ if (_typeof3(res) !== "object")
8970
+ return res;
8971
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8972
+ }
8973
+ return (hint === "string" ? String : Number)(input);
8974
+ }
8975
+ module.exports = _toPrimitive2, module.exports.__esModule = true, module.exports["default"] = module.exports;
8976
+ })(toPrimitive);
8977
+ var toPrimitiveExports = toPrimitive.exports;
8978
+ (function(module) {
8979
+ var _typeof3 = _typeofExports["default"];
8980
+ var toPrimitive2 = toPrimitiveExports;
8981
+ function _toPropertyKey2(arg) {
8982
+ var key = toPrimitive2(arg, "string");
8983
+ return _typeof3(key) === "symbol" ? key : String(key);
8984
+ }
8985
+ module.exports = _toPropertyKey2, module.exports.__esModule = true, module.exports["default"] = module.exports;
8986
+ })(toPropertyKey);
8987
+ var toPropertyKeyExports = toPropertyKey.exports;
8988
+ (function(module) {
8989
+ var toPropertyKey2 = toPropertyKeyExports;
8990
+ function _defineProperty2(obj, key, value) {
8991
+ key = toPropertyKey2(key);
8992
+ if (key in obj) {
8993
+ Object.defineProperty(obj, key, {
8994
+ value,
8995
+ enumerable: true,
8996
+ configurable: true,
8997
+ writable: true
8998
+ });
8999
+ } else {
9000
+ obj[key] = value;
9001
+ }
9002
+ return obj;
9003
+ }
9004
+ module.exports = _defineProperty2, module.exports.__esModule = true, module.exports["default"] = module.exports;
9005
+ })(defineProperty);
9006
+ var definePropertyExports = defineProperty.exports;
9007
+ (function(module) {
9008
+ var defineProperty2 = definePropertyExports;
9009
+ function ownKeys2(e2, r) {
9010
+ var t = Object.keys(e2);
9011
+ if (Object.getOwnPropertySymbols) {
9012
+ var o = Object.getOwnPropertySymbols(e2);
9013
+ r && (o = o.filter(function(r2) {
9014
+ return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
9015
+ })), t.push.apply(t, o);
9016
+ }
9017
+ return t;
9018
+ }
9019
+ function _objectSpread22(e2) {
9020
+ for (var r = 1; r < arguments.length; r++) {
9021
+ var t = null != arguments[r] ? arguments[r] : {};
9022
+ r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
9023
+ defineProperty2(e2, r2, t[r2]);
9024
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
9025
+ Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t, r2));
9026
+ });
9027
+ }
9028
+ return e2;
9029
+ }
9030
+ module.exports = _objectSpread22, module.exports.__esModule = true, module.exports["default"] = module.exports;
9031
+ })(objectSpread2);
9032
+ var objectSpread2Exports = objectSpread2.exports;
9033
+ var _interopRequireWildcard$2 = interopRequireWildcardExports.default;
9034
+ var _interopRequireDefault$4 = interopRequireDefaultExports.default;
9035
+ Object.defineProperty(render$1, "__esModule", {
9036
+ value: true
9037
+ });
9038
+ render$1._r = _r;
9039
+ render$1._u = _u;
9040
+ var render_2 = render$1.render = render;
9041
+ var unmount_1 = render$1.unmount = unmount;
9042
+ var _regeneratorRuntime2 = _interopRequireDefault$4(regeneratorRuntimeExports);
9043
+ var _asyncToGenerator2 = _interopRequireDefault$4(asyncToGeneratorExports);
9044
+ var _typeof2$3 = _interopRequireDefault$4(_typeofExports);
9045
+ var _objectSpread2$1 = _interopRequireDefault$4(objectSpread2Exports);
9046
+ var ReactDOM = _interopRequireWildcard$2(ReactDOM__default);
9047
+ var fullClone = (0, _objectSpread2$1.default)({}, ReactDOM);
9048
+ var version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode;
9049
+ var createRoot;
8486
9050
  try {
8487
- const mainVersion = Number((version || "").split(".")[0]);
8488
- if (mainVersion >= 18 && fullClone.createRoot) {
9051
+ var mainVersion = Number((version || "").split(".")[0]);
9052
+ if (mainVersion >= 18) {
8489
9053
  createRoot = fullClone.createRoot;
8490
9054
  }
8491
9055
  } catch (e2) {
8492
9056
  }
8493
9057
  function toggleWarning(skip) {
8494
- const {
8495
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
8496
- } = fullClone;
8497
- if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "object") {
9058
+ var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
9059
+ if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && (0, _typeof2$3.default)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === "object") {
8498
9060
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
8499
9061
  }
8500
9062
  }
8501
- const MARK = "__antd_mobile_root__";
8502
- function legacyRender(node, container) {
8503
- reactRender(node, container);
8504
- }
8505
- function concurrentRender(node, container) {
9063
+ var MARK = "__rc_react_root__";
9064
+ function modernRender(node, container) {
8506
9065
  toggleWarning(true);
8507
- const root2 = container[MARK] || createRoot(container);
9066
+ var root2 = container[MARK] || createRoot(container);
8508
9067
  toggleWarning(false);
8509
9068
  root2.render(node);
8510
9069
  container[MARK] = root2;
8511
9070
  }
9071
+ function legacyRender(node, container) {
9072
+ reactRender === null || reactRender === void 0 || reactRender(node, container);
9073
+ }
9074
+ function _r(node, container) {
9075
+ {
9076
+ return legacyRender(node, container);
9077
+ }
9078
+ }
8512
9079
  function render(node, container) {
8513
9080
  if (createRoot) {
8514
- concurrentRender(node, container);
9081
+ modernRender(node, container);
8515
9082
  return;
8516
9083
  }
8517
9084
  legacyRender(node, container);
8518
9085
  }
9086
+ function modernUnmount(_x) {
9087
+ return _modernUnmount.apply(this, arguments);
9088
+ }
9089
+ function _modernUnmount() {
9090
+ _modernUnmount = (0, _asyncToGenerator2.default)(/* @__PURE__ */ (0, _regeneratorRuntime2.default)().mark(function _callee(container) {
9091
+ return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
9092
+ while (1)
9093
+ switch (_context.prev = _context.next) {
9094
+ case 0:
9095
+ return _context.abrupt("return", Promise.resolve().then(function() {
9096
+ var _container$MARK;
9097
+ (_container$MARK = container[MARK]) === null || _container$MARK === void 0 || _container$MARK.unmount();
9098
+ delete container[MARK];
9099
+ }));
9100
+ case 1:
9101
+ case "end":
9102
+ return _context.stop();
9103
+ }
9104
+ }, _callee);
9105
+ }));
9106
+ return _modernUnmount.apply(this, arguments);
9107
+ }
8519
9108
  function legacyUnmount(container) {
8520
- return unmountComponentAtNode(container);
9109
+ unmountComponentAtNode(container);
8521
9110
  }
8522
- function concurrentUnmount(container) {
8523
- return __awaiter(this, void 0, void 0, function* () {
8524
- return Promise.resolve().then(() => {
8525
- var _a;
8526
- (_a = container[MARK]) === null || _a === void 0 ? void 0 : _a.unmount();
8527
- delete container[MARK];
8528
- });
8529
- });
9111
+ function _u(container) {
9112
+ {
9113
+ return legacyUnmount(container);
9114
+ }
8530
9115
  }
8531
- function unmount(container) {
8532
- if (createRoot) {
8533
- return concurrentUnmount(container);
9116
+ function unmount(_x2) {
9117
+ return _unmount.apply(this, arguments);
9118
+ }
9119
+ function _unmount() {
9120
+ _unmount = (0, _asyncToGenerator2.default)(/* @__PURE__ */ (0, _regeneratorRuntime2.default)().mark(function _callee2(container) {
9121
+ return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
9122
+ while (1)
9123
+ switch (_context2.prev = _context2.next) {
9124
+ case 0:
9125
+ if (!(createRoot !== void 0)) {
9126
+ _context2.next = 2;
9127
+ break;
9128
+ }
9129
+ return _context2.abrupt("return", modernUnmount(container));
9130
+ case 2:
9131
+ legacyUnmount(container);
9132
+ case 3:
9133
+ case "end":
9134
+ return _context2.stop();
9135
+ }
9136
+ }, _callee2);
9137
+ }));
9138
+ return _unmount.apply(this, arguments);
9139
+ }
9140
+ const defaultReactRender = (node, container) => {
9141
+ {
9142
+ const majorVersion = parseInt(React$2.version.split(".")[0], 10);
9143
+ const fullKeys = Object.keys(ReactDOM$1);
9144
+ default_1$1(majorVersion < 19 || fullKeys.includes("createRoot"), `[Compatible] antd-mobile v5 support React is 16 ~ 18. see https://mobile.ant.design/guide/v5-for-19 for compatible.`);
8534
9145
  }
8535
- return legacyUnmount(container);
9146
+ render_2(node, container);
9147
+ return () => {
9148
+ return unmount_1(container);
9149
+ };
9150
+ };
9151
+ let unstableRender = defaultReactRender;
9152
+ function unstableSetRender(render2) {
9153
+ if (render2) {
9154
+ unstableRender = render2;
9155
+ }
9156
+ return unstableRender;
8536
9157
  }
8537
9158
  function renderToBody(element) {
8538
9159
  const container = document.createElement("div");
8539
9160
  document.body.appendChild(container);
8540
- function unmount$1() {
8541
- const unmountResult = unmount(container);
8542
- if (unmountResult && container.parentNode) {
8543
- container.parentNode.removeChild(container);
8544
- }
8545
- }
8546
- render(element, container);
8547
- return unmount$1;
9161
+ return unstableSetRender()(element, container);
8548
9162
  }
8549
9163
  function renderImperatively(element) {
8550
- const Wrapper2 = React__default.forwardRef((_, ref) => {
9164
+ const Wrapper2 = React__default.forwardRef((_, ref2) => {
8551
9165
  const [visible, setVisible] = useState(false);
8552
9166
  const closedRef = useRef(false);
8553
9167
  const [elementToRender, setElementToRender] = useState(element);
@@ -8570,7 +9184,7 @@ function renderImperatively(element) {
8570
9184
  unmount2();
8571
9185
  (_b = (_a = elementToRender.props).afterClose) === null || _b === void 0 ? void 0 : _b.call(_a);
8572
9186
  }
8573
- useImperativeHandle(ref, () => ({
9187
+ useImperativeHandle(ref2, () => ({
8574
9188
  close: onClose,
8575
9189
  replace: (element2) => {
8576
9190
  var _a, _b;
@@ -8753,8 +9367,8 @@ function Stage(props) {
8753
9367
  return processNext(next);
8754
9368
  }
8755
9369
  function staged(stage) {
8756
- return function Staged(props, ref) {
8757
- const next = stage(props, ref);
9370
+ return function Staged(props, ref2) {
9371
+ const next = stage(props, ref2);
8758
9372
  return processNext(next);
8759
9373
  };
8760
9374
  }
@@ -8763,15 +9377,15 @@ function toCSSLength(val) {
8763
9377
  return typeof val === "number" ? `${val}px` : val;
8764
9378
  }
8765
9379
  const LazyDetector = (props) => {
8766
- const ref = useRef(null);
8767
- const [inViewport] = useInViewport(ref);
9380
+ const ref2 = useRef(null);
9381
+ const [inViewport] = useInViewport(ref2);
8768
9382
  useEffect(() => {
8769
9383
  if (inViewport) {
8770
9384
  props.onActive();
8771
9385
  }
8772
9386
  }, [inViewport]);
8773
9387
  return React__default.createElement("div", {
8774
- ref
9388
+ ref: ref2
8775
9389
  });
8776
9390
  };
8777
9391
  const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$3);
@@ -8807,7 +9421,7 @@ const Image$1 = staged_1((p) => {
8807
9421
  const props = mergeProps(defaultProps$11, p);
8808
9422
  const [loaded, setLoaded] = useState(false);
8809
9423
  const [failed, setFailed] = useState(false);
8810
- const ref = useRef(null);
9424
+ const ref2 = useRef(null);
8811
9425
  const imgRef = useRef(null);
8812
9426
  let src = props.src;
8813
9427
  let srcSet = props.srcSet;
@@ -8870,7 +9484,7 @@ const Image$1 = staged_1((p) => {
8870
9484
  style2["height"] = toCSSLength(props.height);
8871
9485
  }
8872
9486
  return withNativeProps(props, React__default.createElement("div", {
8873
- ref,
9487
+ ref: ref2,
8874
9488
  className: classPrefix$1l,
8875
9489
  style: style2,
8876
9490
  onClick: props.onContainerClick
@@ -9002,13 +9616,13 @@ const defaultProps$_ = {
9002
9616
  shape: "default",
9003
9617
  size: "middle"
9004
9618
  };
9005
- const Button = forwardRef((p, ref) => {
9619
+ const Button = forwardRef((p, ref2) => {
9006
9620
  const props = mergeProps(defaultProps$_, p);
9007
9621
  const [innerLoading, setInnerLoading] = useState(false);
9008
9622
  const nativeButtonRef = useRef(null);
9009
9623
  const loading = props.loading === "auto" ? innerLoading : props.loading;
9010
9624
  const disabled = props.disabled || loading;
9011
- useImperativeHandle(ref, () => ({
9625
+ useImperativeHandle(ref2, () => ({
9012
9626
  get nativeElement() {
9013
9627
  return nativeButtonRef.current;
9014
9628
  }
@@ -9031,6 +9645,7 @@ const Button = forwardRef((p, ref) => {
9031
9645
  return withNativeProps(props, React__default.createElement("button", {
9032
9646
  ref: nativeButtonRef,
9033
9647
  type: props.type,
9648
+ form: props.form,
9034
9649
  onClick: handleClick,
9035
9650
  className: classNames(classPrefix$1h, {
9036
9651
  [`${classPrefix$1h}-${props.color}`]: props.color,
@@ -9195,7 +9810,7 @@ const defaultProps$Z = {
9195
9810
  nextMonthButton: React__default.createElement(ArrowLeft, null),
9196
9811
  nextYearButton: React__default.createElement(ArrowLeftDouble, null)
9197
9812
  };
9198
- const Calendar = forwardRef((p, ref) => {
9813
+ const Calendar = forwardRef((p, ref2) => {
9199
9814
  const today = dayjs();
9200
9815
  const props = mergeProps(defaultProps$Z, p);
9201
9816
  const {
@@ -9225,7 +9840,7 @@ const Calendar = forwardRef((p, ref) => {
9225
9840
  var _a;
9226
9841
  (_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, current.year(), current.month() + 1);
9227
9842
  }, [current]);
9228
- useImperativeHandle(ref, () => ({
9843
+ useImperativeHandle(ref2, () => ({
9229
9844
  jumpTo: (pageOrPageGenerator) => {
9230
9845
  let page;
9231
9846
  if (typeof pageOrPageGenerator === "function") {
@@ -9286,8 +9901,8 @@ const Calendar = forwardRef((p, ref) => {
9286
9901
  handlePageChange("add", 1, "year");
9287
9902
  }
9288
9903
  }, props.nextYearButton));
9289
- const maxDay = useMemo(() => props.max && dayjs(props.max), [props.max]);
9290
- const minDay = useMemo(() => props.min && dayjs(props.min), [props.min]);
9904
+ const maxDay = useMemo$2(() => props.max && dayjs(props.max), [props.max]);
9905
+ const minDay = useMemo$2(() => props.min && dayjs(props.min), [props.min]);
9291
9906
  function renderCells() {
9292
9907
  var _a;
9293
9908
  const cells = [];
@@ -9421,9 +10036,9 @@ function convertPageToDayjs(page) {
9421
10036
  return dayjs().year(page.year).month(page.month - 1).date(1);
9422
10037
  }
9423
10038
  function useEvent(callback) {
9424
- var fnRef = React$1.useRef();
10039
+ var fnRef = React$2.useRef();
9425
10040
  fnRef.current = callback;
9426
- var memoFn = React$1.useCallback(function() {
10041
+ var memoFn = React$2.useCallback(function() {
9427
10042
  var _fnRef$current;
9428
10043
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9429
10044
  args[_key] = arguments[_key];
@@ -9491,9 +10106,9 @@ function _slicedToArray(arr, i2) {
9491
10106
  function canUseDom() {
9492
10107
  return !!(typeof window !== "undefined" && window.document && window.document.createElement);
9493
10108
  }
9494
- var useInternalLayoutEffect = canUseDom() ? React$1.useLayoutEffect : React$1.useEffect;
10109
+ var useInternalLayoutEffect = canUseDom() ? React$2.useLayoutEffect : React$2.useEffect;
9495
10110
  var useLayoutEffect = function useLayoutEffect2(callback, deps) {
9496
- var firstMountRef = React$1.useRef(true);
10111
+ var firstMountRef = React$2.useRef(true);
9497
10112
  useInternalLayoutEffect(function() {
9498
10113
  return callback(firstMountRef.current);
9499
10114
  }, deps);
@@ -9512,9 +10127,9 @@ var useLayoutUpdateEffect = function useLayoutUpdateEffect2(callback, deps) {
9512
10127
  }, deps);
9513
10128
  };
9514
10129
  function useSafeState(defaultValue) {
9515
- var destroyRef = React$1.useRef(false);
9516
- var _React$useState = React$1.useState(defaultValue), _React$useState2 = _slicedToArray(_React$useState, 2), value = _React$useState2[0], setValue = _React$useState2[1];
9517
- React$1.useEffect(function() {
10130
+ var destroyRef = React$2.useRef(false);
10131
+ var _React$useState = React$2.useState(defaultValue), _React$useState2 = _slicedToArray(_React$useState, 2), value = _React$useState2[0], setValue = _React$useState2[1];
10132
+ React$2.useEffect(function() {
9518
10133
  destroyRef.current = false;
9519
10134
  return function() {
9520
10135
  destroyRef.current = true;
@@ -9563,13 +10178,13 @@ function useMergedState(defaultStateValue, option) {
9563
10178
  });
9564
10179
  return [postMergedValue, triggerChange];
9565
10180
  }
9566
- function _typeof$1(o) {
10181
+ function _typeof(o) {
9567
10182
  "@babel/helpers - typeof";
9568
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
10183
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
9569
10184
  return typeof o2;
9570
10185
  } : function(o2) {
9571
10186
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
9572
- }, _typeof$1(o);
10187
+ }, _typeof(o);
9573
10188
  }
9574
10189
  var reactIs = { exports: {} };
9575
10190
  var reactIs_development = {};
@@ -9586,7 +10201,7 @@ var reactIs_development = {};
9586
10201
  (function() {
9587
10202
  var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
9588
10203
  var REACT_PORTAL_TYPE = Symbol.for("react.portal");
9589
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
10204
+ var REACT_FRAGMENT_TYPE2 = Symbol.for("react.fragment");
9590
10205
  var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
9591
10206
  var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
9592
10207
  var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
@@ -9611,7 +10226,7 @@ var reactIs_development = {};
9611
10226
  if (typeof type4 === "string" || typeof type4 === "function") {
9612
10227
  return true;
9613
10228
  }
9614
- if (type4 === REACT_FRAGMENT_TYPE || type4 === REACT_PROFILER_TYPE || enableDebugTracing || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type4 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
10229
+ if (type4 === REACT_FRAGMENT_TYPE2 || type4 === REACT_PROFILER_TYPE || enableDebugTracing || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type4 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
9615
10230
  return true;
9616
10231
  }
9617
10232
  if (typeof type4 === "object" && type4 !== null) {
@@ -9632,7 +10247,7 @@ var reactIs_development = {};
9632
10247
  case REACT_ELEMENT_TYPE2:
9633
10248
  var type4 = object4.type;
9634
10249
  switch (type4) {
9635
- case REACT_FRAGMENT_TYPE:
10250
+ case REACT_FRAGMENT_TYPE2:
9636
10251
  case REACT_PROFILER_TYPE:
9637
10252
  case REACT_STRICT_MODE_TYPE:
9638
10253
  case REACT_SUSPENSE_TYPE:
@@ -9662,7 +10277,7 @@ var reactIs_development = {};
9662
10277
  var ContextProvider = REACT_PROVIDER_TYPE;
9663
10278
  var Element2 = REACT_ELEMENT_TYPE2;
9664
10279
  var ForwardRef = REACT_FORWARD_REF_TYPE;
9665
- var Fragment = REACT_FRAGMENT_TYPE;
10280
+ var Fragment = REACT_FRAGMENT_TYPE2;
9666
10281
  var Lazy = REACT_LAZY_TYPE;
9667
10282
  var Memo = REACT_MEMO_TYPE;
9668
10283
  var Portal = REACT_PORTAL_TYPE;
@@ -9702,8 +10317,8 @@ var reactIs_development = {};
9702
10317
  function isForwardRef(object4) {
9703
10318
  return typeOf(object4) === REACT_FORWARD_REF_TYPE;
9704
10319
  }
9705
- function isFragment(object4) {
9706
- return typeOf(object4) === REACT_FRAGMENT_TYPE;
10320
+ function isFragment2(object4) {
10321
+ return typeOf(object4) === REACT_FRAGMENT_TYPE2;
9707
10322
  }
9708
10323
  function isLazy(object4) {
9709
10324
  return typeOf(object4) === REACT_LAZY_TYPE;
@@ -9744,7 +10359,7 @@ var reactIs_development = {};
9744
10359
  reactIs_development.isContextProvider = isContextProvider;
9745
10360
  reactIs_development.isElement = isElement2;
9746
10361
  reactIs_development.isForwardRef = isForwardRef;
9747
- reactIs_development.isFragment = isFragment;
10362
+ reactIs_development.isFragment = isFragment2;
9748
10363
  reactIs_development.isLazy = isLazy;
9749
10364
  reactIs_development.isMemo = isMemo;
9750
10365
  reactIs_development.isPortal = isPortal;
@@ -9760,39 +10375,58 @@ var reactIs_development = {};
9760
10375
  reactIs.exports = reactIs_development;
9761
10376
  }
9762
10377
  var reactIsExports = reactIs.exports;
9763
- function fillRef(ref, node) {
9764
- if (typeof ref === "function") {
9765
- ref(node);
9766
- } else if (_typeof$1(ref) === "object" && ref && "current" in ref) {
9767
- ref.current = node;
9768
- }
10378
+ var REACT_ELEMENT_TYPE_18$1 = Symbol.for("react.element");
10379
+ var REACT_ELEMENT_TYPE_19$1 = Symbol.for("react.transitional.element");
10380
+ var REACT_FRAGMENT_TYPE$1 = Symbol.for("react.fragment");
10381
+ function isFragment$2(object4) {
10382
+ return (
10383
+ // Base object type
10384
+ object4 && _typeof(object4) === "object" && // React Element type
10385
+ (object4.$$typeof === REACT_ELEMENT_TYPE_18$1 || object4.$$typeof === REACT_ELEMENT_TYPE_19$1) && // React Fragment type
10386
+ object4.type === REACT_FRAGMENT_TYPE$1
10387
+ );
9769
10388
  }
9770
- function composeRef() {
10389
+ var ReactMajorVersion$1 = Number(version$1.split(".")[0]);
10390
+ var fillRef$1 = function fillRef(ref2, node) {
10391
+ if (typeof ref2 === "function") {
10392
+ ref2(node);
10393
+ } else if (_typeof(ref2) === "object" && ref2 && "current" in ref2) {
10394
+ ref2.current = node;
10395
+ }
10396
+ };
10397
+ var composeRef$1 = function composeRef() {
9771
10398
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
9772
10399
  refs[_key] = arguments[_key];
9773
10400
  }
9774
- var refList = refs.filter(function(ref) {
9775
- return ref;
9776
- });
10401
+ var refList = refs.filter(Boolean);
9777
10402
  if (refList.length <= 1) {
9778
10403
  return refList[0];
9779
10404
  }
9780
10405
  return function(node) {
9781
- refs.forEach(function(ref) {
9782
- fillRef(ref, node);
10406
+ refs.forEach(function(ref2) {
10407
+ fillRef$1(ref2, node);
9783
10408
  });
9784
10409
  };
9785
- }
9786
- function supportRef(nodeOrComponent) {
10410
+ };
10411
+ var supportRef$1 = function supportRef(nodeOrComponent) {
9787
10412
  var _type$prototype, _nodeOrComponent$prot;
10413
+ if (!nodeOrComponent) {
10414
+ return false;
10415
+ }
10416
+ if (isReactElement$2(nodeOrComponent) && ReactMajorVersion$1 >= 19) {
10417
+ return true;
10418
+ }
9788
10419
  var type4 = reactIsExports.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
9789
- if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
10420
+ if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type4.$$typeof !== reactIsExports.ForwardRef) {
9790
10421
  return false;
9791
10422
  }
9792
- if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
10423
+ if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIsExports.ForwardRef) {
9793
10424
  return false;
9794
10425
  }
9795
10426
  return true;
10427
+ };
10428
+ function isReactElement$2(node) {
10429
+ return /* @__PURE__ */ isValidElement(node) && !isFragment$2(node);
9796
10430
  }
9797
10431
  function get(entity, path) {
9798
10432
  var current = entity;
@@ -9805,12 +10439,12 @@ function get(entity, path) {
9805
10439
  return current;
9806
10440
  }
9807
10441
  function _toPrimitive(input, hint) {
9808
- if (_typeof$1(input) !== "object" || input === null)
10442
+ if (_typeof(input) !== "object" || input === null)
9809
10443
  return input;
9810
10444
  var prim = input[Symbol.toPrimitive];
9811
10445
  if (prim !== void 0) {
9812
10446
  var res = prim.call(input, hint || "default");
9813
- if (_typeof$1(res) !== "object")
10447
+ if (_typeof(res) !== "object")
9814
10448
  return res;
9815
10449
  throw new TypeError("@@toPrimitive must return a primitive value.");
9816
10450
  }
@@ -9818,7 +10452,7 @@ function _toPrimitive(input, hint) {
9818
10452
  }
9819
10453
  function _toPropertyKey(arg) {
9820
10454
  var key = _toPrimitive(arg, "string");
9821
- return _typeof$1(key) === "symbol" ? key : String(key);
10455
+ return _typeof(key) === "symbol" ? key : String(key);
9822
10456
  }
9823
10457
  function _defineProperty(obj, key, value) {
9824
10458
  key = _toPropertyKey(key);
@@ -9900,7 +10534,7 @@ function set(entity, paths, value) {
9900
10534
  return internalSet(entity, paths, value, removeIfUndefined);
9901
10535
  }
9902
10536
  function isObject(obj) {
9903
- return _typeof$1(obj) === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
10537
+ return _typeof(obj) === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
9904
10538
  }
9905
10539
  function createEmpty(source) {
9906
10540
  return Array.isArray(source) ? [] : {};
@@ -9922,7 +10556,7 @@ function merge$1() {
9922
10556
  var originValue = get(clone, path);
9923
10557
  if (isArr) {
9924
10558
  clone = set(clone, path, []);
9925
- } else if (!originValue || _typeof$1(originValue) !== "object") {
10559
+ } else if (!originValue || _typeof(originValue) !== "object") {
9926
10560
  clone = set(clone, path, createEmpty(value));
9927
10561
  }
9928
10562
  keys(value).forEach(function(key) {
@@ -9937,14 +10571,14 @@ function merge$1() {
9937
10571
  });
9938
10572
  return clone;
9939
10573
  }
9940
- var warned$1 = {};
9941
- var preWarningFns$1 = [];
9942
- var preMessage$1 = function preMessage2(fn) {
9943
- preWarningFns$1.push(fn);
10574
+ var warned = {};
10575
+ var preWarningFns = [];
10576
+ var preMessage = function preMessage22(fn) {
10577
+ preWarningFns.push(fn);
9944
10578
  };
9945
- function warning$3(valid, message) {
10579
+ function warning$1(valid, message) {
9946
10580
  if (!valid && console !== void 0) {
9947
- var finalMessage = preWarningFns$1.reduce(function(msg, preMessageFn) {
10581
+ var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
9948
10582
  return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
9949
10583
  }, message);
9950
10584
  if (finalMessage) {
@@ -9952,9 +10586,9 @@ function warning$3(valid, message) {
9952
10586
  }
9953
10587
  }
9954
10588
  }
9955
- function note$1(valid, message) {
10589
+ function note(valid, message) {
9956
10590
  if (!valid && console !== void 0) {
9957
- var finalMessage = preWarningFns$1.reduce(function(msg, preMessageFn) {
10591
+ var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
9958
10592
  return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "note");
9959
10593
  }, message);
9960
10594
  if (finalMessage) {
@@ -9962,24 +10596,24 @@ function note$1(valid, message) {
9962
10596
  }
9963
10597
  }
9964
10598
  }
9965
- function resetWarned$1() {
9966
- warned$1 = {};
10599
+ function resetWarned() {
10600
+ warned = {};
9967
10601
  }
9968
- function call$1(method4, valid, message) {
9969
- if (!valid && !warned$1[message]) {
10602
+ function call(method4, valid, message) {
10603
+ if (!valid && !warned[message]) {
9970
10604
  method4(false, message);
9971
- warned$1[message] = true;
10605
+ warned[message] = true;
9972
10606
  }
9973
10607
  }
9974
- function warningOnce$1(valid, message) {
9975
- call$1(warning$3, valid, message);
10608
+ function warningOnce(valid, message) {
10609
+ call(warning$1, valid, message);
9976
10610
  }
9977
- function noteOnce$1(valid, message) {
9978
- call$1(note$1, valid, message);
10611
+ function noteOnce(valid, message) {
10612
+ call(note, valid, message);
9979
10613
  }
9980
- warningOnce$1.preMessage = preMessage$1;
9981
- warningOnce$1.resetWarned = resetWarned$1;
9982
- warningOnce$1.noteOnce = noteOnce$1;
10614
+ warningOnce.preMessage = preMessage;
10615
+ warningOnce.resetWarned = resetWarned;
10616
+ warningOnce.noteOnce = noteOnce;
9983
10617
  function useSyncScroll(current, visible, bodyRef) {
9984
10618
  const rafRef = useRef();
9985
10619
  const clean = () => {
@@ -10023,7 +10657,7 @@ const defaultProps$Y = {
10023
10657
  usePopup: true,
10024
10658
  selectionMode: "single"
10025
10659
  };
10026
- const CalendarPickerView = forwardRef((p, ref) => {
10660
+ const CalendarPickerView = forwardRef((p, ref2) => {
10027
10661
  var _a;
10028
10662
  const bodyRef = useRef(null);
10029
10663
  const today = dayjs();
@@ -10073,9 +10707,9 @@ const CalendarPickerView = forwardRef((p, ref) => {
10073
10707
  }
10074
10708
  }
10075
10709
  }, [dateRange]);
10076
- const maxDay = useMemo(() => props.max ? dayjs(props.max) : defaultMax, [props.max, defaultMax]);
10077
- const minDay = useMemo(() => props.min ? dayjs(props.min) : defaultMin, [props.min, defaultMin]);
10078
- useImperativeHandle(ref, () => ({
10710
+ const maxDay = useMemo$2(() => props.max ? dayjs(props.max) : defaultMax, [props.max, defaultMax]);
10711
+ const minDay = useMemo$2(() => props.min ? dayjs(props.min) : defaultMin, [props.min, defaultMin]);
10712
+ useImperativeHandle(ref2, () => ({
10079
10713
  jumpTo: (pageOrPageGenerator) => {
10080
10714
  let page;
10081
10715
  if (typeof pageOrPageGenerator === "function") {
@@ -10130,7 +10764,6 @@ const CalendarPickerView = forwardRef((p, ref) => {
10130
10764
  })), React__default.createElement("div", {
10131
10765
  className: `${classPrefix$1f}-cells`
10132
10766
  }, presetEmptyCells, Array(monthIterator.daysInMonth()).fill(null).map((_, index2) => {
10133
- var _a3;
10134
10767
  const d = monthIterator.date(index2 + 1);
10135
10768
  let isSelect = false;
10136
10769
  let isBegin = false;
@@ -10149,22 +10782,39 @@ const CalendarPickerView = forwardRef((p, ref) => {
10149
10782
  }
10150
10783
  const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
10151
10784
  const renderTop = () => {
10152
- var _a4;
10153
- const top = (_a4 = props.renderTop) === null || _a4 === void 0 ? void 0 : _a4.call(props, d.toDate());
10785
+ var _a3;
10786
+ if (props.renderTop === false)
10787
+ return null;
10788
+ const contentWrapper = (content) => React__default.createElement("div", {
10789
+ className: `${classPrefix$1f}-cell-top`
10790
+ }, content);
10791
+ const top = (_a3 = props.renderTop) === null || _a3 === void 0 ? void 0 : _a3.call(props, d.toDate());
10154
10792
  if (top) {
10155
- return top;
10793
+ return contentWrapper(top);
10156
10794
  }
10157
10795
  if (props.selectionMode === "range") {
10796
+ if (isBegin && isEnd) {
10797
+ return contentWrapper(locale.Calendar.startAndEnd);
10798
+ }
10158
10799
  if (isBegin) {
10159
- return locale.Calendar.start;
10800
+ return contentWrapper(locale.Calendar.start);
10160
10801
  }
10161
10802
  if (isEnd) {
10162
- return locale.Calendar.end;
10803
+ return contentWrapper(locale.Calendar.end);
10163
10804
  }
10164
10805
  }
10165
10806
  if (d.isSame(today, "day") && !isSelect) {
10166
- return locale.Calendar.today;
10807
+ return contentWrapper(locale.Calendar.today);
10167
10808
  }
10809
+ return contentWrapper(null);
10810
+ };
10811
+ const renderBottom = () => {
10812
+ var _a3;
10813
+ if (props.renderBottom === false)
10814
+ return null;
10815
+ return React__default.createElement("div", {
10816
+ className: `${classPrefix$1f}-cell-bottom`
10817
+ }, (_a3 = props.renderBottom) === null || _a3 === void 0 ? void 0 : _a3.call(props, d.toDate()));
10168
10818
  };
10169
10819
  return React__default.createElement("div", {
10170
10820
  key: d.valueOf(),
@@ -10218,13 +10868,9 @@ const CalendarPickerView = forwardRef((p, ref) => {
10218
10868
  }
10219
10869
  }
10220
10870
  }
10221
- }, React__default.createElement("div", {
10222
- className: `${classPrefix$1f}-cell-top`
10223
- }, renderTop()), React__default.createElement("div", {
10871
+ }, renderTop(), React__default.createElement("div", {
10224
10872
  className: `${classPrefix$1f}-cell-date`
10225
- }, props.renderDate ? props.renderDate(d.toDate()) : d.date()), React__default.createElement("div", {
10226
- className: `${classPrefix$1f}-cell-bottom`
10227
- }, (_a3 = props.renderBottom) === null || _a3 === void 0 ? void 0 : _a3.call(props, d.toDate())));
10873
+ }, props.renderDate ? props.renderDate(d.toDate()) : d.date()), renderBottom());
10228
10874
  }))));
10229
10875
  monthIterator = monthIterator.add(1, "month");
10230
10876
  }
@@ -10265,12 +10911,12 @@ const defaultProps$W = {
10265
10911
  usePopup: true,
10266
10912
  selectionMode: "single"
10267
10913
  };
10268
- const CalendarPicker = forwardRef((p, ref) => {
10914
+ const CalendarPicker = forwardRef((p, ref2) => {
10269
10915
  const props = mergeProps(defaultProps$W, p);
10270
10916
  const {
10271
10917
  locale
10272
10918
  } = useConfig();
10273
- const calendarRef = ref !== null && ref !== void 0 ? ref : useRef(null);
10919
+ const calendarRef = ref2 !== null && ref2 !== void 0 ? ref2 : useRef(null);
10274
10920
  const {
10275
10921
  visible,
10276
10922
  confirmText,
@@ -10310,7 +10956,7 @@ const CalendarPicker = forwardRef((p, ref) => {
10310
10956
  visible,
10311
10957
  className: classNames(`${classPrefix$1d}-popup`, popupClassName),
10312
10958
  showCloseButton: true,
10313
- forceRender: ref ? true : forceRender,
10959
+ forceRender: ref2 ? true : forceRender,
10314
10960
  style: popupStyle,
10315
10961
  bodyStyle: Object.assign({
10316
10962
  borderTopLeftRadius: "8px",
@@ -11035,7 +11681,7 @@ function generateColumnsExtend(rawColumns, val) {
11035
11681
  return extend;
11036
11682
  }
11037
11683
  function useColumnsExtend(rawColumns, value) {
11038
- return useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
11684
+ return useMemo$2(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
11039
11685
  }
11040
11686
  const defaultRenderLabel = (item) => item.label;
11041
11687
  var shim = { exports: {} };
@@ -11331,7 +11977,7 @@ const defaultProps$T = {
11331
11977
  destroyOnClose: false,
11332
11978
  forceRender: false
11333
11979
  };
11334
- const Picker$1 = memo(forwardRef((p, ref) => {
11980
+ const Picker$1 = memo(forwardRef((p, ref2) => {
11335
11981
  var _a;
11336
11982
  const {
11337
11983
  locale
@@ -11361,7 +12007,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11361
12007
  setVisible(false);
11362
12008
  }
11363
12009
  };
11364
- useImperativeHandle(ref, () => actions);
12010
+ useImperativeHandle(ref2, () => actions);
11365
12011
  const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
11366
12012
  onChange: (val) => {
11367
12013
  var _a2;
@@ -11482,7 +12128,7 @@ const Picker = attachPropertiesToComponent(Picker$1, {
11482
12128
  prompt: prompt$3
11483
12129
  });
11484
12130
  function useColumnsFn(options) {
11485
- const depth = useMemo(() => {
12131
+ const depth = useMemo$2(() => {
11486
12132
  let depth2 = 0;
11487
12133
  function traverse(options2, currentDepth) {
11488
12134
  if (currentDepth > depth2)
@@ -11520,13 +12166,13 @@ function useColumnsFn(options) {
11520
12166
  return columns;
11521
12167
  };
11522
12168
  }
11523
- const CascadePicker = forwardRef((props, ref) => {
12169
+ const CascadePicker = forwardRef((props, ref2) => {
11524
12170
  const {
11525
12171
  options
11526
12172
  } = props, pickerProps = __rest(props, ["options"]);
11527
12173
  const columnsFn = useColumnsFn(options);
11528
12174
  return React__default.createElement(Picker, Object.assign({}, pickerProps, {
11529
- ref,
12175
+ ref: ref2,
11530
12176
  columns: columnsFn
11531
12177
  }));
11532
12178
  });
@@ -11830,10 +12476,10 @@ const classPrefix$14 = `adm-list`;
11830
12476
  const defaultProps$R = {
11831
12477
  mode: "default"
11832
12478
  };
11833
- const List$2 = forwardRef((p, ref) => {
12479
+ const List$2 = forwardRef((p, ref2) => {
11834
12480
  const props = mergeProps(defaultProps$R, p);
11835
12481
  const nativeElementRef = useRef(null);
11836
- useImperativeHandle(ref, () => ({
12482
+ useImperativeHandle(ref2, () => ({
11837
12483
  get nativeElement() {
11838
12484
  return nativeElementRef.current;
11839
12485
  }
@@ -12045,7 +12691,7 @@ function useCascaderValueExtend(options, fieldNames) {
12045
12691
  valueName,
12046
12692
  childrenName
12047
12693
  } = fieldNames;
12048
- const generateItems = useMemo(() => {
12694
+ const generateItems = useMemo$2(() => {
12049
12695
  return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
12050
12696
  const ret = [];
12051
12697
  let currentOptions = options;
@@ -12064,7 +12710,7 @@ function useCascaderValueExtend(options, fieldNames) {
12064
12710
  equals: isEqual$1
12065
12711
  });
12066
12712
  }, [options]);
12067
- const generateIsLeaf = useMemo(() => {
12713
+ const generateIsLeaf = useMemo$2(() => {
12068
12714
  return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
12069
12715
  const children = val.reduce((currentOptions, v) => {
12070
12716
  var _a;
@@ -12129,7 +12775,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
12129
12775
  Paragraph: SkeletonParagraph
12130
12776
  });
12131
12777
  const useFieldNames = (fieldNames = {}) => {
12132
- const fields = useMemo(() => {
12778
+ const fields = useMemo$2(() => {
12133
12779
  const {
12134
12780
  label = "label",
12135
12781
  value = "value",
@@ -12161,7 +12807,7 @@ const CascaderView$1 = (p) => {
12161
12807
  }
12162
12808
  }));
12163
12809
  const [tabActiveIndex, setTabActiveIndex] = useState(0);
12164
- const levels = useMemo(() => {
12810
+ const levels = useMemo$2(() => {
12165
12811
  const ret = [];
12166
12812
  let currentOptions = props.options;
12167
12813
  let reachedEnd = false;
@@ -12267,7 +12913,7 @@ const defaultProps$O = {
12267
12913
  destroyOnClose: true,
12268
12914
  forceRender: false
12269
12915
  };
12270
- const Cascader = forwardRef((p, ref) => {
12916
+ const Cascader = forwardRef((p, ref2) => {
12271
12917
  var _a;
12272
12918
  const {
12273
12919
  locale
@@ -12298,7 +12944,7 @@ const Cascader = forwardRef((p, ref) => {
12298
12944
  setVisible(false);
12299
12945
  }
12300
12946
  };
12301
- useImperativeHandle(ref, () => actions);
12947
+ useImperativeHandle(ref2, () => actions);
12302
12948
  const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
12303
12949
  onChange: (val) => {
12304
12950
  var _a2;
@@ -12436,8 +13082,8 @@ const CenterPopup = (props) => {
12436
13082
  setActive(true);
12437
13083
  }
12438
13084
  }, [mergedProps.visible]);
12439
- const ref = useRef(null);
12440
- useLockScroll(ref, mergedProps.disableBodyScroll && active);
13085
+ const ref2 = useRef(null);
13086
+ useLockScroll(ref2, mergedProps.disableBodyScroll && active);
12441
13087
  const maskVisible = useInnerVisible(active && mergedProps.visible);
12442
13088
  const body = React__default.createElement("div", {
12443
13089
  className: classNames(`${classPrefix$Z}-body`, mergedProps.bodyClassName),
@@ -12472,7 +13118,7 @@ const CenterPopup = (props) => {
12472
13118
  style: Object.assign(Object.assign({}, style2), {
12473
13119
  pointerEvents: style2.opacity.to((v) => v === 1 ? "unset" : "none")
12474
13120
  }),
12475
- ref
13121
+ ref: ref2
12476
13122
  }, mergedProps.showCloseButton && React__default.createElement("a", {
12477
13123
  className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
12478
13124
  onClick: () => {
@@ -12564,7 +13210,7 @@ const defaultProps$L = {
12564
13210
  defaultChecked: false,
12565
13211
  indeterminate: false
12566
13212
  };
12567
- const Checkbox$1 = forwardRef((p, ref) => {
13213
+ const Checkbox$1 = forwardRef((p, ref2) => {
12568
13214
  const groupContext = useContext(CheckboxGroupContext);
12569
13215
  const props = mergeProps(defaultProps$L, p);
12570
13216
  let [checked, setChecked] = usePropsValue({
@@ -12597,7 +13243,7 @@ const Checkbox$1 = forwardRef((p, ref) => {
12597
13243
  };
12598
13244
  disabled = disabled || groupContext.disabled;
12599
13245
  }
12600
- useImperativeHandle(ref, () => ({
13246
+ useImperativeHandle(ref2, () => ({
12601
13247
  check: () => {
12602
13248
  setChecked(true);
12603
13249
  },
@@ -12815,6 +13461,20 @@ const Collapse = (props) => {
12815
13461
  const index$e = attachPropertiesToComponent(Collapse, {
12816
13462
  Panel: CollapsePanel
12817
13463
  });
13464
+ var isLeapYear$1 = { exports: {} };
13465
+ (function(module, exports) {
13466
+ !function(e2, t) {
13467
+ module.exports = t();
13468
+ }(commonjsGlobal, function() {
13469
+ return function(e2, t) {
13470
+ t.prototype.isLeapYear = function() {
13471
+ return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
13472
+ };
13473
+ };
13474
+ });
13475
+ })(isLeapYear$1);
13476
+ var isLeapYearExports = isLeapYear$1.exports;
13477
+ const isLeapYear = /* @__PURE__ */ getDefaultExportFromCjs(isLeapYearExports);
12818
13478
  var isoWeeksInYear$1 = { exports: {} };
12819
13479
  (function(module, exports) {
12820
13480
  !function(e2, n2) {
@@ -12830,20 +13490,6 @@ var isoWeeksInYear$1 = { exports: {} };
12830
13490
  })(isoWeeksInYear$1);
12831
13491
  var isoWeeksInYearExports = isoWeeksInYear$1.exports;
12832
13492
  const isoWeeksInYear = /* @__PURE__ */ getDefaultExportFromCjs(isoWeeksInYearExports);
12833
- var isLeapYear$1 = { exports: {} };
12834
- (function(module, exports) {
12835
- !function(e2, t) {
12836
- module.exports = t();
12837
- }(commonjsGlobal, function() {
12838
- return function(e2, t) {
12839
- t.prototype.isLeapYear = function() {
12840
- return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
12841
- };
12842
- };
12843
- });
12844
- })(isLeapYear$1);
12845
- var isLeapYearExports = isLeapYear$1.exports;
12846
- const isLeapYear = /* @__PURE__ */ getDefaultExportFromCjs(isLeapYearExports);
12847
13493
  const TILL_NOW = "TILL_NOW";
12848
13494
  dayjs.extend(isoWeek);
12849
13495
  dayjs.extend(isoWeeksInYear);
@@ -12877,6 +13523,7 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12877
13523
  const selectedDay = parseInt(selected[2]);
12878
13524
  const selectedHour = parseInt(selected[3]);
12879
13525
  const selectedMinute = parseInt(selected[4]);
13526
+ const selectedSecond = parseInt(selected[5]);
12880
13527
  const isInMinYear = selectedYear === minYear;
12881
13528
  const isInMaxYear = selectedYear === maxYear;
12882
13529
  const isInMinMonth = isInMinYear && selectedMonth === minMonth;
@@ -12909,7 +13556,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12909
13556
  const upper = maxYear;
12910
13557
  const years = generateColumn(lower, upper, "year");
12911
13558
  ret.push(years.map((v) => ({
12912
- label: renderLabel("year", v),
13559
+ label: renderLabel("year", v, {
13560
+ selected: selectedYear === v
13561
+ }),
12913
13562
  value: v.toString()
12914
13563
  })));
12915
13564
  }
@@ -12918,7 +13567,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12918
13567
  const upper = isInMaxYear ? maxMonth : 12;
12919
13568
  const months = generateColumn(lower, upper, "month");
12920
13569
  ret.push(months.map((v) => ({
12921
- label: renderLabel("month", v),
13570
+ label: renderLabel("month", v, {
13571
+ selected: selectedMonth === v
13572
+ }),
12922
13573
  value: v.toString()
12923
13574
  })));
12924
13575
  }
@@ -12927,7 +13578,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12927
13578
  const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
12928
13579
  const days = generateColumn(lower, upper, "day");
12929
13580
  ret.push(days.map((v) => ({
12930
- label: renderLabel("day", v),
13581
+ label: renderLabel("day", v, {
13582
+ selected: selectedDay === v
13583
+ }),
12931
13584
  value: v.toString()
12932
13585
  })));
12933
13586
  }
@@ -12936,7 +13589,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12936
13589
  const upper = isInMaxDay ? maxHour : 23;
12937
13590
  const hours = generateColumn(lower, upper, "hour");
12938
13591
  ret.push(hours.map((v) => ({
12939
- label: renderLabel("hour", v),
13592
+ label: renderLabel("hour", v, {
13593
+ selected: selectedHour === v
13594
+ }),
12940
13595
  value: v.toString()
12941
13596
  })));
12942
13597
  }
@@ -12945,7 +13600,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12945
13600
  const upper = isInMaxHour ? maxMinute : 59;
12946
13601
  const minutes = generateColumn(lower, upper, "minute");
12947
13602
  ret.push(minutes.map((v) => ({
12948
- label: renderLabel("minute", v),
13603
+ label: renderLabel("minute", v, {
13604
+ selected: selectedMinute === v
13605
+ }),
12949
13606
  value: v.toString()
12950
13607
  })));
12951
13608
  }
@@ -12954,13 +13611,17 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
12954
13611
  const upper = isInMaxMinute ? maxSecond : 59;
12955
13612
  const seconds = generateColumn(lower, upper, "second");
12956
13613
  ret.push(seconds.map((v) => ({
12957
- label: renderLabel("second", v),
13614
+ label: renderLabel("second", v, {
13615
+ selected: selectedSecond === v
13616
+ }),
12958
13617
  value: v.toString()
12959
13618
  })));
12960
13619
  }
12961
13620
  if (tillNow) {
12962
13621
  ret[0].push({
12963
- label: renderLabel("now", null),
13622
+ label: renderLabel("now", null, {
13623
+ selected: selected[0] === TILL_NOW
13624
+ }),
12964
13625
  value: TILL_NOW
12965
13626
  });
12966
13627
  if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
@@ -13032,6 +13693,7 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
13032
13693
  const maxDay = dayjs(max2);
13033
13694
  const minQuarter = minDay.quarter();
13034
13695
  const maxQuarter = maxDay.quarter();
13696
+ const selectedQuarter = parseInt(selected[1]);
13035
13697
  const generateColumn = (from, to2, precision2) => {
13036
13698
  let column = [];
13037
13699
  for (let i2 = from; i2 <= to2; i2++) {
@@ -13054,7 +13716,9 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
13054
13716
  const upper = maxYear;
13055
13717
  const years = generateColumn(lower, upper, "year");
13056
13718
  ret.push(years.map((v) => ({
13057
- label: renderLabel("year", v),
13719
+ label: renderLabel("year", v, {
13720
+ selected: selectedYear === v
13721
+ }),
13058
13722
  value: v.toString()
13059
13723
  })));
13060
13724
  }
@@ -13063,7 +13727,9 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
13063
13727
  const upper = isInMaxYear ? maxQuarter : 4;
13064
13728
  const quarters = generateColumn(lower, upper, "quarter");
13065
13729
  ret.push(quarters.map((v) => ({
13066
- label: renderLabel("quarter", v),
13730
+ label: renderLabel("quarter", v, {
13731
+ selected: selectedQuarter === v
13732
+ }),
13067
13733
  value: v.toString()
13068
13734
  })));
13069
13735
  }
@@ -13105,6 +13771,7 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
13105
13771
  const minWeekday = minDay.isoWeekday();
13106
13772
  const maxWeekday = maxDay.isoWeekday();
13107
13773
  const selectedWeek = parseInt(selected[1]);
13774
+ const selectedWeekday = parseInt(selected[2]);
13108
13775
  const isInMinWeek = isInMinYear && selectedWeek === minWeek;
13109
13776
  const isInMaxWeek = isInMaxYear && selectedWeek === maxWeek;
13110
13777
  const selectedYearWeeks = dayjs(`${selectedYear}-01-01`).isoWeeksInYear();
@@ -13130,7 +13797,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
13130
13797
  const upper = maxYear;
13131
13798
  const years = generateColumn(lower, upper, "year");
13132
13799
  ret.push(years.map((v) => ({
13133
- label: renderLabel("year", v),
13800
+ label: renderLabel("year", v, {
13801
+ selected: selectedYear === v
13802
+ }),
13134
13803
  value: v.toString()
13135
13804
  })));
13136
13805
  }
@@ -13139,7 +13808,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
13139
13808
  const upper = isInMaxYear ? maxWeek : selectedYearWeeks;
13140
13809
  const weeks = generateColumn(lower, upper, "week");
13141
13810
  ret.push(weeks.map((v) => ({
13142
- label: renderLabel("week", v),
13811
+ label: renderLabel("week", v, {
13812
+ selected: selectedWeek === v
13813
+ }),
13143
13814
  value: v.toString()
13144
13815
  })));
13145
13816
  }
@@ -13148,7 +13819,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
13148
13819
  const upper = isInMaxWeek ? maxWeekday : 7;
13149
13820
  const weeks = generateColumn(lower, upper, "week-day");
13150
13821
  ret.push(weeks.map((v) => ({
13151
- label: renderLabel("week-day", v),
13822
+ label: renderLabel("week-day", v, {
13823
+ selected: selectedWeekday === v
13824
+ }),
13152
13825
  value: v.toString()
13153
13826
  })));
13154
13827
  }
@@ -13165,7 +13838,7 @@ function convertStringArrayToDate$1(value) {
13165
13838
  const yearString = (_a = value[0]) !== null && _a !== void 0 ? _a : "1900";
13166
13839
  const weekString = (_b = value[1]) !== null && _b !== void 0 ? _b : "1";
13167
13840
  const weekdayString = (_c = value[2]) !== null && _c !== void 0 ? _c : "1";
13168
- const day = dayjs().year(parseInt(yearString)).isoWeek(parseInt(weekString)).isoWeekday(parseInt(weekdayString)).hour(0).minute(0).second(0);
13841
+ const day = dayjs(`${parseInt(yearString)}-01-01`).isoWeek(parseInt(weekString)).isoWeekday(parseInt(weekdayString)).hour(0).minute(0).second(0);
13169
13842
  return day.toDate();
13170
13843
  }
13171
13844
  const precisionLengthRecord = {
@@ -13214,9 +13887,9 @@ function useRenderLabel(renderLabel) {
13214
13887
  const {
13215
13888
  locale
13216
13889
  } = useConfig();
13217
- return useCallback((type4, data) => {
13890
+ return useCallback((type4, data, info) => {
13218
13891
  if (renderLabel) {
13219
- return renderLabel(type4, data);
13892
+ return renderLabel(type4, data, info);
13220
13893
  }
13221
13894
  switch (type4) {
13222
13895
  case "minute":
@@ -13237,7 +13910,7 @@ const defaultProps$K = {
13237
13910
  precision: "day",
13238
13911
  defaultValue: null
13239
13912
  };
13240
- const DatePicker = forwardRef((p, ref) => {
13913
+ const DatePicker = forwardRef((p, ref2) => {
13241
13914
  const props = mergeProps(defaultProps$K, p);
13242
13915
  const {
13243
13916
  renderLabel
@@ -13252,9 +13925,9 @@ const DatePicker = forwardRef((p, ref) => {
13252
13925
  (_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, v);
13253
13926
  }
13254
13927
  });
13255
- const now2 = useMemo(() => /* @__PURE__ */ new Date(), []);
13928
+ const now2 = useMemo$2(() => /* @__PURE__ */ new Date(), []);
13256
13929
  const mergedRenderLabel = useRenderLabel(renderLabel);
13257
- const pickerValue = useMemo(() => {
13930
+ const pickerValue = useMemo$2(() => {
13258
13931
  let date4 = value !== null && value !== void 0 ? value : now2;
13259
13932
  if (date4.tillNow) {
13260
13933
  return [TILL_NOW];
@@ -13273,7 +13946,7 @@ const DatePicker = forwardRef((p, ref) => {
13273
13946
  });
13274
13947
  const columns = useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow), [props.min, props.max, props.precision, mergedRenderLabel, props.tillNow]);
13275
13948
  return withNativeProps(props, React__default.createElement(Picker, {
13276
- ref,
13949
+ ref: ref2,
13277
13950
  columns,
13278
13951
  value: pickerValue,
13279
13952
  onCancel: props.onCancel,
@@ -13351,7 +14024,7 @@ const DatePickerView = (p) => {
13351
14024
  defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
13352
14025
  });
13353
14026
  const mergedRenderLabel = useRenderLabel(renderLabel);
13354
- const pickerValue = useMemo(() => {
14027
+ const pickerValue = useMemo$2(() => {
13355
14028
  if (value === null || value === void 0 ? void 0 : value.tillNow) {
13356
14029
  return [TILL_NOW, null, null];
13357
14030
  }
@@ -13595,7 +14268,7 @@ const defaultProps$G = {
13595
14268
  closeOnClickAway: false,
13596
14269
  getContainer: defaultPopupBaseProps["getContainer"]
13597
14270
  };
13598
- const Dropdown = forwardRef((props, ref) => {
14271
+ const Dropdown = forwardRef((props, ref2) => {
13599
14272
  const {
13600
14273
  dropdown: componentConfig = {}
13601
14274
  } = useConfig();
@@ -13651,7 +14324,7 @@ const Dropdown = forwardRef((props, ref) => {
13651
14324
  return child;
13652
14325
  }
13653
14326
  });
13654
- useImperativeHandle(ref, () => ({
14327
+ useImperativeHandle(ref2, () => ({
13655
14328
  close: () => {
13656
14329
  setValue(null);
13657
14330
  }
@@ -13776,11 +14449,13 @@ function useMeasure(containerRef, content, rows, direction, expanded, expandNode
13776
14449
  const fullMeasureRef = React__default.useRef(null);
13777
14450
  const midMeasureRef = React__default.useRef(null);
13778
14451
  const startMeasure = useEvent(() => {
13779
- setStatus(
13780
- 1
13781
- /* PREPARE */
13782
- );
13783
- setWalkingIndexes([0, direction === "middle" ? Math.ceil(contentChars.length / 2) : contentChars.length]);
14452
+ unstable_batchedUpdates(() => {
14453
+ setStatus(
14454
+ 1
14455
+ /* PREPARE */
14456
+ );
14457
+ setWalkingIndexes([0, direction === "middle" ? Math.ceil(contentChars.length / 2) : contentChars.length]);
14458
+ });
13784
14459
  });
13785
14460
  React__default.useLayoutEffect(() => {
13786
14461
  startMeasure();
@@ -13790,7 +14465,7 @@ function useMeasure(containerRef, content, rows, direction, expanded, expandNode
13790
14465
  if (status === 1) {
13791
14466
  const fullMeasureHeight = ((_a = fullMeasureRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
13792
14467
  const singleRowMeasureHeight = ((_b = singleRowMeasureRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0;
13793
- const rowMeasureHeight = singleRowMeasureHeight * rows;
14468
+ const rowMeasureHeight = singleRowMeasureHeight * (rows + 0.5);
13794
14469
  if (fullMeasureHeight <= rowMeasureHeight) {
13795
14470
  setStatus(
13796
14471
  100
@@ -14612,29 +15287,31 @@ const classPrefix$Q = "adm-floating-panel";
14612
15287
  const defaultProps$C = {
14613
15288
  handleDraggingOfContent: true
14614
15289
  };
14615
- const FloatingPanel = forwardRef((p, ref) => {
15290
+ const FloatingPanel = forwardRef((p, ref2) => {
14616
15291
  var _a, _b;
14617
15292
  const props = mergeProps(defaultProps$C, p);
14618
15293
  const {
14619
- anchors
15294
+ anchors,
15295
+ placement = "bottom"
14620
15296
  } = props;
14621
15297
  const maxHeight = (_a = anchors[anchors.length - 1]) !== null && _a !== void 0 ? _a : window.innerHeight;
14622
- const possibles = anchors.map((x) => -x);
15298
+ const isBottomPlacement = placement !== "top";
15299
+ const possibles = isBottomPlacement ? anchors.map((x) => -x) : anchors;
14623
15300
  const elementRef = useRef(null);
14624
15301
  const headerRef = useRef(null);
14625
15302
  const contentRef = useRef(null);
14626
15303
  const [pulling, setPulling] = useState(false);
14627
15304
  const pullingRef = useRef(false);
14628
15305
  const bounds = {
14629
- top: possibles[possibles.length - 1],
14630
- bottom: possibles[0]
15306
+ top: Math.min(...possibles),
15307
+ bottom: Math.max(...possibles)
14631
15308
  };
14632
15309
  const onHeightChange = useMemoizedFn((_b = props.onHeightChange) !== null && _b !== void 0 ? _b : () => {
14633
15310
  });
14634
15311
  const [{
14635
15312
  y
14636
15313
  }, api] = useSpring(() => ({
14637
- y: bounds.bottom,
15314
+ y: isBottomPlacement ? bounds.bottom : bounds.top,
14638
15315
  config: {
14639
15316
  tension: 300
14640
15317
  },
@@ -14697,7 +15374,7 @@ const FloatingPanel = forwardRef((p, ref) => {
14697
15374
  passive: false
14698
15375
  } : void 0
14699
15376
  });
14700
- useImperativeHandle(ref, () => ({
15377
+ useImperativeHandle(ref2, () => ({
14701
15378
  setHeight: (height, options) => {
14702
15379
  api.start({
14703
15380
  y: -height,
@@ -14706,27 +15383,36 @@ const FloatingPanel = forwardRef((p, ref) => {
14706
15383
  }
14707
15384
  }), [api]);
14708
15385
  useLockScroll(elementRef, true);
15386
+ const HeaderNode = React__default.createElement("div", {
15387
+ className: `${classPrefix$Q}-header`,
15388
+ ref: headerRef
15389
+ }, React__default.createElement("div", {
15390
+ className: `${classPrefix$Q}-bar`
15391
+ }));
14709
15392
  return withNativeProps(props, React__default.createElement(animated.div, {
14710
15393
  ref: elementRef,
14711
- className: classPrefix$Q,
15394
+ className: classNames(classPrefix$Q, `${classPrefix$Q}-${placement}`),
14712
15395
  style: {
14713
15396
  height: Math.round(maxHeight),
14714
- translateY: y.to((y2) => `calc(100% + (${Math.round(y2)}px))`)
15397
+ translateY: y.to((y2) => {
15398
+ if (isBottomPlacement) {
15399
+ return `calc(100% + (${Math.round(y2)}px))`;
15400
+ }
15401
+ if (placement === "top") {
15402
+ return `calc(-100% + (${Math.round(y2)}px))`;
15403
+ }
15404
+ return y2;
15405
+ })
14715
15406
  }
14716
15407
  }, React__default.createElement("div", {
14717
15408
  className: `${classPrefix$Q}-mask`,
14718
15409
  style: {
14719
15410
  display: pulling ? "block" : "none"
14720
15411
  }
14721
- }), React__default.createElement("div", {
14722
- className: `${classPrefix$Q}-header`,
14723
- ref: headerRef
14724
- }, React__default.createElement("div", {
14725
- className: `${classPrefix$Q}-bar`
14726
- })), React__default.createElement("div", {
15412
+ }), isBottomPlacement && HeaderNode, React__default.createElement("div", {
14727
15413
  className: `${classPrefix$Q}-content`,
14728
15414
  ref: contentRef
14729
- }, props.children)));
15415
+ }, props.children), placement === "top" && HeaderNode));
14730
15416
  });
14731
15417
  function _extends$1() {
14732
15418
  _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
@@ -14851,7 +15537,7 @@ function _isNativeReflectConstruct$1() {
14851
15537
  }
14852
15538
  }
14853
15539
  function _possibleConstructorReturn(self2, call2) {
14854
- if (call2 && (_typeof$1(call2) === "object" || typeof call2 === "function")) {
15540
+ if (call2 && (_typeof(call2) === "object" || typeof call2 === "function")) {
14855
15541
  return call2;
14856
15542
  } else if (call2 !== void 0) {
14857
15543
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -14880,7 +15566,7 @@ function toArray$2(children) {
14880
15566
  }
14881
15567
  if (Array.isArray(child)) {
14882
15568
  ret = ret.concat(toArray$2(child));
14883
- } else if (reactIsExports.isFragment(child) && child.props) {
15569
+ } else if (isFragment$2(child) && child.props) {
14884
15570
  ret = ret.concat(toArray$2(child.props.children, option));
14885
15571
  } else {
14886
15572
  ret.push(child);
@@ -14894,7 +15580,7 @@ function isEqual2(obj1, obj2) {
14894
15580
  function deepEqual(a, b) {
14895
15581
  var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
14896
15582
  var circular = refSet.has(a);
14897
- warningOnce$1(!circular, "Warning: There may be circular references");
15583
+ warningOnce(!circular, "Warning: There may be circular references");
14898
15584
  if (circular) {
14899
15585
  return false;
14900
15586
  }
@@ -14917,7 +15603,7 @@ function isEqual2(obj1, obj2) {
14917
15603
  }
14918
15604
  return true;
14919
15605
  }
14920
- if (a && b && _typeof$1(a) === "object" && _typeof$1(b) === "object") {
15606
+ if (a && b && _typeof(a) === "object" && _typeof(b) === "object") {
14921
15607
  var keys2 = Object.keys(a);
14922
15608
  if (keys2.length !== Object.keys(b).length) {
14923
15609
  return false;
@@ -14932,9 +15618,9 @@ function isEqual2(obj1, obj2) {
14932
15618
  }
14933
15619
  var HOOK_MARK$1 = "RC_FORM_INTERNAL_HOOKS";
14934
15620
  var warningFunc$1 = function warningFunc() {
14935
- warningOnce$1(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
15621
+ warningOnce(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
14936
15622
  };
14937
- var Context$2 = /* @__PURE__ */ React$1.createContext({
15623
+ var Context$2 = /* @__PURE__ */ React$2.createContext({
14938
15624
  getFieldValue: warningFunc$1,
14939
15625
  getFieldsValue: warningFunc$1,
14940
15626
  getFieldError: warningFunc$1,
@@ -14968,7 +15654,7 @@ var Context$2 = /* @__PURE__ */ React$1.createContext({
14968
15654
  };
14969
15655
  }
14970
15656
  });
14971
- var ListContext = /* @__PURE__ */ React$1.createContext(null);
15657
+ var ListContext = /* @__PURE__ */ React$2.createContext(null);
14972
15658
  function toArray$1(value) {
14973
15659
  if (value === void 0 || value === null) {
14974
15660
  return [];
@@ -14979,7 +15665,7 @@ function isFormInstance(form) {
14979
15665
  return form && !!form._init;
14980
15666
  }
14981
15667
  function _regeneratorRuntime() {
14982
- _regeneratorRuntime = function _regeneratorRuntime2() {
15668
+ _regeneratorRuntime = function _regeneratorRuntime3() {
14983
15669
  return e2;
14984
15670
  };
14985
15671
  var t, e2 = {}, r = Object.prototype, n2 = r.hasOwnProperty, o = Object.defineProperty || function(t2, e3, r2) {
@@ -15046,7 +15732,7 @@ function _regeneratorRuntime() {
15046
15732
  var c6 = tryCatch(t2[r3], t2, o2);
15047
15733
  if ("throw" !== c6.type) {
15048
15734
  var u2 = c6.arg, h2 = u2.value;
15049
- return h2 && "object" == _typeof$1(h2) && n2.call(h2, "__await") ? e3.resolve(h2.__await).then(function(t3) {
15735
+ return h2 && "object" == _typeof(h2) && n2.call(h2, "__await") ? e3.resolve(h2.__await).then(function(t3) {
15050
15736
  invoke("next", t3, i3, a2);
15051
15737
  }, function(t3) {
15052
15738
  invoke("throw", t3, i3, a2);
@@ -15157,7 +15843,7 @@ function _regeneratorRuntime() {
15157
15843
  return i3.next = i3;
15158
15844
  }
15159
15845
  }
15160
- throw new TypeError(_typeof$1(e3) + " is not iterable");
15846
+ throw new TypeError(_typeof(e3) + " is not iterable");
15161
15847
  }
15162
15848
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
15163
15849
  value: GeneratorFunctionPrototype,
@@ -15413,10 +16099,10 @@ function _wrapNativeSuper(Class) {
15413
16099
  return _wrapNativeSuper(Class);
15414
16100
  }
15415
16101
  var formatRegExp = /%[sdj%]/g;
15416
- var warning$2 = function warning2() {
16102
+ var warning = function warning2() {
15417
16103
  };
15418
16104
  if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
15419
- warning$2 = function warning3(type4, errors) {
16105
+ warning = function warning3(type4, errors) {
15420
16106
  if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
15421
16107
  if (errors.every(function(e2) {
15422
16108
  return typeof e2 === "string";
@@ -16368,7 +17054,7 @@ Schema.register = function register(type4, validator) {
16368
17054
  }
16369
17055
  validators[type4] = validator;
16370
17056
  };
16371
- Schema.warning = warning$2;
17057
+ Schema.warning = warning;
16372
17058
  Schema.messages = messages;
16373
17059
  Schema.validators = validators;
16374
17060
  var typeTemplate = "'${name}' is not a valid ${type}";
@@ -16475,9 +17161,9 @@ function _validateRule() {
16475
17161
  result = _context2.t0.errors.map(function(_ref4, index2) {
16476
17162
  var message = _ref4.message;
16477
17163
  var mergedMessage = message === CODE_LOGIC_ERROR ? messages2.default : message;
16478
- return /* @__PURE__ */ React$1.isValidElement(mergedMessage) ? (
17164
+ return /* @__PURE__ */ React$2.isValidElement(mergedMessage) ? (
16479
17165
  // Wrap ReactNode with `key`
16480
- React$1.cloneElement(mergedMessage, {
17166
+ React$2.cloneElement(mergedMessage, {
16481
17167
  key: "error_".concat(index2)
16482
17168
  })
16483
17169
  ) : mergedMessage;
@@ -16532,7 +17218,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
16532
17218
  args[_key] = arguments[_key];
16533
17219
  }
16534
17220
  Promise.resolve().then(function() {
16535
- warningOnce$1(!hasPromise, "Your validator function has already return a promise. `callback` will be ignored.");
17221
+ warningOnce(!hasPromise, "Your validator function has already return a promise. `callback` will be ignored.");
16536
17222
  if (!hasPromise) {
16537
17223
  callback.apply(void 0, args);
16538
17224
  }
@@ -16540,7 +17226,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
16540
17226
  };
16541
17227
  var promise = originValidatorFunc(rule, val, wrappedCallback);
16542
17228
  hasPromise = promise && typeof promise.then === "function" && typeof promise.catch === "function";
16543
- warningOnce$1(hasPromise, "`callback` is deprecated. Please return a promise instead.");
17229
+ warningOnce(hasPromise, "`callback` is deprecated. Please return a promise instead.");
16544
17230
  if (hasPromise) {
16545
17231
  promise.then(function() {
16546
17232
  callback();
@@ -16710,7 +17396,7 @@ function isSimilar(source, target) {
16710
17396
  if (!source && target || source && !target) {
16711
17397
  return false;
16712
17398
  }
16713
- if (!source || !target || _typeof$1(source) !== "object" || _typeof$1(target) !== "object") {
17399
+ if (!source || !target || _typeof(source) !== "object" || _typeof(target) !== "object") {
16714
17400
  return false;
16715
17401
  }
16716
17402
  var sourceKeys = Object.keys(source);
@@ -16727,7 +17413,7 @@ function isSimilar(source, target) {
16727
17413
  }
16728
17414
  function defaultGetValueFromEvent(valuePropName) {
16729
17415
  var event = arguments.length <= 1 ? void 0 : arguments[1];
16730
- if (event && event.target && _typeof$1(event.target) === "object" && valuePropName in event.target) {
17416
+ if (event && event.target && _typeof(event.target) === "object" && valuePropName in event.target) {
16731
17417
  return event.target[valuePropName];
16732
17418
  }
16733
17419
  return event;
@@ -17015,7 +17701,7 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17015
17701
  });
17016
17702
  }
17017
17703
  var childList = toArray$2(children);
17018
- if (childList.length !== 1 || !/* @__PURE__ */ React$1.isValidElement(childList[0])) {
17704
+ if (childList.length !== 1 || !/* @__PURE__ */ React$2.isValidElement(childList[0])) {
17019
17705
  return {
17020
17706
  child: childList,
17021
17707
  isFunction: false
@@ -17132,19 +17818,19 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17132
17818
  var returnChildNode;
17133
17819
  if (isFunction2) {
17134
17820
  returnChildNode = child;
17135
- } else if (/* @__PURE__ */ React$1.isValidElement(child)) {
17136
- returnChildNode = /* @__PURE__ */ React$1.cloneElement(child, this.getControlled(child.props));
17821
+ } else if (/* @__PURE__ */ React$2.isValidElement(child)) {
17822
+ returnChildNode = /* @__PURE__ */ React$2.cloneElement(child, this.getControlled(child.props));
17137
17823
  } else {
17138
- warningOnce$1(!child, "`children` of Field is not validate ReactElement.");
17824
+ warningOnce(!child, "`children` of Field is not validate ReactElement.");
17139
17825
  returnChildNode = child;
17140
17826
  }
17141
- return /* @__PURE__ */ React$1.createElement(React$1.Fragment, {
17827
+ return /* @__PURE__ */ React$2.createElement(React$2.Fragment, {
17142
17828
  key: resetCount
17143
17829
  }, returnChildNode);
17144
17830
  }
17145
17831
  }]);
17146
17832
  return Field2;
17147
- }(React$1.Component);
17833
+ }(React$2.Component);
17148
17834
  Field.contextType = Context$2;
17149
17835
  Field.defaultProps = {
17150
17836
  trigger: "onChange",
@@ -17152,17 +17838,17 @@ Field.defaultProps = {
17152
17838
  };
17153
17839
  function WrapperField(_ref5) {
17154
17840
  var name = _ref5.name, restProps = _objectWithoutProperties(_ref5, _excluded$4);
17155
- var fieldContext = React$1.useContext(Context$2);
17156
- var listContext = React$1.useContext(ListContext);
17841
+ var fieldContext = React$2.useContext(Context$2);
17842
+ var listContext = React$2.useContext(ListContext);
17157
17843
  var namePath = name !== void 0 ? getNamePath(name) : void 0;
17158
17844
  var key = "keep";
17159
17845
  if (!restProps.isListField) {
17160
17846
  key = "_".concat((namePath || []).join("_"));
17161
17847
  }
17162
17848
  if (restProps.preserve === false && restProps.isListField && namePath.length <= 1) {
17163
- warningOnce$1(false, "`preserve` should not apply on Form.List fields.");
17849
+ warningOnce(false, "`preserve` should not apply on Form.List fields.");
17164
17850
  }
17165
- return /* @__PURE__ */ React$1.createElement(Field, _extends$1({
17851
+ return /* @__PURE__ */ React$2.createElement(Field, _extends$1({
17166
17852
  key,
17167
17853
  name: namePath,
17168
17854
  isListField: !!listContext
@@ -17172,23 +17858,23 @@ function WrapperField(_ref5) {
17172
17858
  }
17173
17859
  var List = function List2(_ref) {
17174
17860
  var name = _ref.name, initialValue = _ref.initialValue, children = _ref.children, rules2 = _ref.rules, validateTrigger = _ref.validateTrigger, isListField = _ref.isListField;
17175
- var context = React$1.useContext(Context$2);
17176
- var wrapperListContext = React$1.useContext(ListContext);
17177
- var keyRef = React$1.useRef({
17861
+ var context = React$2.useContext(Context$2);
17862
+ var wrapperListContext = React$2.useContext(ListContext);
17863
+ var keyRef = React$2.useRef({
17178
17864
  keys: [],
17179
17865
  id: 0
17180
17866
  });
17181
17867
  var keyManager = keyRef.current;
17182
- var prefixName = React$1.useMemo(function() {
17868
+ var prefixName = React$2.useMemo(function() {
17183
17869
  var parentPrefixName = getNamePath(context.prefixName) || [];
17184
17870
  return [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
17185
17871
  }, [context.prefixName, name]);
17186
- var fieldContext = React$1.useMemo(function() {
17872
+ var fieldContext = React$2.useMemo(function() {
17187
17873
  return _objectSpread2(_objectSpread2({}, context), {}, {
17188
17874
  prefixName
17189
17875
  });
17190
17876
  }, [context, prefixName]);
17191
- var listContext = React$1.useMemo(function() {
17877
+ var listContext = React$2.useMemo(function() {
17192
17878
  return {
17193
17879
  getKey: function getKey(namePath) {
17194
17880
  var len = prefixName.length;
@@ -17198,7 +17884,7 @@ var List = function List2(_ref) {
17198
17884
  };
17199
17885
  }, [prefixName]);
17200
17886
  if (typeof children !== "function") {
17201
- warningOnce$1(false, "Form.List only accepts function as children.");
17887
+ warningOnce(false, "Form.List only accepts function as children.");
17202
17888
  return null;
17203
17889
  }
17204
17890
  var shouldUpdate = function shouldUpdate2(prevValue, nextValue, _ref2) {
@@ -17208,11 +17894,11 @@ var List = function List2(_ref) {
17208
17894
  }
17209
17895
  return prevValue !== nextValue;
17210
17896
  };
17211
- return /* @__PURE__ */ React$1.createElement(ListContext.Provider, {
17897
+ return /* @__PURE__ */ React$2.createElement(ListContext.Provider, {
17212
17898
  value: listContext
17213
- }, /* @__PURE__ */ React$1.createElement(Context$2.Provider, {
17899
+ }, /* @__PURE__ */ React$2.createElement(Context$2.Provider, {
17214
17900
  value: fieldContext
17215
- }, /* @__PURE__ */ React$1.createElement(WrapperField, {
17901
+ }, /* @__PURE__ */ React$2.createElement(WrapperField, {
17216
17902
  name: [],
17217
17903
  shouldUpdate,
17218
17904
  rules: rules2,
@@ -17235,7 +17921,7 @@ var List = function List2(_ref) {
17235
17921
  onChange([].concat(_toConsumableArray(newValue.slice(0, index2)), [defaultValue], _toConsumableArray(newValue.slice(index2))));
17236
17922
  } else {
17237
17923
  if (index2 < 0 || index2 > newValue.length) {
17238
- warningOnce$1(false, "The second parameter of the add function should be a valid positive number.");
17924
+ warningOnce(false, "The second parameter of the add function should be a valid positive number.");
17239
17925
  }
17240
17926
  keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
17241
17927
  onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
@@ -17271,7 +17957,7 @@ var List = function List2(_ref) {
17271
17957
  if (!Array.isArray(listValue)) {
17272
17958
  listValue = [];
17273
17959
  {
17274
- warningOnce$1(false, "Current value of '".concat(prefixName.join(" > "), "' is not an array type."));
17960
+ warningOnce(false, "Current value of '".concat(prefixName.join(" > "), "' is not an array type."));
17275
17961
  }
17276
17962
  }
17277
17963
  return children(listValue.map(function(__, index2) {
@@ -17318,7 +18004,7 @@ function allPromiseFinish(promiseList) {
17318
18004
  var SPLIT = "__@field_split__";
17319
18005
  function normalize(namePath) {
17320
18006
  return namePath.map(function(cell) {
17321
- return "".concat(_typeof$1(cell), ":").concat(cell);
18007
+ return "".concat(_typeof(cell), ":").concat(cell);
17322
18008
  }).join(SPLIT);
17323
18009
  }
17324
18010
  var NameMap = /* @__PURE__ */ function() {
@@ -17435,7 +18121,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
17435
18121
  registerWatch: _this.registerWatch
17436
18122
  };
17437
18123
  }
17438
- warningOnce$1(false, "`getInternalHooks` is internal usage. Should not call directly.");
18124
+ warningOnce(false, "`getInternalHooks` is internal usage. Should not call directly.");
17439
18125
  return null;
17440
18126
  };
17441
18127
  this.useSubscribe = function(subscribable) {
@@ -17502,7 +18188,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
17502
18188
  _this.timeoutId = setTimeout(function() {
17503
18189
  _this.timeoutId = null;
17504
18190
  if (!_this.formHooked) {
17505
- warningOnce$1(false, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
18191
+ warningOnce(false, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
17506
18192
  }
17507
18193
  });
17508
18194
  }
@@ -17698,11 +18384,11 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
17698
18384
  var namePath = field.getNamePath();
17699
18385
  var formInitialValue = _this.getInitialValue(namePath);
17700
18386
  if (formInitialValue !== void 0) {
17701
- warningOnce$1(false, "Form already set 'initialValues' with path '".concat(namePath.join("."), "'. Field can not overwrite it."));
18387
+ warningOnce(false, "Form already set 'initialValues' with path '".concat(namePath.join("."), "'. Field can not overwrite it."));
17702
18388
  } else {
17703
18389
  var records = cache.get(namePath);
17704
18390
  if (records && records.size > 1) {
17705
- warningOnce$1(false, "Multiple Field with path '".concat(namePath.join("."), "' set 'initialValue'. Can not decide which one to pick."));
18391
+ warningOnce(false, "Multiple Field with path '".concat(namePath.join("."), "' set 'initialValue'. Can not decide which one to pick."));
17706
18392
  } else if (records) {
17707
18393
  var originValue = _this.getFieldValue(namePath);
17708
18394
  if (!info.skipExist || originValue === void 0) {
@@ -18107,8 +18793,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
18107
18793
  this.forceRootUpdate = forceRootUpdate;
18108
18794
  });
18109
18795
  function useForm(form) {
18110
- var formRef = React$1.useRef();
18111
- var _React$useState = React$1.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
18796
+ var formRef = React$2.useRef();
18797
+ var _React$useState = React$2.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
18112
18798
  if (!formRef.current) {
18113
18799
  if (form) {
18114
18800
  formRef.current = form;
@@ -18122,7 +18808,7 @@ function useForm(form) {
18122
18808
  }
18123
18809
  return [formRef.current];
18124
18810
  }
18125
- var FormContext$1 = /* @__PURE__ */ React$1.createContext({
18811
+ var FormContext$1 = /* @__PURE__ */ React$2.createContext({
18126
18812
  triggerFormChange: function triggerFormChange() {
18127
18813
  },
18128
18814
  triggerFormFinish: function triggerFormFinish() {
@@ -18134,9 +18820,9 @@ var FormContext$1 = /* @__PURE__ */ React$1.createContext({
18134
18820
  });
18135
18821
  var FormProvider = function FormProvider2(_ref) {
18136
18822
  var validateMessages = _ref.validateMessages, onFormChange = _ref.onFormChange, onFormFinish = _ref.onFormFinish, children = _ref.children;
18137
- var formContext = React$1.useContext(FormContext$1);
18138
- var formsRef = React$1.useRef({});
18139
- return /* @__PURE__ */ React$1.createElement(FormContext$1.Provider, {
18823
+ var formContext = React$2.useContext(FormContext$1);
18824
+ var formsRef = React$2.useRef({});
18825
+ return /* @__PURE__ */ React$2.createElement(FormContext$1.Provider, {
18140
18826
  value: _objectSpread2(_objectSpread2({}, formContext), {}, {
18141
18827
  validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
18142
18828
  // =========================================================
@@ -18176,15 +18862,15 @@ var FormProvider = function FormProvider2(_ref) {
18176
18862
  }, children);
18177
18863
  };
18178
18864
  var _excluded$2 = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
18179
- var Form$1 = function Form(_ref, ref) {
18865
+ var Form$1 = function Form(_ref, ref2) {
18180
18866
  var name = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve = _ref.preserve, children = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, restProps = _objectWithoutProperties(_ref, _excluded$2);
18181
- var formContext = React$1.useContext(FormContext$1);
18867
+ var formContext = React$2.useContext(FormContext$1);
18182
18868
  var _useForm = useForm(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
18183
18869
  var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK$1), useSubscribe = _formInstance$getInte.useSubscribe, setInitialValues = _formInstance$getInte.setInitialValues, setCallbacks = _formInstance$getInte.setCallbacks, setValidateMessages = _formInstance$getInte.setValidateMessages, setPreserve = _formInstance$getInte.setPreserve, destroyForm = _formInstance$getInte.destroyForm;
18184
- React$1.useImperativeHandle(ref, function() {
18870
+ React$2.useImperativeHandle(ref2, function() {
18185
18871
  return formInstance;
18186
18872
  });
18187
- React$1.useEffect(function() {
18873
+ React$2.useEffect(function() {
18188
18874
  formContext.registerForm(name, formInstance);
18189
18875
  return function() {
18190
18876
  formContext.unregisterForm(name);
@@ -18211,12 +18897,12 @@ var Form$1 = function Form(_ref, ref) {
18211
18897
  onFinishFailed
18212
18898
  });
18213
18899
  setPreserve(preserve);
18214
- var mountRef = React$1.useRef(null);
18900
+ var mountRef = React$2.useRef(null);
18215
18901
  setInitialValues(initialValues, !mountRef.current);
18216
18902
  if (!mountRef.current) {
18217
18903
  mountRef.current = true;
18218
18904
  }
18219
- React$1.useEffect(
18905
+ React$2.useEffect(
18220
18906
  function() {
18221
18907
  return destroyForm;
18222
18908
  },
@@ -18232,27 +18918,27 @@ var Form$1 = function Form(_ref, ref) {
18232
18918
  childrenNode = children;
18233
18919
  }
18234
18920
  useSubscribe(!childrenRenderProps);
18235
- var prevFieldsRef = React$1.useRef();
18236
- React$1.useEffect(function() {
18921
+ var prevFieldsRef = React$2.useRef();
18922
+ React$2.useEffect(function() {
18237
18923
  if (!isSimilar(prevFieldsRef.current || [], fields || [])) {
18238
18924
  formInstance.setFields(fields || []);
18239
18925
  }
18240
18926
  prevFieldsRef.current = fields;
18241
18927
  }, [fields, formInstance]);
18242
- var formContextValue = React$1.useMemo(function() {
18928
+ var formContextValue = React$2.useMemo(function() {
18243
18929
  return _objectSpread2(_objectSpread2({}, formInstance), {}, {
18244
18930
  validateTrigger
18245
18931
  });
18246
18932
  }, [formInstance, validateTrigger]);
18247
- var wrapperNode = /* @__PURE__ */ React$1.createElement(ListContext.Provider, {
18933
+ var wrapperNode = /* @__PURE__ */ React$2.createElement(ListContext.Provider, {
18248
18934
  value: null
18249
- }, /* @__PURE__ */ React$1.createElement(Context$2.Provider, {
18935
+ }, /* @__PURE__ */ React$2.createElement(Context$2.Provider, {
18250
18936
  value: formContextValue
18251
18937
  }, childrenNode));
18252
18938
  if (Component === false) {
18253
18939
  return wrapperNode;
18254
18940
  }
18255
- return /* @__PURE__ */ React$1.createElement(Component, _extends$1({}, restProps, {
18941
+ return /* @__PURE__ */ React$2.createElement(Component, _extends$1({}, restProps, {
18256
18942
  onSubmit: function onSubmit(event) {
18257
18943
  event.preventDefault();
18258
18944
  event.stopPropagation();
@@ -18276,7 +18962,7 @@ function stringify(value) {
18276
18962
  var useWatchWarning = function(namePath) {
18277
18963
  var fullyStr = namePath.join("__RC_FIELD_FORM_SPLIT__");
18278
18964
  var nameStrRef = useRef(fullyStr);
18279
- warningOnce$1(nameStrRef.current === fullyStr, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
18965
+ warningOnce(nameStrRef.current === fullyStr, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
18280
18966
  };
18281
18967
  function useWatch() {
18282
18968
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -18288,7 +18974,7 @@ function useWatch() {
18288
18974
  } : _form;
18289
18975
  var form = options.form;
18290
18976
  var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue = _useState2[1];
18291
- var valueStr = useMemo(function() {
18977
+ var valueStr = useMemo$2(function() {
18292
18978
  return stringify(value);
18293
18979
  }, [value]);
18294
18980
  var valueStrRef = useRef(valueStr);
@@ -18297,7 +18983,7 @@ function useWatch() {
18297
18983
  var formInstance = form || fieldContext;
18298
18984
  var isValidForm = formInstance && formInstance._init;
18299
18985
  {
18300
- warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
18986
+ warningOnce(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
18301
18987
  }
18302
18988
  var namePath = getNamePath(dependencies);
18303
18989
  var namePathRef = useRef(namePath);
@@ -18328,7 +19014,7 @@ function useWatch() {
18328
19014
  );
18329
19015
  return value;
18330
19016
  }
18331
- var InternalForm = /* @__PURE__ */ React$1.forwardRef(Form$1);
19017
+ var InternalForm = /* @__PURE__ */ React$2.forwardRef(Form$1);
18332
19018
  var RefForm = InternalForm;
18333
19019
  RefForm.FormProvider = FormProvider;
18334
19020
  RefForm.Field = WrapperField;
@@ -18353,11 +19039,11 @@ function isNonNullObject(value) {
18353
19039
  }
18354
19040
  function isSpecial(value) {
18355
19041
  var stringValue = Object.prototype.toString.call(value);
18356
- return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
19042
+ return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement$1(value);
18357
19043
  }
18358
19044
  var canUseSymbol = typeof Symbol === "function" && Symbol.for;
18359
19045
  var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
18360
- function isReactElement(value) {
19046
+ function isReactElement$1(value) {
18361
19047
  return value.$$typeof === REACT_ELEMENT_TYPE;
18362
19048
  }
18363
19049
  function emptyTarget(val) {
@@ -18476,7 +19162,7 @@ const FormArray = (props) => {
18476
19162
  };
18477
19163
  const classPrefix$P = "adm-form";
18478
19164
  const defaultProps$B = defaultFormContext;
18479
- const Form2 = forwardRef((p, ref) => {
19165
+ const Form2 = forwardRef((p, ref2) => {
18480
19166
  const props = mergeProps(defaultProps$B, p);
18481
19167
  const {
18482
19168
  className,
@@ -18492,7 +19178,7 @@ const Form2 = forwardRef((p, ref) => {
18492
19178
  const {
18493
19179
  locale
18494
19180
  } = useConfig();
18495
- const validateMessages = useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
19181
+ const validateMessages = useMemo$2(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
18496
19182
  const lists = [];
18497
19183
  let currentHeader = null;
18498
19184
  let items = [];
@@ -18516,172 +19202,47 @@ const Form2 = forwardRef((p, ref) => {
18516
19202
  return;
18517
19203
  }
18518
19204
  if (child.type === FormArray) {
18519
- collect();
18520
- lists.push(child);
18521
- return;
18522
- }
18523
- }
18524
- items.push(child);
18525
- });
18526
- collect();
18527
- return React__default.createElement(RefForm, Object.assign({
18528
- className: classNames(classPrefix$P, className),
18529
- style: style2,
18530
- ref
18531
- }, formProps, {
18532
- validateMessages
18533
- }), React__default.createElement(FormContext.Provider, {
18534
- value: {
18535
- name: formProps.name,
18536
- hasFeedback,
18537
- layout,
18538
- requiredMarkStyle,
18539
- disabled
18540
- }
18541
- }, lists), footer && React__default.createElement("div", {
18542
- className: `${classPrefix$P}-footer`
18543
- }, footer));
18544
- });
18545
- var FieldContext = {};
18546
- var interopRequireWildcard = { exports: {} };
18547
- var _typeof = { exports: {} };
18548
- (function(module) {
18549
- function _typeof2(o) {
18550
- "@babel/helpers - typeof";
18551
- return module.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
18552
- return typeof o2;
18553
- } : function(o2) {
18554
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
18555
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(o);
18556
- }
18557
- module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
18558
- })(_typeof);
18559
- var _typeofExports = _typeof.exports;
18560
- (function(module) {
18561
- var _typeof2 = _typeofExports["default"];
18562
- function _getRequireWildcardCache(nodeInterop) {
18563
- if (typeof WeakMap !== "function")
18564
- return null;
18565
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
18566
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
18567
- return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
18568
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
18569
- })(nodeInterop);
18570
- }
18571
- function _interopRequireWildcard2(obj, nodeInterop) {
18572
- if (!nodeInterop && obj && obj.__esModule) {
18573
- return obj;
18574
- }
18575
- if (obj === null || _typeof2(obj) !== "object" && typeof obj !== "function") {
18576
- return {
18577
- "default": obj
18578
- };
18579
- }
18580
- var cache = _getRequireWildcardCache(nodeInterop);
18581
- if (cache && cache.has(obj)) {
18582
- return cache.get(obj);
18583
- }
18584
- var newObj = {};
18585
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
18586
- for (var key in obj) {
18587
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
18588
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
18589
- if (desc && (desc.get || desc.set)) {
18590
- Object.defineProperty(newObj, key, desc);
18591
- } else {
18592
- newObj[key] = obj[key];
18593
- }
18594
- }
18595
- }
18596
- newObj["default"] = obj;
18597
- if (cache) {
18598
- cache.set(obj, newObj);
18599
- }
18600
- return newObj;
18601
- }
18602
- module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
18603
- })(interopRequireWildcard);
18604
- var interopRequireWildcardExports = interopRequireWildcard.exports;
18605
- var interopRequireDefault = { exports: {} };
18606
- (function(module) {
18607
- function _interopRequireDefault2(obj) {
18608
- return obj && obj.__esModule ? obj : {
18609
- "default": obj
18610
- };
18611
- }
18612
- module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
18613
- })(interopRequireDefault);
18614
- var interopRequireDefaultExports = interopRequireDefault.exports;
18615
- var warning$1 = {};
18616
- Object.defineProperty(warning$1, "__esModule", {
18617
- value: true
18618
- });
18619
- warning$1.call = call;
18620
- warning$1.default = void 0;
18621
- warning$1.note = note;
18622
- warning$1.noteOnce = noteOnce;
18623
- warning$1.preMessage = void 0;
18624
- warning$1.resetWarned = resetWarned;
18625
- warning$1.warning = warning;
18626
- warning$1.warningOnce = warningOnce;
18627
- var warned = {};
18628
- var preWarningFns = [];
18629
- var preMessage = warning$1.preMessage = function preMessage22(fn) {
18630
- preWarningFns.push(fn);
18631
- };
18632
- function warning(valid, message) {
18633
- if (!valid && console !== void 0) {
18634
- var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
18635
- return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
18636
- }, message);
18637
- if (finalMessage) {
18638
- console.error("Warning: ".concat(finalMessage));
19205
+ collect();
19206
+ lists.push(child);
19207
+ return;
19208
+ }
18639
19209
  }
18640
- }
18641
- }
18642
- function note(valid, message) {
18643
- if (!valid && console !== void 0) {
18644
- var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
18645
- return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "note");
18646
- }, message);
18647
- if (finalMessage) {
18648
- console.warn("Note: ".concat(finalMessage));
19210
+ items.push(child);
19211
+ });
19212
+ collect();
19213
+ return React__default.createElement(RefForm, Object.assign({
19214
+ className: classNames(classPrefix$P, className),
19215
+ style: style2,
19216
+ ref: ref2
19217
+ }, formProps, {
19218
+ validateMessages
19219
+ }), React__default.createElement(FormContext.Provider, {
19220
+ value: {
19221
+ name: formProps.name,
19222
+ hasFeedback,
19223
+ layout,
19224
+ requiredMarkStyle,
19225
+ disabled
18649
19226
  }
18650
- }
18651
- }
18652
- function resetWarned() {
18653
- warned = {};
18654
- }
18655
- function call(method4, valid, message) {
18656
- if (!valid && !warned[message]) {
18657
- method4(false, message);
18658
- warned[message] = true;
18659
- }
18660
- }
18661
- function warningOnce(valid, message) {
18662
- call(warning, valid, message);
18663
- }
18664
- function noteOnce(valid, message) {
18665
- call(note, valid, message);
18666
- }
18667
- warningOnce.preMessage = preMessage;
18668
- warningOnce.resetWarned = resetWarned;
18669
- warningOnce.noteOnce = noteOnce;
18670
- warning$1.default = warningOnce;
18671
- var _interopRequireWildcard = interopRequireWildcardExports.default;
18672
- var _interopRequireDefault = interopRequireDefaultExports.default;
19227
+ }, lists), footer && React__default.createElement("div", {
19228
+ className: `${classPrefix$P}-footer`
19229
+ }, footer));
19230
+ });
19231
+ var FieldContext = {};
19232
+ var _interopRequireWildcard$1 = interopRequireWildcardExports.default;
19233
+ var _interopRequireDefault$3 = interopRequireDefaultExports.default;
18673
19234
  Object.defineProperty(FieldContext, "__esModule", {
18674
19235
  value: true
18675
19236
  });
18676
19237
  var default_1 = FieldContext.default = FieldContext.HOOK_MARK = void 0;
18677
- var _warning = _interopRequireDefault(warning$1);
18678
- var React = _interopRequireWildcard(React__default);
19238
+ var _warning = _interopRequireDefault$3(warning$3);
19239
+ var React$1 = _interopRequireWildcard$1(React__default);
18679
19240
  var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
18680
19241
  FieldContext.HOOK_MARK = HOOK_MARK;
18681
19242
  var warningFunc2 = function warningFunc3() {
18682
19243
  (0, _warning.default)(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
18683
19244
  };
18684
- var Context$1 = /* @__PURE__ */ React.createContext({
19245
+ var Context$1 = /* @__PURE__ */ React$1.createContext({
18685
19246
  getFieldValue: warningFunc2,
18686
19247
  getFieldsValue: warningFunc2,
18687
19248
  getFieldError: warningFunc2,
@@ -18715,8 +19276,8 @@ var Context$1 = /* @__PURE__ */ React.createContext({
18715
19276
  };
18716
19277
  }
18717
19278
  });
18718
- var _default = Context$1;
18719
- default_1 = FieldContext.default = _default;
19279
+ var _default$1 = Context$1;
19280
+ default_1 = FieldContext.default = _default$1;
18720
19281
  function undefinedFallback(...items) {
18721
19282
  let i2;
18722
19283
  for (i2 = 0; i2 < items.length; i2++) {
@@ -18725,15 +19286,6 @@ function undefinedFallback(...items) {
18725
19286
  }
18726
19287
  return items[i2];
18727
19288
  }
18728
- const Arrow = memo((props) => {
18729
- return withNativeProps(props, React__default.createElement("svg", {
18730
- viewBox: "0 0 30 16"
18731
- }, React__default.createElement("g", {
18732
- fill: "currentColor"
18733
- }, React__default.createElement("path", {
18734
- d: "M0,0 L30,0 L18.07289,14.312538 C16.65863,16.009645 14.13637,16.238942 12.43926,14.824685 C12.25341,14.669808 12.08199,14.49839 11.92711,14.312538 L0,0 L0,0 Z"
18735
- }))));
18736
- });
18737
19289
  const sides = ["top", "right", "bottom", "left"];
18738
19290
  const min = Math.min;
18739
19291
  const max = Math.max;
@@ -20102,40 +20654,6 @@ const computePosition = (reference, floating, options) => {
20102
20654
  platform: platformWithCache
20103
20655
  });
20104
20656
  };
20105
- class Wrapper extends React__default.Component {
20106
- constructor() {
20107
- super(...arguments);
20108
- this.element = null;
20109
- }
20110
- componentDidMount() {
20111
- this.componentDidUpdate();
20112
- }
20113
- componentDidUpdate() {
20114
- const node = findDOMNode$1(this);
20115
- if (node instanceof Element) {
20116
- this.element = node;
20117
- } else {
20118
- this.element = null;
20119
- }
20120
- }
20121
- render() {
20122
- return React__default.Children.only(this.props.children);
20123
- }
20124
- }
20125
- const record = {
20126
- "topLeft": "top-start",
20127
- "topRight": "top-end",
20128
- "bottomLeft": "bottom-start",
20129
- "bottomRight": "bottom-end",
20130
- "leftTop": "left-start",
20131
- "leftBottom": "left-end",
20132
- "rightTop": "right-start",
20133
- "rightBottom": "right-end"
20134
- };
20135
- function normalizePlacement(placement) {
20136
- var _a;
20137
- return (_a = record[placement]) !== null && _a !== void 0 ? _a : placement;
20138
- }
20139
20657
  let tenPxTester = null;
20140
20658
  let tester = null;
20141
20659
  if (canUseDom$1) {
@@ -20161,6 +20679,218 @@ function convertPx(px) {
20161
20679
  tester.style.setProperty("--size", px.toString());
20162
20680
  return tester.getBoundingClientRect().height;
20163
20681
  }
20682
+ const Arrow = memo((props) => {
20683
+ return withNativeProps(props, React__default.createElement("svg", {
20684
+ viewBox: "0 0 30 16"
20685
+ }, React__default.createElement("g", {
20686
+ fill: "currentColor"
20687
+ }, React__default.createElement("path", {
20688
+ d: "M0,0 L30,0 L18.07289,14.312538 C16.65863,16.009645 14.13637,16.238942 12.43926,14.824685 C12.25341,14.669808 12.08199,14.49839 11.92711,14.312538 L0,0 L0,0 Z"
20689
+ }))));
20690
+ });
20691
+ const record = {
20692
+ "topLeft": "top-start",
20693
+ "topRight": "top-end",
20694
+ "bottomLeft": "bottom-start",
20695
+ "bottomRight": "bottom-end",
20696
+ "leftTop": "left-start",
20697
+ "leftBottom": "left-end",
20698
+ "rightTop": "right-start",
20699
+ "rightBottom": "right-end"
20700
+ };
20701
+ function normalizePlacement(placement) {
20702
+ var _a;
20703
+ return (_a = record[placement]) !== null && _a !== void 0 ? _a : placement;
20704
+ }
20705
+ var findDOMNode$2 = {};
20706
+ var _interopRequireDefault$2 = interopRequireDefaultExports.default;
20707
+ Object.defineProperty(findDOMNode$2, "__esModule", {
20708
+ value: true
20709
+ });
20710
+ var _default = findDOMNode$2.default = findDOMNode$1;
20711
+ var getDOM_1 = findDOMNode$2.getDOM = getDOM$1;
20712
+ findDOMNode$2.isDOM = isDOM$1;
20713
+ var _typeof2$2 = _interopRequireDefault$2(_typeofExports);
20714
+ var _react$1 = _interopRequireDefault$2(React__default);
20715
+ var _reactDom = _interopRequireDefault$2(ReactDOM__default);
20716
+ function isDOM$1(node) {
20717
+ return node instanceof HTMLElement || node instanceof SVGElement;
20718
+ }
20719
+ function getDOM$1(node) {
20720
+ if (node && (0, _typeof2$2.default)(node) === "object" && isDOM$1(node.nativeElement)) {
20721
+ return node.nativeElement;
20722
+ }
20723
+ if (isDOM$1(node)) {
20724
+ return node;
20725
+ }
20726
+ return null;
20727
+ }
20728
+ function findDOMNode$1(node) {
20729
+ var domNode = getDOM$1(node);
20730
+ if (domNode) {
20731
+ return domNode;
20732
+ }
20733
+ if (node instanceof _react$1.default.Component) {
20734
+ var _ReactDOM$findDOMNode;
20735
+ return (_ReactDOM$findDOMNode = _reactDom.default.findDOMNode) === null || _ReactDOM$findDOMNode === void 0 ? void 0 : _ReactDOM$findDOMNode.call(_reactDom.default, node);
20736
+ }
20737
+ return null;
20738
+ }
20739
+ var ref = {};
20740
+ var useMemo$1 = {};
20741
+ var _interopRequireWildcard = interopRequireWildcardExports.default;
20742
+ Object.defineProperty(useMemo$1, "__esModule", {
20743
+ value: true
20744
+ });
20745
+ useMemo$1.default = useMemo;
20746
+ var React = _interopRequireWildcard(React__default);
20747
+ function useMemo(getValue2, condition, shouldUpdate) {
20748
+ var cacheRef = React.useRef({});
20749
+ if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
20750
+ cacheRef.current.value = getValue2();
20751
+ cacheRef.current.condition = condition;
20752
+ }
20753
+ return cacheRef.current.value;
20754
+ }
20755
+ var isFragment$1 = {};
20756
+ var _interopRequireDefault$1 = interopRequireDefaultExports.default;
20757
+ Object.defineProperty(isFragment$1, "__esModule", {
20758
+ value: true
20759
+ });
20760
+ isFragment$1.default = isFragment;
20761
+ var _typeof2$1 = _interopRequireDefault$1(_typeofExports);
20762
+ var REACT_ELEMENT_TYPE_18 = Symbol.for("react.element");
20763
+ var REACT_ELEMENT_TYPE_19 = Symbol.for("react.transitional.element");
20764
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
20765
+ function isFragment(object4) {
20766
+ return (
20767
+ // Base object type
20768
+ object4 && (0, _typeof2$1.default)(object4) === "object" && // React Element type
20769
+ (object4.$$typeof === REACT_ELEMENT_TYPE_18 || object4.$$typeof === REACT_ELEMENT_TYPE_19) && // React Fragment type
20770
+ object4.type === REACT_FRAGMENT_TYPE
20771
+ );
20772
+ }
20773
+ var composeRef_1;
20774
+ var getNodeRef_1;
20775
+ var supportRef_1;
20776
+ var _interopRequireDefault = interopRequireDefaultExports.default;
20777
+ Object.defineProperty(ref, "__esModule", {
20778
+ value: true
20779
+ });
20780
+ ref.useComposeRef = supportRef_1 = ref.supportRef = ref.supportNodeRef = getNodeRef_1 = ref.getNodeRef = ref.fillRef = composeRef_1 = ref.composeRef = void 0;
20781
+ var _typeof2 = _interopRequireDefault(_typeofExports);
20782
+ var _react = React__default;
20783
+ var _reactIs = reactIsExports;
20784
+ var _useMemo = _interopRequireDefault(useMemo$1);
20785
+ var _isFragment = _interopRequireDefault(isFragment$1);
20786
+ var ReactMajorVersion = Number(_react.version.split(".")[0]);
20787
+ var fillRef2 = ref.fillRef = function fillRef3(ref2, node) {
20788
+ if (typeof ref2 === "function") {
20789
+ ref2(node);
20790
+ } else if ((0, _typeof2.default)(ref2) === "object" && ref2 && "current" in ref2) {
20791
+ ref2.current = node;
20792
+ }
20793
+ };
20794
+ var composeRef2 = composeRef_1 = ref.composeRef = function composeRef3() {
20795
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
20796
+ refs[_key] = arguments[_key];
20797
+ }
20798
+ var refList = refs.filter(Boolean);
20799
+ if (refList.length <= 1) {
20800
+ return refList[0];
20801
+ }
20802
+ return function(node) {
20803
+ refs.forEach(function(ref2) {
20804
+ fillRef2(ref2, node);
20805
+ });
20806
+ };
20807
+ };
20808
+ ref.useComposeRef = function useComposeRef() {
20809
+ for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
20810
+ refs[_key2] = arguments[_key2];
20811
+ }
20812
+ return (0, _useMemo.default)(function() {
20813
+ return composeRef2.apply(void 0, refs);
20814
+ }, refs, function(prev, next) {
20815
+ return prev.length !== next.length || prev.every(function(ref2, i2) {
20816
+ return ref2 !== next[i2];
20817
+ });
20818
+ });
20819
+ };
20820
+ var supportRef2 = supportRef_1 = ref.supportRef = function supportRef3(nodeOrComponent) {
20821
+ var _type$prototype, _nodeOrComponent$prot;
20822
+ if (!nodeOrComponent) {
20823
+ return false;
20824
+ }
20825
+ if (isReactElement(nodeOrComponent) && ReactMajorVersion >= 19) {
20826
+ return true;
20827
+ }
20828
+ var type4 = (0, _reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
20829
+ if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type4.$$typeof !== _reactIs.ForwardRef) {
20830
+ return false;
20831
+ }
20832
+ if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== _reactIs.ForwardRef) {
20833
+ return false;
20834
+ }
20835
+ return true;
20836
+ };
20837
+ function isReactElement(node) {
20838
+ return /* @__PURE__ */ (0, _react.isValidElement)(node) && !(0, _isFragment.default)(node);
20839
+ }
20840
+ ref.supportNodeRef = function supportNodeRef(node) {
20841
+ return isReactElement(node) && supportRef2(node);
20842
+ };
20843
+ getNodeRef_1 = ref.getNodeRef = function getNodeRef(node) {
20844
+ if (node && isReactElement(node)) {
20845
+ var ele = node;
20846
+ return ele.props.propertyIsEnumerable("ref") ? ele.props.ref : ele.ref;
20847
+ }
20848
+ return null;
20849
+ };
20850
+ class LegacyWrapper extends React$2.Component {
20851
+ constructor() {
20852
+ super(...arguments);
20853
+ this.element = null;
20854
+ }
20855
+ componentDidMount() {
20856
+ this.componentDidUpdate();
20857
+ }
20858
+ componentDidUpdate() {
20859
+ const node = _default(this);
20860
+ if (node instanceof Element) {
20861
+ this.element = node;
20862
+ } else {
20863
+ this.element = null;
20864
+ }
20865
+ }
20866
+ render() {
20867
+ return this.props.children;
20868
+ }
20869
+ }
20870
+ const Wrapper = React$2.forwardRef(({
20871
+ children
20872
+ }, ref2) => {
20873
+ const elementRef = React$2.useRef(null);
20874
+ const legacyWrapperRef = React$2.createRef();
20875
+ const child = React$2.Children.only(children);
20876
+ const canUseRef = supportRef_1(children);
20877
+ const getElement = () => {
20878
+ var _a;
20879
+ if (canUseRef) {
20880
+ return getDOM_1(elementRef.current);
20881
+ }
20882
+ return (_a = legacyWrapperRef.current) === null || _a === void 0 ? void 0 : _a.element;
20883
+ };
20884
+ React$2.useImperativeHandle(ref2, () => ({
20885
+ element: getElement()
20886
+ }));
20887
+ const composedRef = composeRef_1(elementRef, getNodeRef_1(child));
20888
+ return canUseRef ? React$2.cloneElement(child, {
20889
+ ref: composedRef
20890
+ }) : React$2.createElement(LegacyWrapper, {
20891
+ ref: legacyWrapperRef
20892
+ }, child);
20893
+ });
20164
20894
  const classPrefix$O = `adm-popover`;
20165
20895
  const defaultProps$A = {
20166
20896
  placement: "top",
@@ -20169,7 +20899,7 @@ const defaultProps$A = {
20169
20899
  getContainer: () => document.body,
20170
20900
  mode: "light"
20171
20901
  };
20172
- const Popover$1 = forwardRef((p, ref) => {
20902
+ const Popover$1 = forwardRef((p, ref2) => {
20173
20903
  const props = mergeProps(defaultProps$A, p);
20174
20904
  const placement = normalizePlacement(props.placement);
20175
20905
  const [visible, setVisible] = usePropsValue({
@@ -20177,7 +20907,7 @@ const Popover$1 = forwardRef((p, ref) => {
20177
20907
  defaultValue: props.defaultVisible,
20178
20908
  onChange: props.onVisibleChange
20179
20909
  });
20180
- useImperativeHandle(ref, () => ({
20910
+ useImperativeHandle(ref2, () => ({
20181
20911
  show: () => setVisible(true),
20182
20912
  hide: () => setVisible(false),
20183
20913
  visible
@@ -20275,12 +21005,12 @@ const Popover$1 = forwardRef((p, ref) => {
20275
21005
  }, [targetElement, props.trigger]);
20276
21006
  useEffect(() => {
20277
21007
  const floatingElement = floatingRef.current;
20278
- if (!targetElement || !floatingElement)
21008
+ if (!targetElement || !floatingElement || !visible)
20279
21009
  return;
20280
21010
  return autoUpdate(targetElement, floatingElement, update2, {
20281
21011
  elementResize: typeof ResizeObserver !== "undefined"
20282
21012
  });
20283
- }, [targetElement]);
21013
+ }, [targetElement, visible]);
20284
21014
  useClickAway(() => {
20285
21015
  if (!props.trigger)
20286
21016
  return;
@@ -20295,9 +21025,9 @@ const Popover$1 = forwardRef((p, ref) => {
20295
21025
  }, props.children), shouldRender && renderToContainer(props.getContainer, floating));
20296
21026
  });
20297
21027
  const classPrefix$N = `adm-popover-menu`;
20298
- const PopoverMenu = forwardRef((props, ref) => {
21028
+ const PopoverMenu = forwardRef((props, ref2) => {
20299
21029
  const innerRef = useRef(null);
20300
- useImperativeHandle(ref, () => innerRef.current, []);
21030
+ useImperativeHandle(ref2, () => innerRef.current, []);
20301
21031
  const onClick = useCallback((e2) => {
20302
21032
  var _a;
20303
21033
  const {
@@ -20308,7 +21038,7 @@ const PopoverMenu = forwardRef((props, ref) => {
20308
21038
  }
20309
21039
  (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.hide();
20310
21040
  }, [props.onAction]);
20311
- const overlay = useMemo(() => {
21041
+ const overlay = useMemo$2(() => {
20312
21042
  const whetherScroll = (props === null || props === void 0 ? void 0 : props.maxCount) && props.actions.length > (props === null || props === void 0 ? void 0 : props.maxCount);
20313
21043
  const innerHeight = (props === null || props === void 0 ? void 0 : props.maxCount) && (props === null || props === void 0 ? void 0 : props.maxCount) * 48;
20314
21044
  return React__default.createElement("div", {
@@ -20717,7 +21447,6 @@ const GridItem = (p) => {
20717
21447
  const Grid = attachPropertiesToComponent(Grid$1, {
20718
21448
  Item: GridItem
20719
21449
  });
20720
- const useDragAndPinch = createUseGesture([dragAction, pinchAction]);
20721
21450
  const create = () => {
20722
21451
  return [1, 0, 0, 1, 0, 0];
20723
21452
  };
@@ -20742,11 +21471,14 @@ const apply = (m, [ox, oy]) => {
20742
21471
  const multiply = (m1, m2) => {
20743
21472
  return [m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5]];
20744
21473
  };
21474
+ const useDragAndPinch = createUseGesture([dragAction, pinchAction]);
20745
21475
  const classPrefix$K = `adm-image-viewer`;
20746
21476
  const Slide = (props) => {
20747
21477
  const {
20748
21478
  dragLockRef,
20749
- maxZoom
21479
+ maxZoom,
21480
+ imageRender,
21481
+ index: index2
20750
21482
  } = props;
20751
21483
  const initialMartix = useRef([]);
20752
21484
  const controlRef = useRef(null);
@@ -20951,6 +21683,9 @@ const Slide = (props) => {
20951
21683
  }
20952
21684
  }
20953
21685
  });
21686
+ const customRendering = typeof imageRender === "function" && imageRender(props.image, {
21687
+ index: index2
21688
+ });
20954
21689
  return React__default.createElement("div", {
20955
21690
  className: `${classPrefix$K}-slide`
20956
21691
  }, React__default.createElement("div", {
@@ -20961,7 +21696,7 @@ const Slide = (props) => {
20961
21696
  style: {
20962
21697
  matrix
20963
21698
  }
20964
- }, React__default.createElement("img", {
21699
+ }, customRendering ? customRendering : React__default.createElement("img", {
20965
21700
  ref: imgRef,
20966
21701
  src: props.image,
20967
21702
  draggable: false,
@@ -20969,7 +21704,7 @@ const Slide = (props) => {
20969
21704
  }))));
20970
21705
  };
20971
21706
  const classPrefix$J = `adm-image-viewer`;
20972
- const Slides = forwardRef((props, ref) => {
21707
+ const Slides = forwardRef((props, ref2) => {
20973
21708
  const slideWidth = window.innerWidth + convertPx(16);
20974
21709
  const [{
20975
21710
  x
@@ -20990,7 +21725,7 @@ const Slides = forwardRef((props, ref) => {
20990
21725
  immediate
20991
21726
  });
20992
21727
  }
20993
- useImperativeHandle(ref, () => ({
21728
+ useImperativeHandle(ref2, () => ({
20994
21729
  swipeTo
20995
21730
  }));
20996
21731
  const dragLockRef = useRef(false);
@@ -21039,6 +21774,8 @@ const Slides = forwardRef((props, ref) => {
21039
21774
  image,
21040
21775
  onTap: props.onTap,
21041
21776
  maxZoom: props.maxZoom,
21777
+ imageRender: props.imageRender,
21778
+ index: index2,
21042
21779
  onZoomChange: (zoom) => {
21043
21780
  if (zoom !== 1) {
21044
21781
  const index3 = Math.round(x.get() / slideWidth);
@@ -21068,10 +21805,11 @@ const ImageViewer$1 = (p) => {
21068
21805
  className: (_a = props === null || props === void 0 ? void 0 : props.classNames) === null || _a === void 0 ? void 0 : _a.mask
21069
21806
  }, React__default.createElement("div", {
21070
21807
  className: classNames(`${classPrefix$I}-content`, (_b = props === null || props === void 0 ? void 0 : props.classNames) === null || _b === void 0 ? void 0 : _b.body)
21071
- }, props.image && React__default.createElement(Slide, {
21808
+ }, (props.image || typeof props.imageRender === "function") && React__default.createElement(Slide, {
21072
21809
  image: props.image,
21073
21810
  onTap: props.onClose,
21074
- maxZoom: props.maxZoom
21811
+ maxZoom: props.maxZoom,
21812
+ imageRender: props.imageRender
21075
21813
  })), props.image && React__default.createElement("div", {
21076
21814
  className: `${classPrefix$I}-footer`
21077
21815
  }, (_c = props.renderFooter) === null || _c === void 0 ? void 0 : _c.call(props, props.image), React__default.createElement(SafeArea, {
@@ -21082,12 +21820,12 @@ const ImageViewer$1 = (p) => {
21082
21820
  const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$z), {
21083
21821
  defaultIndex: 0
21084
21822
  });
21085
- const MultiImageViewer = forwardRef((p, ref) => {
21823
+ const MultiImageViewer = forwardRef((p, ref2) => {
21086
21824
  var _a, _b, _c;
21087
21825
  const props = mergeProps(multiDefaultProps, p);
21088
21826
  const [index2, setIndex] = useState(props.defaultIndex);
21089
21827
  const slidesRef = useRef(null);
21090
- useImperativeHandle(ref, () => ({
21828
+ useImperativeHandle(ref2, () => ({
21091
21829
  swipeTo: (index3, immediate) => {
21092
21830
  var _a2;
21093
21831
  setIndex(index3);
@@ -21116,7 +21854,8 @@ const MultiImageViewer = forwardRef((p, ref) => {
21116
21854
  onIndexChange: onSlideChange,
21117
21855
  images: props.images,
21118
21856
  onTap: props.onClose,
21119
- maxZoom: props.maxZoom
21857
+ maxZoom: props.maxZoom,
21858
+ imageRender: props.imageRender
21120
21859
  })), props.images && React__default.createElement("div", {
21121
21860
  className: `${classPrefix$I}-footer`
21122
21861
  }, (_c = props.renderFooter) === null || _c === void 0 ? void 0 : _c.call(props, props.images[index2], index2), React__default.createElement(SafeArea, {
@@ -21163,7 +21902,32 @@ const ImageViewer = attachPropertiesToComponent(ImageViewer$1, {
21163
21902
  show: showImageViewer,
21164
21903
  clear: clearImageViewer
21165
21904
  });
21166
- const classPrefix$H = `adm-image-uploader`;
21905
+ const classPrefix$H = `adm-space`;
21906
+ const defaultProps$y = {
21907
+ direction: "horizontal"
21908
+ };
21909
+ const Space = (p) => {
21910
+ const props = mergeProps(defaultProps$y, p);
21911
+ const {
21912
+ direction,
21913
+ onClick
21914
+ } = props;
21915
+ return withNativeProps(props, React__default.createElement("div", {
21916
+ className: classNames(classPrefix$H, {
21917
+ [`${classPrefix$H}-wrap`]: props.wrap,
21918
+ [`${classPrefix$H}-block`]: props.block,
21919
+ [`${classPrefix$H}-${direction}`]: true,
21920
+ [`${classPrefix$H}-align-${props.align}`]: !!props.align,
21921
+ [`${classPrefix$H}-justify-${props.justify}`]: !!props.justify
21922
+ }),
21923
+ onClick
21924
+ }, React__default.Children.map(props.children, (child) => {
21925
+ return child !== null && child !== void 0 && React__default.createElement("div", {
21926
+ className: `${classPrefix$H}-item`
21927
+ }, child);
21928
+ })));
21929
+ };
21930
+ const classPrefix$G = `adm-image-uploader`;
21167
21931
  const PreviewItem = (props) => {
21168
21932
  const {
21169
21933
  locale
@@ -21176,7 +21940,7 @@ const PreviewItem = (props) => {
21176
21940
  onDelete,
21177
21941
  imageFit
21178
21942
  } = props;
21179
- const src = useMemo(() => {
21943
+ const src = useMemo$2(() => {
21180
21944
  if (url2) {
21181
21945
  return url2;
21182
21946
  }
@@ -21193,56 +21957,31 @@ const PreviewItem = (props) => {
21193
21957
  }, [src, file]);
21194
21958
  function renderLoading() {
21195
21959
  return props.status === "pending" && React__default.createElement("div", {
21196
- className: `${classPrefix$H}-cell-mask`
21960
+ className: `${classPrefix$G}-cell-mask`
21197
21961
  }, React__default.createElement("span", {
21198
- className: `${classPrefix$H}-cell-loading`
21962
+ className: `${classPrefix$G}-cell-loading`
21199
21963
  }, React__default.createElement(SpinLoading, {
21200
21964
  color: "white"
21201
21965
  }), React__default.createElement("span", {
21202
- className: `${classPrefix$H}-cell-mask-message`
21966
+ className: `${classPrefix$G}-cell-mask-message`
21203
21967
  }, locale.ImageUploader.uploading)));
21204
21968
  }
21205
21969
  function renderDelete() {
21206
21970
  return deletable && React__default.createElement("span", {
21207
- className: `${classPrefix$H}-cell-delete`,
21971
+ className: `${classPrefix$G}-cell-delete`,
21208
21972
  onClick: onDelete
21209
21973
  }, deleteIcon);
21210
21974
  }
21211
21975
  return React__default.createElement("div", {
21212
- className: classNames(`${classPrefix$H}-cell`, props.status === "fail" && `${classPrefix$H}-cell-fail`)
21976
+ className: classNames(`${classPrefix$G}-cell`, props.status === "fail" && `${classPrefix$G}-cell-fail`)
21213
21977
  }, React__default.createElement(Image$1, {
21214
- className: `${classPrefix$H}-cell-image`,
21978
+ className: `${classPrefix$G}-cell-image`,
21215
21979
  src,
21216
21980
  fit: imageFit,
21217
21981
  onClick: props.onClick
21218
21982
  }), renderLoading(), renderDelete());
21219
21983
  };
21220
21984
  const PreviewItem$1 = PreviewItem;
21221
- const classPrefix$G = `adm-space`;
21222
- const defaultProps$y = {
21223
- direction: "horizontal"
21224
- };
21225
- const Space = (p) => {
21226
- const props = mergeProps(defaultProps$y, p);
21227
- const {
21228
- direction,
21229
- onClick
21230
- } = props;
21231
- return withNativeProps(props, React__default.createElement("div", {
21232
- className: classNames(classPrefix$G, {
21233
- [`${classPrefix$G}-wrap`]: props.wrap,
21234
- [`${classPrefix$G}-block`]: props.block,
21235
- [`${classPrefix$G}-${direction}`]: true,
21236
- [`${classPrefix$G}-align-${props.align}`]: !!props.align,
21237
- [`${classPrefix$G}-justify-${props.justify}`]: !!props.justify
21238
- }),
21239
- onClick
21240
- }, React__default.Children.map(props.children, (child) => {
21241
- return child !== null && child !== void 0 && React__default.createElement("div", {
21242
- className: `${classPrefix$G}-item`
21243
- }, child);
21244
- })));
21245
- };
21246
21985
  const classPrefix$F = `adm-image-uploader`;
21247
21986
  const defaultProps$x = {
21248
21987
  disableUpload: false,
@@ -21259,7 +21998,7 @@ const defaultProps$x = {
21259
21998
  showFailed: true,
21260
21999
  imageFit: "cover"
21261
22000
  };
21262
- const ImageUploader = forwardRef((p, ref) => {
22001
+ const ImageUploader = forwardRef((p, ref2) => {
21263
22002
  const {
21264
22003
  locale
21265
22004
  } = useConfig();
@@ -21378,10 +22117,10 @@ const ImageUploader = forwardRef((p, ref) => {
21378
22117
  return task;
21379
22118
  });
21380
22119
  });
21381
- throw e3;
22120
+ console.error(e3);
21382
22121
  }
21383
- }))).catch((error) => console.error(error));
21384
- setValue((prev) => prev.concat(newVal));
22122
+ })));
22123
+ setValue((prev) => prev.concat(newVal).filter(Boolean));
21385
22124
  });
21386
22125
  }
21387
22126
  const imageViewerHandlerRef = useRef(null);
@@ -21462,7 +22201,7 @@ const ImageUploader = forwardRef((p, ref) => {
21462
22201
  className: `${classPrefix$F}-input`,
21463
22202
  onChange
21464
22203
  })));
21465
- useImperativeHandle(ref, () => ({
22204
+ useImperativeHandle(ref2, () => ({
21466
22205
  get nativeElement() {
21467
22206
  return inputRef.current;
21468
22207
  }
@@ -21552,7 +22291,7 @@ const classPrefix$D = `adm-index-bar`;
21552
22291
  const defaultProps$w = {
21553
22292
  sticky: true
21554
22293
  };
21555
- const IndexBar = forwardRef((p, ref) => {
22294
+ const IndexBar = forwardRef((p, ref2) => {
21556
22295
  const props = mergeProps(defaultProps$w, p);
21557
22296
  const titleHeight = convertPx(35);
21558
22297
  const bodyRef = useRef(null);
@@ -21582,7 +22321,7 @@ const IndexBar = forwardRef((p, ref) => {
21582
22321
  const firstItem = indexItems[0];
21583
22322
  return firstItem ? firstItem.index : null;
21584
22323
  });
21585
- useImperativeHandle(ref, () => ({
22324
+ useImperativeHandle(ref2, () => ({
21586
22325
  scrollTo
21587
22326
  }));
21588
22327
  function scrollTo(index2) {
@@ -21789,7 +22528,7 @@ const defaultProps$u = {
21789
22528
  clearIcon: React__default.createElement(CloseCircleFill, null),
21790
22529
  onlyShowClearWhenFocus: true
21791
22530
  };
21792
- const Input = forwardRef((props, ref) => {
22531
+ const Input = forwardRef((props, ref2) => {
21793
22532
  const {
21794
22533
  locale,
21795
22534
  input: componentConfig = {}
@@ -21805,7 +22544,7 @@ const Input = forwardRef((props, ref) => {
21805
22544
  nativeInputRef,
21806
22545
  enterKeyHint: mergedProps.enterKeyHint
21807
22546
  });
21808
- useImperativeHandle(ref, () => ({
22547
+ useImperativeHandle(ref2, () => ({
21809
22548
  clear: () => {
21810
22549
  setValue("");
21811
22550
  },
@@ -22337,7 +23076,7 @@ const NumberKeyboard = (p) => {
22337
23076
  locale
22338
23077
  } = useConfig();
22339
23078
  const keyboardRef = useRef(null);
22340
- const keys2 = useMemo(() => {
23079
+ const keys2 = useMemo$2(() => {
22341
23080
  const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
22342
23081
  const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
22343
23082
  const customKeys = Array.isArray(customKey) ? customKey : [customKey];
@@ -22516,9 +23255,10 @@ const defaultProps$o = {
22516
23255
  plain: false,
22517
23256
  error: false,
22518
23257
  seperated: false,
22519
- caret: true
23258
+ caret: true,
23259
+ inputMode: "numeric"
22520
23260
  };
22521
- const PasscodeInput = forwardRef((p, ref) => {
23261
+ const PasscodeInput = forwardRef((p, ref2) => {
22522
23262
  const props = mergeProps(defaultProps$o, p);
22523
23263
  const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
22524
23264
  const {
@@ -22562,7 +23302,7 @@ const PasscodeInput = forwardRef((p, ref) => {
22562
23302
  setFocused(false);
22563
23303
  (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props);
22564
23304
  };
22565
- useImperativeHandle(ref, () => ({
23305
+ useImperativeHandle(ref2, () => ({
22566
23306
  focus: () => {
22567
23307
  var _a;
22568
23308
  return (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
@@ -22611,7 +23351,7 @@ const PasscodeInput = forwardRef((p, ref) => {
22611
23351
  value,
22612
23352
  type: "text",
22613
23353
  pattern: "[0-9]*",
22614
- inputMode: "numeric",
23354
+ inputMode: props.inputMode,
22615
23355
  onChange: (e2) => {
22616
23356
  setValue(e2.target.value.slice(0, props.length));
22617
23357
  },
@@ -23174,7 +23914,7 @@ const defaultProps$g = {
23174
23914
  defaultValue: "",
23175
23915
  clearOnCancel: true
23176
23916
  };
23177
- const SearchBar = forwardRef((props, ref) => {
23917
+ const SearchBar = forwardRef((props, ref2) => {
23178
23918
  const {
23179
23919
  locale,
23180
23920
  searchBar: componentConfig = {}
@@ -23187,7 +23927,7 @@ const SearchBar = forwardRef((props, ref) => {
23187
23927
  const [hasFocus, setHasFocus] = useState(false);
23188
23928
  const inputRef = useRef(null);
23189
23929
  const composingRef = useRef(false);
23190
- useImperativeHandle(ref, () => ({
23930
+ useImperativeHandle(ref2, () => ({
23191
23931
  clear: () => {
23192
23932
  var _a;
23193
23933
  return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.clear();
@@ -23284,7 +24024,7 @@ const SearchBar = forwardRef((props, ref) => {
23284
24024
  })), renderCancelButton()));
23285
24025
  });
23286
24026
  function omit(obj, fields) {
23287
- var clone = _objectSpread2({}, obj);
24027
+ var clone = Object.assign({}, obj);
23288
24028
  if (Array.isArray(fields)) {
23289
24029
  fields.forEach(function(key) {
23290
24030
  delete clone[key];
@@ -23295,16 +24035,27 @@ function omit(obj, fields) {
23295
24035
  function isDOM(node) {
23296
24036
  return node instanceof HTMLElement || node instanceof SVGElement;
23297
24037
  }
23298
- function findDOMNode(node) {
24038
+ function getDOM(node) {
24039
+ if (node && _typeof(node) === "object" && isDOM(node.nativeElement)) {
24040
+ return node.nativeElement;
24041
+ }
23299
24042
  if (isDOM(node)) {
23300
24043
  return node;
23301
24044
  }
24045
+ return null;
24046
+ }
24047
+ function findDOMNode(node) {
24048
+ var domNode = getDOM(node);
24049
+ if (domNode) {
24050
+ return domNode;
24051
+ }
23302
24052
  if (node instanceof React__default.Component) {
23303
- return ReactDOM__default.findDOMNode(node);
24053
+ var _ReactDOM$findDOMNode;
24054
+ return (_ReactDOM$findDOMNode = ReactDOM__default.findDOMNode) === null || _ReactDOM$findDOMNode === void 0 ? void 0 : _ReactDOM$findDOMNode.call(ReactDOM__default, node);
23304
24055
  }
23305
24056
  return null;
23306
24057
  }
23307
- var Context = /* @__PURE__ */ React$1.createContext({});
24058
+ var Context = /* @__PURE__ */ React$2.createContext({});
23308
24059
  var DomWrapper = /* @__PURE__ */ function(_React$Component) {
23309
24060
  _inherits(DomWrapper2, _React$Component);
23310
24061
  var _super = _createSuper(DomWrapper2);
@@ -23319,7 +24070,7 @@ var DomWrapper = /* @__PURE__ */ function(_React$Component) {
23319
24070
  }
23320
24071
  }]);
23321
24072
  return DomWrapper2;
23322
- }(React$1.Component);
24073
+ }(React$2.Component);
23323
24074
  var STATUS_NONE = "none";
23324
24075
  var STATUS_APPEAR = "appear";
23325
24076
  var STATUS_ENTER = "enter";
@@ -23387,7 +24138,7 @@ var transitionEndName = internalTransitionEndName || "transitionend";
23387
24138
  function getTransitionName(transitionName, transitionType) {
23388
24139
  if (!transitionName)
23389
24140
  return null;
23390
- if (_typeof$1(transitionName) === "object") {
24141
+ if (_typeof(transitionName) === "object") {
23391
24142
  var type4 = transitionType.replace(/-\w/g, function(match) {
23392
24143
  return match[1].toUpperCase();
23393
24144
  });
@@ -23399,7 +24150,7 @@ const useDomMotionEvents = function(callback) {
23399
24150
  var cacheElementRef = useRef();
23400
24151
  var callbackRef = useRef(callback);
23401
24152
  callbackRef.current = callback;
23402
- var onInternalMotionEnd = React$1.useCallback(function(event) {
24153
+ var onInternalMotionEnd = React$2.useCallback(function(event) {
23403
24154
  callbackRef.current(event);
23404
24155
  }, []);
23405
24156
  function removeMotionEvents(element) {
@@ -23418,7 +24169,7 @@ const useDomMotionEvents = function(callback) {
23418
24169
  cacheElementRef.current = element;
23419
24170
  }
23420
24171
  }
23421
- React$1.useEffect(function() {
24172
+ React$2.useEffect(function() {
23422
24173
  return function() {
23423
24174
  removeMotionEvents(cacheElementRef.current);
23424
24175
  };
@@ -23474,7 +24225,7 @@ wrapperRaf.cancel = function(id) {
23474
24225
  };
23475
24226
  }
23476
24227
  const useNextFrame = function() {
23477
- var nextFrameRef = React$1.useRef(null);
24228
+ var nextFrameRef = React$2.useRef(null);
23478
24229
  function cancelNextFrame() {
23479
24230
  wrapperRaf.cancel(nextFrameRef.current);
23480
24231
  }
@@ -23494,7 +24245,7 @@ const useNextFrame = function() {
23494
24245
  });
23495
24246
  nextFrameRef.current = nextFrameId;
23496
24247
  }
23497
- React$1.useEffect(function() {
24248
+ React$2.useEffect(function() {
23498
24249
  return function() {
23499
24250
  cancelNextFrame();
23500
24251
  };
@@ -23538,7 +24289,7 @@ const useStepQueue = function(status, prepareOnly, callback) {
23538
24289
  }
23539
24290
  }
23540
24291
  }, [status, step]);
23541
- React$1.useEffect(function() {
24292
+ React$2.useEffect(function() {
23542
24293
  return function() {
23543
24294
  cancelNextFrame();
23544
24295
  };
@@ -23592,7 +24343,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
23592
24343
  return {};
23593
24344
  }
23594
24345
  };
23595
- var eventHandlers = React$1.useMemo(function() {
24346
+ var eventHandlers = React$2.useMemo(function() {
23596
24347
  return getEventHandlers(status);
23597
24348
  }, [status]);
23598
24349
  var _useStepQueue = useStepQueue(status, !supportMotion, function(newStep) {
@@ -23663,7 +24414,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
23663
24414
  clearTimeout(deadlineRef.current);
23664
24415
  };
23665
24416
  }, []);
23666
- var firstMountChangeRef = React$1.useRef(false);
24417
+ var firstMountChangeRef = React$2.useRef(false);
23667
24418
  useEffect(function() {
23668
24419
  if (asyncVisible) {
23669
24420
  firstMountChangeRef.current = true;
@@ -23685,15 +24436,15 @@ function useStatus(supportMotion, visible, getElement, _ref) {
23685
24436
  }
23686
24437
  function genCSSMotion(config2) {
23687
24438
  var transitionSupport = config2;
23688
- if (_typeof$1(config2) === "object") {
24439
+ if (_typeof(config2) === "object") {
23689
24440
  transitionSupport = config2.transitionSupport;
23690
24441
  }
23691
24442
  function isSupportTransition(props, contextMotion) {
23692
24443
  return !!(props.motionName && transitionSupport && contextMotion !== false);
23693
24444
  }
23694
- var CSSMotion2 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
24445
+ var CSSMotion2 = /* @__PURE__ */ React$2.forwardRef(function(props, ref2) {
23695
24446
  var _props$visible = props.visible, visible = _props$visible === void 0 ? true : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps;
23696
- var _React$useContext = React$1.useContext(Context), contextMotion = _React$useContext.motion;
24447
+ var _React$useContext = React$2.useContext(Context), contextMotion = _React$useContext.motion;
23697
24448
  var supportMotion = isSupportTransition(props, contextMotion);
23698
24449
  var nodeRef = useRef();
23699
24450
  var wrapperNodeRef = useRef();
@@ -23705,14 +24456,14 @@ function genCSSMotion(config2) {
23705
24456
  }
23706
24457
  }
23707
24458
  var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3];
23708
- var renderedRef = React$1.useRef(mergedVisible);
24459
+ var renderedRef = React$2.useRef(mergedVisible);
23709
24460
  if (mergedVisible) {
23710
24461
  renderedRef.current = true;
23711
24462
  }
23712
- var setNodeRef = React$1.useCallback(function(node) {
24463
+ var setNodeRef = React$2.useCallback(function(node) {
23713
24464
  nodeRef.current = node;
23714
- fillRef(ref, node);
23715
- }, [ref]);
24465
+ fillRef$1(ref2, node);
24466
+ }, [ref2]);
23716
24467
  var motionChildren;
23717
24468
  var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
23718
24469
  visible
@@ -23751,15 +24502,15 @@ function genCSSMotion(config2) {
23751
24502
  style: statusStyle
23752
24503
  }), setNodeRef);
23753
24504
  }
23754
- if (/* @__PURE__ */ React$1.isValidElement(motionChildren) && supportRef(motionChildren)) {
24505
+ if (/* @__PURE__ */ React$2.isValidElement(motionChildren) && supportRef$1(motionChildren)) {
23755
24506
  var _ref = motionChildren, originNodeRef = _ref.ref;
23756
24507
  if (!originNodeRef) {
23757
- motionChildren = /* @__PURE__ */ React$1.cloneElement(motionChildren, {
24508
+ motionChildren = /* @__PURE__ */ React$2.cloneElement(motionChildren, {
23758
24509
  ref: setNodeRef
23759
24510
  });
23760
24511
  }
23761
24512
  }
23762
- return /* @__PURE__ */ React$1.createElement(DomWrapper, {
24513
+ return /* @__PURE__ */ React$2.createElement(DomWrapper, {
23763
24514
  ref: wrapperNodeRef
23764
24515
  }, motionChildren);
23765
24516
  });
@@ -23773,7 +24524,7 @@ var STATUS_REMOVE = "remove";
23773
24524
  var STATUS_REMOVED = "removed";
23774
24525
  function wrapKeyToObject(key) {
23775
24526
  var keyObj;
23776
- if (key && _typeof$1(key) === "object" && "key" in key) {
24527
+ if (key && _typeof(key) === "object" && "key" in key) {
23777
24528
  keyObj = key;
23778
24529
  } else {
23779
24530
  keyObj = {
@@ -23893,17 +24644,17 @@ function genCSSMotionList(transitionSupport) {
23893
24644
  var _this2 = this;
23894
24645
  var keyEntities = this.state.keyEntities;
23895
24646
  var _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties(_this$props, _excluded$1);
23896
- var Component = component || React$1.Fragment;
24647
+ var Component = component || React$2.Fragment;
23897
24648
  var motionProps = {};
23898
24649
  MOTION_PROP_NAMES.forEach(function(prop) {
23899
24650
  motionProps[prop] = restProps[prop];
23900
24651
  delete restProps[prop];
23901
24652
  });
23902
24653
  delete restProps.keys;
23903
- return /* @__PURE__ */ React$1.createElement(Component, restProps, keyEntities.map(function(_ref2, index2) {
24654
+ return /* @__PURE__ */ React$2.createElement(Component, restProps, keyEntities.map(function(_ref2, index2) {
23904
24655
  var status = _ref2.status, eventProps = _objectWithoutProperties(_ref2, _excluded2);
23905
24656
  var visible = status === STATUS_ADD || status === STATUS_KEEP;
23906
- return /* @__PURE__ */ React$1.createElement(CSSMotion$1, _extends$1({}, motionProps, {
24657
+ return /* @__PURE__ */ React$2.createElement(CSSMotion$1, _extends$1({}, motionProps, {
23907
24658
  key: eventProps.key,
23908
24659
  visible,
23909
24660
  eventProps,
@@ -23918,10 +24669,10 @@ function genCSSMotionList(transitionSupport) {
23918
24669
  }
23919
24670
  }
23920
24671
  }
23921
- }), function(props, ref) {
24672
+ }), function(props, ref2) {
23922
24673
  return children(_objectSpread2(_objectSpread2({}, props), {}, {
23923
24674
  index: index2
23924
- }), ref);
24675
+ }), ref2);
23925
24676
  });
23926
24677
  }));
23927
24678
  }
@@ -23947,7 +24698,7 @@ function genCSSMotionList(transitionSupport) {
23947
24698
  }
23948
24699
  }]);
23949
24700
  return CSSMotionList2;
23950
- }(React$1.Component);
24701
+ }(React$2.Component);
23951
24702
  _defineProperty(CSSMotionList, "defaultProps", {
23952
24703
  component: "div"
23953
24704
  });
@@ -23966,16 +24717,16 @@ var toPX = function toPX2(value) {
23966
24717
  };
23967
24718
  function MotionThumb(props) {
23968
24719
  var prefixCls = props.prefixCls, containerRef = props.containerRef, value = props.value, getValueIndex = props.getValueIndex, motionName = props.motionName, onMotionStart = props.onMotionStart, onMotionEnd = props.onMotionEnd, direction = props.direction;
23969
- var thumbRef = React$1.useRef(null);
23970
- var _React$useState = React$1.useState(value), _React$useState2 = _slicedToArray(_React$useState, 2), prevValue = _React$useState2[0], setPrevValue = _React$useState2[1];
24720
+ var thumbRef = React$2.useRef(null);
24721
+ var _React$useState = React$2.useState(value), _React$useState2 = _slicedToArray(_React$useState, 2), prevValue = _React$useState2[0], setPrevValue = _React$useState2[1];
23971
24722
  var findValueElement = function findValueElement2(val) {
23972
24723
  var _containerRef$current;
23973
24724
  var index2 = getValueIndex(val);
23974
24725
  var ele = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.querySelectorAll(".".concat(prefixCls, "-item"))[index2];
23975
24726
  return (ele === null || ele === void 0 ? void 0 : ele.offsetParent) && ele;
23976
24727
  };
23977
- var _React$useState3 = React$1.useState(null), _React$useState4 = _slicedToArray(_React$useState3, 2), prevStyle = _React$useState4[0], setPrevStyle = _React$useState4[1];
23978
- var _React$useState5 = React$1.useState(null), _React$useState6 = _slicedToArray(_React$useState5, 2), nextStyle = _React$useState6[0], setNextStyle = _React$useState6[1];
24728
+ var _React$useState3 = React$2.useState(null), _React$useState4 = _slicedToArray(_React$useState3, 2), prevStyle = _React$useState4[0], setPrevStyle = _React$useState4[1];
24729
+ var _React$useState5 = React$2.useState(null), _React$useState6 = _slicedToArray(_React$useState5, 2), nextStyle = _React$useState6[0], setNextStyle = _React$useState6[1];
23979
24730
  useLayoutEffect(function() {
23980
24731
  if (prevValue !== value) {
23981
24732
  var prev = findValueElement(prevValue);
@@ -23992,10 +24743,10 @@ function MotionThumb(props) {
23992
24743
  }
23993
24744
  }
23994
24745
  }, [value]);
23995
- var thumbStart = React$1.useMemo(function() {
24746
+ var thumbStart = React$2.useMemo(function() {
23996
24747
  return direction === "rtl" ? toPX(-(prevStyle === null || prevStyle === void 0 ? void 0 : prevStyle.right)) : toPX(prevStyle === null || prevStyle === void 0 ? void 0 : prevStyle.left);
23997
24748
  }, [direction, prevStyle]);
23998
- var thumbActive = React$1.useMemo(function() {
24749
+ var thumbActive = React$2.useMemo(function() {
23999
24750
  return direction === "rtl" ? toPX(-(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.right)) : toPX(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.left);
24000
24751
  }, [direction, nextStyle]);
24001
24752
  var onAppearStart = function onAppearStart2() {
@@ -24018,14 +24769,14 @@ function MotionThumb(props) {
24018
24769
  if (!prevStyle || !nextStyle) {
24019
24770
  return null;
24020
24771
  }
24021
- return /* @__PURE__ */ React$1.createElement(CSSMotion, {
24772
+ return /* @__PURE__ */ React$2.createElement(CSSMotion, {
24022
24773
  visible: true,
24023
24774
  motionName,
24024
24775
  motionAppear: true,
24025
24776
  onAppearStart,
24026
24777
  onAppearActive,
24027
24778
  onVisibleChanged
24028
- }, function(_ref, ref) {
24779
+ }, function(_ref, ref2) {
24029
24780
  var motionClassName = _ref.className, motionStyle = _ref.style;
24030
24781
  var mergedStyle = _objectSpread2(_objectSpread2({}, motionStyle), {}, {
24031
24782
  "--thumb-start-left": thumbStart,
@@ -24034,11 +24785,11 @@ function MotionThumb(props) {
24034
24785
  "--thumb-active-width": toPX(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.width)
24035
24786
  });
24036
24787
  var motionProps = {
24037
- ref: composeRef(thumbRef, ref),
24788
+ ref: composeRef$1(thumbRef, ref2),
24038
24789
  style: mergedStyle,
24039
24790
  className: classNames("".concat(prefixCls, "-thumb"), motionClassName)
24040
24791
  };
24041
- return /* @__PURE__ */ React$1.createElement("div", motionProps);
24792
+ return /* @__PURE__ */ React$2.createElement("div", motionProps);
24042
24793
  });
24043
24794
  }
24044
24795
  var _excluded = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
@@ -24046,14 +24797,14 @@ function getValidTitle(option) {
24046
24797
  if (typeof option.title !== "undefined") {
24047
24798
  return option.title;
24048
24799
  }
24049
- if (_typeof$1(option.label) !== "object") {
24800
+ if (_typeof(option.label) !== "object") {
24050
24801
  var _option$label;
24051
24802
  return (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toString();
24052
24803
  }
24053
24804
  }
24054
24805
  function normalizeOptions(options) {
24055
24806
  return options.map(function(option) {
24056
- if (_typeof$1(option) === "object" && option !== null) {
24807
+ if (_typeof(option) === "object" && option !== null) {
24057
24808
  var validTitle = getValidTitle(option);
24058
24809
  return _objectSpread2(_objectSpread2({}, option), {}, {
24059
24810
  title: validTitle
@@ -24074,36 +24825,36 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
24074
24825
  }
24075
24826
  onChange(event, value);
24076
24827
  };
24077
- return /* @__PURE__ */ React$1.createElement("label", {
24828
+ return /* @__PURE__ */ React$2.createElement("label", {
24078
24829
  className: classNames(className, _defineProperty({}, "".concat(prefixCls, "-item-disabled"), disabled))
24079
- }, /* @__PURE__ */ React$1.createElement("input", {
24830
+ }, /* @__PURE__ */ React$2.createElement("input", {
24080
24831
  className: "".concat(prefixCls, "-item-input"),
24081
24832
  type: "radio",
24082
24833
  disabled,
24083
24834
  checked,
24084
24835
  onChange: handleChange
24085
- }), /* @__PURE__ */ React$1.createElement("div", {
24836
+ }), /* @__PURE__ */ React$2.createElement("div", {
24086
24837
  className: "".concat(prefixCls, "-item-label"),
24087
24838
  title,
24088
24839
  role: "option",
24089
24840
  "aria-selected": checked
24090
24841
  }, label));
24091
24842
  };
24092
- var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
24843
+ var Segmented$1 = /* @__PURE__ */ React$2.forwardRef(function(props, ref2) {
24093
24844
  var _segmentedOptions$, _classNames2;
24094
24845
  var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled = props.disabled, defaultValue = props.defaultValue, value = props.value, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties(props, _excluded);
24095
- var containerRef = React$1.useRef(null);
24096
- var mergedRef = React$1.useMemo(function() {
24097
- return composeRef(containerRef, ref);
24098
- }, [containerRef, ref]);
24099
- var segmentedOptions = React$1.useMemo(function() {
24846
+ var containerRef = React$2.useRef(null);
24847
+ var mergedRef = React$2.useMemo(function() {
24848
+ return composeRef$1(containerRef, ref2);
24849
+ }, [containerRef, ref2]);
24850
+ var segmentedOptions = React$2.useMemo(function() {
24100
24851
  return normalizeOptions(options);
24101
24852
  }, [options]);
24102
24853
  var _useMergedState = useMergedState((_segmentedOptions$ = segmentedOptions[0]) === null || _segmentedOptions$ === void 0 ? void 0 : _segmentedOptions$.value, {
24103
24854
  value,
24104
24855
  defaultValue
24105
24856
  }), _useMergedState2 = _slicedToArray(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1];
24106
- var _React$useState = React$1.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1];
24857
+ var _React$useState = React$2.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1];
24107
24858
  var handleChange = function handleChange2(event, val) {
24108
24859
  if (disabled) {
24109
24860
  return;
@@ -24112,15 +24863,15 @@ var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
24112
24863
  onChange === null || onChange === void 0 ? void 0 : onChange(val);
24113
24864
  };
24114
24865
  var divProps = omit(restProps, ["children"]);
24115
- return /* @__PURE__ */ React$1.createElement("div", _extends$1({
24866
+ return /* @__PURE__ */ React$2.createElement("div", _extends$1({
24116
24867
  role: "listbox",
24117
24868
  "aria-label": "segmented control"
24118
24869
  }, divProps, {
24119
24870
  className: classNames(prefixCls, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), className),
24120
24871
  ref: mergedRef
24121
- }), /* @__PURE__ */ React$1.createElement("div", {
24872
+ }), /* @__PURE__ */ React$2.createElement("div", {
24122
24873
  className: "".concat(prefixCls, "-group")
24123
- }, /* @__PURE__ */ React$1.createElement(MotionThumb, {
24874
+ }, /* @__PURE__ */ React$2.createElement(MotionThumb, {
24124
24875
  prefixCls,
24125
24876
  value: rawValue,
24126
24877
  containerRef,
@@ -24138,7 +24889,7 @@ var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
24138
24889
  setThumbShow(false);
24139
24890
  }
24140
24891
  }), segmentedOptions.map(function(segmentedOption) {
24141
- return /* @__PURE__ */ React$1.createElement(InternalSegmentedOption, _extends$1({}, segmentedOption, {
24892
+ return /* @__PURE__ */ React$2.createElement(InternalSegmentedOption, _extends$1({}, segmentedOption, {
24142
24893
  key: segmentedOption.value,
24143
24894
  prefixCls,
24144
24895
  className: classNames(segmentedOption.className, "".concat(prefixCls, "-item"), _defineProperty({}, "".concat(prefixCls, "-item-selected"), segmentedOption.value === rawValue && !thumbShow)),
@@ -24156,7 +24907,7 @@ function isSegmentedLabeledOptionWithIcon(option) {
24156
24907
  return typeof option === "object" && !!(option === null || option === void 0 ? void 0 : option.icon);
24157
24908
  }
24158
24909
  const classPrefix$l = `adm-segmented`;
24159
- const Segmented = React$1.forwardRef((props, ref) => {
24910
+ const Segmented = React$2.forwardRef((props, ref2) => {
24160
24911
  const {
24161
24912
  prefixCls: customizePrefixCls,
24162
24913
  className,
@@ -24166,26 +24917,26 @@ const Segmented = React$1.forwardRef((props, ref) => {
24166
24917
  props,
24167
24918
  ["prefixCls", "className", "block", "options"]
24168
24919
  );
24169
- const extendedOptions = React$1.useMemo(() => options.map((option) => {
24920
+ const extendedOptions = React$2.useMemo(() => options.map((option) => {
24170
24921
  if (isSegmentedLabeledOptionWithIcon(option)) {
24171
24922
  const {
24172
24923
  icon,
24173
24924
  label
24174
24925
  } = option, restOption = __rest(option, ["icon", "label"]);
24175
24926
  return Object.assign(Object.assign({}, restOption), {
24176
- label: React$1.createElement(React$1.Fragment, null, React$1.createElement("span", {
24927
+ label: React$2.createElement(React$2.Fragment, null, React$2.createElement("span", {
24177
24928
  className: `${classPrefix$l}-item-icon`
24178
- }, icon), label && React$1.createElement("span", null, label))
24929
+ }, icon), label && React$2.createElement("span", null, label))
24179
24930
  });
24180
24931
  }
24181
24932
  return option;
24182
24933
  }), [options, classPrefix$l]);
24183
- return withNativeProps(props, React$1.createElement(TypedSegmented, Object.assign({}, restProps, {
24934
+ return withNativeProps(props, React$2.createElement(TypedSegmented, Object.assign({}, restProps, {
24184
24935
  className: classNames(className, {
24185
24936
  [`${classPrefix$l}-block`]: block
24186
24937
  }),
24187
24938
  options: extendedOptions,
24188
- ref,
24939
+ ref: ref2,
24189
24940
  prefixCls: classPrefix$l
24190
24941
  })));
24191
24942
  });
@@ -24960,7 +25711,7 @@ const Slider = (p) => {
24960
25711
  const trackRef = useRef(null);
24961
25712
  const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
24962
25713
  const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
24963
- const pointList = useMemo(() => {
25714
+ const pointList = useMemo$2(() => {
24964
25715
  if (marks) {
24965
25716
  return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
24966
25717
  } else if (ticks) {
@@ -25081,7 +25832,7 @@ const defaultProps$d = {
25081
25832
  disabled: false,
25082
25833
  allowEmpty: false
25083
25834
  };
25084
- function InnerStepper(p, ref) {
25835
+ function InnerStepper(p, ref2) {
25085
25836
  const props = mergeProps(defaultProps$d, p);
25086
25837
  const {
25087
25838
  defaultValue = 0,
@@ -25100,7 +25851,7 @@ function InnerStepper(p, ref) {
25100
25851
  const {
25101
25852
  locale
25102
25853
  } = useConfig();
25103
- useImperativeHandle(ref, () => ({
25854
+ useImperativeHandle(ref2, () => ({
25104
25855
  focus: () => {
25105
25856
  var _a;
25106
25857
  (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
@@ -25345,13 +26096,13 @@ const defaultProps$b = {
25345
26096
  closeOnAction: true,
25346
26097
  stopPropagation: []
25347
26098
  };
25348
- const SwipeAction = forwardRef((p, ref) => {
26099
+ const SwipeAction = forwardRef((p, ref2) => {
25349
26100
  const props = mergeProps(defaultProps$b, p);
25350
26101
  const rootRef = useRef(null);
25351
26102
  const leftRef = useRef(null);
25352
26103
  const rightRef = useRef(null);
25353
- function getWidth(ref2) {
25354
- const element = ref2.current;
26104
+ function getWidth(ref3) {
26105
+ const element = ref3.current;
25355
26106
  if (!element)
25356
26107
  return 0;
25357
26108
  return element.offsetWidth;
@@ -25433,13 +26184,15 @@ const SwipeAction = forwardRef((p, ref) => {
25433
26184
  },
25434
26185
  triggerAllEvents: true
25435
26186
  });
25436
- function close() {
26187
+ const close = () => {
26188
+ var _a;
25437
26189
  api.start({
25438
26190
  x: 0
25439
26191
  });
25440
26192
  forceCancelDrag();
25441
- }
25442
- useImperativeHandle(ref, () => ({
26193
+ (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
26194
+ };
26195
+ useImperativeHandle(ref2, () => ({
25443
26196
  show: (side = "right") => {
25444
26197
  var _a;
25445
26198
  if (side === "right") {
@@ -25543,11 +26296,11 @@ const SwiperItem = (props) => {
25543
26296
  };
25544
26297
  function useRefState(initialState) {
25545
26298
  const [state, setState] = useState(initialState);
25546
- const ref = useRef(state);
26299
+ const ref2 = useRef(state);
25547
26300
  useEffect(() => {
25548
- ref.current = state;
26301
+ ref2.current = state;
25549
26302
  }, [state]);
25550
- return [state, setState, ref];
26303
+ return [state, setState, ref2];
25551
26304
  }
25552
26305
  function mergeFuncProps(p1, p2) {
25553
26306
  const p1Keys = Object.keys(p1);
@@ -25588,7 +26341,7 @@ const defaultProps$a = {
25588
26341
  stopPropagation: []
25589
26342
  };
25590
26343
  let currentUid;
25591
- const Swiper = forwardRef(staged_1((p, ref) => {
26344
+ const Swiper = forwardRef(staged_1((p, ref2) => {
25592
26345
  const props = mergeProps(defaultProps$a, p);
25593
26346
  const {
25594
26347
  direction,
@@ -25605,7 +26358,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
25605
26358
  validChildren,
25606
26359
  count,
25607
26360
  renderChildren
25608
- } = useMemo(() => {
26361
+ } = useMemo$2(() => {
25609
26362
  let count2 = 0;
25610
26363
  let renderChildren2 = void 0;
25611
26364
  let validChildren2 = void 0;
@@ -25767,7 +26520,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
25767
26520
  function swipePrev() {
25768
26521
  swipeTo(Math.round(position.get() / 100) - 1);
25769
26522
  }
25770
- useImperativeHandle(ref, () => ({
26523
+ useImperativeHandle(ref2, () => ({
25771
26524
  swipeTo,
25772
26525
  swipeNext,
25773
26526
  swipePrev
@@ -26111,7 +26864,7 @@ const defaultProps$6 = {
26111
26864
  autoSize: false,
26112
26865
  defaultValue: ""
26113
26866
  };
26114
- const TextArea = forwardRef((p, ref) => {
26867
+ const TextArea = forwardRef((p, ref2) => {
26115
26868
  const props = mergeProps(defaultProps$6, p);
26116
26869
  const {
26117
26870
  autoSize,
@@ -26133,7 +26886,7 @@ const TextArea = forwardRef((p, ref) => {
26133
26886
  nativeInputRef: nativeTextAreaRef,
26134
26887
  enterKeyHint: props.enterKeyHint
26135
26888
  });
26136
- useImperativeHandle(ref, () => ({
26889
+ useImperativeHandle(ref2, () => ({
26137
26890
  clear: () => {
26138
26891
  setValue("");
26139
26892
  },
@@ -26254,7 +27007,7 @@ const InternalToast = (p) => {
26254
27007
  icon,
26255
27008
  position
26256
27009
  } = props;
26257
- const iconElement = useMemo(() => {
27010
+ const iconElement = useMemo$2(() => {
26258
27011
  if (icon === null || icon === void 0)
26259
27012
  return null;
26260
27013
  switch (icon) {
@@ -26275,7 +27028,7 @@ const InternalToast = (p) => {
26275
27028
  return icon;
26276
27029
  }
26277
27030
  }, [icon]);
26278
- const top = useMemo(() => {
27031
+ const top = useMemo$2(() => {
26279
27032
  switch (position) {
26280
27033
  case "top":
26281
27034
  return "20%";
@@ -26394,7 +27147,7 @@ const TreeSelect = (p) => {
26394
27147
  value: props.value,
26395
27148
  defaultValue: props.defaultValue
26396
27149
  });
26397
- const [deep, optionsMap, optionsParentMap] = useMemo(() => {
27150
+ const [deep, optionsMap, optionsParentMap] = useMemo$2(() => {
26398
27151
  const deep2 = getTreeDeep(props.options, childrenName);
26399
27152
  const optionsMap2 = /* @__PURE__ */ new Map();
26400
27153
  const optionsParentMap2 = /* @__PURE__ */ new Map();
@@ -26504,7 +27257,7 @@ const Multiple = (p) => {
26504
27257
  walker(option);
26505
27258
  return keys2;
26506
27259
  };
26507
- const [deep, optionsMap, optionsParentMap] = useMemo(() => {
27260
+ const [deep, optionsMap, optionsParentMap] = useMemo$2(() => {
26508
27261
  const deep2 = getTreeDeep(props.options, childrenName);
26509
27262
  const optionsMap2 = /* @__PURE__ */ new Map();
26510
27263
  const optionsParentMap2 = /* @__PURE__ */ new Map();
@@ -26520,7 +27273,7 @@ const Multiple = (p) => {
26520
27273
  traverse(void 0, props.options);
26521
27274
  return [deep2, optionsMap2, optionsParentMap2];
26522
27275
  }, [props.options]);
26523
- const allSelectedLeafKeys = useMemo(() => {
27276
+ const allSelectedLeafKeys = useMemo$2(() => {
26524
27277
  let leafKeys = [];
26525
27278
  value.forEach((v) => {
26526
27279
  const option = optionsMap.get(v);
@@ -26528,7 +27281,7 @@ const Multiple = (p) => {
26528
27281
  });
26529
27282
  return leafKeys;
26530
27283
  }, [value, optionsMap]);
26531
- const dotMap = useMemo(() => {
27284
+ const dotMap = useMemo$2(() => {
26532
27285
  const map = /* @__PURE__ */ new Map();
26533
27286
  const walker = (key) => {
26534
27287
  const parentOption = optionsParentMap.get(key);
@@ -26708,7 +27461,7 @@ const classPrefix$2 = "adm-virtual-input";
26708
27461
  const defaultProps$2 = {
26709
27462
  defaultValue: ""
26710
27463
  };
26711
- const VirtualInput = forwardRef((props, ref) => {
27464
+ const VirtualInput = forwardRef((props, ref2) => {
26712
27465
  const {
26713
27466
  locale,
26714
27467
  input: componentConfig = {}
@@ -26718,6 +27471,7 @@ const VirtualInput = forwardRef((props, ref) => {
26718
27471
  const rootRef = useRef(null);
26719
27472
  const contentRef = useRef(null);
26720
27473
  const [hasFocus, setHasFocus] = useState(false);
27474
+ const [caretPosition, setCaretPosition] = useState(value.length);
26721
27475
  const clearIcon = mergeProp(React__default.createElement(CloseCircleFill, null), componentConfig.clearIcon, props.clearIcon);
26722
27476
  function scrollToEnd() {
26723
27477
  const root2 = rootRef.current;
@@ -26739,7 +27493,7 @@ const VirtualInput = forwardRef((props, ref) => {
26739
27493
  scrollToEnd();
26740
27494
  }
26741
27495
  }, [hasFocus]);
26742
- useImperativeHandle(ref, () => ({
27496
+ useImperativeHandle(ref2, () => ({
26743
27497
  focus: () => {
26744
27498
  var _a;
26745
27499
  (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
@@ -26763,12 +27517,18 @@ const VirtualInput = forwardRef((props, ref) => {
26763
27517
  const keyboardElement = keyboard && React__default.cloneElement(keyboard, {
26764
27518
  onInput: (v) => {
26765
27519
  var _a, _b;
26766
- setValue(value + v);
27520
+ const newValue = value.substring(0, caretPosition) + v + value.substring(caretPosition);
27521
+ setValue(newValue);
27522
+ setCaretPosition((c) => c + 1);
26767
27523
  (_b = (_a = keyboard.props).onInput) === null || _b === void 0 ? void 0 : _b.call(_a, v);
26768
27524
  },
26769
27525
  onDelete: () => {
26770
27526
  var _a, _b;
26771
- setValue(value.slice(0, -1));
27527
+ if (caretPosition === 0)
27528
+ return;
27529
+ const newValue = value.substring(0, caretPosition - 1) + value.substring(caretPosition);
27530
+ setValue(newValue);
27531
+ setCaretPosition(caretPosition - 1);
26772
27532
  (_b = (_a = keyboard.props).onDelete) === null || _b === void 0 ? void 0 : _b.call(_a);
26773
27533
  },
26774
27534
  visible: hasFocus,
@@ -26784,6 +27544,18 @@ const VirtualInput = forwardRef((props, ref) => {
26784
27544
  },
26785
27545
  getContainer: null
26786
27546
  });
27547
+ const setCaretPositionToEnd = () => {
27548
+ setCaretPosition(value.length);
27549
+ };
27550
+ const changeCaretPosition = (index2) => (e2) => {
27551
+ e2.stopPropagation();
27552
+ const rect = e2.target.getBoundingClientRect();
27553
+ const midX = rect.left + rect.width / 2;
27554
+ const clickX = e2.clientX;
27555
+ const isRight = clickX > midX;
27556
+ setCaretPosition(isRight ? index2 + 1 : index2);
27557
+ };
27558
+ const chars = (value + "").split("");
26787
27559
  return withNativeProps(mergedProps, React__default.createElement("div", {
26788
27560
  ref: rootRef,
26789
27561
  className: classNames(classPrefix$2, {
@@ -26798,17 +27570,25 @@ const VirtualInput = forwardRef((props, ref) => {
26798
27570
  className: `${classPrefix$2}-content`,
26799
27571
  ref: contentRef,
26800
27572
  "aria-disabled": mergedProps.disabled,
26801
- "aria-label": mergedProps.placeholder
26802
- }, value, React__default.createElement("div", {
27573
+ "aria-label": mergedProps.placeholder,
27574
+ onClick: setCaretPositionToEnd
27575
+ }, chars.slice(0, caretPosition).map((i2, index2) => React__default.createElement("span", {
27576
+ key: index2,
27577
+ onClick: changeCaretPosition(index2)
27578
+ }, i2)), React__default.createElement("div", {
26803
27579
  className: `${classPrefix$2}-caret-container`
26804
27580
  }, hasFocus && React__default.createElement("div", {
26805
27581
  className: `${classPrefix$2}-caret`
26806
- }))), mergedProps.clearable && !!value && hasFocus && React__default.createElement("div", {
27582
+ })), chars.slice(caretPosition).map((i2, index2) => React__default.createElement("span", {
27583
+ key: index2,
27584
+ onClick: changeCaretPosition(index2 + caretPosition)
27585
+ }, i2))), mergedProps.clearable && !!value && hasFocus && React__default.createElement("div", {
26807
27586
  className: `${classPrefix$2}-clear`,
26808
27587
  onClick: (e2) => {
26809
27588
  var _a;
26810
27589
  e2.stopPropagation();
26811
27590
  setValue("");
27591
+ setCaretPosition(0);
26812
27592
  (_a = mergedProps.onClear) === null || _a === void 0 ? void 0 : _a.call(mergedProps);
26813
27593
  },
26814
27594
  role: "button",
@@ -27038,5 +27818,6 @@ export {
27038
27818
  reduceMotion,
27039
27819
  restoreMotion,
27040
27820
  setDefaultConfig,
27821
+ unstableSetRender,
27041
27822
  useConfig
27042
27823
  };